Category:Self Condition

From OpenKore Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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