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
}

