TheIronGolem
Well-known member
So I'm dealing with a bunch of different class custom specials that add a claw, gore, or other natural attack to the hero, and I'd like to implement some nice clean prereqs that make sure the hero has the correct number of limbs to "hold" those attacks.
I thought at first I could simply count the hero's HasNatAtt.? tags and compare that to the corresponding hero field for arms/legs/heads. But it turns out that tag is only added to the hero once per attack type, no matter how many of that attack they have.
Has anyone come up with a way to count the number of a given natural attack a hero has, without resorting to something expensive like foreach-ing through weapons?
Oh, and side note to LWD: HUGE thanks for the new tNumLegs and tNumHeads fields, they are going to be super helpful. Any chance of getting similar fields for counting tails and wings in the future?
				
			I thought at first I could simply count the hero's HasNatAtt.? tags and compare that to the corresponding hero field for arms/legs/heads. But it turns out that tag is only added to the hero once per attack type, no matter how many of that attack they have.
Has anyone come up with a way to count the number of a given natural attack a hero has, without resorting to something expensive like foreach-ing through weapons?
Oh, and side note to LWD: HUGE thanks for the new tNumLegs and tNumHeads fields, they are going to be super helpful. Any chance of getting similar fields for counting tails and wings in the future?
 
	