Difference between revisions of "hp"

From OpenKore Wiki
Jump to navigation Jump to search
m
(merge)
Line 1: Line 1:
 +
''[[:Category:Self Condition|Self Conditions]]:''
 +
 
; hp [<[[References#Range Operators|range]]> [%]]
 
; hp [<[[References#Range Operators|range]]> [%]]
: If this option is set, the block will only be used if the amount of HP is within the specified range. The amount of hp can be in % (percent) or it can the the absolute amount of hp.
+
: If this option is set, the block will only be used if the amount of your HP is within the specified range. The amount of hp can be in % (percent) or it can the the absolute amount of hp.
 +
 
 +
''Target [[:Category:Player Condition|Player]] Conditions:''
 +
 
 +
; target_hp [<[[References#Range Operators|range]]> [%]]
 +
: If this option is set, the block will only be used if the player's HP is within the specified range. The amount of hp can be in % (percent) or it can the the absolute amount of hp.
 +
 
 +
== Examples ==
  
'''Examples:'''
 
 
* Use White Potion when your hp is bellow 800.
 
* Use White Potion when your hp is bellow 800.
 
  useSelf_item White Potion {
 
  useSelf_item White Potion {

Revision as of 14:21, 10 January 2010

Self Conditions:

hp [<range> [%]]
If this option is set, the block will only be used if the amount of your HP is within the specified range. The amount of hp can be in % (percent) or it can the the absolute amount of hp.

Target Player Conditions:

target_hp [<range> [%]]
If this option is set, the block will only be used if the player's HP is within the specified range. The amount of hp can be in % (percent) or it can the the absolute amount of hp.

Examples

  • Use White Potion when your hp is bellow 800.
useSelf_item White Potion {
	hp < 800
}
  • Use White Potion when hp is bellow 10%. So, if you have 100 maximum hp it will use White Potion when your hp is bellow 10, because 10% of 100 is 10.
useSelf_item White Potion {
	hp < 10%
}