TrainerVerrinGlimmertide.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/TrainerVerrinGlimmertide.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Trainer Verrin Glimmertide dialog
  6. Modified Data : 20.04.04
  7. Modified by : premierio015
  8. Notes : Added all correct VoiceOvers.
  9. --]]
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. math.randomseed(os.time())
  19. choice = math.random (1, 3)
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1022.mp3", "", "", 0, 0, Spawn)
  21. AddConversationOption(conversation, "I would like to hear about Heroic Opportunities now.", "dlg_11_1")
  22. AddConversationOption(conversation, "I will return to learn about Heroic Opportunities when I have reached level 5.")
  23. StartConversation(conversation, NPC, Spawn, "Greetings, " .. GetName(Spawn) .. ". I am here to train you in the use of Heroic Opportunities. This useful combat technique can be employed by adventurers who are level 5 and higher. Since you are not yet level 5, you cannot yet use them. If you don't want to hear about them now, you could return when you have reached level 5.")
  24. end
  25. function dlg_11_1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "Are Heroic Opportunities complicated?", "dlg_11_2")
  29. AddConversationOption(conversation, "I will seek your knowledge another time.")
  30. StartConversation(conversation, NPC, Spawn, "Beginning at level 5, Heroic Opportunities can be triggered in combat. They allow both lone adventurers and groups of allies to combine their attacks into a series of spells or combat arts performed in a specific order. When successful, Heroic Opportunities give beneficial effects such as extra attacks against your foes or beneficial magic to heal or enhance your abilities.")
  31. end
  32. function dlg_11_2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "So how does a Heroic Opportunity arise?", "dlg_11_3")
  36. AddConversationOption(conversation, "I will seek your knowledge another time.")
  37. StartConversation(conversation, NPC, Spawn, "Rest assured, someone of your considerable skills in battle will find them easy! Once you start using them, you'll wonder how you ever got along without them.")
  38. end
  39. function dlg_11_3(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "Okay, that does sound easy. How do I begin a Heroic Opportunity?", "dlg_11_4")
  43. AddConversationOption(conversation, "I will seek your knowledge another time.")
  44. StartConversation(conversation, NPC, Spawn, "Let me tell you the short and simple version first so that you can see how easy Heroic Opportunities are to use. All you need to do is use your ability that triggers the Heroic Opportunity, then use the spells or combat arts that are blinking on your hotbar or in your Knowledge Book. Easy, isn't it?")
  45. end
  46. function dlg_11_4(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. AddConversationOption(conversation, "Can I trigger a Starter Chain whenever I want?", "dlg_11_5")
  50. AddConversationOption(conversation, "I will seek your knowledge another time.")
  51. StartConversation(conversation, NPC, Spawn, "Heroic Opportunities have two parts called the Starter Chain and the Combat Wheel. At level 5, every adventure class gains an ability that triggers a Starter Chain: Fighting Chance, Divine Providence, Arcane Augur, or Lucky Break. Open your Knowledge book by pressing K and click the Abilities tab to see it. You can drag its icon to your hotbar to use it.")
  52. end
  53. function dlg_11_5(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. AddConversationOption(conversation, "What happens when I trigger a Starter Chain?", "dlg_11_6")
  57. AddConversationOption(conversation, "I will seek your knowledge another time.")
  58. StartConversation(conversation, NPC, Spawn, "Starter Chains can only be triggered while in battle with an enemy. After all, Heroic Opportunities are all about becoming great in combat! When you or an ally triggers a Starter Chain, you will see it appear in the corner of your screen.")
  59. end
  60. function dlg_11_6(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. AddConversationOption(conversation, "Are Heroic Opportunities only usable in groups?", "dlg_11_7")
  64. AddConversationOption(conversation, "I will seek your knowledge another time.")
  65. StartConversation(conversation, NPC, Spawn, "Once a Starter Chain is initiated, it shows different ability icons flashing on the screen. A Starter Chain will generally display four different icons that indicate which spells or combat arts advance the Heroic Opportunity to the next stage. Icons will be blue, yellow, red, or green, depending on which class has the ability.")
  66. end
  67. function dlg_11_7(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. AddConversationOption(conversation, "How do I know what I should do to advance the Starter Chain?", "dlg_11_8")
  71. AddConversationOption(conversation, "I will seek your knowledge another time.")
  72. StartConversation(conversation, NPC, Spawn, "Heroic Opportunities can be used alone or in groups. If you fight alone you will have a limited number of ways to advance the Starter Chain, but if you are in a group made up of different classes then you will be able to advance the Starter Chain in different ways to unleash a variety of Heroic Opportunities.")
  73. end
  74. function dlg_11_8(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. AddConversationOption(conversation, "Use the spell or art that is blinking. That's all there is to it?", "dlg_11_9")
  78. AddConversationOption(conversation, "I will seek your knowledge another time.")
  79. StartConversation(conversation, NPC, Spawn, "Any spells or combat arts that can advance the Heroic Opportunity will flash on your hotbar and in your Knowledge Book. You have 10 seconds to complete the Starter Chain and advance to the Combat Wheel. See, it's easy: just use the spell or art that blinks!")
  80. end
  81. function dlg_11_9(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. AddConversationOption(conversation, "Why does it trigger one of three?", "dlg_11_10")
  85. AddConversationOption(conversation, "I will seek your knowledge another time.")
  86. StartConversation(conversation, NPC, Spawn, "It's quite simple. After you've advanced the Starter Chain, the bright and colorful Combat Wheel appears. The Combat Wheel shows a series of icons and displays the name of the Heroic Opportunity you have triggered. A Starter Chain will initiate one of three different Heroic Opportunities.")
  87. end
  88. function dlg_11_10(NPC, Spawn)
  89. FaceTarget(NPC, Spawn)
  90. conversation = CreateConversation()
  91. AddConversationOption(conversation, "What does the Combat Wheel tell me?", "dlg_11_11")
  92. AddConversationOption(conversation, "I will seek your knowledge another time.")
  93. StartConversation(conversation, NPC, Spawn, "There are three potential Heroic Opportunities: common, uncommon, and rare. Each provides a different benefit. Though even the common ones are valuable, the rare event can sometimes turn the tide of battle in your favor!")
  94. end
  95. function dlg_11_11(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. AddConversationOption(conversation, "How can I tell the difference?", "dlg_11_12")
  99. AddConversationOption(conversation, "I will seek your knowledge another time.")
  100. StartConversation(conversation, NPC, Spawn, "As with the Starter Chain, the Combat Wheel indicates which spells or arts must be performed to advance and eventually complete the heroic event. Sometimes these spells or abilities must be performed in a particular order. Other times there is no order.")
  101. end
  102. function dlg_11_12(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. AddConversationOption(conversation, "How long do I have to complete the Heroic Opportunity?", "dlg_11_13")
  106. AddConversationOption(conversation, "I will seek your knowledge another time.")
  107. StartConversation(conversation, NPC, Spawn, "In the very center of the Wheel, you'll see either a clockwise-pointing arrow or arrows pointing in different directions. The clockwise arrow indicates that the abilities must be completed in order. The other types of arrows mean that the abilities can be completed in any order.")
  108. end
  109. function dlg_11_13(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. AddConversationOption(conversation, "That sounds easy!", "dlg_11_14")
  113. AddConversationOption(conversation, "I will seek your knowledge another time.")
  114. StartConversation(conversation, NPC, Spawn, "The Combat Wheel must be completed within 10 seconds or the Opportunity will fail. The blue bar that appears around the outside of the Wheel is a timer. When the blue bar is gone, this indicates that time has run out to complete the Heroic Opportunity.")
  115. end
  116. function dlg_11_14(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. AddConversationOption(conversation, "Any other tricks I should know?", "dlg_11_15")
  120. AddConversationOption(conversation, "I will seek your knowledge another time.")
  121. StartConversation(conversation, NPC, Spawn, "It really is! As you become more familiar with using Heroic Opportunities, you can take note of the members of your group and plan out ahead of time which Opportunities will provide you the greatest benefit.")
  122. end
  123. function dlg_11_15(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. conversation = CreateConversation()
  126. AddConversationOption(conversation, "Thank you for the information. I'll try Heroic Opportunities in my next battle!")
  127. StartConversation(conversation, NPC, Spawn, "Scout classes have a little something extra. By using their Coin icon, the Scout can shift to another Heroic Opportunity. This shift can only happen once per Combat Wheel. This ability must also be used before any other spell or combat art has been used to advance the Wheel.")
  128. end