Advertisement
Guest User

Untitled

a guest
Jan 8th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. Main
  2. {
  3. questname "Wise Man and Rats"
  4. version 1.0
  5. }
  6. State Begin
  7. {
  8. desc "Talk with NPC NAME"
  9. action AddNpcText(#,"I can change your class if you kill some rats for me!");
  10. action AddNpcText(#,"Some infomation about where to find them etc.");
  11. action AddNpcText(#,"Will you go and kill some rats for me?");
  12. action AddNpcInput(#,1,"I will.");
  13. action AddNpcInput(#,2,"I will not.");
  14. rule InputNpc(1) goto Rats1
  15. rule InputNpc(2) goto HardReset
  16. }
  17. State Rats1
  18. {
  19. desc "Rats remaining:"
  20. rule KilledNpcs(CHANGE-ME-RATS-ID, 30) goto Rats2
  21. }
  22. State Rats2
  23. {
  24. desc "Return to NPC NAME"
  25. action AddNpcText(#,"Welcome back!");
  26. action AddNpcText(#,"You can change your class from me now, if you are ready.");
  27. action AddNpcText(#,"Would you like to change class now?");
  28. action AddNpcInput(#,1,"Yes, now please.");
  29. action AddNpcInput(#,2,"No thanks, later.");
  30. rule InputNpc(1) goto Class2
  31. rule InputNpc(2) goto Class1
  32. }
  33. State Class1
  34. {
  35. action ShowHint("Class change aborted.");
  36. action SetState("Rats2");
  37. }
  38. State Class2
  39. {
  40. action AddNpcText(#,"Class List:" );
  41. action AddNpcInput(#,1,"Abort! Cancel!");
  42. action AddNpcInput(#,2,"Class Name 1");
  43. action AddNpcInput(#,3,"Class Name 5");
  44. action AddNpcInput(#,4,"Class Name 6");
  45. rule InputNpc(1) goto Class1
  46. rule InputNpc(2) goto ChangeClass1
  47. rule InputNpc(3) goto ChangeClass2
  48. rule InputNpc(4) goto ChangeClass3
  49. }
  50. State ChangeClass1
  51. {
  52. action ShowHint("You have changed class!");
  53. action SetClass(1);
  54. action Reset();
  55. }
  56. State ChangeClass2
  57. {
  58. action ShowHint("You have changed class!");
  59. action SetClass(5);
  60. action Reset();
  61. }
  62. State ChangeClass3
  63. {
  64. action ShowHint("You have changed class!");
  65. action SetClass(6);
  66. action Reset();
  67. }
  68. State HardReset
  69. {
  70. action Reset();
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement