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 ERRORS Please help

Okay so here is my macro: /w @{selected|character_name} &{template:default} {{name=Spells}}{{Spell Save DC= [[8+@{selected|intelligence_mod}+@{selected|pb}]]}}{{Spell Attack Bonus=[[@{selected|intelligence_mod}+@{selected|pb}]]}}{{Spell Type= [Cantrips](!%{@{selected|character_name}|#cantrips})[Level 1](!%@{selected|character_name}|#level1})[Level 2](!%{@{selected|character_name}|#level2})[Level 3](!%{@{selected|character_name}|#level3})[Level 4](!%{@{selected|character_name}|#level4})[Level 5](!%{@{selected|character_name}|#level5})[Level 6](!%{@{selected|character_name}|#level6})[Level 7](!%{@{selected|character_name}|#level7})[Level 8](!%{@{selected|character_name}|#level8})[Level 9](!%{@{selected|character_name}|#level9})}} I am getting a spam of errors however it works, just floods chat box with: No ability was found for %{Ares|#cantrips} No ability was found for %{Ares|#level1} No ability was found for %{Ares|#level2} No ability was found for %{Ares|#level3} No ability was found for %{Ares|#level4} No ability was found for %{Ares|#level5} No ability was found for %{Ares|#level6} No ability was found for %{Ares|#level7} No ability was found for %{Ares|#level8} No ability was found for %{Ares|#level9} What am I doing wrong? I have all my macros setup, the buttons work, just keep getting this :(
1540582384

Edited 1540582486
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
From your code, it looks like your are trying to reference abilities on a character sheet not macros (since you are calling out the character). The code is a little different for referencing abilities. (Abilities is just the name given to macros that are resident on a character, not int he collections tab). You can try this: /w @{selected|character_name} &{template:default} {{name=Spells}}{{Spell Save DC= [[8+@{selected|intelligence_mod}+@{selected|pb}]]}}{{Spell Attack Bonus=[[@{selected|intelligence_mod}+@{selected|pb}]]}}{{Spell Type= [Cantrips](!
%{selected|cantrips}) [Level 1](!
%{selected|Level1}) [Level 2](!
%{selected|Level2}) [Level 3](!
%{selected|Level3}) [Level 4](!
%{selected|Level4}) [Level 5](!
%{selected|Level5}) [Level 6](!
%{selected|Level6}) [Level 7](!
%{selected|Level7}) [Level 8](!
%{selected|Level8}) [Level 9](!
%{selected|Level9})}} If both the macro and all abilities it calls are on the same character sheet, you can make it even simpler: /w Ares &{template:default} {{name=Spells}}{{Spell Save DC= [[8+@{Ares|intelligence_mod}+@{Ares|pb}]]}}{{Spell Attack Bonus=[[@{Ares|intelligence_mod}+@{Ares|pb}]]}}{{Spell Type= [Cantrips](~cantrips) [Level 1](~Level1) [Level 2](~Level2) [Level 3](~Level3) [Level 4](~Level4) [Level 5](~Level5) [Level 6](~Level6) [Level 7](~Level7) [Level 8](~Level8) [Level 9](~Level9)}}
thanks for the quick response, I actualy figured it out looking at other macros. /w @{selected|character_name} &{template:default} {{name=Spells}}{{Spell Save DC= [[8+@{selected|intelligence_mod}+@{selected|pb}]]}}{{Spell Attack Bonus=[[@{selected|intelligence_mod}+@{selected|pb}]]}}{{Spell Levels= [Cantrips](!
%|#cantrips })[Level 1](!
%|#level1 }) [Level 2](!
%|#level2 })[Level 3](!
%|#level3 }) [Level 4](!
%|#level4 })[Level 5](!
%|#level5 }) [Level 6](!
%|#level6 })[Level 7](!
%|#level7 }) [Level 8](!
%|#level8 })[Level 9](!
%|#level9 })}} seams to work the best,  When I am done with the whole thing I will post it here for everyone to see and use if they want.