Quests&Objectives

Start and complete

Get the Quest Component from PlayerState. Category Quest.

ActionNode
StartStartQuest or StartQuestById
Advance an objectiveCompleteObjective (Objective Id, Amount default 1)
Fail via a fail idFailObjective
  1. When the player accepts the quest, call StartQuest with the definition, or StartQuestById.
  2. From kill, overlap, or inventory code, call CompleteObjective with the Objective Id on the asset.
  3. Branch on the return value. True means the call applied.
Level or actor graph: Start Quest By Id, then Complete Objective with an example Objective Id.

StartQuest returns false if the definition is missing. It returns false if the quest is already Active or Completed. It returns false if prerequisites are not met.

CompleteObjective increments every matching objective on Active quests in the current phase only.