Difference between revisions of "LUA:UpdateQuestTaskGroupDescription"

 
Line 1: Line 1:
Updates the description of a taskgroup in a quest. This is usually called after completion of a taskgroup.
+
{{LUAFunction
 
+
|Name = UpdateQuestTaskGroupDescription
==== Syntax ====
+
|Description = Updates the description of a taskgroup in a quest. This is usually called after completion of a taskgroup.
UpdateQuestTaskGroupDescription(Quest, TaskStepNum, "description string")
+
|Param1 = Quest
 
+
|Param1Desc = is the quest you wish to update
==== Usage ====
+
|Param2 = TaskStepNum
 +
|Param2Desc = is the task group number of the quest you wish to update
 +
|Param3 = "Description string"
 +
|Param3Desc = is the new description of the task group you are updating
 +
|Example =
 
<pre>
 
<pre>
 
function ReturnedToStonefist(Quest, QuestGiver, Player)
 
function ReturnedToStonefist(Quest, QuestGiver, Player)
Line 12: Line 16:
 
end
 
end
 
</pre>
 
</pre>
This updates the taskgroup description for the first taskgroup in the quest "Stonefist's Art of Combat" after completing the third step.
+
|ExampleDesc = This updates the taskgroup description for the first taskgroup in the quest "Stonefist's Art of Combat" after completing the third step.
 
+
}}
 
 
[[LUA:QuestFunctions|Back to LUA Quest Index]]
 

Latest revision as of 12:56, 8 February 2022


LUA:AllFunctions - UpdateQuestTaskGroupDescription

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


Updates the description of a taskgroup in a quest. This is usually called after completion of a taskgroup.

Syntax

UpdateQuestTaskGroupDescription(param1, param2, param3)

Parameters

Required - param1 (Quest), param2 (TaskStepNum), param3 ("Description string")
param1 is the quest you wish to update
param2 is the task group number of the quest you wish to update
param3 is the new description of the task group you are updating


Example

function ReturnedToStonefist(Quest, QuestGiver, Player)
	UpdateQuestTaskGroupDescription(Quest, 1, "I have won a match against one of the sparring partners.")
	AddQuestStepChat(Quest, 4, "Return to Yasha Redblade.", 1, "I am to return to Yasha Redblade near the ship's hull on Pilgrims' Landing.", 0, 4700005)
	AddQuestStepCompleteAction(Quest, 4, "ReturnToYasha")
end

This updates the taskgroup description for the first taskgroup in the quest "Stonefist's Art of Combat" after completing the third step.