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 you call and use the Avatar color?

1574210639
Mike W.
Pro
Sheet Author
Using either CSS and/or HTML code, can you call and use the Avatar Color within a character sheet to effect the header color of a Roll Template? My idea is to have the Roll Templates use the player's current Avatar color in the header of any Roll Template they use. Sounds simple yet i bet it is not  lol. If it can be done, how is it done? Thanks.
1574211228

Edited 1574211249
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It is possible to do with the API. The Raise Hand script does it. I don't think it is possible to do with vanilla macros.
1574214492

Edited 1574214588
Mike W.
Pro
Sheet Author
keithcurtis said: It is possible to do with the API. The Raise Hand script does it. I don't think it is possible to do with vanilla macros. Thanks Keith. I was hoping to do it with coding format within the character sheet itself using HTML or CSS. rather than vanilla macros or an API.
1574218034
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
D'oh! I should have paid attention to what forum you were posting in. :)
1574222514
GiGs
Pro
Sheet Author
API Scripter
I dont believe the character sheet code has access to anything outside of the character sheet itself. So no, you wont be able to do this with html/css/sheet workers.
1574226592

Edited 1574226627
Mike W.
Pro
Sheet Author
Oh well, we trued - thanks GiGs.