# Scaling

You can scale values in certain configs based on certain modifiers with Variables support.

There are 2 types of scaling:

  • PLAIN = initial + (value \times base)
  • MULTIPLIER = initial \times (1.0 + value \times base)

Where:

  • initial is initial value rolled between Min and Max config values with Variables support.
  • value is value of the Value config setting.
  • base is value of the modifier.

# Config Example

Modifiers go under the Scalers section. You can add as many modifiers as you want.

You can use Variables in the Min and Max options.

Set AsInteger on true to generate a whole number between the Min and Max options. Otherwise a random decimal is generated.

Example #1

Initial:
  Min: '0.1'
  Max: '1.0'
  AsInteger: false
Scalers:
  PLAYER_AMOUNT:
    Value: 1
    Type: PLAIN

Final value is determined:

  • Calculate intial value: initial = random(0.1, 1.0)
  • Calculate final value: initial + (1 * dungeonPlayers)
  • Result is amount of players plus random number between 0.1 and 1.0.

Example #2

Initial:
  Min: '1'
  Max: '1'
  AsInteger: true
Scalers:
  PLAYER_AMOUNT:
    Value: 0.2
    Type: MULTIPLIER

Final value is determined: 1 * (1 + 0.2 * dungeonPlayers), or 1 + 20% per dungeon player.

Example #3

Initial:
  Min: '%var_zomies_min_amount%'
  Max: '%var_zomies_max_amount%'
  AsInteger: true
Scalers: {}

Final value is determined by a random whole number generated between the values produced by %var_zomies_min_amount% and %var_zomies_min_amount% variable placeholders.

# Modifiers

List of all available modifiers to use in configs.

  • PLAYER_AMOUNT - Amount of all players in the dungeon.
  • ALIVE_PLAYER_AMOUNT - Amount of alive players in the dungeon.
  • DEAD_PLAYER_AMOUNT - Amount of dead players in the dungeon.