#
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 numeric 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 numeric settings, in the
MinandMaxsettings. - Script Actions: Spawn Mob, Run Command.
- Kill Streaks, in the
MessageandCommandssettings. - Loot Chests, in the
ItemsAmountsetting. - Rewards in the
Commandssetting. - Dungeon Scoreboard, in the
TitleandListsettings. - Dungeons GUI, in the
NameandLoresettings. - Kits GUI, in the
NameandLoresettings.