Home
Explore games
Help
Log in
Playfic is now in read-only mode.
You can still play existing games, but new signups and game editing is disabled.
Read the announcement.
Log in
Username
Password (
Forgot it?
)
Login
Selection & Lists Tutorial
by
Rigged Number Generator
Played 254 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
The display banner rule is not listed in the startup rulebook. When play begins: try getpeting; getpeting is an action out of world. mypeting is an action out of world. understand "mypets" as mypeting. start is a room. A pet is a kind of animal. dog is a pet. cat is a pet. fish is a pet. hamster is a pet. bird is a pet. ownedpets is a list of pets that varies. Check getpeting: now the printed name of start is ""; say "[italic type]What pet would you like? Choose from a...[roman type][paragraph break] dog[paragraph break] cat[paragraph break] fish[paragraph break] hamster[paragraph break] bird[paragraph break][bold type]NOTE:[roman type] You can type [italic type]mypets[roman type] at any time to see your pets!"; now the command prompt is "> "; After reading a command when the command prompt is "> ": if the player's command matches "dog": say "You chose a dog!"; add dog to ownedpets; reject the player's command; else if the player's command matches "cat": say "You chose a cat!"; add cat to ownedpets; reject the player's command; else if the player's command matches "fish": say "You chose a fish!"; add fish to ownedpets; reject the player's command; else if the player's command matches "hamster": say "You chose a hamster!"; add hamster to ownedpets; reject the player's command; else if the player's command matches "bird": say "You chose a bird!"; add bird to ownedpets; reject the player's command; Check mypeting: say "You have a: [ownedpets][line break]";