Hi i am just wondering how to write an npc, where you have to enter the right code to receive something e.g. enter 455 and you get a free wooden sword.
[@main]
#SAY
Hello,\
Do you want to play my game?\ \
<Yes/@main-1>\
<No/@exit>\
[@main-1]
#SAY
Enter the secret code to receive a prize.\ \
<[1]/@m-1> , <[2]/@m-2> , <[3]/@m-3> , <[4]/@m-4>\
[@main]
#SAY
Hello,\
Do you want to play my game?\ \
<Yes/@main-1>\
<No/@exit>\
[@main-1]
#SAY
Enter the secret code to receive a prize.\ \
<[1]/@m-1> , <[2]/@m-2> , <[3]/@m-3> , <[4]/@m-4>\
[@m-4]
#SAY
Nice one you got the first number, now please enter the second number\ \
<[1]/@m-1> , <[2]/@m-2> , <[3]/@m-3> , <[4]/@m-42>\
[@m-42]
#SAY
Nice one you got the Second number, now please enter the third number\ \
<[1]/@m-1> , <[2]/@m-2> , <[3]/@m-32> , <[4]/@m-40>\
[@m-32]
#SAY
Grats you got all the numbers correct\
please choose your prise\ \
<WoodenSword/@sword>\
[@sword]
#SAY
Here you go
#ACT
Give WoodenSword 1
close
[@m-1]
#SAY
Sorry Try again\ \
<Back/@main-1>\
[@m-2]
#SAY
Sorry Try again\ \
<Back/@main-1>\
[@m-3]
#SAY
Sorry Try again\ \
<Back/@main-1>\
[@m-40]
#SAY
Sorry Try again\ \
<Back/@main-1>\
