• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Rules and Stats

  • Thread starter Thread starter stend at spamcop.net
  • Start date Start date
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
 
Back
Top