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

Rolltemplate: How to use player color for caption?

I am very new to this, so please bear with me. I am trying to figure out a way to build a rolltemplate that works pretty much the same way as the default template except for using a varying color for the table caption that reflects the color of the player who triggered the macro/rolltemplate. So far, I have found the API script "ColorNote", which determines the player's color and uses that to send a chat message with that color as background and a contrasting foreground color. This is exactly what I want for my rolltemplate, but I cannot figure out how to use that in the context of a rolltemplate. Can I trigger an API script from within a rolltemplate? If not, can I pass the player color as a variable in the macro definition? If so, what is the variable name to do so? Thanks in advance.
1585084748
GiGs
Pro
Sheet Author
API Scripter
Character sheet code cant access anything outside the character sheet. They cant access player details, like player color. So you cant do that in the context of a rolltemplate. If you want to use player color, you have make a custom script to do your roll, and bypass the sheet entirely. A button can launch scripts, but rolltemplates cant.