Category:Self Condition

From OpenKore Wiki
Revision as of 04:44, 8 September 2010 by EternalHarvest (Talk | contribs) (adding custom conditions)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Conditions about the character status/information.

These condition options are shared between the attackComboSlot, attackSkillSlot, buyAuto, doCommand, equipAuto, monsterSkill, partySkill, useSelf_item, and useSelf_skill configuration blocks.

Checking Self Conditions

Misc::checkSelfCondition (<config prefix>) - returns value evaluating to boolean true if condition check is passed.

Adding Custom Self Conditions

Hook checkSelfCondition has the following fields in argument hash:

  • prefix - currently checked config block's prefix (blockOption's value would be $config{$prefix."_blockOption"})
  • return - set to 0 to indicate that condition failed