Mechanic

variableMath

Sets a variable to the result of a math equation, where 'x' is the variable's current value

Aliases

varMathmathVariablemathVar

Examples & Notes

Examples

Storing a placeholder in a variable

    MMOVar:
      Skills:
      - variableMath{var=target.exp;equation="%mmocore_level%"}

Doing math

    Math1:
      Skills:
      - variableMath{var=caster.damage;equation="<caster.hp>*5"}
    Math2:
      Skills:
      - variableMath{var=caster.speed;equation="(<caster.var.age>/5)+1"}

Universal Mechanic Options

Author:
Ashijin
Generated from @Mythic* annotations in the MythicMobs source.