No categories assigned

LUA:AddQuestStepFailureAction

Revision as of 20:35, 20 July 2014 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: AddQuestStepFailureAction() = This will add a lua callback function for when the given step is failed ==== Syntax ==== AddQuestStepFailureAction(param1, param2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: AddQuestStepFailureAction()

This will add a lua callback function for when the given step is failed


Syntax

AddQuestStepFailureAction(param1, param2, param3)


Parameters

Required - param1 (Quest), param2 (int32), param3 (string)
param1 is the quest we are adding a callback function to
param2 is the step we are adding a callback function for
param3 is the callback function


Usage

function Step2Complete(Quest, QuestGiver, Player)
    AddQuestStepFailureAction(Quest, 3, "Step3Failed")
end

If step 3 is failed then the lua function Step3Failed will be called

Notes

Do not use on the same step as AddQuestTimer() as that function will do the same thing as this function.