Getting Started
Package Types
Scene Setup
Custom Collision, Layers, and Tags
Key Differences from Standard Unity3D development
Economy
Scripting
C# Scripting
Visual Scripting
Sync and Multiplayer
Components
Environment Settings Overrides
Render Pipeline Settings Overrides
Guidelines
Supported Features and Limitations
Support
<aside> <img src="/icons/book_gray.svg" alt="/icons/book_gray.svg" width="40px" /> In Visual Scripting you can use several quest related actions that enable to progress and complete quests. We can divide the quest actions into two groups: quest actions and task actions.
The quest actions are Spatial Quest: Start Quest
, Spatial Quest: Complete Quest
, and Spatial Quest: Reset Quest
. These actions are great to call when we want to start a quest (if it’s not started yet), complete the quest (if it’s already started) or reset the quest (if it’s already completed). Resetting a quest does not automatically start it, but rather resets its tasks and progress to an un-started state.
The task actions available are Spatial Quest: Start Task
, Spatial Quest: Complete Task
, and Spatial Quest: Add Task Progress
. Start and complete tasks are self-explanatory, and adding task progress completes a progress step on a progress bar type of task.
</aside>
<aside>
❔ As an example, lets say we want to have a quest with a task (id 1
) in which we have to collect 10 coins (task progress-bar with progressSteps set to 10).
We can create a coin game object, and add a Trigger Event to it so we can detect when the user touches it. We can now add a ScriptMachine
to this game object that will handle the logic for when the user touches this coin, so it can add task progress to the our progress bar task and then destroy the game object.
The cool thing about it is we can now clone this coin 10 times and each will progress the task id when collected.
</aside>
<aside> <img src="/icons/link_purple.svg" alt="/icons/link_purple.svg" width="40px" /> See more information on Quest Building
</aside>
<aside> <img src="/icons/link_purple.svg" alt="/icons/link_purple.svg" width="40px" /> Understand THIS and How to Reference a Spatial Component
</aside>