Perfect! So, for the variable stat, at each level I assign the
following: dtyp:Lead?, followed by unit:Lead123 (and so on, with the
numbers going up). Then in the generic race definition (which is
inherited by all races), I put ulmt:type=AllUnits-max@unit=9-
msg=TooBig-istype=Lead12 (and so on, with the numbers going up).
So, since my model already supports the necessary inheritance, it was
about 10 minutes worth of work to ensure that all races are handled
correctly. Thanks a lot (once again)!
--- In armybuilder@y..., Rob Bowes <rob@w...> wrote:
> The information that is accessible to a unit must be local to that
unit.
> The model and item counts, as well as stats, are specific to the
unit. The
> unit count is a global value and completely separate. Therefore,
there is
> no way to reference the total unit count of the roster within a
single unit.
>
> The only way I can think of to solve this would be as follows.
First, make
> sure that the general is in a separate composition group or unit
category
> from other units (alternately, you could assign a type to all non-
general
> units). Define an assortment of options that are attached to the
general,
> where each option uses "usta" or "uexp" to limit itself to the stat
> value(s) within the general. Each option uses "type" to assign a
unique
> type name to the general, based on the stat value(s). The net
result is
> that exactly one option will be valid for the general, resulting in
exactly
> one type name be assigned. You can then define a set of "ulmt"
or "tlmt"
> attributes, each imposing the appropriate unit limits for a
different stat
> value of the general. Each of these attributes would use the "-
istype="
> qualifier to limit the applicability of the stat to only be when
the
> appropriate type is assigned to the general. This way, the stat
values of
> the general will trigger a specific type to be assigned to the
general, and
> that type will dictate which of the "ulmt" attributes is
applicable. The
> "ulmt" attribute will then enforce the proper limitation on the
roster.
>
> Hope this helps,
> Rob
>
>
> At 12:42 PM 9/4/2001 +0000, you wrote:
> >I know that (#) gives me the model count, and (%) gives the item
> >count. Is there a symbol that gives me the unit count? I'm trying
> >to limit the number of units in the roster by the combination of a
> >fixed stat and a variable stat in the general's profile. Thanks.
>
>
> --------------------------------------------------------------------
-------
> Rob Bowes (rob@w...) (650) 726-9689
> Lone Wolf Development
www.wolflair.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Win a Marvel vs. CapCom 2 Arcade System!
Click Here to Enter...
http://us.click.yahoo.com/uTyA4B/o58CAA/9ZuFAA/IMSolB/TM
---------------------------------------------------------------------~->