Home
Start a new game
Explore games
Help
Log in or sign up
Log in
Username
Password (
Forgot it?
)
×
New to Playfic?
Full Name
Email
Username
Password
Password (confirm)
Are you sure about this?
My New Game
by
Rahma Mahmoud
Played 196 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
The Arena is a room. "Fight room." The player is in the Arena. "You are in the Arena, facing a raccoon that hisses at you." The racoon is a person in the Arena. A person has a number called health. The health of the player is 30. The health of the racoon is 25. Definition: a person is dead if his health is less than 1. A weapon is a kind of thing. A weapon has a number called the damage. A stick is a weapon. The damage of a stick is 25. A bite is a weapon. The damage of a bite is 15. Understand "bazooka" as attacking it with. Attacking it with is an action applying to one visible thing and one carried thing. Understand "attack [someone] with [weapon]" as attacking it with. Understand "attacking [something] with [weapon]" as attacking it with. The attacking it with action has a number called the damage inflicted. Check attacking it with: if the second noun is not a weapon: instead say "You can only attack with a weapon."; Check attacking it with: if the noun is not a person: instead say "You can only attack a person."; Check attacking it with: if the noun is a person and the second noun is a weapon: now the damage inflicted is the damage of the second noun. Instead of attacking [something] with [weapon]: decrease the health of the noun by the damage inflicted; if the noun is dead, remove the noun from play; if the noun is the player and the player is dead: end the story saying "You have been defeated."; Report attacking dead person with something: say "You attack [the noun] with [the second noun], killing [the noun]!" instead. Report attacking someone with something: say "You attack [the noun] with [the second noun], causing [damage inflicted] point[s] of damage!" instead. Report someone attacking the player with something when the player is dead: say "[The actor] attacks you with [the second noun], finishing you off!"; stop the action. Report someone attacking the player with something : say "[The actor] attacks you with [the second noun], causing [damage inflicted] point[s] of damage!" instead. Report someone attacking something with something (this is the standard report attacking it with rule): say "[The actor] attacks [the noun] with [the second noun], causing [damage inflicted] point[s] of damage!" instead. When play begins: now the left hand status line is "You: [health of player]"; now the right hand status line is "Racoon: [health of racoon]". Every turn: if the racoon is not dead, try the racoon attacking the player with a random weapon which is carried by the racoon.