No categories assigned
LUA:SetQuestCompleteAction
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: SetQuestCompleteAction()
Sets the LUA function to be called when the given quest is completed
Syntax
SetQuestCompleteAction(param1, param2)
Parameters
- Required - param1 (Quest), param2 (string)
- param1 is the quest we want to set the completed action for
- param2 is the name of the LUA function
Usage
function init(Quest)
SetQuestCompleteAction(Quest, "woot")
end
function woot(Quest, Player)
-- this function is called when the quest is completed
end
Sets the complete action to the LUA function "woot"
Notes
The complete function will receive the Quest as the first param and the player completing the quest as the second param