Skip to main content

Mythicmob NPC Variable

Reads a MythicMobs variable from the active NPC

Fields

This entry has no specific field: add it and link it where it is needed.

How to use it​

Reads a MythicMobs variable stored on the live mob (set in a MythicMobs skill, for example with setvariable). In the variable data, key is the variable name and target.npc is the NPC instance. The variable can be read as text, integer, float or double: when the variable is missing or cannot be converted, defaultStringValue or defaultNumericValue is returned. format is a Java decimal pattern (for example 0.00) applied when a number is read as text.