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

Drawing new figure from the Journal breaks {target} macros.

My players and I were excited to use the new {target} macro system. Everyone went through before last night's game and beefed up their macros to automatically deduct the enemy's defensive stats from their attacks. So their macro would say, for example: [[d20+14-@{target|AC}]] At first it worked perfectly. They clicked on the dragon, and if their number was zero or higher they hit it. Easy enough. But then one of them created a zone. I have semi-transparent pre-sized zones in the journal, so I can just drag them onto the map. Once I'd done this, everyone's macros broke. It stopped recognizing any of the defensive stats on their targets. I deleted all the tokens on the map and pulled them out fresh ones from the journal. Everything was fixed, for the next few rounds of combat. Then someone summoned their familiar (another thing I have listed in the journal with an associated token). I pulled the thing out and placed it on the field. Suddenly, everyone's macros stopped working again. They clicked an attack and selected the dragon as a target--the macro ran, but with an error. So this time I just tried deleting the fairy instead of deleting everybody. Everything started working again. TL;DR - Adding a new token from my journal to the map mid-combat caused everyone's {target} macro functionality to break, twice. PS - This got a little frustrating, but all of us are completely thrilled with the Rugged Reroll update!
Hi Stephen, I seem to be having trouble replicating the issue on my end. Is there any chance you could reproduce the problem in your campaign and grab any errors from the error console in your browser (Ctrl+Shift+K in Firefox, Ctrl+Shift+J in Chrome)?
I'm on a different machine, but it's doing the same thing from my work computer. Looks like I have one error that I can find: Cross-origin image load denied by Cross-Origin Resource Sharing policy. It doesn't look like the error popped up at a relevant time though. The more I've tinkered with it, the more I think I may have figured out what happened. Here's my theory: I have a transparent fog zone that I keep in my journal. It's an 11 by 11 square with no stats. When I want to have a fog zone, I drag it onto the map and shift it down to the map layer. The macros are only broken when I target someone standing ON the fog layer! I think the system is seeing a "token" that doesn't have the relevant stats, even though it's below the character tokens on the map layer. It looks like it's working if I take the zone, right click it and move it "To Back." on the object layer. But when I put it on the map layer, it screws everything up.
Oh, I see. This may be an instance of the targetting system not taking z-order into consideration correctly. So the fog item is below ("To Back") the tokens you want to click on -- as in, when you use the regular select tool, you can select the tokens?
It was indeed a z-index issue. This should now be fixed. Let me know if it's still not working for you.