Advertisement
Guest User

Untitled

a guest
Oct 17th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.99 KB | None | 0 0
  1. Main
  2. {
  3. questname "Question Bank"
  4. version 1.0
  5. }
  6. state Begin
  7. {
  8. desc "Talk to the quiz master"
  9. action AddNpcText(27, "Welcome to the floor 2, I am here to ask you some basic questions related to the floor 2");
  10. action AddNpcText(27, "Would you like to begin?");
  11.  
  12. action AddNpcInput(27, 1, "Sure why not?");
  13. action AddNpcInput(27, 2, "No thanks..");
  14.  
  15. rule InputNpc(1) goto Sure
  16. rule InputNpc(2) goto Reset
  17. }
  18. state Sure
  19. {
  20. desc "Question 1"
  21. action AddNpcText(27, "Ok let's begin. If your answer is corret, then you will get reward otherwise you will lose the half amount of the total amount of reward for each question.");
  22. action AddNpcText(27, "1st Question - How many snowmans are there in Floor 2?");
  23.  
  24. action AddNpcInput(27,1,"There are 10 Snowmans");
  25. action AddNpcInput(27,2,"There are 7 Snowmans");
  26. action AddNpcInput(27,3,"There are 4 Snowmans");
  27.  
  28. rule InputNpc(1) goto Wrong1
  29. rule InputNpc(2) goto Reward1
  30. rule InputNpc(3) goto Wrong1
  31. }
  32. state Wrong1
  33. {
  34. desc "Talk to Quiz Master"
  35. action AddNpcText(27, "Your Answer is Wrong and hence 500g has been deducted.");
  36. action RemoveItem(1,500);
  37. action SetState("Question2");
  38. }
  39. state Reward1
  40. {
  41. action GiveItem(1,1000);
  42. action SetState("Question2");
  43. }
  44. state Question2
  45. {
  46. desc "Question 2"
  47. action AddNpcText(27, "2nd Question for 2k - Who is the boss of this floor?");
  48.  
  49. action AddNpcInput(27,1,"Yeti");
  50. action AddNpcInput(27,2,"Ice Golem");
  51. action AddNpcInput(27,3,"Roukan");
  52.  
  53. rule InputNpc(1) goto Wrong2
  54. rule InputNpc(2) goto Wrong2
  55. rule InputNpc(3) goto Reward2
  56. }
  57. state Wrong2
  58. {
  59. desc "Talk to Quiz Master"
  60. action AddNpcText(27, "Your Answer is Wrong and hence 1k has been deducted.");
  61. action RemoveItem(1,1000);
  62. action SetState("Question3");
  63. }
  64. state Reward2
  65. {
  66. action GiveItem(1,2000);
  67. action SetState("Question3");
  68. }
  69. state Question3
  70. {
  71. desc "Question 3"
  72. action AddNpcText(27, "3rd Question for 5k - How many Penguins are caged?");
  73.  
  74. action AddNpcInput(27,1,"caged penguins are 15");
  75. action AddNpcInput(27,2,"caged penguins are 10");
  76. action AddNpcInput(27,3,"caged penguins are 5");
  77.  
  78. rule InputNpc(1) goto Wrong3
  79. rule InputNpc(2) goto Reward3
  80. rule InputNpc(3) goto Wrong3
  81. }
  82. state Wrong3
  83. {
  84. desc "Talk to Quiz Master"
  85. action AddNpcText(27, "Your Answer is Wrong and hence 2.5k has been deducted.");
  86. action RemoveItem(1,2500);
  87. action SetState("Question4");
  88. }
  89. state Reward3
  90. {
  91. action GiveItem(1,5000);
  92. action SetState("Question4");
  93. }
  94. state Question4
  95. {
  96. desc "Question 4"
  97. action AddNpcText(27, "4rth Question for 8k - How many Balloons are there in a christmas tree?");
  98.  
  99. action AddNpcInput(27,1,"There are 18 Balloons");
  100. action AddNpcInput(27,2,"There are 9 Balloons");
  101. action AddNpcInput(27,3,"There are 3 Balloons");
  102.  
  103. rule InputNpc(1) goto Reward4
  104. rule InputNpc(2) goto Wrong4
  105. rule InputNpc(3) goto Wrong4
  106. }
  107. state Wrong4
  108. {
  109. desc "Talk to Quiz Master"
  110. action AddNpcText(27, "Your Answer is Wrong and hence 4k has been deducted.");
  111. action RemoveItem(1,4000);
  112. action SetState("Question5");
  113. }
  114. state Reward4
  115. {
  116. action GiveItem(1,8000);
  117. action SetState("Question5");
  118. }
  119. state Question5
  120. {
  121. desc "Question 5"
  122. action AddNpcText(27, "5th Question for 10k - How many kinds of npcs are in this floor?");
  123.  
  124. action AddNpcInput(27,1,"There are 12 kinds of npcs");
  125. action AddNpcInput(27,2,"There are 8 kinds of npcs");
  126. action AddNpcInput(27,3,"There are 6 kinds of npcs");
  127.  
  128. rule InputNpc(1) goto Wrong5
  129. rule InputNpc(2) goto Reward5
  130. rule InputNpc(3) goto Wrong5
  131. }
  132. state Wrong5
  133. {
  134. desc "Talk to Quiz Master"
  135. action AddNpcText(27, "Your Answer is Wrong and hence 5k has been deducted.");
  136. action RemoveItem(1,5000);
  137. action SetState("Question6");
  138. }
  139. state Reward5
  140. {
  141. action GiveItem(1,10000);
  142. action SetState("Question6");
  143. }
  144. state Question6
  145. {
  146. desc "Question 6"
  147. action AddNpcText(27, "6th Question for 12k - Which npc is the strongest npc of this floor?");
  148.  
  149. action AddNpcInput(27,1,"Grim reaper");
  150. action AddNpcInput(27,2,"Roukan");
  151. action AddNpcInput(27,3,"Wolf Leader");
  152.  
  153. rule InputNpc(1) goto Wrong6
  154. rule InputNpc(2) goto Reward6
  155. rule InputNpc(3) goto Wrong6
  156. }
  157. state Wrong6
  158. {
  159. desc "Talk to Quiz Master"
  160. action AddNpcText(27, "Your Answer is Wrong and hence 6k has been deducted.");
  161. action RemoveItem(1,6000);
  162. action SetState("NoMore");
  163. }
  164. state Reward6
  165. {
  166. action GiveItem(1,12000);
  167. action SetState("NoMore");
  168. }
  169. state NoMore
  170. {
  171. action AddNpcText(27, "Cloud has no idea what to add more in this quest. come back later.");
  172. rule TalkedToNpc(27) goto Reset
  173. }
  174. state Reset
  175. {
  176. action End();
  177. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement