So as soon as I use your long string of spells I get a HL script error as soon as I try and select the feat. Is this what you where getting?
Code:
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
- - -
Invalid tag expression specified for 'foreach' statement
Location: Procedure 'HaveSpell' near line 25
As the expression is correct my guess would be that we just hit a length limitation of a search expression.
@Mathias or Aaron my foreach expression is 358 characters long. What is the maximum length of a expression for a foreach loop?