Hi!
I’m working on my first Inform project (the last time I did anything like this was building a text adventure game back in 1987!) and I’m having a few issues!..
First question: I’m trying to prevent my player from moving north based on a number and I’m really struggling to make the logic work right.
The code to prevent the player from moving from the training grounds looks like this:
Instead of going north:
if the location of the player is Training Grounds:
if dialog of Captain Foley < 3:
say "[Captain Foley] says 'Before starting the obstacle course, read each of those important signs.'";
otherwise:
move the player to Pathway.
The problem is that now I can’t go north in ANY of the rooms with the logic set up like that ^. I tried adding an extra otherwise condition, but can’t seem to get the syntax right.
I also tried re-arranging this so it looked like this:
if the location of the player is Training Grounds:
Instead of going north:
if dialog of Captain Foley < 2:
say "[Captain Foley] says 'Before starting the obstacle course, read each of these important signs.'";
otherwise:
move the player to Pathway.
… but the compiler really hates it like that and doesn’t allow it.
2nd question: Is there a way to say ‘go north’ or ‘move the player north’ rather than having to specify which room to move it to?
Any help would be REALLY appreciated!
Thank you,
Jeff.