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 .
×

Macro I use in my legacy games won't work in my jumpgate game

Hi, I created this macro in my legacy games for the DM to use to easily roll NPC/monster attacks and keep it organised who was attacking who and I copied and pasted the code into the new jumpgate game and it doesn't work there. I sent the code to someone online who says it DOES work in their jumpgate game, but I can't figure out what's going wrong with mine. I've tried using both Chrome and Edge. I've tried it on two different windows PCs and the result is the same. /as @{selected|token_name} &{template:default} {{name=Attack}} {{attack=[[1d20 + ?{Attack Bonus|0}]] to hit @{target|token_name}}} In the jumpgate game it goes wrong when I try to click a target token. It doesn't seem to matter which target token I try; whether it's linked to a character sheet or not. I get the same errors.
1775334614

Edited 1775334861
Gauss
Forum Champion
Hi Topher J.,  Test a token with a single name without any control characters. See if it works then.  If it does then the problem may be the name of the selected token. I know that with /w (whisper) it can fail to pick up the second name unless you wrap the name in quotes.  Example: Character's name is George McFly.  /w @{selected|character_name} blahblahblah would show up as:  message whispered to George (not George McFly):  Mcfly blahblahblah The solution for that in the case of whispering is to wrap in quotes. /w "@{selected|character_name}" blahblahblah That may be the solution here too. Edit: confirmed, I tested it and that can definitely be a problem.   If that does not solve the problem you are having please post screenshots of what you are seeing as the error.
No, it fails to work in the Jumpgate game no matter who the selected token or the target token is, and whether they're associated with characters or not. Conversely, it ALWAYS works in the legacy game, no matter who the selected token is or the targeted token is. I tried adding quotes, and all that did was add quotes in the template box where it displays "@{target|token_name}" instead of the token's name. I see my screenshot didn't appear in my post. I'll try to add one here.
See if I can post screenshots now by attaching files...
1775343125
Gauss
Forum Champion
Please PM me an invite to the affected game so that I may come take a look. 
1775349216

Edited 1775349284
Gauss
Forum Champion
Alright, for anyone following the problem appears to be that an draw object (circle) was on top of the token(s). While the token(s) could be selected the target process was trying to target the draw object.  Moving the draw object to back allowed the token to be selected, but that isn't how it behaved in the Legacy VTT engine. 
Thank you  Gauss. Solved a similar problem for me.