Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "Keys on the Tomb"
- kings_tomb is a room. The printed name is "The King's Tomb". "Old and dusty."
- The tomb is a supporter in kings_tomb.
- A key is a kind of thing. Understand "keys" as the plural of key.
- The player holds a rock.
- The player holds a key called the iron key.
- The player holds a key called the silver key.
- The player holds a book.
- The player holds a key called the brass key.
- The player holds a key called the gold key.
- The player holds a key called the bronze key.
- The player holds a container called the knapsack.
- Key vault is a container.
- After putting a key on the tomb:
- say "You hear a jingle and [the noun] disappears.";
- move the noun to the key vault;
- if the number of keys in the key vault >= 5:
- say "You hear a creak as the tomb opens up...";
- end the game in victory.
- [
- After putting a key on the tomb:
- let m_o_l be the multiple object list;
- let placed_keys be a list of objects;
- repeat with obj running through m_o_l:
- if obj is a key:
- add obj to placed_keys;
- if the number of entries in placed_keys <= 1:
- say "You hear a jingle and [the noun] disappears.";
- move the noun to the key vault;
- otherwise:
- say "You hear a jingle and [placed_keys with definite articles] disappear.";
- repeat with removed key running through placed_keys:
- move the removed key to the key vault;
- remove noun from placed_keys;
- remove placed_keys from m_o_l;
- alter the multiple object list to m_o_l;
- if the number of keys in the key vault >= 5:
- say "You hear a creak as the tomb opens up...";
- end the game in victory.
- ]
- test first with "put all on tomb".
- test second with "put keys on tomb".
- test third with "put all but silver key on tomb / put silver key on tomb".
Advertisement
Add Comment
Please, Sign In to add comment