Advertisement
Guest User

Untitled

a guest
Apr 19th, 2011
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. Main
  2. {
  3. questname "Maze Quest"
  4. version 1
  5. }
  6.  
  7. state Begin
  8. {
  9. desc "Talk to the maze master"
  10. action AddNpcText( 17, "Hello and welcome to my maze , are you up for a challenge?");
  11. action AddNpcInput( 17, 1, "Sure, why not");
  12. action AddNpcInput( 17, 2, "No, sorry");
  13. rule InputNpc( 1 ) goto AskAgain
  14. rule InputNpc( 2 ) goto Reset
  15.  
  16. }
  17.  
  18. state AskAgain
  19. {
  20. desc "Talk to the maze master"
  21. action AddNpcText( 17, "WARNING!! This maze is extremly hard to solve, are you sure you want to try it?");
  22. action AddNpcInput( 17, 1, "Yes, I am sure");
  23. action AddNpcInput( 17, 2, "No, sorry");
  24. rule InputNpc( 1 ) goto DoMaze
  25. rule InputNpc( 2 ) goto Reset
  26.  
  27. }
  28.  
  29. state DoMaze
  30. {
  31. desc "Solve the Maze"
  32. action AddNpcText ( 17, "Try to solve this maze and i will reward you for it");
  33. action SetCoord (47, 8, 66);
  34. rule EnterCoord ( 47, 96, 97) goto MazeMaster
  35. rule EnterCoord ( 47, 96, 98) goto MazeMaster
  36. rule EnterCoord ( 47, 96, 99) goto MazeMaster
  37. }
  38.  
  39. state MazeMaster
  40. {
  41. desc "Talk to the maze master"
  42. action AddNpcText( 17, "That took quite some time... You must be exausted by now. Here take this reward for solving the Imperial Maze.");
  43. rule TalkedToNpc( 17 ) goto Reward
  44. }
  45.  
  46. state Reward
  47. {
  48. action ShowHint("You gained 3500 EXP");
  49. action PlaySound(17);
  50. action GiveExp(1000); //I don't know the exact amount of exp to be given here.
  51. action End();
  52. }
  53.  
  54. state Reset
  55. {
  56. action Reset();
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement