Quests
This document provides a guide that can be used to setup a quest system in a VIVERSE project.
Last updated
Was this helpful?
This document provides a guide that can be used to setup a quest system in a VIVERSE project.
Last updated
Was this helpful?
Create A Quest System
Currently, the Quest system is unavailable for testing in Preview mode and can only be seen after clicking the Create World button in Preview mode.
This guide provides instructions for setting up the Quest system. In the sample app, the trigger area is outlined in blue. Once the avatar enters into the trigger area, the Quest system starts. The first task requires the user to click on the red box. Once the user clicks on the red box, the first task is completed and the Quest system updates. The second task requires the user to click on multiple green boxes. Each green box that is clicked adds progress to completing the Quest task. Once all of the green boxes have been clicked, the task is completed and the Quest is completed. If the user clicks on a blue box during the quest, the quest system resets and needs to be triggered again in order to restart the quest.
The avatar enters the trigger area and the Quest system dialog appears.
With the Quest system started, the user clicks on the red box and the first task is completed.
When the user clicks each green box, progress is added to the second task.
Once the user clicks on the final green box, the second task is complete and the Quest system dialog disappears.
If the user clicks on a blue box before both tasks are completed, the Quest system resets and needs to be triggered again.
A. Give the quest a name in the Quest name field. The text: Find the boxes! was added.
B. Give the quest a description in the Quest description field. The text: Click on the boxes that are a specific color. was added.
C. Create the first task and give the task a description in the Task description field. The text: Click on the red box. was added.
D. Set the Task type to check.
E. Create the second task and give the task a description in the Task description field. The text: Click on the green boxes. was added.
F. Set the Task type to progressBar.
G. Add the value 4 to the Progress Steps field.
A. In the VIVERSE extension, select the TriggerAndAction plugin for the Select plugins dropdown.
B. Add a Trigger and select EntitySubscribeTriggerEnter.
C. Add local-player to the tags to filter field.
D. Add an Action and select Quest.
E. In the selected quest field, choose Find the boxes!
F. In the quest response field, choose startQuest.
A. In the VIVERSE extension, select the TriggerAndAction plugin for the Select plugins dropdown.
B. Add a Trigger and select NotificationCenterSubscribeEntityPicking.
C. Add an Action and select Quest.
D. In the selected quest field, choose Find the boxes!
E. In the quest response field, choose completeTask.
F. In the selected task field, choose Click on the red box.
A. Create multiple 3D objects.
B. Add a Collision component to each object.
C. Add a material. Green has been added because these will be the boxes that will be clicked on to complete the second task.
D. Click the Edit Viverse Extension button.
The following steps are completed for all green boxes.
A. In the VIVERSE extension, select the TriggerAndAction plugin for the Select plugins dropdown.
B. Add a Trigger and select NotificationCenterSubscribeEntityPicking.
C. Add an Action and select Quest.
D. In the selected quest field, choose Find the boxes!
E. In the quest response field, choose addTaskProgress.
F. In the selected task field, choose Click on the green boxes.
The following steps are completed for all blue boxes.
A. In the VIVERSE extension, select the TriggerAndAction plugin for the Select plugins dropdown.
B. Add a Trigger and select NotificationCenterSubscribeEntityPicking.
C. Add an Action and select Quest.
D. In the selected quest field, choose Find the boxes!
E. In the quest response field, choose resetQuest.