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

Problem with Macro

I have most of the following working properly. However, I keep getting the following occurring. I can't figure out why. No attribute was found for @{selected|npc_spelldc} No attribute was found for @{selected|npc_spellattackmod} /w GM @{wtype} &{template:default}{{name=@{selected|character_name} Spellcasting }}{{Spell Save DC @{selected|npc_spelldc}= @{selected|npc_spellattackmod} to hit with spell attacks }}{{Cantrips =[@{repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-cantrip_$0_spell) [@{repeating_spell-cantrip_$1_spellname}](~selected|repeating_spell-cantrip_$1_spell) }}{{1st level (4 slots) =[@{repeating_spell-1_$0_spellname}](~selected|repeating_spell-1_$0_spell) [@{repeating_spell-1_$1_spellname}](~selected|repeating_spell-1_$1_spell) [@{repeating_spell-1_$2_spellname}](~selected|repeating_spell-1_$2_spell) }}{{2nd level 3 slots) =[@{repeating_spell-2_$0_spellname}](~selected|repeating_spell-2_$0_spell) [@{repeating_spell-2_$1_spellname}](~selected|repeating_spell-2_$1_spell) [@{repeating_spell-2_$2_spellname}](~selected|repeating_spell-2_$2_spell) }}{{3rd level 3 slots) =[@{repeating_spell-3_$0_spellname}](~selected|repeating_spell-3_$0_spell) [@{repeating_spell-3_$1_spellname}](~selected|repeating_spell-3_$1_spell) }}{{4th level 3 slots) =[@{repeating_spell-4_$0_spellname}](~selected|repeating_spell-4_$0_spell) [@{repeating_spell-4_$1_spellname}](~selected|repeating_spell-4_$1_spell) }}{{5th level 2 slots) =[@{repeating_spell-5_$0_spellname}](~selected|repeating_spell-5_$0_spell) [@{repeating_spell-5_$1_spellname}](~selected|repeating_spell-5_$1_spell) }}{{6th level 1 slots) =[@{repeating_spell-6_$0_spellname}](~selected|repeating_spell-6_$0_spell) }} Any help on figuring this out. 
I believe since they updated the character sheet the attribute names that you are looking for are spell_save_dc and spell_attack_bonus, hope that helps.
I just tried that and still no luck. 
So if you type just @{selected|spell_save_dc} or @{selected|spell_attack_bonus} into chat outside the macro do they work?
Ah my mistake. I never removed the NPC part of the above, so I was doing NPC_Spell_Save_DC instead. Just tried and they do indeed work, thanks.