In Firestorm Armada If you take Heavy Cruisers there are some rules to follow.
Heavy Cruisers are medium ships.
No more than half of your medium ships can be Heavy Cruisers
So I set up a validation rule as follows:
In Firestorm.def I added a rule called hvcruiserv.
In turn that is inherited by my ruleset Tournament.
In validation.dat, under rule I made a rule called cahvalidat and linked that to hvcruiserv under rulesets.
It uses the script:
if (tally[unit:size.M] > tally[unit:type.CAH]) then
@valid = 1
endif
Unfortunately it is not doing what I want. What I need it to do is look at the roster, total the number of medium ships (size.M) and compare that against the number of heavy cruisers (type.CAH) only. I also need it to evaluate the number of Heavy Cruisers and medium per model added no matter where on the roster.
What am I doing wrong?
The data files can be downloaded here:
http://www.theblackocean.com/resourc...estormtest.zip
Thank you again for all your help.