Help me for a focus CS/KS macro

Hello all! Since yesterday i'm trying to create a macro for casting cheap shot on the focus only when i'm in stealth or in subterfuge stance and Kidney shot on focus when i'm just in normal stance.
I tried something like this :

#showtooltip Aiguillon perfide
/cast [@focus, stealth, stance:2] Coup bas, Coup bas
/cast [@focus] Aiguillon perfide

But i doesn't work, can a fellow rogue help me please ? thank you
Just put the cheapshot with a focus macro in the stealth bar
and the kidney macro on normal bar?
27/10/2018 19:13Posted by Wifeswap
Just put the cheapshot with a focus macro in the stealth bar
and the kidney macro on normal bar?


I can't otherwise i would not create this topic
I don't understand what you try to do with ", Coup bas", but perhaps it'd be "cleaner" simply with something like:

/cast [@focus,nostance] Aiguillon perfide; [@focus] Coup bas

This would cast Kidney Shot on your focus if it exists and you're not in Stealth or Subterfuge, and cast Cheap Shot on your focus otherwise.

Personally I don't like putting things in separate lines when I don't have to because it will try to execute all that meet the conditionals and whether they work or not will depend on things like the GCD, so they are harder to interpret.
Where does it hang with this macro? Other than that I'd suggest adding stance:0 for the kidney shot.

Something like this

#showtooltip
/cast [@focus, stance:2] Coup bas
/cast [@focus, stance:1] Coup bas
/cast [@focus, stance:0] Aiguillon perfide


Of course that doesn't work if you don't have a focus so maybe adding some "exists" there might help.

P.S. I like putting things in different lines. It helps with reading clarity and you don't get to be lazy when creating conditionals.
29/10/2018 09:13Posted by Saro
P.S. I like putting things in different lines. It helps with reading clarity and you don't get to be lazy when creating conditionals.


Yeah that's indeed fine if you make them explicitly mutually exclusive like you did with stance on every case. I just meant that in clear if/then/else situations you can just put them in the same line, which isn't "lazy" but rather makes the "else" evident from the semicolon without having to check which conditions are or are not shared across lines, as they may overlap.

Anyway, pure macros are all simple enough to read without trouble.
hey thank you for your answer, i finally found the macro i wanted to create yesterday.
If you wanna see it :

#showtooltip [stance:0]Aiguillon perfide ; [stance:1/2/3] Coup bas
/cast [@focus, stance:3/2/1]Coup bas ; [@focus, stance:0] Aiguillon perfide
1 Like