Verse Library verse

02 Snippet

Defines the quest data structure, configuration fields, and progress enum for the quest system.

extracted-snippets/community/snippets/o2KW/fortnite-lego-quest-system-with-npc-behaviour/02-snippet.verse

# Source URL: https://dev.epicgames.com/community/snippets/o2KW/fortnite-lego-quest-system-with-npc-behaviour
# Local doc:  epic-docs/community/snippets/o2KW/fortnite-lego-quest-system-with-npc-behaviour.md
  using { /UnrealEngine.com/Temporary/Diagnostics }
  using { /Verse.org/Simulation }
  using { /Fortnite.com/Characters }
  using { /Fortnite.com/Devices }
  using { LEGOModule_StudRewards}
  # ============================================================================================================================================
  # Definition of a completable quest with dialog setup and reward
  # ============================================================================================================================================
  en_lego_quest_progress<public> := enum{ None, NotStarted, IsActive, CanBeCompleted, Completed }
  lego_quest_log<public> := class(log_channel) {}
  lego_quest_repeatable<public> := class<concrete><unique>(lego_quest) {}
  lego_quest<public> := class<concrete><unique>():
  @editable:
  ToolTip := ToolTip_Quest_Name
  Name<public> : string = "UNIQUE Quest Name"
  @editable
  DisplayText<public> : lego_quest_info = lego_quest_info{}
  @editable:
  ToolTip := ToolTip_EventBindings
  EventBindings<public> : ?lego_quest_eventbindings = false
  @editable:
  ToolTip := Tooltip_Tracker
  TrackerDevice<public> : tracker_device = tracker_device{}
  @editable:
  ToolTip := Tooltip_Beacon
  GuidingBeacons<public> : []beacon_device = array{}
  @editable:
  ToolTip := ToolTip_Quest_Reward

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