Zork: http://almy.us/image/dungeon.jpg http://www.thezorklibrary.com/zork123.php | Beginners' IF: http://ifdb.tads.org/viewlist?id=3qb4ujaf5nqz5mp8 http://ifdb.tads.org/viewlist?id=dqbqekz1zkxw5u1 (Play On-Line in the top right)
description
, but instead be objects with a path
modifier. Rename description
to desc
and add a shortdesc
for visible
(modifier) objects? Then paths would just be objects. Add nodesc
modifier and you're all set for having it act like normal.
paths
array would then hold directions -> objects, and you'd get automatic ensurance of locked doors staying locked and the player not being able to bypass them by doing a different command. Should be simpler. Then path
in the object gives the room.
type
. modifier
s seem more composable...
yaml
locked:
key:
to: unlocked
under the consume state transformation listing
format
-friendly strings, and proper state changing