View Source: /source/special/grassyfield.php

Click here for the source, OR
Other files that you may wish to view the source of:

Source of: /source/special/grassyfield.php

<?
//Original by Sean McKillion
//*slight* modifications by Eric Stevens
if ($session[user][hashorse]==1$ride="pony";
if (
$session[user][hashorse]==2$ride="gelding";
if (
$session[user][hashorse]==3$ride="stallion";

output("`n`c`#You Stumble Upon a Grassy Field`c");
addnav("Return to the forest","forest.php");
if (
$session[user][hashorse]>0){
    
output("`n`n`&Remembering that is has been quite some time since you last fed your $ride, you decide this
    is a perfect time to relax and allow it to graze the field a bit. You doze off enjoying this peaceful serenity."
);
    
output("`n`n`^You lose a forest fight for today");
    
/*
    output("<p align='center'><input type='button'
    name='btn' value='Return to the forest'
    onClick='location=\"forest.php?c=$session[counter]
    \"'>",true);
    */
    
$session[user][turns] -= 1;
    if (
$session[user][hitpoints]<$session[user][maxhitpoints]){
        
output("`n`^Your nap leaves you completely healed!");
        
$session[user][hitpoints] = $session[user][maxhitpoints];
    }
} else {
    
output("`n`n`&Deciding to take a moment and a load
    off your poor weary feet you take a quick break from
    your ventures to take in the beautiful surroundings."
);
    
output("`n`n`^Your break leaves you completely healed!");
    
/*
    output("<p align='center'><input type='button'
    name='btn' value='Return to the forest'
    onClick='location=\"forest.php?c=$session[counter]
    \"'>",true);
    */
    
if ($session[user][hitpoints]<$session[user][maxhitpoints])
        
$session[user][hitpoints] = $session[user][maxhitpoints];
}
?>