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
J H
Played 1,303 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
Test Room is a room. Lab is a room. Lab is north from Test Room. Dave is a man in lab. The health of Dave is 10. Frank is a man in test room. The health of Frank is 10. Eric is a man in test room. The health of Eric is 10. A person has a number called health. A person has a number called foo. A person has a number called angry. Definition: a person (called the madman) is enraged if the angry of the madman is greater than 3. Definition: A person is NPC if they are not the player. Every turn: repeat with N running through NPC people: increase the angry of N by a random number between 0 and 2; Definition: A room is empty if no people are in it. Definition: A room is one_occupied if one person is in it. Definition: A room is two_occupied if two people are in it. Definition: A room is three_occupied if three people are in it. Definition: a person (called the dying_actor) is dead if the health of the dying_actor is 0. Definition: a person (called waldo) is warble if the health of waldo is greater than the foo of waldo and waldo is not dead and waldo is in a three_occupied room. [Every turn: if test room is three_occupied: say "Ah";] Every turn: if Dave is dead: say "Ah"; [ if the hunger of Ogg is greater than 3: if Ogg carries an edible thing (called the target): try Ogg eating the target; otherwise: let new target be a random edible thing which can be seen by Ogg; if the new target is a thing: try Ogg taking the new target; otherwise: if Ogg can touch the player, end the story saying "Ogg is gnawing your ankle"; otherwise try Ogg taking the player.] Every turn: if a NPC person (called waldo) is enraged: let new target be a random NPC person who is not waldo; if waldo is in the location of new target: say "[waldo] smacks [new target]"; now the angry of waldo is 0; otherwise: move waldo to location of new target; say "[waldo] walks into [location of new target] and smacks [new target]"; now the angry of waldo is 0;