How to tell if there is a combat ability currently running
Posted: Wed Aug 08, 2007 5:28 am
Apologies if this has been answered somewhere else. I tried search and didn't easily find the answer.
I wanted to be able to check if there was a combat ability currently running so that I didn't try and start a second or third ability running at the same time (which wouldn't work!). The only way to tell seems to be to check for the label text in the combat abilities window being currently set to "No Effect" like this:
For a real use of this check, I have the following inside a Combat sub-routine:
I wanted to be able to check if there was a combat ability currently running so that I didn't try and start a second or third ability running at the same time (which wouldn't work!). The only way to tell seems to be to check for the label text in the combat abilities window being currently set to "No Effect" like this:
Code: Select all
${Window[CombatAbilityWnd].Child[CAW_CombatEffectLabel].Text.Equal[No Effect]}
Code: Select all
/if (${Me.CombatAbilityReady[Savage Onslaught Discipline]} && ${Target.PctHPs} > 10 && ${Me.PctEndurance} > 50 && ${Window[CombatAbilityWnd].Child[CAW_CombatEffectLabel].Text.Equal[No Effect]}) {
/disc Savage Onslaught Discipline
}
/if (${Me.CombatAbilityReady[Furious Discipline]} && ${Target.PctHPs} > 10 && ${Me.PctEndurance} > 50 && ${Window[CombatAbilityWnd].Child[CAW_CombatEffectLabel].Text.Equal[No Effect]}) {
/disc Furious Discipline
}
/if (${Me.CombatAbilityReady[Fellstrike Discipline]} && ${Target.PctHPs} > 10 && ${Me.PctEndurance} > 50 && ${Window[CombatAbilityWnd].Child[CAW_CombatEffectLabel].Text.Equal[No Effect]}) {
/disc Fellstrike Discipline
}