@@ -197,30 +197,31 @@ So, for instance, the `<caster.name>` placeholder will be retuning the name of t
These placeholders will return whatever variable has been called. For instance <caster.var.\[name\]> will return the value of the caster's \[name\] variable.
Some of these variables are only generated and available under some special circumstances, such as some specific trigger/attribute/metamechanic being used previously in the skilltree.
| Variable Placeholder | Generated by | Function |
| <caster.var.{VariableName}> | | Returns the value of the variable {VariableName} on the variable registry of the caster of the mechanic |
| <target.var.{VariableName}> | | Returns the value of the variable {VariableName} on the variable registry of the target of the mechanic |
| <world.var.{VariableName}> | | Returns the value of the variable {VariableName} on the variable registry of the world the mechanic is used in |
| <global.var.{VariableName}> | | Returns the value of the variable {VariableName} on the variable registry of the whole server |
| <skill.var.{VariableName}> | | Returns the value of the variable {VariableName} on the current [skill tree](https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/Skills/SkillTrees) |
| <skill.var.damage-amount> | [~onDamaged] trigger <br> [~onAttack] trigger <br> [~onBowHit] trigger <br> [onDamaged] mechanic <br> [onAttack] mechanic | Returns the amount of damage taken or done |
| <skill.var.damage-type> | [~onDamaged] trigger <br> [~onAttack] trigger <br> [~onBowHit] trigger <br> [onDamaged] mechanic <br> [onAttack] mechanic | Returns the type of damage taken or done, if any |
| <skill.var.damage-cause> | [~onDamaged] trigger <br> [~onAttack] trigger <br> [~onBowHit] trigger <br> [onDamaged] mechanic <br> [onAttack] mechanic | Returns the cause of damage taken/done |
| <skill.var.aura-name> | Every [aura] mechanic | Returns the name of the aura |
| <skill.var.aura-type> | Every [aura] mechanic | Returns the type of the aura |
| <skill.var.aura-charges> | Every [aura] mechanic | Returns the amount of charges the aura has left |
| <skill.var.aura-duration> | Every [aura] mechanic | Returns the remaining duration of the aura |
| <skill.var.aura-duration-millis> | Every [aura] mechanic | Returns the remaining duration of the aura, in milliseconds |
| <skill.var.aura-stacks> | Every [aura] mechanic | Returns the amount of stacks the aura has left |
| <skill.var.interval> | Using the `repeat` and `repeatInterval` [universal attributes] | Returns the current iteration |
| <skill.var.itr> | Using the `repeat` and `repeatInterval` [universal attributes] | Returns the current iteration |
| <skill.var.volume> | [~onHear] trigger | Returns a float value between 1 and 15 representing the intensity of the sound. Directly proportional to the distance (the further away the source, the higher this value) |
| <skill.var.sound-type> | [~onHear] trigger | Returns the type of the sound |
| <skill.var.hit-block-type> | [raytrace] mechanic | Returns the block that was hit, or AIR if none |
| <skill.var.bow-tension> | [~onShoot] trigger | Returns the force with which the projectile has been shot |
| <skill.var.click-type> | [Custom Menus](/Custom-Menus#button-skills) Interactions | The type of the click used to interact with a [menu button](/Custom-Menus#button-skills). Returns `1` if rightclick was used, `0` otherwise |
| Variable Placeholder | Function | Return Type | Generated by |
| <caster.var.{VariableName}> | Returns the value of the variable {VariableName} on the variable registry of the caster of the mechanic | | |
| <target.var.{VariableName}> | Returns the value of the variable {VariableName} on the variable registry of the target of the mechanic | | |
| <world.var.{VariableName}> | Returns the value of the variable {VariableName} on the variable registry of the world the mechanic is used in | | |
| <global.var.{VariableName}> | Returns the value of the variable {VariableName} on the variable registry of the whole server | | |
| <skill.var.{VariableName}> | Returns the value of the variable {VariableName} on the current [skill tree](https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/Skills/SkillTrees) | | |
| <skill.var.damage-amount> | Returns the amount of damage taken or done | | [~onDamaged] trigger <br> [~onAttack] trigger <br> [~onBowHit] trigger <br> [onDamaged] mechanic <br> [onAttack] mechanic |
| <skill.var.damage-type> | Returns the type of damage taken or done, if any | | [~onDamaged] trigger <br> [~onAttack] trigger <br> [~onBowHit] trigger <br> [onDamaged] mechanic <br> [onAttack] mechanic |
| <skill.var.damage-cause> | Returns the cause of damage taken/done | | [~onDamaged] trigger <br> [~onAttack] trigger <br> [~onBowHit] trigger <br> [onDamaged] mechanic <br> [onAttack] mechanic |
| <skill.var.aura-name> | Returns the name of the aura | | Every [aura] mechanic |
| <skill.var.aura-type> | Returns the type of the aura | | Every [aura] mechanic |
| <skill.var.aura-charges> | Returns the amount of charges the aura has left | | Every [aura] mechanic |
| <skill.var.aura-duration> | Returns the remaining duration of the aura | | Every [aura] mechanic |
| <skill.var.aura-duration-millis> | Returns the remaining duration of the aura, in milliseconds | | Every [aura] mechanic |
| <skill.var.aura-stacks> | Returns the amount of stacks the aura has left | | Every [aura] mechanic |
| <skill.var.interval> | Returns the current iteration | | Using the `repeat` and `repeatInterval` [universal attributes] |
| <skill.var.itr> | Returns the current iteration | | Using the `repeat` and `repeatInterval` [universal attributes] |
| <skill.var.volume> | Returns a float value between 1 and 15 representing the intensity of the sound. Directly proportional to the distance (the further away the source, the higher this value) | | [~onHear] trigger |
| <skill.var.sound-type> | Returns the type of the sound | | [~onHear] trigger |
| <skill.var.hit-block-type> | Returns the block that was hit, or AIR if none | | [raytrace] mechanic |
| <skill.var.bow-tension> | Returns the force with which the projectile has been shot | | [~onShoot] trigger |
| <skill.var.click-type> | The type of the click used to interact with a [menu button](/Custom-Menus#button-skills). Returns `1` if rightclick was used, `0` otherwise | | [Custom Menus](/Custom-Menus#button-skills) Interactions |