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

[Script] Dynamic Token Bars

1679717854

Edited 1679751843
Hey, first time sharing here, but wanted to share a simple immersion tweak I've been working on and hope others get some use out of it. Been working on it for personal use, but if you come across any issues or ways it can be improved, I'd love to hear it. Dynamic Token Bars Dynamic Token Bars is a simple script to display or hide token bars depending on whether combat is active. Token bar visibility is set depending on whether the turn tracker is open, updating as the turn tracker is opened/closed, or when players are moved to a new page, with the option to set/clear specific bars as permanently visible regardless of the turn tracker status. Currently only sets visibility for players, token bars remain visible for GMs. Source code  can be found  here Commands !dtb --pb [bar index]  Permanent Bars: Set the token bar at the given index to be permanently visible, remaining visible after the turn tracker is closed. !dtb --seeall  See All: Option to toggle  See All , allowing players to see all other token bars in addition to their own. !dtb --clear  Clear: Clear all permanently visible token bars and  See All  status, reverting to default behaviour.
1679718035

Edited 1679718068
timmaugh
Pro
API Scripter
Hey, Conner... even after you edited the post, that last link still doesn't work...? What was that supposed to be?
Hey Timmaugh, first time trying to share a GitHub Gist - the stickied thread says it should be as simple as posting a like to the gist for it to embed the code, but seem to be having a bit of trouble...