Set Dungeon Variable
Added in v2.0.1.
Description
Sets an instance scoped variable in the caster's dungeon. The variable is readable from Mythic skills as <dungeon.var.KEY> and from dungeon functions as an "Instance Variable", and it is removed when the instance unloads. Leaving type as UNDEFINED (the default) auto detects INT first, then DOUBLE, otherwise STRING. See Variables.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
key |
k, variable, var |
Name of the variable to set. | (empty) |
type |
t |
Stored type: STRING, INT, DOUBLE, or UNDEFINED (auto detect from the value). Any other value stops the mechanic from loading at all, so the whole skill line is dead and the server log carries the error. |
UNDEFINED |
value |
val, v |
The value to store. With an explicit INT or DOUBLE type, a non numeric value throws an error when the skill runs rather than failing quietly. |
(empty) |
Examples
Skills:
- setdungeonvariable{key=bossPhase;type=INT;value=1} ~onDungeonStart
Stores an integer dungeon variable
bossPhaseset to1for the life of that instance.
Aliases
-
setdungvar