“tes” by foo
Hiya! I’m trying to get started with Inform 7 and need a bit of assistance. I’m a programmer at heart, but I find inform to be frustrating and fascinating at the same time. It’s just close enough to normal speech to make me feel comfortable, but just far enough away to be frustrating. take this piece for example:
[code]the scary classroom is a room.
the broken box is in the classroom. the box is a container.
the spooky pencil is in the box.
Instead of taking the box, say “I’m not touching that.”
the scary hallway is north of the classroom. the description is “its a very creepy, dark hallway.”
If the player carries a spooky pencil:
instead of going to the hallway:
now the player is in the classroom;
say “I think I should leave the pencil here.”[/code]
everything works except leaving the room. you can pick up the pencil, not the box, you can drop the pencil, but you can never leave the room. whether you have picked the pencil up or not, or dropped it, you can never leave, it just says “I think I should leave the pencil here.” you could start the game, touch nothing, try to go north, and you just can’t. And as a programmer, I have no clue why. I’ll probably post a few of these as I go along, so if anyone has the time to help, it would be greatly appreciated.