Guest User

Untitled

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