Forum Discussion

MellyMeow's avatar
MellyMeow
Member
10 months ago
Solved

Creating Quests/Achievements

Hey creators! Does anyone have any good tutorials or advice for creating Quests/unlocking achievements?

Can you use code blocks with the Quest gizmo, or do you need to use Typescript?

I want to enhance some of my worlds with Quests,  but need some help getting started with them. Thanks!

  • It will automatically appear on the gizmo by default.

    There is a way to specify which quests appear based on a list/array of strings, but only use that if you want hidden achievements. Most of the time you will want all the achievements visible so players know what there is to accomplish in your world.

4 Replies

  • You can use code blocks for quests and achievements to both set it as complete or incomplete. You can also check to see if the player has completed the achievement or not. First you need to create the quest in your systems menu either in the headsets build menu, or in the desktop editor. This will be in the same section as the persistent variable groups. Any editor can add and edit these quests.
    Here is a code block example on setting a quest with a script ID of "ClimbedTheMountain" that completes the quest when a player enters the trigger. Then this second event would be running on another script if a player can only hold the object if they completed the ClimbedTheMountain quest.

    There is also a typescript equivalent and well documented in the new community manual. This link will take you to the page, then click on the URL once the page loads and hit enter, then it should take you directly to the right section.
    https://developers.meta.com/horizon-worlds/learn/documentation/mhcp-program/community-tutorials/creator-manual#quests

    • MellyMeow's avatar
      MellyMeow
      Member

      Follow-up question: When you set an achievement as complete, does that automatically display on the Quest Gizmo board, or do you have to separately script that?

      • proto_xr's avatar
        proto_xr
        Partner

        It will automatically appear on the gizmo by default.

        There is a way to specify which quests appear based on a list/array of strings, but only use that if you want hidden achievements. Most of the time you will want all the achievements visible so players know what there is to accomplish in your world.