Alright, I’ve just scripted the wait scene in NodeScript:
I will try to script the other tasks and post the entire footprint adventure in a separate thread once I’m done with it…
1=wait a minute
1=You are hidden inside a cupboard which stands in a hotel room.
2=You hear a noise!
1=You wait a minute, hiding in the cupboard…
2=You don’t hear the noise anymore.
; Set/Unset Flag Check of Node 1
; Game Over 1
1=You wait a minute, standing inside the opened cubpboard…
2=A male zombie enters the room. He sees, attacks and eats you!
; Game Over 2
1=As you open the cupboard you are noticed by a zombie standing
2=in the room. He attacks and eats you!
1=You wait another minute, still hidden in the cupboard…
2=Everything appears to be calm.
; Game continues here
1=You open the cupboard. Whoever or whatever the noise was, it’s gone.
2=There is no one in this room.
4=TO BE CONTINUED…
So how does it work.
In programmer’s terms:
In Node 1 (N1) the player can open or close the cupboard. He can do that an infinite amount of times on this node.
When the player chooses “wait a minute” then we jump to Node 2.
In Node 2 (N2) we check whether the cupboard in Node 1 is in an openend (set) or closed (unset) state.
If it’s in an open state we jump to Node 3 (N3, Game Over 1). If it’s closed then we stay on Node 2 and give the player further options.
In Node 2 when the player chooses “open cupboard” then we jump to Node 4 (N4, Game Over 2). If he chooses “wait a minute” we jump to Node 5 (N5) where we give the player further options.
In Node 5 the player can choose “wait a minute” an infinite amount of times. The node will always jump to itself, creating an infinite loop.
When the player chooses “open cupboard” in Node 5 then we jump to Node 6 (N6, solution).
In gamer’s terms:
- Player has to keep the cupboard closed and stay hidden before waiting.
- He has to wait 2 times and then he can finally open the cupboard.
- If he opens the cupboard the first and second times then the zombie will notice him.