2.7.1 Autotracking
The autotracking system allows you to track things on yourself and your target.
How does it work?
Autotracking gives you access to a variety of variables and allows you to use them in your commands to determine what actions your character undertakes, or to more accurately track variables in your own scripting.
Syntax
------
if <test> then <command> [else <command>] endif
echo <variable>
Note: Any non-health, mana or affliction related variable available
through autotracking can also be accessed through gmcp via Char.Track.
Autotracking allows you to track the following variables:
General
-------
me{health}
returns your current health
me{healthp}
returns your current health percentage
me{mana}
returns your current mana
me{manap}
returns your current mana percentage
me{has_<affliction>}
returns 1 if you have the affliction, 0 otherwise.
** Does not reveal hidden afflictions until you diagnose **
me{def_<defence>}
returns 1 if you have the defence, 0 otherwise.
Examples:
"me{health}" is 250
"me{manap}" is 32
"me{has_impatience}" is 0
"me{has_crippled left leg}" is 0
"me{has_slow balance}" is 1
if me{has_prone} then stand endif
if me{def_lipreading} = 0 then say I can not read lips! else say I can read lips! endif
Mages
-----
<target>{elemental_attunement_<element>}
returns the target's current elemental attunement.
Example:
"dec{elemental_attunement_water}" is 2
if dec{elemental_attunement_water} >= 3 then cast decompose at dec endif