using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Game }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# This is our "Class Blueprint."
# Think of this like a character card in a trading card game.
# It defines what stats a player gets when they pick this class.
player_class := struct:
Health : float
Speed : float
Name : string
# Here are our two choices.
# The Bruiser is tough but slow. The Speedster is fast but squishy.
BruiserClass : player_class = player_class:
Health := 500.0
Speed := 0.5
Name := "The Bruiser"
SpeedsterClass : player_class = player_class:
Health := 100.0
Speed := 2.0
Name := "The Speedster"
# This is the main script that runs when the game starts.
# It's like the referee blowing the whistle to start the match.
class_selector_logic := class(creative_device):
Verse Library
verse
01 Device
Defines player stat structs and uses trigger logic to assign classes and apply stats.
verse-library/using-class-selector-devices-in-fortnite-creative/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.