
I have cobbled together this macro from various places on the forums and it basically does everything I want it to. It whispers a list of my current spells to me in chat so I can use them. That being said I have to manually added lines for the number of spell for each spell slot. If it attempts to pull a spell that isn't there it will simply list the line of code. Is there a way to get it to ignore lines of code that pull an empty slot. /w "@{selected|character_name}" &{template:default}{{name=@{selected|character_name} Spellcasting }}{{ Spell DC: @{selected|spell_save_dc} = **Spell Attack Bonus:** **@{selected|spell_attack_bonus}** }}{{ Cantrips: = [@{selected|repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-cantrip_$0_spell) [@{selected|repeating_spell-cantrip_$1_spellname}](~selected|repeating_spell-cantrip_$1_spell) [@{selected|repeating_spell-cantrip_$2_spellname}](~selected|repeating_spell-cantrip_$2_spell) [@{selected|repeating_spell-cantrip_$3_spellname}](~selected|repeating_spell-cantrip_$3_spell) [@{selected|repeating_spell-cantrip_$4_spellname}](~selected|repeating_spell-cantrip_$4_spell) [@{selected|repeating_spell-cantrip_$5_spellname}](~selected|repeating_spell-cantrip_$5_spell) [@{selected|repeating_spell-cantrip_$6_spellname}](~selected|repeating_spell-cantrip_$6_spell) [@{selected|repeating_spell-cantrip_$7_spellname}](~selected|repeating_spell-cantrip_$7_spell) }}{{ 1st (SLOTS) = [@{selected|repeating_spell-1_$0_spellname}](~selected|repeating_spell-1_$0_spell) [@{selected|repeating_spell-1_$1_spellname}](~selected|repeating_spell-1_$1_spell) [@{selected|repeating_spell-1_$2_spellname}](~selected|repeating_spell-1_$2_spell) [@{selected|repeating_spell-1_$3_spellname}](~selected|repeating_spell-1_$3_spell) [@{selected|repeating_spell-1_$4_spellname}](~selected|repeating_spell-1_$4_spell) [@{selected|repeating_spell-1_$5_spellname}](~selected|repeating_spell-1_$5_spell) [@{selected|repeating_spell-1_$6_spellname}](~selected|repeating_spell-1_$6_spell) [@{selected|repeating_spell-1_$7_spellname}](~selected|repeating_spell-1_$7_spell) [@{selected|repeating_spell-1_$8_spellname}](~selected|repeating_spell-1_$8_spell) [@{selected|repeating_spell-1_$9_spellname}](~selected|repeating_spell-1_$9_spell) [@{selected|repeating_spell-1_$10_spellname}](~selected|repeating_spell-1_$10_spell) [@{selected|repeating_spell-1_$11_spellname}](~selected|repeating_spell-1_$11_spell) [@{selected|repeating_spell-1_$12_spellname}](~selected|repeating_spell-1_$12_spell) }}{{ 2nd (SLOTS) = [@{selected|repeating_spell-2_$0_spellname}](~selected|repeating_spell-2_$0_spell) [@{selected|repeating_spell-2_$1_spellname}](~selected|repeating_spell-2_$1_spell) [@{selected|repeating_spell-2_$2_spellname}](~selected|repeating_spell-2_$2_spell) [@{selected|repeating_spell-2_$3_spellname}](~selected|repeating_spell-2_$3_spell) [@{selected|repeating_spell-2_$4_spellname}](~selected|repeating_spell-2_$4_spell) [@{selected|repeating_spell-2_$5_spellname}](~selected|repeating_spell-2_$5_spell) }} Looks Like: