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

Can Token Mod change text overlay value of a bar?

I've run into an issue where when I drag a token to the map, the text overlay value changes in a bar from Visible to Everyone, to Visible to Editors. I don't know what is causing this issue. My question is, can Token Mod change the text overlay of a bar?  If not, is there a way to set up a macro/other API to do this so I can select a token/multiple tokens, and change a bar's text overlay?
Are you using the Aura/Tint Healthcolor script? If so, type !aura into chat and adjust the setting that is automatically adjusting the text overlay - I'm assuming you mean the token nameplate. TokenMod can also adjust this, but Aura/Tint Healthcolor will continue to adjust it back until you change the settings for the script.
Maybe we are talking about the same thing.  I am talking about changing this value.  
1737055566
timmaugh
Pro
API Scripter
I think they are referring to this setting: Which, to be honest, I had not even remembered! But it controls the visibility of the values over the bars. In this pic, Bar1 has the option set to "Hidden": I did a quick glance at the TokenMod help, but I didn't find a reference to this setting. I also used Inspector to look at what is in the JSON of the token, and it isn't listed there. That doesn't mean it isn't available to scripts (since the properties have to be added to the JSON package on the backend, and that can happen separately from their availability), but it's a good indication that it will NOT be set-able by TokenMod. However, I would think that this is tied to the default settings of the token... these steps work in my game to change this setting permanently: 1) drag a token to the board 2) set the visibility 3) click the "Update Default Token" button 4) delete this token and re-add to the board
Yeah I just looked at that as well and I'm not seeing it listed for TokenMod, and it's also not listed on the Wiki  as an Object that is accessible to Mod scripts. I see that  showplayers_bar1  and  playersedit_bar1 are listed, but nothing relating to the Text Overlay option. So I agree that this does sound like a Default Token issue. :) 
timmaugh said: I did a quick glance at the TokenMod help, but I didn't find a reference to this setting. I also used Inspector to look at what is in the JSON of the token, and it isn't listed there. That doesn't mean it isn't available to scripts (since the properties have to be added to the JSON package on the backend, and that can happen separately from their availability), but it's a good indication that it will NOT be set-able by TokenMod. However, I would think that this is tied to the default settings of the token... these steps work in my game to change this setting permanently: 1) drag a token to the board 2) set the visibility 3) click the "Update Default Token" button 4) delete this token and re-add to the board So this is where I have an issue.  When I try to set the default value, it doesn't set this value after deleting the token and putting it back on the board.  It always reverts to Visible to Editors.  This is what I'm trying to change, even if it is a quick fix besides going into each token and trying to select it in the menu (which has always been difficult, because you get a half second to click the Visible to Everyone setting). So, if there is a way to do this, I would like to figure it out.
So when I open the console, this is what I see.  Would one of these settings help?  I'm over my head here though. 
1737065045
timmaugh
Pro
API Scripter
And you, for sure, hit the "Update Default Token" button? Because when I do that in my game, the setting remains. If you confirm that and it is still doing this for you, you could invite me just for a second pair of eyes seeing the same thing... I doubt there is anything we mere mortals can do, but it would give you a little more confidence that what you're trying to do in your game (and what is not working) *should* be working because I see it in my game. Shoot me a PM if you want to try that.
1737071458
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can also check your game settings. This would normally only apply to a brand new token, not one saved to default, but it might be worth checking out. Once you set it up there and save changes, it will apply to all new tokens. If you want it to apply to existing tokens, you can "apply defaults" in your settings tab while in-game. Note that this will only affect new tokens and tokens in play. Default tokens exist in their own little JSON file and are not altered.
Yeah, maybe it is the Pathfinder Companion Script that is causing the issue.  I'm not sure.  I sent you a PM timmaugh.   Thank you.
So we could not find the issue.  I'm back to seeing if Token Mod might be able to quick fix this issue since I'm getting the default token change to that one setting.  It would be a lot easier to change that with simple macros as I drug the affected tokens to the board.