onAction: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with '; onAction [<AI sequences>] : If this option is set, the block will only be used if at least one of the specified comma-separated list of AI sequences is curently active. : See …')
 
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
; onAction [<AI sequences>]
; onAction [<AI sequences>]
: If this option is set, the block will only be used if at least one of the specified comma-separated list of AI sequences is curently active.  
; homunculus_onAction [<AI sequences>]
: See [[notOnAction]] for a list of AI Sequences.
; mercenary_onAction [<AI sequences>]
: If this option is set, the block will only be used if at least one of the specified comma-separated list of [[ai|AI]] sequences is curently active.  
 
; notOnAction [<AI sequences>]
; homunculus_notOnAction [<AI sequences>]
; mercenary_notOnAction [<AI sequences>]
: If this option is set, the block will only be used if none of the specified comma-separated list of AI sequences is curently active.
 
== Notes ==
 
There are around 29 known AI sequences, but the following are the only ones you can use in this option:
{| class="wikitable" border="1"
!AI Sequence
!Block Options Supported
|-
|align=center|attack
|align=center|attackComboSlot, attackSkillSlot, useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
|-
|align=center|follow
|align=center|buyAuto, useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
|-
|align=center|items_gather
|align=center|useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
|-
|align=center|items_take
|align=center|useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
|-
|align=center|mapRoute
|align=center|useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
|-
|align=center|move
|align=center|partySkill, monsterSkill
|-
|align=center|route
|align=center|buyAuto, useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
|-
|align=center|sitAuto
|align=center|useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
|-
|align=center|skill_use
|align=center|useSelf_item, useSelf_skill, equipAuto
|-
|align=center|take
|align=center|useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
|-
|}
 
== Examples ==
 
useSelf_skill Heal {
hp < 20%
notOnAction sitAuto
}
 
: Use Heal when hp is bellow 20% and AI is not sitAuto.
 
[[Category:Self Condition]]

Latest revision as of 21:46, 18 September 2022

onAction [<AI sequences>]
homunculus_onAction [<AI sequences>]
mercenary_onAction [<AI sequences>]
If this option is set, the block will only be used if at least one of the specified comma-separated list of AI sequences is curently active.
notOnAction [<AI sequences>]
homunculus_notOnAction [<AI sequences>]
mercenary_notOnAction [<AI sequences>]
If this option is set, the block will only be used if none of the specified comma-separated list of AI sequences is curently active.

Notes

There are around 29 known AI sequences, but the following are the only ones you can use in this option:

AI Sequence Block Options Supported
attack attackComboSlot, attackSkillSlot, useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
follow buyAuto, useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
items_gather useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
items_take useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
mapRoute useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
move partySkill, monsterSkill
route buyAuto, useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
sitAuto useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto
skill_use useSelf_item, useSelf_skill, equipAuto
take useSelf_item, useSelf_skill, partySkill, monsterSkill, equipAuto

Examples

useSelf_skill Heal {
	hp < 20%
	notOnAction sitAuto
}
Use Heal when hp is bellow 20% and AI is not sitAuto.