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

API Macro Help

April 21 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I'm posting this in the API forum as the macro in question requires API resources. I've been following down the rabbit hole and came across Julix's macro for making a spellbook. It doesn't seem to work anymore though, it just outputs all the spells to chat rather than on template with buttons for each spell. Any ideas on how to modify this to work?
April 21 (8 years ago)

Edited April 21 (8 years ago)
What likely happened is that the forum converted the HTML entities that were a part of the API Command Buttons.

However, instead of fixing the API Command Buttons, I recommend instead using Ability Command Buttons (which function identically in this case yet do not require HTML entities).

e.g. rewrite the broken API Command Button [@{Selected|repeating_lvl-0-spells_$0_name}](! %{Selected|repeating_lvl-0-spells_$0_roll}) into the Ability Command Button [@{Selected|repeating_lvl-0-spells_$0_name}](~Selected|repeating_lvl-0-spells_$0_roll)
April 21 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, that did it. Thanks Silvyre.