No categories assigned
LUA:Accepted
- Last edited 16 years ago by Christopher
Syntax
Accepted(Quest, QuestGiver, Player)
Explanation
Calls up this function only if the offered quest is accepted. This function is placed in your "function Init(Quest)" in your quest scripts.
Example
function Accepted(Quest, QuestGiver, Player)
if QuestGiver ~= nil then if GetDistance (Player, QuestGiver) < 30 then FaceTarget (QuestGiver, Player) conversation = CreateConversation() AddConversationOption(conversation, "Blah blah blah") StartConversation(conversation, QuestGiver, Player, "blah blah blah") end end end
In this example when the quest offered is accepted it will start the conversation.