← Previous | Next →
startQuest
Description
Initiates a quest for the NPC. This action handles starting, rewarding, or failing the quest depending on the player's progress.
| Name | Type | Possibilities |
| startQuest | interaction | 7 |
Parameters
| # | Name | Type | Mandatory | Description | Multiple |
| 1 | quest | string | Yes | The name or ID of the quest to be initiated. | No |
Outputs
| # | Description |
| 1 | The quest was already completed, and the player received the reward. |
| 2 | The quest was already completed, and the reward is given now. |
| 3 | The quest has already been attempted and failed. |
| 4 | The quest has started successfully. |
| 5 | The quest is already in progress. |
| 6 | The player declined to start the quest. |
| 7 | The quest could not be started due to an error. |
Example
NPC
name QuestGiver
model a_m_m_farmer_01
position -1020.72 4839.78 258.30 0.0
interaction
startQuest quest_example
behaviour
nothing