Guest User

Zelda's Quest

a guest
Jan 5th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Main
  2. {
  3. questname "Your First Kill"
  4.  
  5. version 1.0
  6.  
  7. }
  8. State Begin
  9. {
  10. desc "Talk to Honai"
  11.  
  12. action AddNpcText(1, "Hello, my name is Honai.");
  13.  
  14. action AddNpcText(1, "I will teach you how to start your adventure young Kokiri!");
  15.  
  16. action AddNpcText(1, "Kill one rat for me, pressing CTRL to kill them.");
  17.  
  18. action AddNpcInput(1, 1, "I know how to do it OK!?");
  19.  
  20. action AddNpcInput(1, 2, "Ok, but I want extra exp!");
  21.  
  22.  
  23. rule InputNpc( 1 ) goto Coward
  24.  
  25. rule InputNpc( 2 ) goto KillRat
  26.  
  27. }
  28. State KillRat
  29. {
  30. desc "Kill 1 Rat"
  31.  
  32. rule KilledNpcs(2, 1) goto TalkToHonai
  33.  
  34. }
  35. State TalkToHonai
  36. {
  37. desc "Talk to Honai"
  38.  
  39. action AddNpcText(1, "Well done young one. Here is your reward!");
  40.  
  41. action AddNpcInput(1, 1, "Accept Reward");
  42.  
  43. rule InputNpc( 1 ) goto Reward
  44. }
  45. State Reward
  46. {
  47. action GiveExp(300);
  48.  
  49. action ShowHint("You have gained 300 Exp!");
  50.  
  51. action End();
  52. }
  53. State Coward
  54. {
  55. action AddNpcText(1, "Ok, good luck. More exp for me!");
  56.  
  57. action Reset();
  58. }
Advertisement
Add Comment
Please, Sign In to add comment