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.