Log in

View Full Version : Grrr - Combo LB/LHW macro only casting LB



Zzyzxx71
02-13-2009, 12:38 PM
The idea here is to have 1 shammy randomly toss a LHW on the tank from time to time.

I use the no focus method (this is not the leaderless method) in which all of the followers always have the leader targetted and base their attacks off of his target.

macro is as follows

/castrandom [target=targettarget] [] Lightning Bolt, Lesser Healing Wave

Whenever the leader doesn't have anything targetted, mashing this (obviously) will cause endless LHW's - but if I have something targetted with the leader, it seems to only LB..

I think the internal logic is A: what's the command (castrandom) B: Apply the conditions, and then C: RNG and pick a spell

... where the logic should be (IMO) command, RNG pick spell, THEN Apply condition... at least for castrandom.

Thoughts?

*disclaimer* please no "go focus" or "change everything about the way your doing it" responses. I'm more than happy with the way my approach works, everyone runs into a speedbump now and then.

emesis
02-13-2009, 01:38 PM
I think you've answered your own question. It evaluates the target conditions, then picks a random spell.


You _might_ be able to get something like this to work by:

/castrandom [target=targettarget] Lightning Bolt,
/cast Lesser Healing Wave

Note the trailing comma on the first line of the macro. If the first line doesn't cast a spell, it should not invoke the GCD and should pass through to the second line. Haven't tested this though.

Zzyzxx71
02-13-2009, 02:08 PM
interesting, that looks like it should work - I'll give it the onceover and drive it around the block tonight - thanks!

elsegundo
02-13-2009, 02:40 PM
/castrandom [target=targettarget] [] Lightning Bolt, Lesser Healing Wave

Whenever the leader doesn't have anything targetted, mashing this (obviously) will cause endless LHW's - but if I have something targetted with the leader, it seems to only LB..
your target can be either harmful or helpful. lightning bolt will only go off at harmful targets, lesser healing wave will only go off at helpful targets. ie. you cannot heal a mob. this is why it does what it does.

Zzyzxx71
02-13-2009, 02:54 PM
The group leader is targetted all the time - is LHW is selected by castrandom, that fits with the [] condition - if the LB is selected, that fits with the [target=targettarget] condition.

It's not that it NEVER casts LHW, it's that it only casts it when the leader doesn't have anythign targetted or has a friendly targetted.

elsegundo
02-13-2009, 02:59 PM
your castrandom is to cast a spell randomly, not evaluate a condition randomly. yea you'll have to find a workaround for that. im a bit busy at work today so i'll have to think about this later.

Zzyzxx71
02-13-2009, 03:03 PM
OK breaking into theorycrafting here...

WTB - -

/castrandom [target=targettarget] Lightning Bolt, [] Lesser Healing Wave

EDIT:

http://www.wowinsider.com/2008/03/30/macro-anatomy-castrandom/ <-- is implying that conditions can be placed within each "spell area" - I can't try it at work... this is hawt though.

elsegundo
02-13-2009, 05:20 PM
OK breaking into theorycrafting here...

WTB - -

/castrandom [target=targettarget] Lightning Bolt, [] Lesser Healing Wave

EDIT:

http://www.wowinsider.com/2008/03/30/macro-anatomy-castrandom/ <-- is implying that conditions can be placed within each "spell area" - I can't try it at work... this is hawt though.this may work as described, but i do think that the target=targettarget will probably break the macro. but do try it when you get home and tell us about it.

puppychow
02-13-2009, 05:31 PM
No, castrandom and castsequence do NOT support multiple [] target selections on multiple spells -- the above does not work (tested just now). You have to keep all your "target" logic at the beginning, you can't have any more one a spell name is in place. The original suggestion does work however, just having a "dropdown" condition. I would suggest something like:


#showtooltip
/castrandom [target=targettarget] Lightning Bolt, Lightning Bolt, Lightning Bolt,
/cast Lesser Healing Wave

(you can add/remove LBs depending on how often you want LHW tossed off, if you just have 1 LB theres a 50% chance LB will go off and a 50% chance LHW, with 3 LBs its 75/25).

Remember, [target=targettarget] is saying use target-of-target for this next cast. Its not an evaluation, its not a "do I have a target selected?" check, its just simply telling the cast what the target is. There is no way to make multiple targets off one single cast line as far as I know, since the evaluations all occur FIRST and then the spell being cast is selected. You can make the evaluations as complex as you want, but there is no way to choose multiple targets, you only have to use the drop-down logic of a "," which means "do nothing, don't eat the GCD and continue to next line".

You can make the macro even more fancy with things like:

#showtooltip
/castrandom [target=targettarget,nomod,harm] Lightning Bolt, Lightning Bolt, Lightning Bolt,
/cast [mod:shift] Lesser Healing Wave
/cast Lesser Healing Wave

this will LB tgt-of-tgt if no modifier is pressed and the target is an enemy. if shift is pressed it'll always cast LHW. If nothing is pressed and nothing is cast the first line (25% chance) then it'll drop all the way down and cast LHW as well -- this lets you force a LHW with a shift, and still gives you random LHWs.

Zzyzxx71
02-13-2009, 06:25 PM
Excellent news! I'll be using it tonight - as far as target=targettarget's function, I'm more than aware. :D

The No Focus Manifesto v0.1 ('http://www.dual-boxing.com/forums/index.php?page=Thread&threadID=8052')

Thanks for testing!

elsegundo
02-13-2009, 08:24 PM
=p

Zzyzxx71
02-13-2009, 08:31 PM
:S

elsegundo
02-13-2009, 08:47 PM
tis what i modeled my first team after... no focus. tried focus on my second team. it works either way. but i've found pros and cons for different situation. now many of my macros have this integrated where i will assist focus first if he's friendly, then assits target if target's target is harmful.... its complicated.