I’m having some trouble with Inform 7. I want to make it so that a door is locked, as is only unlocked when the player says “please.” I’m very new to the program and I’m having difficulty understanding how to achieve this. Here is my current code, which is really getting me nowhere:
[code]The gate is east of the Gate_Forest and west of the West_Forest. The gate is a door. The gate is lockable and locked. “Beyond, you see a large wooden gate, hidden in the trees.”
Please is an object.
Saying is an action applying to one thing. Understand “say [something]” as saying.
if the noun is please:
say “The door unlocks.”;
now the gate is unlocked;
say “Your voice echoes through the forest. No response.”[/code]
Anyone have any ideas? Thanks in advance!