Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Maze Quest"
- version 1
- }
- state Begin
- {
- desc "Talk to the maze master"
- 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 AskAgain
- rule InputNpc( 2 ) goto Reset
- }
- state AskAgain
- {
- desc "Talk to the maze master"
- action AddNpcText( 17, "WARNING!! This maze is extremly hard to solve, are you sure you want to try it?");
- action AddNpcInput( 17, 1, "Yes, I am sure");
- action AddNpcInput( 17, 2, "No, sorry");
- rule InputNpc( 1 ) goto DoMaze
- rule InputNpc( 2 ) goto Reset
- }
- state DoMaze
- {
- desc "Solve the Maze"
- action AddNpcText ( 17, "Try to solve this maze and i will reward you for it");
- action SetCoord (47, 8, 66);
- rule EnterCoord ( 47, 96, 97) goto MazeMaster
- rule EnterCoord ( 47, 96, 98) goto MazeMaster
- rule EnterCoord ( 47, 96, 99) goto MazeMaster
- }
- state MazeMaster
- {
- desc "Talk to the maze master"
- 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
- {
- action ShowHint("You gained 3500 EXP");
- action PlaySound(17);
- action GiveExp(1000); //I don't know the exact amount of exp to be given here.
- action End();
- }
- state Reset
- {
- action Reset();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement