For what it's worth, using a foreach loop could also work for the problem you're trying to solve. When you write:
Code:
foreach pick in hero from BaseSpell
for example, this searches through the character and finds all the things that are spells. This would allow you to generate a list of all spells. If you wanted to narrow it down, you could do:
Code:
foreach pick in hero from BaseSpell where "Helper.InSpellbk & Spellbook.cHelpWiz"
This looks for all spells with those specific tags. You should then be able to generate a list of spell names and add them to the description.