sp: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with '; sp [<range> [%]] : If this option is set, the block will only be used if the amount of SP is within the specified range. The amount of SP can be …')
 
No edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
; sp [<[[References#Range Operators|range]]> [%]]
'''''sp''' is also a console command for [[skill Use Command|using skills on players]].''
 
''Self Condition:''
; sp <[[References#Range_Operators|range]]>[%]
; homunculus_sp <[[References#Range_Operators|range]]>[%]
: If this option is set, the block will only be used if the amount of SP is within the specified range. The amount of SP can be in % (percent) or it can the the absolute amount of SP.  
: If this option is set, the block will only be used if the amount of SP is within the specified range. The amount of SP can be in % (percent) or it can the the absolute amount of SP.  


== Examples ==


Example:
Use Blue Potion when SP is bellow 10:
  useSelf_item Blue Potion {
  useSelf_item Blue Potion {
  sp < 10
  sp < 10
  }
  }


* It will use Blue Potion when SP is bellow 10.
Use Blue Potion when SP is bellow 10%. So, if you have 200 maximum SP it will use Blue Potion when your SP is bellow 20:
 
 
Example²:
  useSelf_item Blue Potion {
  useSelf_item Blue Potion {
  sp < 10%
  sp < 10%
  }
  }


* It will use Blue Potion when SP is bellow 10%. So, if you have 100 maximum SP it will use Blue Potion when your SP is bellow 10, because 10% of 100 is 10.
[[Category:Self Condition]]

Latest revision as of 22:02, 30 April 2023

sp is also a console command for using skills on players.

Self Condition:

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

Examples

Use Blue Potion when SP is bellow 10:

useSelf_item Blue Potion {
	sp < 10
}

Use Blue Potion when SP is bellow 10%. So, if you have 200 maximum SP it will use Blue Potion when your SP is bellow 20:

useSelf_item Blue Potion {
	sp < 10%
}