ok so i did the offer quest with temp variable, and that portioan works what i did notice though is that none of the "close" respnse seem to be working
from what i understand that if i do not put a 2nd parameter (to the function) that it will close the dialog
but none of the close options are closing the dialog, i also just noticed that if i press close first then the other option does not work either
Code: Select all
--[[
Script Name : ItemScripts/the_history_of_ayr_dal.lua
Script Purpose :Book--
Script Author : Ememjr
Script Date : 2019.03.24
Script Notes :
--]]
function examined(Item, Player)
conversation = CreateConversation()
AddConversationOption(conversation, "Continue Story","ContinueStory")
AddConversationOption(conversation, "Close")
StartDialogConversation(conversation, 2, Item, Player, "This is a three-part history of the Ayr'Dal. Its pages cannot be completed at one time, but must be gained through valor and experience.")
end
function ContinueStory(Item, Player)
conversation = CreateConversation()
AddConversationOption(conversation, "Read Story 1","ReadStory1")
AddConversationOption(conversation, "Close")
StartDialogConversation(conversation, 2, Item, Player, "Each part of this history tome can only be completed in its own time.")
end
function ReadStory1(Item, Player)
if not HasQuest(Player, 474) then
SetTempVariable(Player, "Q474", Item)
OfferQuest(nil, Player, 474)
end
conversation = CreateConversation()
AddConversationOption(conversation, "Continue Story 1","ContStory1")
AddConversationOption(conversation, "Close")
StartDialogConversation(conversation, 2, Item, Player, "B My name is Trinni Mellosius and I'm a half-elf. I guess that's why my teacher asked me to write a research paper about our history. As if we have a history of our own! But since I need to pass this class, I guess I'll write one.")
end
function ContStory1(Item, Player)
conversation = CreateConversation()
AddConversationOption(conversation, "Close")
StartDialogConversation(conversation, 2, Item, Player, "B So you're walking around Qeynos, or maybe even Freeport (I live in Willow Wood, so I just have to guess about you-know-where) and you see someone who has pointy ears like an elf, is taller than an elf, but not so tall as a human and what have you got? Ayr'Dal!")
end