S
stend at spamcop.net
Guest
Hello,
I'm working on writing some supplementary files for the MechWarrior
(if it's permissible I'll upload them to the group), and I'm finding
myself stimied on one item. I've added a "base" group in an
augmentation file, and would like to be able to create validation
rules to have a force contain between 25% and 50% of each unit (base)
type, by cost. Alternatively, I'd like to be able to have the stats
window display the percentage of the force cost for each unit type.
Unfortunately, I haven't been able to find a way to do this as I'd
like. For a validation rule, it's easy enough to get the total cost
of a force (sum:cost.?), but I don't see a way to limit that to a
subset of the total force (sum:cost.?[base.i]). For statistics, it's
easy enough to get the total cost for a unit type:
<stat id="inf_cost" name="Infantry Cost">
<test> base.i </test>
<calc> sum:cost.? </calc>
</stat>
But I don't see how to get the total cost of the force at that point,
so I cannot have the percentage breakdown, by cost, of the force
displayed. Is this a limitation, or am I missing something in the docs?
Thanks, Sten
I'm working on writing some supplementary files for the MechWarrior
(if it's permissible I'll upload them to the group), and I'm finding
myself stimied on one item. I've added a "base" group in an
augmentation file, and would like to be able to create validation
rules to have a force contain between 25% and 50% of each unit (base)
type, by cost. Alternatively, I'd like to be able to have the stats
window display the percentage of the force cost for each unit type.
Unfortunately, I haven't been able to find a way to do this as I'd
like. For a validation rule, it's easy enough to get the total cost
of a force (sum:cost.?), but I don't see a way to limit that to a
subset of the total force (sum:cost.?[base.i]). For statistics, it's
easy enough to get the total cost for a unit type:
<stat id="inf_cost" name="Infantry Cost">
<test> base.i </test>
<calc> sum:cost.? </calc>
</stat>
But I don't see how to get the total cost of the force at that point,
so I cannot have the percentage breakdown, by cost, of the force
displayed. Is this a limitation, or am I missing something in the docs?
Thanks, Sten