using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Game }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /EpicGames.com/Temporary/UI }
using { /Verse.org/Native }
# This is our main class. Think of it as the "Brain" of our island.
RoundHandicapManager := class(creative_device):
# 1. DEVICE LINKS
# These are the devices you drag into the editor.
@editable
StartTimer : timer_device = timer_device{}
@editable
HandicapLight : cinematic_sequence_device = cinematic_sequence_device{}
# note: prop_mover has no SetVisibility method in the real API; we use
# cinematic_sequence_device to drive a visibility sequence instead.
# Alternatively, wire a customizable_light_device here and call Enable/Disable.
# 2. DATA STORAGE (The "Nametag")
# We create a weak map that links each Player to a 'logic' value (True/False).
# false means they are a normal player. true means they are handicapped.
var PlayerStatus : weak_map(player, logic) = map{}
# 3. THE ROUND TIMER EVENT
# This runs every time the timer finishes a countdown.
OnStartTimerFinished(InAgent : agent) : void =
Verse Library
verse
01 Device
Tracks player handicaps per round using a timer and weak map to dynamically adjust gameplay conditions.
verse-library/custom-round-logic-using-verse/01-device.verse
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.