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

Adding default ability macros to custom character sheets

I'm currently building a character sheet and want to add default ability macros to the "Attributes & Abilities" tab. Is there a way to do this with a script or do I need to hardcode all of them in my HTML page?
1572129888
GiGs
Pro
Sheet Author
API Scripter
You can hardcode buttons as token actions, but it's universally regarded as a bad idea. The user has no way to remove or reorder them, and lots of people like to customize their sheet. If its only for your group and will never be used by others, and you're the GM and know exactly how you want the sheets to behave, thats another matter and using them could be worthwhile. If you do want to use them, add the tokenaction class like so <button class='tokenaction' type='roll' name='attr_initiative' title='initiative' value='@{initmacro}'></button> The only way to add Abilities automatically is through the API. There aren't any generic scripts to do this, because everyone's needs are different. (Scott's Menu Maker might work for this.) One simple approach though is this: Add a blank character sheet to your jounral. On that sheet, add all the common Abilities you want players to have. Then whenever you make a character, copy this sheet, and use it for the new character.