# 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.

# Availability

Variables are available to use in the following places:

  • All in-game dungeon messages.
  • All Scalable amount settings, in the Min and Max settings.
  • Script Actions: Spawn Mob, Run Command.
  • Kill Streaks, in the Message and Commands settings.
  • Loot Chests, in the ItemsAmount setting.
  • Rewards in the Commands setting.
  • Dungeon Scoreboard, in the Title and List settings.
  • Dungeons GUI, in the Name and Lore settings.
  • Kits GUI, in the Name and Lore settings.