Senior Member
|
How would I count how many Spell-Like abilitities a character has? I've tried a few things and none of them seem to work.
|
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Spell-like abilities aren't really distinguished from other abilities in HL, yet. You'll have to use a foreach loop to find all the special abilities that have the SpecType.SpellLike tag:
Code:
var bonus as number foreach pick in hero where "component.BaseSpec & SpecType.SpellLike" bonus +=1 nexteach at this point, do something with bonus |
#2 |
|
|