#
Variables
You can create custom in-game variables for your dungeons. These variables can be used in scripts and dungeon configuration files.
Variables stored as decimal aka double values and can be created at any time or event - depending on your needs.
To insert variable value in scripts or configuration files, use the following placeholders:
%var_[name]%
- formated variable value (e.g.2,000
). Use this one for messages or other visual appearance.%var_raw_[name]%
- plain variable value (e.g.2000
). Use this one for amount settings in scripts and configuration files.
Where [name]
is the name of your variable.
Make sure to create variables before they are used by other scripts.
#
Availability
Variables are available to use in the following places:
- All in-game dungeon messages.
- All Scalable amount settings, in the
Min
andMax
settings. - Script Actions: Spawn Mob, Run Command.
- Kill Streaks, in the
Message
andCommands
settings. - Loot Chests, in the
ItemsAmount
setting. - Rewards in the
Commands
setting. - Dungeon Scoreboard, in the
Title
andList
settings. - Dungeons GUI, in the
Name
andLore
settings. - Kits GUI, in the
Name
andLore
settings.