eq2emu/docs/lua_functions/SetTutorialStep.md

25 lines
746 B
Markdown
Raw Permalink Normal View History

2025-05-25 21:42:32 -04:00
### Function: SetTutorialStep(player, step)
2025-05-04 14:34:15 -04:00
**Description:**
2025-05-25 21:42:32 -04:00
Sets the current tutorial step for the Player.
2025-05-04 14:34:15 -04:00
**Parameters:**
2025-05-25 21:42:32 -04:00
- `player` (Spawn) - Spawn object representing `player`.
- `step` (uint8) - Integer value `step`.
2025-05-04 14:34:15 -04:00
**Returns:** None.
**Example:**
```lua
2025-05-25 21:42:32 -04:00
-- From Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua
function Step3Init(Quest, QuestGiver, Player)
SetTutorialStep(Player, 17)
UpdateQuestStepDescription(Quest, 2, "I found Waulon's hat.")
UpdateQuestTaskGroupDescription(Quest, 2, "I found Waulon's hat in one of the boxes.")
AddQuestStepChat(Quest, 3, "I should speak to Waulon.", 1, "Now that I found Waulon's hat, I should return it.", 258, Waulon)
AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
end
2025-05-04 14:34:15 -04:00
```