Re: If statements in Inform 7

I made the change, but it doesn't help. I still get errors. Here's the full source of the test project I've been working with. It works perfectly as long as you remove everything starting with the instead rule.
"test" by test

The Hallway is a room. "This is the main hallway that connects your room to the rest of the house. Framed pictures of your family are hung on the walls. Your bedroom is through a door to the west, and a storage room is to the east. The hallway continues to the north, or you can head to the living room to the south."
The player carries the backpack.
The backpack is a closed openable wearable container.
The description of the backpack is "This is your old backpack.".
The backpack is the player's holdall.
The carrying capacity of the player is 3.
The Storage Room is east of the Hallway. "This is a boring storage room full of junk. The only exit is back to the west."
Instead of going east from the Hallway:
If the player carries the backpack, begin;
Say "Now that you have your backpack, you're ready to enter!";
Now the player is in the Storage Room.
Otherwise;
Say "You don't want to go in there without your backpack.";
End.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Chris via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Chris via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Chris via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Chris via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Chris via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Chris via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : targor via Audiogames-reflector

Reply via email to