Difference between revisions of "LUA:ResetQuestStep"

(Created page with "= LUA Functions: ResetQuestStep() = This will reset the given step for the given quest ==== Syntax ==== ResetQuestStep(param1, param2, param3, param4) ==== Parameters ==== ; ...")
 
(No difference)

Latest revision as of 20:24, 20 July 2014

LUA Functions: ResetQuestStep()

This will reset the given step for the given quest


Syntax

ResetQuestStep(param1, param2, param3, param4)


Parameters

Required - param1 (Quest), param2 (int32)
param1 is the quest whos step is being reset
param2 is the step to reset
Optional - param3 (string), param4 (string)
param3 is the description to set the step to
param4 is the task group to set the step to


Usage

function Step2Failed(Quest, QuestGiver, Player)
    ResetQuestStep(Quest, 1, "whatever the description was to begin with", "whatever the task group was to begin with")
end

This will set the progress of step 1 to 0 and reset the description and task group to what it use to be

Notes

If you remove the only step of a task group and reset the last step of the previous task group it is important to reset the description and task group so it displays properly