This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Using /stopmacro with modifiers
Post Reply
Return to board index
Post by
Maelchav
Hello all.
I wanted to get some feedback about this. I wrote a macro I'd like to use on my priest, but I came up with two ways to write it, and I'm not sure if there's a difference between them.
#showtooltip
/cast Lifeblood
/cast Desperate Prayer
/cast Resurrection
#showtooltip
/cast Lifeblood
/cast Desperate Prayer
/stopmacro
/cast []Resurrection
This
should
(I think) cast Lifeblood and Desperate Prayer (both self-only spells) if I'm holding down Alt, simultaneously since Lifeblood doesn't incur the GCD; if not holding Alt, it should cast Resurrection on my current friendly (dead) target, or my friendly (dead) focus, or just cast it and let me target if neither of those exists.
First, will it function the way I think it will? Assuming I am an herbalist with the Desperate Prayer talent...
And second, will one of the above versions do something different than the other?
Thanks very much!
Post by
Wildhorn
First, will it function the way I think it will?
What about you try it and figure it out by yourself?
Post by
pelf
They should be equivalent.
I might ask whether you intended your target to override your focus for Resurrect, though. If not, the conditional should be before .
Post by
Maelchav
Thanks, pelf. Yeah, if I target someone who is dead I want to resurrect that character, if I haven't targeted a dead character, I'd want to resurrect my focus (if dead), and if neither of those is the case, then I'd want to just cast it and let me select my target.
And thanks to you, Wildhorn. I'll definitely try it out when my priest is of the level to use it. In the meantime, I'd like to get insight from the more-experienced macro writers here in case I miss some subtle difference in how the two versions work.
Post by
Wildhorn
and [] will conflict each others. Both are target=target
Post by
pelf
and
Hmm ... I suppose they're redundant, but bracketed condition groups are OR and evaluated left-to-right so they shouldn't conflict, per se. It
will
cause it to try to resurrect someone who is alive or not friendly, though...
...actually, wouldn't the [] at the end cause it to do the lit-cursor-waiting-for-target cast version of Resurrect when you have no target so that you can resurrect untargetable players (i.e. someone who has released)?
Post by
Maelchav
That was my intent with the does? Maybe I misunderstood what I read. Thanks!
Post by
Wildhorn
Yeah thats what i meant... they wont conflict, but are redundant.
But yeah, [] will proc the cursor if nothing else work.
So just forget what i said.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.