Advertisement
Guest User

Untitled

a guest
Apr 19th, 2011
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.96 KB | None | 0 0
  1. // QUest Engine 0.01 example script by VUlt-r
  2. // script shows how to initialize and begin the quest 111
  3.  
  4. Main
  5. {
  6. questname "Monkey Island"
  7. version 2.0
  8. }
  9.  
  10. State Begin
  11. {
  12. desc "Talk to the young pirate"
  13. action AddNpcText( 21 , "Arrr, I discovered a new issssland!" );
  14. action AddNpcChat( 21 , "Arrr, I discovered a new issssland!" );
  15. action AddNpcInput( 21 , 1 , "Not intrested");
  16. action AddNpcInput( 21 , 2 , "Tell me more..");
  17. action AddNpcInput( 21 , 3 , "Dont believe you");
  18.  
  19. rule InputNpc( 1 ) goto Reset
  20. rule InputNpc( 2 ) goto BeginReset
  21. rule InputNpc( 3 ) goto Begin0
  22. }
  23.  
  24. State BeginReset
  25. {
  26. desc "Talk to the young pirate"
  27. action AddNpcText( 21 , "Arrrr, no its pirate secret!" );
  28. rule TalkedToNpc( 21 ) goto Reset
  29. }
  30.  
  31. State Begin0
  32. {
  33. desc "Talk to the young pirate"
  34. action AddNpcText( 21 , "Arrr you think I making this up? Well i could show you the island myself matey! But first you would need to prove that you are a real pirate" );
  35. action AddNpcText( 21 , "Are you willing to take the pirate test?" );
  36. action AddNpcChat( 21 , "Arrrr");
  37.  
  38. action AddNpcInput( 21 , 1 , "I will prove it");
  39. action AddNpcInput( 21 , 2 , "No thanks");
  40.  
  41. rule InputNpc( 1 ) goto Begin1
  42. rule InputNpc( 2 ) goto Reset
  43.  
  44. }
  45.  
  46. State Begin1
  47. {
  48. desc "Talk to the pirate captain"
  49. action AddNpcText( 21 , "Ha-ha-ha.. Dont make me laugh now, you are no pirate, you dont look like a pirate at all.." );
  50. action AddNpcText( 21 , "Go talk to the pirate captain, he will teach you how to become a real pirate!" );
  51.  
  52. action AddNpcText( 6 , "So, arhh pirate test?!.. You want to become a real pirate and take the pirate test, arhhhhhh har har har.. *gulp*" );
  53. action AddNpcText( 6 , "Okay then.. if you can defeat 3 of my elite crew members Ill consider it");
  54.  
  55. action AddNpcInput( 6 , 1 , "Maybe piracy is not for me.");
  56. action AddNpcInput( 6 , 2 , "Fear me, crew members!");
  57.  
  58. rule InputNpc( 1 ) goto Lose
  59. rule InputNpc( 2 ) goto Killcrew
  60. }
  61.  
  62.  
  63. State Killcrew
  64. {
  65. desc "Defeat 3 pirate crew members"
  66. action ShowHint("Show them whos the boss!");
  67. action AddNpcText( 6 , "Okay what are you waiting for? get off my boat and defeat three elites of my crew.");
  68. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  69.  
  70.  
  71. rule KilledNpcs( 128 , 3 ) goto Donecrew
  72. }
  73.  
  74. State Donecrew
  75. {
  76. desc "Talk the Pirate Captain again"
  77. action ShowHint("Talk to Pirate Captain!");
  78. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  79. action AddNpcText( 6 , "Yeah yeah, my crew members are weak anyways..." );
  80. action AddNpcText( 6 , "but that doesnt make you a pirate, in fact");
  81. action AddNpcChat( 6 , "you will never become one.. Har Har Har");
  82.  
  83. action AddNpcInput( 6 , 1 , "I know about a treasure..");
  84. action AddNpcInput( 6 , 2 , "Ill report you for software piracy.");
  85. action AddNpcInput( 6 , 3 , "Ok, I drink all this fairy soda myself.");
  86.  
  87. rule InputNpc( 1 ) goto Anstreasure
  88. rule InputNpc( 2 ) goto Anssoft
  89. rule InputNpc( 3 ) goto Anssoda
  90.  
  91. }
  92.  
  93. State Anstreasure
  94. {
  95. desc "Talk to Pirate Captain again"
  96. action ShowHint("We hope he doesnt find out you dont know about a treasure.");
  97. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  98. action AddNpcText( 6 , "Huh? err.. you mean the Legendary Monkey Island Treasure?" );
  99.  
  100. action AddNpcInput( 6 , 1 , "Monkey Islad trea?");
  101. action AddNpcInput( 6 , 2 , "Ya, that treasure");
  102.  
  103. rule InputNpc( 1 ) goto Piratetest
  104. rule InputNpc( 2 ) goto Piratetest
  105.  
  106. }
  107.  
  108. State Anssoft
  109. {
  110. desc "Talk to Pirate Captain again"
  111. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  112. action AddNpcText( 6 , "What! Er.. I was kidding, cant you take a joke?" );
  113. action AddNpcChat( 6 , "Of course im going to let you take my brave pirate test" );
  114.  
  115. action AddNpcInput( 6 , 1 , "Sure, pal");
  116. action AddNpcInput( 6 , 2 , "Im not good at math");
  117.  
  118. rule InputNpc( 1 ) goto Piratetest
  119. rule InputNpc( 2 ) goto Piratetest
  120. }
  121.  
  122. State Anssoda
  123. {
  124. desc "Talk to Pirate Captain again"
  125. action ShowHint("Cheers!");
  126. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  127. action AddNpcText( 6 , "Huh? You said.. fairy soda?" );
  128. action AddNpcChat( 6 , "Allright maybe youre a good pirate after all" );
  129.  
  130. action AddNpcInput( 6 , 1 , "He, lets drink matey!");
  131. action AddNpcInput( 6 , 2 , "Tell me about the test..");
  132.  
  133. rule InputNpc( 1 ) goto Piratetest
  134. rule InputNpc( 2 ) goto Piratetest
  135. }
  136.  
  137. State Piratetest
  138. {
  139. desc "Talk with Pirate Captain"
  140. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  141. action AddNpcText( 6 , "Oh well, lets begin the test then.. this is really easy" );
  142. action AddNpcText( 6 , "at least for us, the real pirates, Har Har Har" );
  143.  
  144. action AddNpcInput( 6 , 1 , "I want to prove my fighting skills");
  145. action AddNpcInput( 6 , 2 , "Lets go treasure hunting!");
  146. action AddNpcInput( 6 , 2 , "Im good at getting information");
  147.  
  148. rule InputNpc( 1 ) goto Fightquest
  149. rule InputNpc( 2 ) goto Nottreasure
  150. rule InputNpc( 3 ) goto Infoquest
  151. }
  152.  
  153. State Nottreasure
  154. {
  155. desc "Talk to Pirate Captain"
  156. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  157. action AddNpcText( 6 , "Dont be silly, you cant go treasure hunting without proving your strenght and abilities" );
  158.  
  159. action AddNpcInput( 6 , 1 , "Ill show you im strong!");
  160. action AddNpcInput( 6 , 2 , "Im the best pirate of the world!");
  161.  
  162. rule InputNpc( 1 ) goto Fightquest
  163. rule InputNpc( 2 ) goto Infoquest
  164. }
  165.  
  166. State Fightquest
  167. {
  168. desc "Defeat the octupos"
  169. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  170. action AddNpcText( 6 , "Ok then..You have to find a giant octopus and defeat him." );
  171. action AddNpcText( 6 , "Good luck killing that giant octopus, har har" );
  172. action AddNpcInput( 6 , 1 , "Isnt there another way to prove it?");
  173. action AddNpcInput( 6 , 2 , "Okay, i got it.");
  174.  
  175. rule KilledNpcs( 118 , 1 ) goto NextTest
  176. rule InputNpc( 1 ) goto Infoquest
  177. }
  178.  
  179. State Infoquest
  180. {
  181. desc "Go to Atlantis and find its secret"
  182. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  183. action AddNpcText( 6 , "Listen, the legend about the monkey island claims that a long time ago, when villagers from Atlantis became aware.." );
  184. action AddNpcText( 6 , "that their city was going to sink, and they burried some of their major treasures at monkey island." );
  185. action AddNpcText( 6 , "Maybe they wrote something about it somewhere." );
  186. action AddNpcText( 6 , "Good luck finding the secret of atlantis." );
  187. action AddNpcInput( 6 , 1 , "Isnt there another way to prove it?");
  188. action AddNpcInput( 6 , 2 , "Okay, i got it.");
  189.  
  190. rule EnterCoord( 251 , 8 , 33) goto NextTest
  191. rule InputNpc( 1 ) goto Fightquest
  192. }
  193.  
  194. State NextTest
  195. {
  196. desc "Talk to pirate captain"
  197. action PlaySound(18);
  198. action ShowHint("The pirate captain wants to talk to you!");
  199.  
  200. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  201. action AddNpcText( 6 , "Looks like you have some skills son! too bad you are not a real pirate yet.." );
  202. action AddNpcText( 6 , "Look these rats in the port are really a problem. At night they make a terrible noise and i just cant sleep, uhrr" );
  203. rule TalkedToNpc( 6 ) goto RatTest
  204. }
  205.  
  206. State RatTest
  207. {
  208. desc "Kill 30 rats in aevens port"
  209.  
  210. action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
  211. action AddNpcText( 6 , "Go kill 30 rats for me, and you will be a real pirate.. whatever" );
  212. rule KilledNpcs( 2 , 30 ) goto RatTest2
  213. }
  214.  
  215. State RatTest2
  216. {
  217. desc "Talk to the young pirate"
  218. action AddNpcText( 6 , "Hmm.. ow its you, yaya your a real pirate now, now leave me alone." );
  219. action AddNpcText( 21 , "Hmm so the captain has declared you a real pirate, i cant believe it.." );
  220. action AddNpcText( 21 , "But ok if you can answer this simple PIRATE test, i believe you." );
  221. rule TalkedToNpc( 21 ) goto Quiz1
  222. }
  223.  
  224. State Quiz1
  225. {
  226. desc "Talk to the young pirate"
  227. action AddNpcText( 21 , "Whats the special \'nickname\' of our skull&bone flag?" );
  228.  
  229. action AddNpcInput( 21 , 1 , "Jolly Roger");
  230. action AddNpcInput( 21 , 2 , "Dodger Deadly");
  231. action AddNpcInput( 21 , 3 , "Black Skull");
  232.  
  233. rule InputNpc( 1 ) goto Quiz2
  234. rule InputNpc( 2 ) goto QuizLose1
  235. rule InputNpc( 3 ) goto QuizLose1
  236.  
  237. }
  238.  
  239. State Quiz2
  240. {
  241. desc "Talk to the young pirate"
  242. action AddNpcText( 21 , "Pirates always share their looted treasures equally, except for captain, the pilot, the carpenter and our cook." );
  243. action AddNpcText( 21 , "How much more do they receive?");
  244.  
  245. action AddNpcInput( 21 , 1 , "half of the entire treasure");
  246. action AddNpcInput( 21 , 2 , "a double share");
  247. action AddNpcInput( 21 , 3 , "a tripple share");
  248.  
  249. rule InputNpc( 1 ) goto QuizLose2
  250. rule InputNpc( 2 ) goto Quiz3
  251. rule InputNpc( 3 ) goto QuizLose2
  252.  
  253. }
  254.  
  255. State Quiz3
  256. {
  257. desc "Talk to the young pirate"
  258. action AddNpcText( 21 , "Is the captain’s cabin always open for anyone to use?" );
  259. action AddNpcText( 21 , "How much more do they receive?");
  260.  
  261. action AddNpcInput( 21 , 1 , "Yes, always open");
  262. action AddNpcInput( 21 , 2 , "No, its private");
  263.  
  264. rule InputNpc( 1 ) goto ReadyToGo
  265. rule InputNpc( 2 ) goto QuizLose3
  266.  
  267. }
  268.  
  269. State ReadyToGo
  270. {
  271. desc "Talk to the young pirate"
  272. action AddNpcText( 21 , "Hmm.. okay you proved to be a pirate, maybe not.. Lets just sail to that island now. The captain doesnt beleive me and i been anxious to tell anyone ever since.." );
  273. action AddNpcText( 21 , "Do you want to sail to monkey island?" );
  274.  
  275. action AddNpcInput( 21 , 1 , "Yes, let go");
  276. action AddNpcInput( 21 , 2 , "No, maybe later");
  277.  
  278. rule InputNpc( 1 ) goto GoIsland
  279. }
  280.  
  281. State GoIsland
  282. {
  283. desc "Find the shipwreck hut"
  284. action SetCoord( 271 ,25 , 54 );
  285.  
  286. // escape sequence
  287.  
  288. action AddNpcText( 21 , "Do you want to sail to monkey island?" );
  289. action AddNpcInput( 21 , 1 , "Yes let go");
  290. action AddNpcInput( 21 , 2 , "No, maybe later");
  291.  
  292. // lost pirate
  293.  
  294. action AddNpcText( 22 , "A treasure huh?.. Ya , i been looking for it for years.." );
  295. rule TalkedToNpc( 22 ) goto SolveRiddle
  296.  
  297. // continue quest part
  298.  
  299. rule InputNpc( 1 ) goto GoIsland
  300. }
  301.  
  302. State SolveRiddle
  303. {
  304. desc "Find 10 fish for the lost pirate"
  305.  
  306. action AddNpcText( 21 , "Do you want to sail to monkey island?" );
  307.  
  308. action AddNpcInput( 21 , 2 , "No maybe later");
  309. action AddNpcInput(21, 1, "");
  310.  
  311. action AddNpcText( 22 , "Sorry i cant tell you more about the reasure, you see.. i havent ate anything since weeks.." );
  312. action AddNpcText( 22 , "Now if you could bring me 10 fish, i would be willing to share this secret.." );
  313. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement