Verse Library verse

01 Create A Custom Quest

Defines a Creative Device class managing LEGO quest logic, interactions, and progress tracking.

extracted-snippets/documentation/en-us/uefn/lego-action-adventure-in-unreal-editor-for-fortnite/01-create-a-custom-quest.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/lego-action-adventure-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/uefn/lego-action-adventure-in-unreal-editor-for-fortnite.md
# Section:    Create a Custom Quest
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# ====================================================================================================================================
# LEGO quest giver device that manages a linear quest system
# ====================================================================================================================================
lego_quest_giver_device_log<public> := class(log_channel) {}

lego_quest_giver_device := class(creative_device):

    @editable:
        ToolTip := Tooltip_QuestGiver_Name
    QuestGiverName<public> : string = "Quest Giver"

    @editable:
        ToolTip := Tooltip_Button_Interact
    Button_Interact : button_device = button_device{}

    @editable:
        Categories := array{Category_FinishedGuidance}
        ToolTip := Tooltip_QuestGiver_Tracker
    TrackerDevice<public> : tracker_device = tracker_device{}

    @editable:
        Categories := array{Category_FinishedGuidance}

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in