whenStatusActive: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
''[[:Category:Self Condition|Self Conditions]]:''
''[[:Category:Self Condition|Self Conditions]]:''


; whenStatusActive [<[[References#Status Names|status names or handles]]>]
; whenStatusActive <[[References#Status_Names|status name]]s>
: If this option is set, the block will only be used if at least one of the specified comma-separated list of status names is currently active on your character.
; mercenary_whenStatusActive <[[References#Status_Names|status name]]s>
: If this option is set, the block will only be used if ''at least one of the specified'' comma-separated list of status names is currently active on your character or mercenary.


; whenStatusInactive [<[[References#Status Names|status names or handles]]>]
; whenStatusInactive <[[References#Status_Names|status name]]s>
: If this option is set, the block will only be used if none of the specified comma-separated list of status names is currently active on your character.
; mercenary_whenStatusInactive <[[References#Status_Names|status name]]s>
: If this option is set, the block will only be used if ''none of the specified'' comma-separated list of status names is currently active on your character or mercenary.


''Target [[:Category:Monster Condition|Monster]] and [[:Category:Player Condition|Player]] Conditions:''
''Target [[:Category:Monster Condition|Monster]] and [[:Category:Player Condition|Player]] Conditions:''


; target_whenStatusActive [<[[References#Status Names|status names or handles]]>]
; target_whenStatusActive <[[References#Status_Names|status name]]s>
: If this option is set, the block will only be used if at least one of the specified comma-separated list of status names is currently active on block's target.
: If this option is set, the block will only be used if ''at least one of the specified'' comma-separated list of status names is currently active on block's target.


; target_whenStatusInactive [<[[References#Status Names|status names or handles]]>]
; target_whenStatusInactive <[[References#Status_Names|status name]]s>
: If this option is set, the block will only be used if none of the specified comma-separated list of status names is currently active on block's target.
: If this option is set, the block will only be used if ''none of the specified'' comma-separated list of status names is currently active on block's target.


== Notes ==
== Notes ==


Statuses can be found by typing [[s]] in the console (or looked up in character status window of [[Wx Interface]]) while the status is active on your character. You can also look for them in the [[tables]] folder, in the files [[STATUS_id_handle.txt]] (handles) and [[skillsstatus.txt]] (names).
* Statuses can be found by typing [[s]] in the console (or looked up in character status window of [[Wx Interface]]) while the status is active on your character. You can also look for them in the [[:Category:tables|tables]] directory, in the files {AILMENT,LOOK,STATE,STATUS}_id_handle.txt (handles) and statusnametable.txt (names).


Currently, known statuses for monsters/players are lost when they leave your screen, so [[target_timeout]] may be more appropriate.
* Currently, known statuses for monsters and players are lost when they leave your screen, so [[target_timeout]] may be more appropriate. Otherwise, for example, you will rebuff everyone who disappears from your sight as soon as they show back up.
 
* On most servers, only statuses which are visible in RO client (like Silenced) are available to check on other actors than yourself, because the server doesn't send information about invisible statuses.


== Examples ==
== Examples ==
 
Use Cart Termination on Hill Winds only if Cart Boost effect is activated:
  attackSkillSlot Cart Termination {
  [[attackSkillSlot]] [[References#Skill_Names|skill name|WS_CARTTERMINATION]] {
  monsters Hill Wind
  [[monsters]] [[References#Monster_Names|Hill Wind]]
  whenStatusActive Cart Boost
  whenStatusActive EFST_CARTBOOST
  }
  }


: Use Cart Termination on Hill Winds only if Cart Boost effect is activated.
Use Blessing level 10 on yourself when sp is greater than 70 and Blessing status if off:
 
  [[useSelf_skill]] [[References#Skill_Names|AL_BLESSING]] {
  useSelf_skill Blessing {
  [[lvl]] 10
  lvl 10
  [[sp]] > 70
  sp > 70
  whenStatusInactive EFST_BLESSING
  whenStatusInactive AL_BLESSING
  }
  }
: Use Blessing level 10 on yourself when sp is greater than 70 and Blessing status if off.


[[Category:Self Condition]]
[[Category:Self Condition]]

Latest revision as of 21:45, 18 September 2022

Self Conditions:

whenStatusActive <status names>
mercenary_whenStatusActive <status names>
If this option is set, the block will only be used if at least one of the specified comma-separated list of status names is currently active on your character or mercenary.
whenStatusInactive <status names>
mercenary_whenStatusInactive <status names>
If this option is set, the block will only be used if none of the specified comma-separated list of status names is currently active on your character or mercenary.

Target Monster and Player Conditions:

target_whenStatusActive <status names>
If this option is set, the block will only be used if at least one of the specified comma-separated list of status names is currently active on block's target.
target_whenStatusInactive <status names>
If this option is set, the block will only be used if none of the specified comma-separated list of status names is currently active on block's target.

Notes

  • Statuses can be found by typing s in the console (or looked up in character status window of Wx Interface) while the status is active on your character. You can also look for them in the tables directory, in the files {AILMENT,LOOK,STATE,STATUS}_id_handle.txt (handles) and statusnametable.txt (names).
  • Currently, known statuses for monsters and players are lost when they leave your screen, so target_timeout may be more appropriate. Otherwise, for example, you will rebuff everyone who disappears from your sight as soon as they show back up.
  • On most servers, only statuses which are visible in RO client (like Silenced) are available to check on other actors than yourself, because the server doesn't send information about invisible statuses.

Examples

Use Cart Termination on Hill Winds only if Cart Boost effect is activated:

attackSkillSlot skill name|WS_CARTTERMINATION {
	monsters Hill Wind
	whenStatusActive EFST_CARTBOOST
}

Use Blessing level 10 on yourself when sp is greater than 70 and Blessing status if off:

useSelf_skill AL_BLESSING {
	lvl 10
	sp > 70
	whenStatusInactive EFST_BLESSING
}