
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.