Template:ConfigKey

From OpenKore Wiki
Revision as of 21:08, 4 July 2019 by 4epT (talk | contribs) (Created page with " <noinclude>This template describes the '''ConfigKey''' state Conditions of the automacro eventMacros.</noinclude> ;ConfigKey :* Description: Checks if th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This template describes the ConfigKey state Conditions of the automacro eventMacros.
ConfigKey
  • Description: Checks if the one or more of the given config keys match it's desired value.
Syntax:
ConfigKey <comma separated list of pairs of config key and value>
Config key and config value can be variables. (as in ConfigKey attackAuto $myattack or ConfigKey $vars{atk} 2)
Example:
ConfigKey attackAuto 2, itemsTakeAuto 2
Set variables:
$.ConfigKeyLastKey => Saves the key of the last config key that made ConfigKey become true
$.ConfigKeyLastValue => Saves the value of the last config key that made ConfigKey become true
$.ConfigKeyLastMemberIndex => Saves the list index in condition list that made ConfigKey become true