Bicies.gd 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. extends NpcScript
  2. #
  3. func OnStart():
  4. match GetQuest(ProgressCommons.QUEST_SPLATYNA_OFFERING):
  5. ProgressCommons.STATE_SPLATYNA.INACTIVE: Inactive()
  6. ProgressCommons.STATE_SPLATYNA.STARTED: OnRecap()
  7. _: OnFinish()
  8. func Inactive():
  9. Mes("Praise Splatyna, the mighty slime goddess!")
  10. Mes("You, traveler! Do you come to offer gold to our great lady?")
  11. InfoChoice()
  12. func InfoChoice(previousText : int = -1):
  13. var questState : int = GetQuest(ProgressCommons.QUEST_SPLATYNA_OFFERING)
  14. if previousText != 0:
  15. if questState == ProgressCommons.STATE_SPLATYNA.INACTIVE:
  16. Choice("Sure, I'll bring her the offering.", OnAcceptQuest)
  17. else:
  18. Choice("What should I do?", OnRecap)
  19. if previousText != 1:
  20. Choice("This is nonsense, I’m leaving.", OnDecline)
  21. if previousText != 2:
  22. Choice("Who is Splatyna?", OnAskAboutSplatyna)
  23. if previousText != 3:
  24. Choice("What is this place?", OnAskAboutPlace)
  25. func OnRecap():
  26. Mes("You still haven’t offered the gold to Splatyna?")
  27. Mes("Go into her cave, find her followers, and give her the gold! The three loyal ones hold the keys, remember that!")
  28. InfoChoice(0)
  29. func OnFinish():
  30. Mes("Wait... I heard something. A scream!")
  31. Mes("Did something happen to Splatyna?! What have you done?")
  32. Choice("Nothing! Everything’s fine...", OnDeny)
  33. Choice("She’s... Gone.", OnAdmit)
  34. func OnDeny():
  35. Mes("Good, good! As long as Splatyna still watches over us.")
  36. func OnAdmit():
  37. Mes("Gone?! No, no! You’re lying! Splatyna can’t die!")
  38. Mes("Just... Go, before I lose my mind!")
  39. func OnAskAboutSplatyna():
  40. Mes("Oh, Splatyna... She's not like the other slimes, no no. She's powerful! She's been blessed by Kaore!")
  41. Mes("She doesn't need food or water like the rest of us. Kaore keeps her alive! She’s stronger and wiser than us poor souls!")
  42. Mes("And the gold! Yes, she loves it. She says it keeps her safe, makes her strong! We give her gold, and she protects us, keeps the decay away!")
  43. Mes("But don't anger her, no! She can make you crazy with just a look! Her magic... It's powerful, twisted by Kaore. She's... perfect.")
  44. InfoChoice(2)
  45. func OnAskAboutPlace():
  46. Mes("This is Splatyna's sacred cave! Only those who respect her can enter, yes, yes!")
  47. Mes("The slimes here, they're not normal. They're loyal to Splatyna, her closest followers. They guard her treasures, her power!")
  48. Mes("Three of them are special, real loyal ones. They have the keys to her chamber, but they won't just hand them over, no no! You'll have to earn them!")
  49. Mes("But don't worry. If you bring enough gold, maybe Splatyna will let you through...")
  50. InfoChoice(3)
  51. func OnAcceptQuest():
  52. Mes("Very well, take this gold and offer it to Splatyna. She will judge your worth.")
  53. SetQuest(ProgressCommons.QUEST_SPLATYNA_OFFERING, ProgressCommons.STATE_SPLATYNA.STARTED)
  54. Farewell()
  55. func OnDecline():
  56. Chat("Blasphemy! You dare refuse Splatyna’s offering?!")