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

Need help with coding the abilities bar...

Hello folks, I'm wondering if it's possible to transform abilities bar without the use of API or JS via the use of inserting HTML code into the ability name? What I want the token abilities bar to do is: 1 - Replace the name of the ability with an image (name <img src="img source"...>) 2- Add a description text when the icon is hovered over (<div title="this is description for what this ability does">Ability name(ref.#1)</div> Since the name of the ability doesn't save the html format, I'm wondering if there's a workaround for this? Thanks in advance.
1539127752
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
This mostly isn't possible in Roll20, even with API. You might be able to do this customization using something like the stylus extension. You can use emoji in the name of your ability to have the button show with just an icon.
1539128033
GiGs
Pro
Sheet Author
API Scripter
By abilities bar, do you mean the Macro Bar across the bottom of the screen, or the Token Action bar that appears above tokens? Or do you mean something else? For the first two, you cant do this with any native roll20 tools as far as i know, not even the API. You might be able to do it with some tool for inserting html via javascript, like Stylish, but short of that I'm pretty sure you can't achieve what you need. You can insert emojis as characters to make the macro bar names more image-y, but thats your limit natively.
1539128694

Edited 1539128820
I'm talking about the abilities bar on the top of the screen, after the token selection.... I was hoping it'd be possible to write a separate macro that would escape the <div> <ul> <li> and be able to replace it with img and context description even if it'd have to be done every session. Edit: I wanna do it not to just satisfy my need for a bigger screen space, but also to make it easier for the not-so-tech-savvy players in our party
1539129278

Edited 1539129306
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
G G said: By abilities bar, do you mean the Macro Bar across the bottom of the screen, or the Token Action bar that appears above tokens? Or do you mean something else? For the first two, you cant do this with any native roll20 tools as far as i know, not even the API. You might be able to do it with some tool for inserting html via javascript, like Stylish, but short of that I'm pretty sure you can't achieve what you need. You can insert emojis as characters to make the macro bar names more image-y, but thats your limit natively. Important Note: the Stylish extension should be avoided at all costs. It has been bought by another company is now a known malware/data miner. The Stylus extension should be used instead.
1539131741
GiGs
Pro
Sheet Author
API Scripter
Teh R. said: I'm talking about the abilities bar on the top of the screen, after the token selection.... I was hoping it'd be possible to write a separate macro that would escape the <div> <ul> <li> and be able to replace it with img and context description even if it'd have to be done every session. Edit: I wanna do it not to just satisfy my need for a bigger screen space, but also to make it easier for the not-so-tech-savvy players in our party I'm pretty sure the only way to do that would be with an extension like Stylus (Scott is correct: avoid the older Stylish extension which is now malware).  Even worse, every player would have to install Stylus on their own pcs, and would then need to install their own code snippets. It doesnt seem like a practical solution for helping not-so-tech savvy players. However, token actions are very easy to use even for non-techies. Just make sure the Abilities are named appropriately, tell players to select their token and look at the buttons that appear at the top of the map, and they'll figure it out. 
1539136838
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Emojis are fine on the macro bar buttons across the bottom, since the name that appears there is purely cosmetic. (i.e., name your macro normally, but use the right-click rename on the button to have an emoji display). I wouldn't rename a token action (top bar macro button) with an emoji. Besides making it a pain to call from another macro, they don't always translate well, and could bungle up a macro call.