Hi everyone,
Still trying to get this to work as intended. The foreach statement below is pulling all spells from the hero's spellbook, not just the ones that are memorized. Plus, it is pulling the same results twice on certain spells.
Does anyone know what is going on here?
Quote:
Originally Posted by Bob G
2. Another problem is a custom expression I am trying to write that does a foreach on memorized spells. I found a tag group name 'Memorized', so I used the following script:
Code:
foreach pick in hero from BaseSpell where "SpellType.cHelpArn & CasterType.MemBook"
field[usrCandid1].text = splice(field[usrCandid1].text, eachpick.tagids[sLevel.?], " | ")
nexteach
But the results produced all spells in the hero's spellbook, not just the ones they had memorized. What's the correct tag to use in the custom expression?
|