Difference between revisions of "LUA:AddQuestStep"
(New page: '''Syntax'''<br> AddQuestStep(Quest, StepID, StepDescription, Quantity, Percentage, TaskGroupText, icon)<br> '''Details'''<br> This function will add a quest step that is not specific lik...) |
|||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{LUAFunction | |
| − | AddQuestStep(Quest, | + | |Name = AddQuestStep |
| + | |Description = Adds a generic quest step to the given quest. | ||
| + | |Param1 = Quest | ||
| + | |Param1Desc = is the quest we are adding a step to | ||
| + | |Param2 = int32 | ||
| + | |Param2Desc = is the step id | ||
| + | |Param3 = string | ||
| + | |Param3Desc = is the step description | ||
| + | |Param4 = int32 | ||
| + | |Param4Desc = is the quantity | ||
| + | |Param5 = float | ||
| + | |Param5Desc = is the percentage | ||
| + | |Param6 = string | ||
| + | |Param6Desc = is the taskgroup string | ||
| + | |OptionalParam1 = int16 | ||
| + | |OptionalParam1Desc = is the icon for the step. Set to 0 if no icon. | ||
| + | |Example = | ||
| + | <pre> | ||
| + | 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 | ||
| + | </pre> | ||
| + | |ExampleDesc = 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... | |
| − | |||
| − | + | <pre> | |
| − | + | TaskGroupText - "I need to head to the mine and find Bob. The mine is in the east." | |
| − | + | StepText - "Find Bob" | |
| − | + | </pre> | |
| − | + | }} | |
Latest revision as of 12:17, 30 January 2021
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"