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

Spell book macro for 2nd edition d&d just quick working.

So I'm still working on my d&d spell book for my wizard character. After several weeks of trial and error, I got it to work. (most of the problem was me just know knowing how macros worked.) But last night when I went to bed, it worked just fine. In my character's abilities section, there was a spellbook button. when clicked, it popped up a menu in the chat window that listed all spells by level. When you clicked the spell, it activated the according spell macro. This morning, when I work up and tried to fine tune it, it didn't work properly. (I hadn't made any changes at this point.) Help &{template:default}{{name=Spell Book}}{{1st lvl spells=[Alarm](~#Alarm) [Armor](~#Armor) [Light](~#Light) [Magic Fist](~#Magic-Fist) [Magic Missile](~#Magic-Missile)}}{{2nd lvl spells=[Melf's Acid Arrow](~#Melfs-Acid-Arrow) [Power Word Sleep](~#Power-Word-Sleep) [Knock](~#Knock)}}{{3rd lvl spells= [Monster Summoning I](~#Monster-Summoning-I) [Bands of Sirellyn](~#Bands-of-Sirellyn) [Solvent of Corrosion](~#Solvent-of-Corrosion)}}{{4th lvl spells= [Monster Summoning II](~#Monster-Summoning-II) [Evard's Black Tentacle](~#Evards-Black-Tentacle ) [Drawij's Instant Exit](~#Drawmijs-Instant-Exit ) [Nautical Ball Lightning](~#Nautical-Ball-Lightning)}}{{5th lvl spells=[Monster Summoning III](~#Monster-Summoning-III) [conjure Elemental](~#Conjure-Elemental)}}
1548426735
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
"~#" is not a valid syntax, as far as I know. ~ precedes an ability call # precedes a collections macro Where are the spells stored, collections tab or on your sheet?
Thanks again for helping Keith. I can't remember where I got ~# from, online somewhere probably, but it WORKED. I had, and still have all the spells under abilites, and this formula did not detect them. So I added them to the collections tab and then the formula found them. My only problem was names with a ' in them (Melf's Acid Arrow for example.) Which I was able to fix by renaming. So when the character token is selected, Spell Book is a clickable button. Before I logged off, when I clicked it, a box called Cerese's Spellbook popped up in chat, and it all a button for each spell and buttons were seperated by spell level headers. Several hours later when I logged on and tried again, I'm only getting the Cerese's Spellbook header and nothing else, almost as if the }} wasn't at the end of the macro.