Easy question for the Inform pros out there.
Hopefully, there is an equally easy answer.
I am trying to create an IF that is ludicrously simple in terms of its game “world”. I want each room to be logically connected to the next in a linear fashion. By that, I mean the player follows a straight path from one room to the next. I won’t need N/E/S/W directional markers. And users can’t skip rooms along the path.
The reason behind such an (odd?) request is that I’m developing a sort of children’s riddle game. The primary objective is to solve one puzzle before you can proceed to the next room. Typically, the puzzles will have one-word answers. If, and only if, the player provides the correct answer to the current room’s puzzle, he may proceed to the next room.
If all of this is unclear, let me give an example:
Room 1:
“You are sitting in a room. You see nothing but the door and it’s locked. Keeping the door locked, is an electronic keypad which you have access to. The keypad display reads “2+2=”. What number do you punch on the keypad in order to unlock the door?”
(If, and only if, the player types “4” and presses Enter, he proceeds to Room 2)
(If the player enters anything but “4”, then some text may appear offering a hint, etc.)
Room 2:
<another puzzle. completely unrelated to the one that came before it. when correctly solved, player then moves to…>
Room 3:
You get the idea.
Any ideas on how I would get started?
I admit that I am new to Inform, but I have read the documentation and most of that is geared towards creating rooms with objects, and the interactions between objects. Indeed, I was able to create a simple adventure game just fine using some template examples.
I’m a little stuck on my “riddle” game, though. So any help would be GREATLY appreciated!
Thanks in advance,
- Anthony