At 05:31 PM 6/6/2005 -0400, you wrote:
>The situation is two fold. I am almost done with entering the new Tyranid
>rules, and it has 2 units which require this. One is the Carnifex, if it
>is under 115 points and the list is at least 1500 it may be made an elite
>choice, the other is the Gaunts, at 8 points or less they may take an
>upgrade Without Number for 3 points.
For the Carnifex, do the rules say MAY be an elite choice, or does it HAVE
to be an elite choice. This is an important distinction.
As Harkan pointed out, both can be dealt with easy by using rules. It's the
dynamic option behavior based on the cost that is the hard part.
For the Carnifex, you would write a rule with "unit" scope and make it
unit-specific by setting the "targetid" to be the id of the Carnifex unit.
I'll assume that the composition group tag for "elite" is "compgroup.elite"
for my example. Then the rule script would look something like below.
~ If the unit hasn't been re-assigned as an Elite choice, we don't care
if (unit.tagis[compgroup.elite] = 0) then
@valid = 1
done
endif
~ If the unit cost is less than 115 and the roster size is 1500+, this is
legitimate
if (unit.cost[total] < 115) then
if (roster.activesize > 1500)
@valid = 1
endif
endif
For the Gaunts, you'll write a similar rule with "unit" scope that is
unit-specific to the id of the Gaunts. You'll also need to assign a tag to
the Gaunts when the "Without Number" option is selected. For my example,
I'll assume this tag is "special.withoutnum". Then the rule script would
look like the following.
~ If the option hasn't been selected (i.e. the tag isn't present), we don't
care
if (unit.tagis[special.withoutnum] = 0) then
@valid = 1
done
endif
~ The rule is only valid if the cost of a single model is 8 or less
if (unit.cost[one] <= 8) then
@valid = 1
endif
That ought to be all you need to do. Just yell if any of this doesn't make
any sense.
Hope this helps,
Rob
---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (408) 927-9880
Lone Wolf Development
www.wolflair.com