
Originally Posted by
noodles355
Are random spellcast questions allowed in this thread?
I would paste over in the windower spellcast support forum, but I'd actually like a reply this year.
Using | works as OR, example: <if BuffActive="Protect|Shell">...</if> means "If protect OR shell are active, do ..."
What's the command for AND? I've tried <if BuffActive="Protect&Shell">...</if>, hoping to mean "If protect AND shell are active, do ..." but it doesn't work.
Please tell me there's a really simple way of doing this?
I also tried doing <if BuffActive="Protect" BuffActive="Shell">...</if> But SC doesn't like two instances of BuffActive in the same tag apparantly.
Sorry if SC questions aren't allowed.
By default all spellcast rules are AND so,
<if spell="refresh" NotBuffActive="Composure">
Will fire if you are casting refresh AND composure is down.
You can change the mode to OR by adding:
<if mode="OR" Skill="EnfeeblingMagic" Spell="Cure*">
For example would fire if I cast enfeebling or a cure spell.
But I don't know how to check for both Protect and Shell are up in 1 line (although I am sure there must be a way).
Code:
<if BuffActive="Protect" >
<if BuffActive="Shell">
Meat of the rule here
</if>
</if>
Not an elegant solution, but would work.