Variableinrange

Description

Checks if the given numeric variable is within a certain range.

Use <skill.var.index> to get the current index of the target (starting at 0).

Attributes

Attribute Aliases Description Default
variable name, n, var, key, k Variable to match, optionally prefixed by a scope
value val, v, range, r A number range to match
scope s The scope of the variable, e.g. where the variable is located

Examples

ShootCheck:
  Cooldown: 0
  Conditions:
  - variableInRange{var=caster.shootsLeft;value=>0} castInstead ShootThemUp
  Skills:
  - message{m="&7Reloading..."} @self
  - delay 0
  - setskillcooldown{skill=ShootCheck;seconds=2} @self
  - delay 20
  - setvariable{var=caster.shootsLeft;value=10} @self
  - message{m="&7Reloaded!"} @self

Aliases

  • varinrange
  • varrange
Updated Aug 19, 2026