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…
[code][NX.NodeScript]
Gen=1
EC=NJ
[FI]
D=06/20/2012
T=19:04
[GI]
T=Footprints (Demo)
A=Comazombie
V=1.0
L=En
[GIF]
LS=dot
[FIF]
SF=footprints
[Ls]
1=Hotel Room
[Cs]
1=wait a minute
2=open cupboard
3=close cupboard
[PS]
bInv=false
N=1
[NT1]
1=You are hidden inside a cupboard which stands in a hotel room.
2=You hear a noise!
[N1]
L=1
T=1
NT=FN
NC[1]=1
NJ[1]=2
FSC=2
FUC=3
[NT2]
1=You wait a minute, hiding in the cupboard…
2=You don’t hear the noise anymore.
; Set/Unset Flag Check of Node 1
[N2]
PCA=FJ
PCF=1
PCJ=3
L=1
T=2
NT=PN
NC[1]=1
NC[2]=2
NJ[1]=5
NJ[2]=4
; Game Over 1
[NT3]
1=You wait a minute, standing inside the opened cubpboard…
2=A male zombie enters the room. He sees, attacks and eats you!
4=GAME OVER
[N3]
L=1
T=3
NT=DN
; Game Over 2
[NT4]
1=As you open the cupboard you are noticed by a zombie standing
2=in the room. He attacks and eats you!
4=GAME OVER
[N4]
L=1
T=4
NT=DN
[NT5]
1=You wait another minute, still hidden in the cupboard…
2=Everything appears to be calm.
[N5]
L=1
T=5
NT=PN
NC[1]=1
NC[2]=2
NJ[1]=5
NJ[2]=6
; Game continues here
[NT6]
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…
[N6]
L=1
T=6
NT=DN
[/code]
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.