Difference between revisions of "LUA:UpdateQuestStepDescription"

(Created page with "Updates a quest step description. Usually called after completion of the step. ==== Syntax ==== UpdateQuestStepDescription(Quest, StepNumber, "Description string") ==== Usage =...")
 
 
Line 1: Line 1:
Updates a quest step description. Usually called after completion of the step.
+
{{LUAFunction
 
+
|Name = UpdateQuestStepDescription
==== Syntax ====
+
|Description = Updates a quest step description. Usually called after completion of the step.
UpdateQuestStepDescription(Quest, StepNumber, "Description string")
+
|Param1 = Quest
 
+
|Param1Desc = is the quest you wish to update
==== Usage ====
+
|Param2 = StepNumber
 +
|Param2Desc = is the step number of the quest you wish to update
 +
|Param3 = "Description string"
 +
|Param3Desc = is the new description of the quest step you are updating
 +
|Example =
 
<pre>
 
<pre>
 
function TalkedToStonefist(Quest, QuestGiver, Player)
 
function TalkedToStonefist(Quest, QuestGiver, Player)
Line 10: Line 14:
 
end
 
end
 
</pre>
 
</pre>
Updates the quest step description for the first step of the quest "Stonefist's Art of Combat".
+
|ExampleDesc = Updates the quest step description for the first step of the quest "Stonefist's Art of Combat".
 
+
|Notes =
 
+
}}
 
 
[[LUA:QuestFunctions|Back to LUA Quests Index]]
 

Latest revision as of 12:47, 8 February 2022


LUA:AllFunctions - UpdateQuestStepDescription

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


Updates a quest step description. Usually called after completion of the step.

Syntax

UpdateQuestStepDescription(param1, param2, param3)

Parameters

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


Example

function TalkedToStonefist(Quest, QuestGiver, Player)
    UpdateQuestStepDescription(Quest, 1, "I have spoken with Ragnhild Stonefist.")
end

Updates the quest step description for the first step of the quest "Stonefist's Art of Combat".