Log in

View Full Version : Empty Conditions



Maz
05-06-2008, 09:38 AM
I've always struggled to understand empty conditions but now it's finally dawned on me (Doh!), I thought I'd share. You seldom see them used but you often (I now understand) see macros that could be improved by them.

Imagine a macro such as:

/cast [target=focus,harm]Fear;Fear
You'll see this sort of thing in many macro writing guides. It means "If I have a focus and it's hostile to me, cast Fear on it, otherwise cast Fear on my current target.

This is a prime candidate for an empty condition. Consider:

/cast [target=focus,harm][]Fear
This means "If I have a focus and it's hostile to me, cast Fear on it, otherwise cast Fear on my current target.

Yep, they're exactly the same.

I don't know why it's taken me so long to understand this :)

Kaynin
05-06-2008, 10:00 AM
Grats, you just dinged a level in World of Macrocraft. :D

This won't really matter much unless you're edging the 255 character limit. This shaves off a few characters and you could potentially fit more in one macro this way. ^^

Chorizotarian
05-06-2008, 07:37 PM
This won't really matter much unless you're edging the 255 character limit. This shaves off a few characters and you could potentially fit more in one macro this way. ^^

God I hate the 255 character limit.

Maxion
05-07-2008, 08:11 AM
TrinityBars has a 1023 character limit or so on its macros, and no limit to how many of them you can have :love:

Djarid
05-07-2008, 08:31 AM
does /click work with trinity bars? I haven't tried it