Difference between revisions of "LUA:UpdateQuestDescription"
(Created page with "Updates the description of a quest. This is usually called after completion of a quest. ==== Syntax ==== UpdateQuestDescription(Quest, "Description string") ==== Usage ==== <pr...") |
|||
| Line 1: | Line 1: | ||
| − | Updates the description of a quest. This is usually called after completion of a quest. | + | {{LUAFunction |
| − | + | |Name = UpdateQuestDescription | |
| − | == | + | |Description = Updates the description of a quest. This is usually called after completion of a quest. |
| − | + | |Param1 = Quest | |
| − | + | |Param1Desc = is the quest you wish to update | |
| − | + | |Param2 = string | |
| + | |Param2Desc = is the new description of the quest you are updating | ||
| + | |Example = | ||
<pre> | <pre> | ||
function quest_complete(Quest, QuestGiver, Player) | function quest_complete(Quest, QuestGiver, Player) | ||
| Line 11: | Line 13: | ||
end | end | ||
</pre> | </pre> | ||
| − | This updates the quest description for the quest "Curious Ore" after completing the final step. | + | |ExampleDesc = This updates the quest description for the quest "Curious Ore" after completing the final step. |
| − | + | |Notes = | |
| − | + | }} | |
| − | |||
Latest revision as of 12:35, 8 February 2022
LUA:AllFunctions - UpdateQuestDescription
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Updates the description of a quest. This is usually called after completion of a quest.
Syntax
UpdateQuestDescription(param1, param2)
Parameters
- Required - param1 (Quest), param2 (string)
- param1 is the quest you wish to update
- param2 is the new description of the quest you are updating
Example
function quest_complete(Quest, QuestGiver, Player) UpdateQuestDescription(Quest, "I have brought the ore samples to Tykor Gi'Lok.") GiveQuestReward(Quest, Player) end
This updates the quest description for the quest "Curious Ore" after completing the final step.