Difference between revisions of "GetCombatState"
Jump to navigation
Jump to search
imported>SJML Bot (Bot creating condition functions pages.) |
imported>Enai Siaion |
||
Line 1: | Line 1: | ||
Gets the actor's current combat state. | |||
== Return Value == | |||
The actor's current combat state, which is one of the following values: | |||
*0: Not in combat | |||
*1: In combat | |||
*2: Searching | |||
== Bug == | |||
This condition is unreliable the first time it is called after a certain amount of time has passed. If this condition is used in a place where it is frequently checked (for instance, as a spell condition on an ability, checking every second) it will probably be correct after the first iteration. But if it is used in a single shot spell, it may not be. Try adding multiple magic effects to your spell, each checking for this condition, and only making the last one actually do something. | |||
[[Category:Condition Functions]] | [[Category:Condition Functions]] |
Latest revision as of 15:16, 21 December 2014
Gets the actor's current combat state.
Return Value[edit | edit source]
The actor's current combat state, which is one of the following values:
- 0: Not in combat
- 1: In combat
- 2: Searching
Bug[edit | edit source]
This condition is unreliable the first time it is called after a certain amount of time has passed. If this condition is used in a place where it is frequently checked (for instance, as a spell condition on an ability, checking every second) it will probably be correct after the first iteration. But if it is used in a single shot spell, it may not be. Try adding multiple magic effects to your spell, each checking for this condition, and only making the last one actually do something.