No categories assigned

LUA:AddQuestStep


LUA:AllFunctions - AddQuestStep

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Adds a generic quest step to the given quest.

Syntax

AddQuestStep(param1, param2, param3, param4, param5, param6, [opt param1])

Parameters

Required - param1 (Quest), param2 (int32), param3 (string), param4 (int32), param5 (float), param6 (string)
param1 is the quest we are adding a step to
param2 is the step id
param3 is the step description
param4 is the quantity
param5 is the percentage
param6 is the taskgroup string
Optional - opt param1 (int16)
opt param1 is the icon for the step. Set to 0 if no icon.

Example

function Init(Quest)
    AddQuestStep(Quest, 1, "Find Bob", 1, 100, "I need to head to the mine and find Bob. The mine is in the east.", 0)
end

Add a generic quest step to Quest on step 1.The param3 sets the StepText you see in the journal. There is a quantity of 1 that must be done to complete this step, and will update 100 percent of the time. The param6 is the TaskGroupText you see in the journal. The opt param1 is set to 0 so there is no icon that will show up in the journal.

Notes

This is a generic quest step. Only use this if a quest step doesn't fit into any of the other quest step functions

Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...

TaskGroupText - "I need to head to the mine and find Bob. The mine is in the east."
        StepText - "Find Bob"