This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
/cast conditional clarification for my edification
Post Reply
Return to board index
Post by
pelf
Would someone please tell me exactly what is the difference between the functionality of these macros (and, what it is they do, exactly):
/cast Heal; Heal
/cast Heal; Heal
/cast
I'm not too shabby at making macros, but I find I'm a bit foggy on when to use the empty brackets ( ), when to leave an unconditional cast after the final semicolon ( ; Heal ) and what exactly is the difference between stacking the conditionals ( ) and breaking them into multiple bracket sets ( ).
Thanks :).
Post by
Ikari
I've never heard of leaving empty brackets before.
As for the difference between 1 and 2. I don't think 2 would work, though I could be wrong than I would imagine its identical to #1.
You use "Heal; Heal" for when you want an action performed when the first condition is met. So with Macro #1, if you mouse over a hostile target, or a dead friendly, you will instead heal either your target, or yourself if you have no target and Self-Cast on.
Post by
Tildy
Conditionals inside a single set of brackets can be thought of as , and two or more sets of brackets can be thought of as OR .
An empty set of brackets will always evaluate to true.
/cast Heal; Heal
Cast Heal on your mouseover target IF it is not dead AND IF it is able to receive the helpful spell, ELSE cast Heal. Note that exactly how the ending cast of Heal functions depends on some user settings in the Interface menu such as Auto Self Cast toggle.
/cast Heal; Heal
Cast Heal on your mouseover target IF it is not dead OR IF it is able to receive your helpful spell, ELSE cast Heal.
/cast
Cast Heal on your mouseover target IF it is not dead AND IF it it is able to receive your helpful spell, OR cast Heal.
The first and third macro should be practically identical functionally, while the second actually uses different logic and is functionally different (even if the difference is just that you'll potentially receive casting error messages more often).
Whereas in the first macro a DIFFERENT spell could be specified after the semicolon as a 'default' cast if the conditionals fail, the second macro cannot do this as written. The same spell being tested for by conditionals is being set as the 'default' cast by the empty brackets.
Post by
pelf
Tildy you rock! Thank you. I KNEW the first and third were functionally similar, at least. So, the empty brackets can be sort of used as shorthand for the conditionless last cast parameter if it's the same as the first.
I was pretty sure the inside/outside thing was AND/OR respectively, but wasn't totally sure.
Thanks for the clarification, guys!
Post by
6893
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.