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

Any way to quickly set HP bar?

1458526116

Edited 1458527206
Let's say I have a token I just dropped in from somewhere, doesn't matter where. It's not a character, it doesn't have any attributes, I'm half way through a game session and I don't want to have to fiddle setting anything up.  I could double-click the token, manually enter 140 as the current of Bar 1, and 140 again as the max of Bar 1, and then go over to player permissions and tick See for Bar 1.  That takes a little while though. Is there any way to do this quicker?  Ideally I'd like a macro or other clickable button that just blindly sets the bars to these values (So I can set it as a token-action macro, and use the same input variable for both fields), without needing an associated character or attribute.  I suspect macros can't go and tick the visibility options for me (presumably API can? I'm unsure) but if they can please let me know how.  Likewise, if I can set a token name using a macro instead of API that would also be excellent, I can't seem to find much about manipulating tokens with macros, just characters. Sortof-related, is there anywhere I can set the default visibility settings? I'd really like all players to always be able to see Bar 1, for example.
1458530062
The Aaron
Roll20 Production Team
API Scripter
Macros are incapable of changing values, only reading them and using them in dice expressions. This is definitely in the realm of API scripts, for example with TokenMod, you could use this api command to be prompted for the name and HP and turn on visibility of bar1 for the selected token(s): !token-mod --set name|"?{name}" bar1|?{HP} --on showplayers_bar1 Similarly, there isn't a way via the UI to set a default for created tokens, but the API can be used to set default settings on a token when they are created.
Thanks for making that clear! (Pity, since API is expensive and I wouldn't use the rest, wheras this seems pretty basic, but understandable once you state the limitations.)