Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Trouble with multi-targeted macros

I'm trying to make a macro for using a full attack action with the new targeting options, but it's giving me an odd error. I would like to make it so that the macro asks for multiple targets (one for each attack) and I've successfully made it accept one target, but only with the default target name. If I try using the three argument version then it generates this error: "TypeError: a is undefined". (That was generated using just this: "%{target|t1|AC}"). If I get rid of the "t1|" argument then it works fine though. Any ideas on how to fix this?
1390352264
Gauss
Forum Champion
You need to change your % to @. % is for Abilities while @ is for Attributes (including target/select).
We are using abilities for our ACs to make it more flexible (save armor, shield, deflection, etc. bonuses as attributes then add the right ones as an ability to calculate it right). Is this the reason for it not working? It seems slightly funny to me that it would work fine using abilities in the two-argument version and not three.
1390357628
Gauss
Forum Champion
Abilities are a form of macro. While it appears that the %{target|abilityname} command works it appears that multi-target abilities do not. I expect that %{target|abilityname} working at all is unintentional. I will ask the Devs about this.
Yeah, that's the conclusion my DM and I came to. We'll just make do, thanks for trying though!
This was a bug, it has been fixed and it should work now. Let me know if you run into anymore issues with it. Thanks!