Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
veritechc
Junior Member
 
Join Date: Jul 2008
Posts: 10

Old February 9th, 2012, 08:20 AM
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.
veritechc is offline   #1 Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:19 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.