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

How To Hide Auras From Players With API (while using Aura/Tint Health Colors mod)

1696107717

Edited 1696199866
SOLVED! With a push in the right direction from  Keith , I fiddled with it until I figured out the right combination of hieroglyphs to get it to work.  My working macro is this: ?{Aura ON or OFF|ON,!setattr --sel --USECOLOR&#124YES !aura update|OFF,!setattr --sel --USECOLOR&#124NO !aura update} !token-mod {{ ?{Show Token|Xaos Human,!token-mod --set currentside|1 aura2_radius#|Xaos Ultroloth,!token-mod --set currentside|2 aura2_radius#|Invisible,!token-mod --set currentside|3 aura2_color|59e594 aura2_radius#0} --off showplayers_aura2 }} While I suspect there might be a cleaner way, it does what I need it to do and I'm feeling awfully proud of myself for figuring it out, given my lack of coding knowledge.  ------------------ A while ago, some clever person posted a tip for using a rollable table for tokens representing characters that can become invisible.  It looks like this (Xaos is my NPC, who has a human and ultroloth form, as well as invisible): ?{Show Token|Xaos Human,!token-mod --set currentside|1 aura2_radius#|Xaos Ultroloth,!token-mod --set currentside|2 aura2_radius#|Invisible,!token-mod --set currentside|3 aura2_color|59e594 aura2_radius#0} It works great, and I can apply it to PCs with invisibility, so only the controlling character can see their token.  But, we use Aura/Tint Health Colors, and so that makes the aura visible to players, kinda defeating the invisibility feature. I found a tip for turning off Aura/Tint Health Colors for individual tokens: !setattr --sel --USECOLOR|NO !aura update but that also turns off the tint in aura2 that the Show Token macro sets. How can I use that macro, and be able to toggle  Aura/Tint Health Colors  off and on for the selected token?
1696109210
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi eponymous! Would just switching aura1 for aura2 in the macro work? ?{Show Token|Xaos Human,!token-mod --set currentside|1 aura1_radius#|Xaos Ultroloth,!token-mod --set currentside|2 aura1_radius#|Invisible,!token-mod --set currentside|3 aura1_color|59e594 aura1_radius#0}
Not sure.  Aura1 is what  Aura/Tint Health Colors uses, I believe.  And the macro sets aura2 so you can see your invisible token, which is good but I don't want my players to see the invisible enemy.  I'll try your suggestion and see what happens, though.
1696140310
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Look up the config options on Aura Tint. I believe you can customize to some degree.
1696194159

Edited 1696199956
Solved it and updated the original post with my solution. Still messing with it, but I found the original post from Martin . It doesn't seem to be an issue with  Aura/Tint Health Colors as I thought. The tint shows for me as expected: even if I disable the extension that's not supported: And it also shows for my dummy account: So now I'm wondering if there's a token-mod or ChatSetAttr command that will allow me to set aura2 to NOT be visible to players. If so, I'd need to understand how to use the macro above that sets the token side to show, plus the command to turn off  Aura/Tint Health Colors for the one token, plus hide aura2 from the players (and then reverse all that when the NPC is no longer invisible.  My brain is having a hard time with this one.
1696202896
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Tokenmod contains commands to change the currentside of the token (with the API-mandated restriction that it cannot use a compendium image, only one from your own library). There are also commands to control the visibility of auras. I'd post, but I'm not in an easy position to check the documentation. The "Help: Token-mod" handout in your game should have the exact syntax.