Difference between revisions of "Category:Player Condition"

From OpenKore Wiki
Jump to navigation Jump to search
m
(adding custom conditions)
 
Line 4: Line 4:
  
 
<noinclude>
 
<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]]
 
[[Category:Reference]]
 
</noinclude>
 
</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