PDA

View Full Version : requesting troubleshooting help with fall through shaman macros



echo
10-22-2008, 04:53 PM
Hello macro experts :) Hopefully you can help me with this macro

#showtooltip
/cast [target=focustarget, harm, nomod] [target=party1target, harm, nomod] [] lightning bolt
/cast [target=focustarget, harm, mod:alt] [target=party1target, harm, mod:alt] [] chain lightning
/cast [target=focustarget, help, nomod] [target=party1target, help, nomod] [] lesser healing wave
/cast [target=focustarget, help, mod:alt] [target=party1target, help, mod:alt] [] chain heal

What I'm trying to accomplish is the following

- if target is "harm", no mod keys pressed, then lightning bolt
- if target is "harm", alt key is pressed, chain lightning
- if target is "help", no mod key is pressed, then lesser healing wave
- if target is "help", alt key is pressed, then cast chain heal.

for all of the above, to first cast it on focus target if it exists, if not then do the same thing for party1target if it exists, if not, then cast the spell at my own current target

All of this is inputted directly into a macaroon macro button. for some reason it only shows the lightning bolt icon, and doesnt change to healing spells when i select a team member, and it does show a chain lightning icon when i hold down alt. actually, it has a lightning bolt icon up even if i have nothing targetted. for this test, i had myself set as the focus.

however, this is my old macro, and it works

#showtooltip
/cast [target=focustarget,help,nodead,modifier:ctrl]healing wave
/cast [target=focustarget,help,nodead]lesser healing wave
/cast [target=focustarget,nodead,harm]lightning bolt

they are conceptually similar macros, why does the first one fail but 2nd one work?

Anyone that can help me understand what i'm doing wrong will have awesome karma for the rest of your day, as my failing to get this macro working is basically all that's stopping me from getting my team operational. :(

Thanks in advance to any who can help!


p.s. (while on the subject of macros, is there anyway to copy one toon's macaroon macros directly to another toon's? my teams are usually identical in all setup but character name, if that helps any. Like is there a macro cache file that i can copy from the configured toon to the alts? not a big deal but just with multiple teams to setup, this will be a time saver) :)

sedory
10-23-2008, 02:05 AM
#showtooltip
/cast [target=focustarget, harm, nomod] [target=party1target, harm, nomod] [] lightning bolt
/cast [target=focustarget, harm, mod:alt] [target=party1target, harm, mod:alt] [] chain lightning
/cast [target=focustarget, help, nomod] [target=party1target, help, nomod] [] lesser healing wave
/cast [target=focustarget, help, mod:alt] [target=party1target, help, mod:alt] [] chain heal

I believe the first two conditions on each are fine, but the third is not implying the harn/help & mod conditions for your target, so it's always true. I believe changing it like so may be better:


#showtooltip
/cast [target=focustarget, harm, nomod] [target=party1target, harm, nomod] [harm, nomod] lightning bolt
/cast [target=focustarget, harm, mod:alt] [target=party1target, harm, mod:alt] [harm, mod:alt] chain lightning
/cast [target=focustarget, help, nomod] [target=party1target, help, nomod] [help, nomod] lesser healing wave
/cast [target=focustarget, help, mod:alt] [target=party1target, help, mod:alt] [help, mod:alt] chain heal

Hachoo
10-23-2008, 02:18 AM
You dont need the [harm] in the last bracket, just the [nomod], [mod:alt], etc...

basically if you have [] but don't specify nomod in it, then it will ALWAYS be true if that button is pressed, whether a mod is pressed or not.

So basically:

#showtooltip
/cast [target=focustarget, harm, nomod] [target=party1target, harm, nomod] [nomod] lightning bolt
/cast [target=focustarget, harm, mod:alt] [target=party1target, harm, mod:alt] [mod:alt] chain lightning
/cast [target=focustarget, help, nomod] [target=party1target, help, nomod] [nomod] lesser healing wave
/cast [target=focustarget, help, mod:alt] [target=party1target, help, mod:alt] [mod:alt] chain heal

Will work with error messages. You do have to add the harm, or help, if you want it to work without error messages.

echo
10-23-2008, 02:33 AM
Thank you Sedory and Hachoo for your prompt and helpful response! Really kind of you both to help me out with this. What threw me was when I read this
Using 'party1target' instead of 'focustarget' ('http://www.dual-boxing.com/forums/index.php?page=Thread&postID=63360#post63360')
I didnt know what a blank [ ] really meant. Thank you both for teaching me! :)

(wish there was a way to award points to posters who solve problems like there is in some other forums) :p

Tynk
10-23-2008, 03:30 AM
they beat me to it.....

sedory
10-23-2008, 04:44 AM
@hachoo - as he has harm or help options, he may have to have them in the last condition as if he's targeting a friendly unit the first two conditions on line 1 will fail, but without harm in the last it will attempt to cast LB, fail, then cast the heal... if he has the harm/help in the last tag he will not get any error messages about casting those spells on the wrong target.

Hachoo
10-23-2008, 06:48 AM
Thats what I said in my post :) Without the help/harm it will still work, it will just give errors, but some people may want to do that just to save the macro space.

sedory
10-23-2008, 03:55 PM
sorry, I was fairly busy at work when I replied and missed that.