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

SmartAOE command issued from ScriptCards ignores colors

I am having an interesting problem. SmartAOE called from ScriptCards is not honoring the colors. Here is the smartaoe command. Select a token and run this command. It draws a yellow circle. !smartaoe --aoeColor|#ffff0050 --aoeOutlineColor|#00000050 --aoeType|circle, float --forceIntersection|0 --radius|7.5ft --controlTokName|self Now, embed the same command in ScriptCards. It will ignore aoeColor and  aoeOutlineColor , and  draws a circle using default colors. !script{{ --@smartaoe|_playerID|[&SendingPlayerID] _selectedID|@(selected.token_id) _aoeColor|#ffff0050 _aoeOutlineColor|#00000050 _aoeType|circle, float _forceIntersection|0 _radius|7.5ft _controlTokName|self }} What am I missing?
1719527443
David M.
Pro
API Scripter
Ok, I can confirm that there is some weirdness going on here. It's interesting that if you use SelectManager with a forselected command in that macro rather than using playerID and selectedID, it seems to work fine. Until I can track this down, here is a workaround. If you have SelectManager (or the Meta Toobox) installed, this should work: !script{{ --@forselected|smartaoe _aoeColor|#ffff0050 _aoeOutlineColor|#00000050 _aoeType|circle, float _forceIntersection|0 _radius|7.5ft _controlTokName|self }}
Thank you. That workaround worked. :-)
1719528935
David M.
Pro
API Scripter
I found the problem. Typo in the code block that deals with SmartAoE calls from other scripts. The result is that the colors were defaulting to the calling player color. I will push a correction in the next update.