using { /Fortnite.com/Devices }
# This is the "Roast Plate" device.
# It inherits from Device, which is like the base class for all interactive objects.
roast_plate_device := class(creative_device):
# --- VARIABLES (The Containers) ---
# This is our "Loot Pool" for the message.
# We declare a variable called `RoastMessage`.
# It starts as an empty string, but we'll fill it later.
var RoastMessage: string = "You got roasted!"
# We need a reference to the HUD Message Device to control it.
# Think of this as holding the remote control.
var hud_device: hud_message_device = create()
# --- SETUP (What happens when the island loads) ---
# OnBeginPlay is like the "Start Round" button.
# This runs once when the game begins.
on begin_play() -> unit:
# Let's customize the message style right here.
# We're telling the HUD device: "Use Blue text, Bold font."
hud_device.SetMessageText(RoastMessage)
hud_device.SetMessageColor(ColorBlue)
hud_device.SetMessageDuration(5.0) # Show for 5 seconds
# --- EVENTS (The Triggers) ---
Verse Library
verse
01 Device
Triggers a custom styled text message on a player screen when interacted with.
verse-library/fortnite-hud-message-device-show-a-custom-message/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.