HakujinGrande
Well-known member
I've tried several things, but I just cannot seem to figure these out.
If I understand the documents I should be able to create an accumulated unit stat that has the total value accumulated at the squad level.
I created a unit stat that has the calculate script:
@value = unit.count[model]
And set the stat to be accumulated.
However, the only debug that ever shows a value for this stat is the "Show All Unit Stats for Unit...". It never shows a value under the Accumulated stats for the squad.
Basically what I need are two stats that count the number of models in units in a squad. One value for all models, except for transports (which are tagged with smTags.Transport) and another count of models within units that have Terminator armour (tagged with smTags.Terminator).
I need these two values so that I can use them in validation rules for transports, to see if the transport can accomodate the squad.
How are these supposed to work?
				
			If I understand the documents I should be able to create an accumulated unit stat that has the total value accumulated at the squad level.
I created a unit stat that has the calculate script:
@value = unit.count[model]
And set the stat to be accumulated.
However, the only debug that ever shows a value for this stat is the "Show All Unit Stats for Unit...". It never shows a value under the Accumulated stats for the squad.
Basically what I need are two stats that count the number of models in units in a squad. One value for all models, except for transports (which are tagged with smTags.Transport) and another count of models within units that have Terminator armour (tagged with smTags.Terminator).
I need these two values so that I can use them in validation rules for transports, to see if the transport can accomodate the squad.
How are these supposed to work?
 
	 the code for the Chosen in the future
 the code for the Chosen in the future 