BreezaHarmet.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : SpawnScripts/Antonica/BreezaHarmet.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.24 05:08:40
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ExploringTheChessboard = 5348
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, ExploringTheChessboard)
  12. SetInfoStructString(NPC, "action_state", "artificing_idle")
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. Dialog.New(NPC, Spawn)
  17. Dialog.AddDialog("Hello, traveler! I'm sorry about the mess. I'm carving a set of chess pieces, but I'm almost finished. Please, I'll only be a few minutes. Won't you listen to my story of the chessboard of Stormguard? I must know if it's only a story or if it bears any truth!")
  18. Dialog.AddVoiceover("voiceover/english/breeza_harmet/antonica/breezaharmet000.mp3", 3595319695, 2394703279)
  19. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  20. if not HasQuest(Spawn, ExploringTheChessboard) and not HasCompletedQuest(Spawn, ExploringTheChessboard) then
  21. Dialog.AddOption("They are beautiful pieces. Is it the game or the carving of wood that you like more?", "Dialog4")
  22. elseif GetQuestStep(Spawn, ExploringTheChessboard) == 2 then
  23. Dialog.AddOption("I have explored within Stormhold and I can tell you that the chessboard banquet hall does still exist.", "Dialog5")
  24. end
  25. Dialog.AddOption("I see. Well, I will let you finish up your project in peace. ")
  26. Dialog.Start()
  27. end
  28. function Dialog4(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("I love carving and shaping the wood, but I enjoy the game even more. It's nice to sit in the warm sun playing chess with a friend. And talking about real queens and knights! Which reminds me ... Did you know that the Knights of Thunder played chess, too? I heard stories that they hold their banquets upon a giant chessboard! Oh, that'd be wonderful to see!")
  32. Dialog.AddVoiceover("voiceover/english/breeza_harmet/antonica/breezaharmet001.mp3", 3045154578, 2506070034)
  33. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn)
  34. Dialog.AddOption("Maybe you will be able to see it some day.", "offer")
  35. Dialog.AddOption("Sounds like a fantasy... and I must be going.")
  36. Dialog.Start()
  37. end
  38. function Dialog5(NPC, Spawn)
  39. SetStepComplete(Spawn, ExploringTheChessboard, 2)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("It does?! You saw it? I imagine it was a grand sight! Thank you for confirming the legend for me. It's good to know I wasn't spreading a false rumor!")
  43. PlayFlavor(NPC, "", "", "speaknoevil", 0, 0, Spawn)
  44. Dialog.AddVoiceover("voiceover/english/breeza_harmet/antonica/breezaharmet003.mp3", 518518991, 634971827)
  45. Dialog.AddOption("I hope you are able to see it for yourself one day.")
  46. Dialog.Start()
  47. end
  48. function offer(NPC, Spawn)
  49. OfferQuest(NPC, Spawn, ExploringTheChessboard)
  50. end
  51. function respawn(NPC)
  52. spawn(NPC)
  53. end