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

Spellbook Macro Migraine

Keith & GiGs, OH. MY. GOD.  That API/Macro combo is simply amazing!!!  I have a couple weird anomalies where only code is listed after a cantrip spell, but whatever haha. this is SO cool!  AND it whispers it to the person who clicks it! Wow!
Keith, what is the API companion script called for the D&D 5th Edition by Roll20?
1593647550
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
5th Edition OGL by Roll20 Companion.
1593649857
GiGs
Pro
Sheet Author
API Scripter
Dave R. said: Keith & GiGs, OH. MY. GOD.  That API/Macro combo is simply amazing!!!  I have a couple weird anomalies where only code is listed after a cantrip spell, but whatever haha. this is SO cool!  AND it whispers it to the person who clicks it! Wow! Hehe, that's a gratifying response, and also understandable since it had the same effect on me and I wrote the script! :)
keithcurtis said: The companion script for the D&D 5th Edition by Roll20 Sheet will track spell slots. very strange.....
Dave R. said: Hi Everyone.  I'm trying to create a Spellbook Macro.  As a test, I copied the text string after casting AbsorbElements, %{-M38iaeJBoxmxZSJGFh8|repeating_attack_-M8qbjmhumwe2jIhbMgU_attack}, and then created a macro called AbsorbElements by placing that text in the macro. Works great!  Then I created a macro called Spells with this text &{template:default} {{name=Spells}} {{Spells= [AbsorbElements](!
#AbsorbElements)}} which I hoped would call that spell when I click on the button that shows up, but what I get after clicking the pink button is simply #AbsorbElements I was hoping to create a spellbook this way so players could call up their spells as one block of choices, rather than creating individual macro buttons that are sprawled across their screens.  I'm not completely savvy on macros (obviously) so any help greatly appreciated. It's ok, imagine you're talking to a 5 year old....or a 55 year old. Both are accurate. Try this instead of using HTML: {{Spells=[Absorb Elements](! #Absorb-Elements)}} Notice I pressed return instead of using 
 after the (! GiGs said: When you get the text in the button like that, it means the macro isnt being detected properly. Have you saved it and made sure the name is accurate? Right. Usually the macro names are  spaced with dashes: Absorb-Elements.
Normal 0 false false false RU X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Обычная таблица"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-ansi-language:RU; mso-fareast-language:EN-US;} Where can I find some more feedback?