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

Ability command buttons and repeating sections

Hi all, I'm trying to create a macro that would display one button for each spell in the default D&D 5e character sheet. With the following line, I can create a button for the first level 1 spell in the spellbook: [@{selected|repeating_spell-1_$0_spellname}](~selected|repeating_spell-1_$0_spell) Can I somehow automatically repeat this for all entries in the repeating section? I can hardcode a fixed number of buttons (e.g., two buttons in the line below), but the buttons display an ugly text if the entry does not exist. [@{selected|repeating_spell-1_$0_spellname}](~selected|repeating_spell-1_$0_spell) [@{selected|repeating_spell-1_$1_spellname}](~selected|repeating_spell-1_$1_spell)
1523065940
GiGs
Pro
Sheet Author
API Scripter
I'm pretty sure the only way without the API (a Pro feature) is to hardcode the buttons, and you cant get rid of the ugly text for missing buttons.