main
{
questname "The maze"
version 1.0
}
state begin
{
desc "The maze"
action AddNpcText(17, "Hello and welcome to my maze. Are you up for a challenge?");
action AddNpcInput(17, 1, "Sure, why not?");
action AddNpcInput(17, 2, "No, sorry..");
rule InputNpc(1) goto EnterMap
rule InputNpc(2) goto Lose
}
state EnterMap
{
desc "The adventure begins"
action AddNpcText(17, "WARNING!! This maze is extremly hard to solve, are you really sure?");
action AddNpcInput(17, 1, "Yes, I am sure");
action AddNpcInput(17, 2, "No, Sorry");
rule InputNpc(1) goto TheMaze
rule InputNpc(2) goto Lose
}
state TheMaze
{
desc "Don't you wish you had said no?"
action AddNpcText(17, "Welcome back.");
action SetCoord(47,8,66);
rule TalkedToNpc(17) goto TalkToMaze
}
state TalkToMaze
{
desc "Phew you made it!"
action AddNpcText(17, "That took quite some time... You must be exausted by now. Here take this reward for solving the Imperial Maze.");
rule TalkedToNpc(17) goto Reward
}
state Reward
{
desc "Getting Rewarded"
action GiveExp(6666);
action ShowHint("you gained 6666 EXP!");
action End();
}
state Lose
{
action AddNpcText(17, "You coward, I knew you didn't have the guts you sissy.");
action End();
}