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 .
×

5E Spellcasting "Abilities" Error

1511795307

Edited 1511796073
Note: I'm using the 5e OGL sheet So I've been working on creating templates for monsters, and one of the things I have been doing is creating tables to select different actions. For example, a Dragon has an Action Table, selecting from their Multiattack, Firebreath, or Tail Attack options, as well as a  Legendary Table, where they can select from their 3 Legendary Actions. I have been using the default table: &{template:default} {{name=}} {{ANYTEXT=ANYTEXT}}  and so far it's been going great, being able to call each different ability with the ~ call. However, things get a bit more complicated with spellcasting. I didn't want to make a separate Ability for every single spell that a spellcaster has, so I tried to instead call their repeating action. This is what I've come up with. It works, surprisingly, but it also seems to spam the chat window with an error beforehand. I was wondering if there was any way to keep the Ability working properly while being rid of the error. Thanks! Ability: Spells-Cantrips /w gm &{template:default} {{name=Cantrips}} {{Select your Cantrip:=[Fire Bolt](~@{selected|repeating_spell-cantrip_$0_spell})[Light](~@{selected|repeating_spell-cantrip_$1_spell}) [Mage Hand](~@{selected|repeating_spell-cantrip_$2_spell}) [Prestidigitation](~@{selected|repeating_spell-cantrip_$3_spell})}} Error: No attribute was found for @{selected|repeating_spell-cantrip_-KzuR-FyLd4fr2pAFVM0_spell} No attribute was found for @{selected|repeating_spell-cantrip_-KzuR12ZxLgyEdedWBuS_spell} No attribute was found for @{selected|repeating_spell-cantrip_-KzuR29b9xJpkDq8dgd-_spell} No attribute was found for @{selected|repeating_spell-cantrip_-KzuR35u3-FqgTpzJcyD_spell}
That's because you are using an attribute call (@{keyword|attribute}) instead of the Ability Command Button call([LABEL](~keyword|ability) You can use this to display the spell. I also like pulling the spell's name rather than hardcoding it so that if you decide to reorder the spells the names will still be correct for the spell. [@{repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-cantrip_$0_spell)
This answer was even better than I hoped for. Thanks for such a quick solve! 
1511798367

Edited 1511798437
If you want more, I would suggest adding Spell Save DC and number of slots to the macro. {{Spell save=@{selected|spell_save_dc}}} {{1st level (@{selected|lvl1_slots_total} slots)=[NAME](~SPELL)...}}