Trying to make a one button charge macro for my warrior to use charge, intercept, and intervene (when I get it at 70). I’ve messed around with it a couple times but just can’t get it to quite do what I want.
I’d like to be able to charge my target when out of combat, intercept when in combat AND be able to manually intercept outside of combat (with a modifier like shift), and intervene the friendly target I mouseover.
Another problem I have with it is that if I try to just use “#showtooltip” by itself it tends to show the stances instead of the abilities since a lot of the abilities for these macros I have to set a command to change stances before using the ability. So, I don’t know what would be the most efficient character count way to show charge/intercept/intervene in the tooltips but NOT the stances.
It seems like “[ ]” works like an “else” logically? like for the showtooltip line it seems like: if combat then intercept; or if mouseover help intervene; else charge? I’m just trying to understand macro syntax.
You would never Intervene, even with the correct condition being met, because the condition for charge is met no matter what. Conditions only pass on to the next one when they are not fully met.
Correct and it’ll execute top to bottom, left to right till the first condition set that returns true so you could optimize that example by putting the [mod:shift] first which would eliminate the need for nomod the second set.
/use [mod:shift] [nocombat] Ability Name
That’s also where [] comes in because in this example if you’re in combat and not holding shift then you’ll see the ? instead of the ability because neither set is true. So you stick [] on the end (or [@none] if you don’t want it to execute outside of your scripted conditons; usually only used for stuff you don’t want to auto self cast like BOP) so that a condition set always returns true and you see the ability.
You should only ever have as many cast (or use) commands as things you want to do in a single press. So all the stance changes happen first, then all the movement abilities happen second.
Ideally I’d like to add some noform:# conditions to the stance casts, so it doesn’t try to switch into a stance its already in but that pushes it up to 266 chars minimum. If the stances start toggling off and on stick ! in front of each of them and see if that fixes things.