TheCommandersWife.lua 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. --[[
  2. Script Name : ItemScripts/TheLadyoftheLake.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.07 03:06:23
  5. Script Purpose :
  6. :
  7. --]]
  8. local Wife = 5584
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. AddConversationOption(conversation, "Entry One","Page1")
  12. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  13. StartDialogConversation(conversation, 2, Item, Player, "This autobiography sketches the life of Araminda Bayle, the wife of Kane Bayle, the Commander of the Qeynos' City Guard who was executed for his treasonous association with the Bloodsabers during the War of Plagues.")
  14. end
  15. function Page1(Item, Player)
  16. conversation = CreateConversation()
  17. if not HasQuest(Spawn,Wife) and not HasCompletedQuest(Spawn,Wife)then
  18. QuestStart(Item,Player)
  19. end
  20. if GetQuestStep(Player,Wife) >=2 then
  21. AddConversationOption(conversation, "Entry Two","Page2")
  22. end
  23. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  24. StartDialogConversation(conversation, 2, Item, Player, "Days pass, stretching before me like an abyss. That it should come to this: my husband Kane, the Commander of the Qeynos City Guard regiment, is sentenced to death. I look back, now on the eve of his execution, and wonder whether I could have saved him. I know his mother feels the same. She is old now and frail; the look in her eyes haunts me. Yet, I look into the mirror and see the same expression. Sorrow, guilt and remorse.")
  25. end
  26. function Page2(Item, Player)
  27. conversation = CreateConversation()
  28. if GetQuestStep(Player,Wife)==2 then
  29. QuestStepIsComplete(Player,Wife,2)
  30. end
  31. if GetQuestStep(Player,Wife) >=4 then
  32. AddConversationOption(conversation, "Entry Three","Page3")
  33. end
  34. AddConversationOption(conversation, "Turn back to previous entry.","Page1")
  35. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  36. StartDialogConversation(conversation, 2, Item, Player, "Our marriage was as happy as might be expected. Our parents linked our names from my birth and Kane, a lad of thirteen at the time, took the news of our betrothal poorly. I do not blame him; he was young and vigorous while I was still toddling around my mother's knee. Still, in time he grew to love me in his own fashion. Our wedding was truly the happiest day of my life. We wed on my twentieth birthday.")
  37. end
  38. function Page3(Item, Player)
  39. conversation = CreateConversation()
  40. if GetQuestStep(Player,Wife)==4 then
  41. QuestStepIsComplete(Player,Wife,4)
  42. end
  43. if GetQuestStep(Player,Wife) >=6 then
  44. AddConversationOption(conversation, "Entry Four","Page4")
  45. end
  46. AddConversationOption(conversation, "Turn back to previous entry.","Page2")
  47. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  48. StartDialogConversation(conversation, 2, Item, Player, "Our great sorrow occurred within a year of our wedding. I gave birth to Kane's first son, but within hours the babe sickened and died. For many days I lay abed, unable to speak or care for myself. Kane's sorrow was surely as great as mine. We cried together over our son's death. But then, with me so ill, it seemed prudent for Kane to take up rooms elsewhere in our home. He did not move back into my room, even after I recovered.")
  49. end
  50. function Page4(Item, Player)
  51. conversation = CreateConversation()
  52. if GetQuestStep(Player,Wife)==6 then
  53. QuestStepIsComplete(Player,Wife,6)
  54. end
  55. if GetQuestStep(Player,Wife) >=8 then
  56. AddConversationOption(conversation, "Entry Five","Page5")
  57. end
  58. AddConversationOption(conversation, "Turn back to previous entry.","Page3")
  59. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  60. StartDialogConversation(conversation, 2, Item, Player, "Kane's military career progressed quickly, and not only because he was a member of the Bayle family. He distinguished himself in arranging the City Guard into smaller subunits that could respond to danger more quickly than they had been able to in the old days. We entertained the other officers in the evenings and during the day, I did charity work with the other wives.")
  61. end
  62. function Page5(Item, Player)
  63. conversation = CreateConversation()
  64. if GetQuestStep(Player,Wife)==8 then
  65. QuestStepIsComplete(Player,Wife,8)
  66. end
  67. if GetQuestStep(Player,Wife) >=10 then
  68. AddConversationOption(conversation, "Entry Six","Page6")
  69. end
  70. AddConversationOption(conversation, "Turn back to previous entry.","Page4")
  71. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  72. StartDialogConversation(conversation, 2, Item, Player, "It was during one of my scheduled visits to the infirmary that I first heard rumors of my husband's infidelities. The other wives were afraid to speak of it for fear of retaliation, but my special friend Greda pulled me aside and told me that everyone knew how things stood between he and I. \"How does anyone know where a man stands with his wife but his wife alone?\" I replied. I stayed until the end of my shift; I am not one to shirk my public duties.")
  73. end
  74. function Page6(Item, Player)
  75. conversation = CreateConversation()
  76. if GetQuestStep(Player,Wife)==10 then
  77. QuestStepIsComplete(Player,Wife,10)
  78. end
  79. if GetQuestStep(Player,Wife) >=12 then
  80. AddConversationOption(conversation, "Entry Seven","Page7")
  81. end
  82. AddConversationOption(conversation, "Turn back to previous entry.","Page5")
  83. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  84. StartDialogConversation(conversation, 2, Item, Player, "Now that the trial is over, I know how many women claimed that my husband was unfaithful to me. My husband was...is not a perfect man, but he is respectful of my position. My father is Lord Mrallon, who has long been a friend to the Bayle family. Kane could not disgrace my family as well as his by sinking to the levels some of these women claim. They lie, though it appears their lies are more persuasive than mine.")
  85. end
  86. function Page7(Item, Player)
  87. conversation = CreateConversation()
  88. if GetQuestStep(Player,Wife)==12 then
  89. QuestStepIsComplete(Player,Wife,12)
  90. end
  91. if GetQuestStep(Player,Wife) >=14 then
  92. AddConversationOption(conversation, "Entry Eight","Page8")
  93. end
  94. AddConversationOption(conversation, "Turn back to previous entry.","Page6")
  95. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  96. StartDialogConversation(conversation, 2, Item, Player, "Do we not all lie to ourselves at some point? How many nights had I sat beside this window wishing Kane would come to me, and instead seeing him slip down the street in the dark? I told myself then it was an emergency, the Guard needed him. And so, of all the truths and lies told about my husband, what do I want to believe now? That he was seeing other women or that he was using his strategic skills to aid our enemies?")
  97. end
  98. function Page8(Item, Player)
  99. conversation = CreateConversation()
  100. if GetQuestStep(Player,Wife)==14 then
  101. QuestStepIsComplete(Player,Wife,14)
  102. end
  103. if GetQuestStep(Player,Wife) >=16 then
  104. AddConversationOption(conversation, "Entry Nine","Page9")
  105. end
  106. AddConversationOption(conversation, "Turn back to previous entry.","Page7")
  107. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  108. StartDialogConversation(conversation, 2, Item, Player, "The questions twist in my mind like knives. When I think of my husband, I see the young man on our wedding day, handsome and proud. I see him trying to comfort me after the death of our only child. I see him in his dress uniform, smiling at me as we dance at the head of a regimental function. Who is the Kane Bayle that tonight breathes the last breaths of this life? Where has my husband gone?")
  109. end
  110. function Page9(Item, Player)
  111. conversation = CreateConversation()
  112. if GetQuestStep(Player,Wife)==16 then
  113. QuestStepIsComplete(Player,Wife,16)
  114. end
  115. if GetQuestStep(Player,Wife) >=18 then
  116. AddConversationOption(conversation, "Entry Ten","Page10")
  117. end
  118. AddConversationOption(conversation, "Turn back to previous entry.","Page8")
  119. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  120. StartDialogConversation(conversation, 2, Item, Player, "This at least the gods grant me: we have no children. I could not bear to leave a helpless being without his parents. It will be no easier to leave one's parents behind; I see my parents' faces as they were through the trial, struggling between sympathy for me and hatred for my husband. I see his parents' faces: his father, stoic and his mother unable to tear her eyes from Kane's face. How her cries torment me; she is crying yet and no one can comfort her. No one can comfort me.")
  121. end
  122. function Page10(Item, Player)
  123. conversation = CreateConversation()
  124. if GetQuestStep(Player,Wife)==18 then
  125. QuestStepIsComplete(Player,Wife,18)
  126. end
  127. AddConversationOption(conversation, "Turn back to previous entry.","Page9")
  128. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  129. StartDialogConversation(conversation, 2, Item, Player, "The sun rises. I see the shining city of Qeynos below. The sparrows fly from their nest beneath my window sill. The war has brought death and uncertainty to many lives but oh, so much more to mine. I cannot bear knowing what they think of Kane. This day, they execute my husband but through their words, they have already condemned and executed me. May my parents forgive me. May my flight prove swiftly fatal.")
  130. end
  131. function QuestStart(Item,Player)
  132. CloseItemConversation(Item,Player)
  133. OfferQuest(nil, Player, Wife)
  134. end