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

[question] Creating new HUD objects

Is it possible to create new HUD objects with the API? I thought I read something a few weeks ago saying you couldn't, but don't quote me on that. Specifically, I was wanting to create a HUD object of a person with 7 hit boxes, like from RuneQuest. Each box (head, chest, abdomen, 2 arms and 2 legs) would be linked to attributes in the character journal. If anyone can think of non-API ways of implementing this, I'm all ears.
Even with API it's not possible. When you have a screen view, there's no relation to the map. This means that even if you implimented a solution to make tokens with the proper attributes, whenever you adjusted your screen view, it would stay in the same place on the map, not in relation to the player's view.
And I'm guessing adding more bars is also not an option at this time?
1377048996
Lithl
Pro
Sheet Author
API Scripter
How about grouping several tokens together, and using a script to modify their bar values (since you can't edit the grouped tokens)? It'd look awkward to have 7-token-large things running around the map, but it could be done.
It'd be doable, but it'd A) have to be player dragable, so they'd constantly be adjusting it, and B) they'll only show values when clicked on specifically, not in group format. It'd almost be doable if you could modify text vectors though.