Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.24 KB

File metadata and controls

27 lines (21 loc) · 1.24 KB

QuestConfig

Purpose: Configuration for a single quest. Created as a ScriptableObject. It stores UI text (title, description), a list of objectives, and the conditions under which the quest can be accepted.

Setup

  1. Create a quest via the menu Right Click > Create > Neoxider > Quest > Quest Config.
  2. Set the _id (a unique identifier, e.g., kill_boars).
  3. Fill in _title and _description.
  4. Configure the _objectives list (see QuestObjectiveData).
  5. If needed, specify _startConditions (e.g., "Player must be level 5").

Key Fields (Inspector)

Field Description
_id Unique quest ID. Used in code for accepting/saving.
_title, _description Name and detailed description for the UI.
_icon (Optional) Quest sprite.
_objectives A list of tasks that must be completed to finish the quest.
_startConditions A list of conditions (NeoCondition) checked before giving the quest.
_nextQuestIds (Optional) IDs of quests that become available after finishing this one.

See Also