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

How to Make Token Actions on Character Sheets

March 17 (10 years ago)
With the new updates to a lot of Character Sheet functionality, my group has switched over to the roll20 Character sheets for storing character information.
Now that we have all of our powers stored in tables on our character sheet, we've pretty much obsoleted the Abilities tab on the character document...
...EXCEPT that we don't have the handy-dandy "Show as Token Action" if we're using character sheet defaults.

If I want to make a Character Sheet action toggle as an optional Token Action, what would I add to the Character Sheet html/CSS, and where would I put it?
March 17 (10 years ago)

Edited March 17 (10 years ago)
Diana P
Pro
Sheet Author
you set the button's class to be tokenaction
ie:
<button class='tokenaction' type='roll' name='attr_initiative' title='initiative' value='@{initmacro}'></button>
And once you set it as a token action that way, everyone gets it as a token action.
edit: it's not a toggle, it permanently sets that button/roll as a token action.

The other way I do it is set up personalized macros on the abilities tab and just use the token action setting on those. Just because you have a preset character sheet doesn't mean you can't set up abilities also. :)
March 17 (10 years ago)
To clarify, I want it to exist as a token action only for tokens representing the character.
is that also possible?
March 17 (10 years ago)
Diana P
Pro
Sheet Author
Only by setting it up as a token action using the actions and abilities tab the way you are used to doing it.
The HTML is not capable of distinguishing between say a character and a monster who has a character sheet attached.