View Single Post
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old December 29th, 2017, 12:48 PM
Quote:
Originally Posted by Minous View Post
What are you trying to do with the loop/script?
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 "Memorized.?"
     field[usrCandid1].text = splice(field[usrCandid1].text, eachpick.tagids[thingid.?], " | ")
     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?

The goal is to create a usr field where the candidates are memorized spells.
Bob G is offline   #6 Reply With Quote