Log in

View Full Version : /cast [target=focustarget] macro help



warwizard
09-13-2009, 02:47 AM
I am having a lousy time trying to switch from
/assist focus

to /cast [target=focustarget.mod:shift] chain lighting [target=focustarget.nomod] lighting bolt

can anyone point me to my mistake?

Bettysue
09-13-2009, 02:57 AM
Well if you copy pasted that macro in you have a couple spelling problems and a formatting problem

Here it is corrected with the corrections in bold and below that is a copy paste friendly version.

/cast [target=focustarget,mod:shift] chain lightning; [target=focustarget,nomod] lightning bolt

/cast [target=focustarget,mod:shift] chain lightning; [target=focustarget,nomod] lightning boltYou can't see it with the bolding but the separator in the parameters block is a comma (,) not a period (.)

warwizard
09-13-2009, 02:55 PM
other than my bad spelling the . vs , was my undoing :)

Bettysue
09-13-2009, 07:54 PM
Hey at least it was an easy fix :D

Gadzooks
09-15-2009, 05:19 AM
other than my bad spelling the . vs , was my undoing :)

I've been writing my macros in a text editor and making the text larger, to spot things like that, helps a lot, the text box in the game is too wonky.

(I was recently tearing my hair out over a rogue macro recently, would get to a point, and stop. Commas were right...oh, I spelled "Eviscerate" as "Eviserate".

Doh.

Multibocks
09-15-2009, 11:19 AM
lol nice catch!

Bettysue
09-15-2009, 11:28 AM
I take no real credit for finding the problem, other than running into the same thing myself I now use http://www.macroexplain.com when i have troubles like this one. It tells you what a macro does but has another nice feature which is point out the typos, the font is nice and clear there, I just copied the macro over and got
"expected a target but got .mod:shift"
as an error, if it doesn't spell it out for you at least you know where it went wrong.

I think I have fursphere to thank for the site...but I may be wrong, I do know it was in a post somewhere on this site though.