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

Token-mod - Is there no way to macro a square aura???

1762192119

Edited 1762192174
Cron
Pro
Trying to make a mule that you can drag out to display aura/aoe area on map. Both square spell areas and radius. It's been done before, several times, but they do not seem to be working . No matter what I try I can't make the aura square.   The aura setting seem to be the same on 2014/2024 as that part remains the same on both sheets, but I did try on both just to be safe. Jarren made one here . !token-mod --?{Show to players|on|off} showplayers_aura1 --set aura1_square|?{Shape|Circle,off|Square,on}  aura1_radius#?{Aura Radius}  aura1_color#?{Color|Red,ff0000|Green,00ff00|Blue,00ffff|Yellow,ffff00|White,ffffff} --ids @{target|token_id} This returns a round aura even if you select square. I set it to show on as I do not need the on/off, took off target id as I am running it from a token action on a mule. I looked here and tried  aura1_square|false and  aura1_square|true. That didn't work. aura1_raidus and aura1_square seem to make no difference by themselves. Would really appreciate any help on this.
1762195153

Edited 1762195273
Gold
Forum Champion
Hopefully The Aaron will come along with an authoratative answer for this. What I can say is something I've experienced with TokenMod + Jumpgate + Experimental Sandbox, and I don't know if this has been resolved? So try this, After running your command that should be setting the aura to Square. Now double-click the token to go into "Edit Token" settings, and just click SAVE there. Now your square aura will show as square. It's like, somehow tokenmod is setting the Aura to square but Jumpgate is not forcing it (allowing it) to display what you set? Until you manually click the Save button?  Let us know if this is the same issue for you
1762196663

Edited 1762196694
Cron
Pro
Yes, I figured out maybe I was trying to do too much on one line so I split it to 2 command lines. Very basic test. !token-mod --set aura1_square|true !token-mod --set aura1_radius|?{radius} This = round aura but in settings its set to square.... I thought maybe !token-mod --set defaulttoken might update token but no. Like you said manually hitting save seems only way to cause update unless someone else knows of a way to update a token.
1762197051
Gold
Forum Champion
You should be able to do it all on 1 line (That is not the issue) And it is supposed to update the Token to all your settings. Tokenmod does not need a certain command to Update the Token, any of its commands is supposed to do that. In the past it did. But it has been weird like this for a few months. 
!token-mod --set aura1_square|?{Area|⏺️ Radius,false|⏹️ Square,true} aura1_radius|?{Spell Area in ft} aura1_color#?{Color|Red,ff0000|Green,00ff00|Blue,00ffff|Yellow,ffff00|White,ffffff} That's my macro in progress, all one line, was picking it apart to try to find problem. Now trying to find something to force an update to show correct shape.
Macro works 100% fine in Legacy, so your right its definitely a Jumpgate issue. I screamed into the void by summited a bug report in hopes it reaches someone and helps at some point. I did try a ton of setting changes to token using TokenMod to try to force an update to token, moving token, changing bars, name, etc. Nothing refreshed token to display correct square Token Settings. 
I thought I might have had this figured out. A workaround using a different script. SpawnDefaultToken  since it too can set auras. No luck. Suffers from same ,formerly Jumpgate - now the standard, bug.
1762467199
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Nope. This is a VTT issue. Token mod is issuing the command and setting the value correctly, you can check by opening the token settings dialog. Doing so will automatically redraw the aura correctly when you save. This is one of those properties that the VTT does not reliably set when going through the API. It requires opening the user interface manually for it to re-draw, even if you make no changes. This is a bug that must be solved by the VTT team. I would suggest a  Help Center Request  for this. I'll also see what I can do to raise awareness. Repro steps 1. Select token, make sure aura 1 is set for circle 2. run this macro: !token-mod --set aura1_square|true aura1_radius|10 Expected behavior: Token should have a square ten foot aura 1 Actual behavior: Token should have a circular ten foot aura 1 Verification: Open token settings for selected token, make no changes and close again Aura snaps to square upon closing token settings interface.
Yep I did send a request in. I just didn't want to give up lol. I also tried another mod that created tokens on the spot. Same bug. We currently use two mule characters, one preset to circle and one preset to square and that seems to work still. It is currently set so you select spell name and sizes are preset, but there are several spells missing and new spells about to be added with ForgottenRealms books coming out. So I wanted to make one where you just select Square or Circle, color to correspond to spell,  and type in size. On 2024 sheets spell dimensions are after spell name so it makes it easy to see what size to type in. Just didn't want to give in since the macro works! Plus, I learned about two new mods that I like and may start using so its not a total loss.