Difference between revisions of "Category:Player Condition"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with 'Condition about player's status/information. Currently, only the partySkill configuration block uses these conditions.')
 
(adding custom conditions)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
Currently, only the [[partySkill]] configuration block uses these conditions.
 
Currently, only the [[partySkill]] configuration block uses these conditions.
 +
 +
<noinclude>
 +
== Adding Custom Player Conditions ==
 +
 +
Hook <code>checkPlayerCondition</code> has the following fields in argument hash:
 +
* <code>player</code> - currently checked player's Actor object
 +
* <code>prefix</code> - currently checked config block's prefix (blockOption's value would be <code>$config{$prefix."_blockOption"}</code>)
 +
* <code>return</code> - set to '''0''' to indicate that condition failed
 +
 +
[[Category:Reference]]
 +
</noinclude>

Latest revision as of 08:36, 8 September 2010

Condition about player's status/information.

Currently, only the partySkill configuration block uses these conditions.


Adding Custom Player Conditions

Hook checkPlayerCondition has the following fields in argument hash:

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