Difference between revisions of "LUA:SetQuestCompleteAction"
(Created page with "= LUA Functions: SetQuestCompleteAction() = Sets the LUA function to be called when the given quest is completed ==== Syntax ==== SetQuestCompleteAction(param1, param2) ==== ...") |
(No difference)
|
Latest revision as of 12:21, 12 September 2013
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