• 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

Here s a new one - it is simple i just canyt figure it out

  • Thread starter Thread starter Dragon2012 at excite.com
  • Start date Start date
D

Dragon2012 at excite.com

Guest
I want to make a unit that is type honor limited to 1 per army.

I have assigned type:honor to the corrct units.

Then i tried umax:1u (but I dont know what the "#" is in #istype)




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Small business owners...
Tell us what you think!
http://us.click.yahoo.com/vO1FAB/txzCAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
since you've already got the unit(s) type-marked, I'd use a race
attribute for validation, rather than something on the unit. My
recommendation would be:
ulmt:type=honor-max@unit=1
optionally, add: -msg=<message id>

--- In armybuilder@y..., Dragon2012@e... wrote:
> I want to make a unit that is type honor limited to 1 per army.
>
> I have assigned type:honor to the corrct units.
>
> Then i tried umax:1u (but I dont know what the "#" is in #istype)

#istype is a shorthand for a typecheck. the actual syntax is
explained in the construction kit manual:
"–istype=type
This constraint determines if the specified type is defined for any
unit in the entire roster. If no unit
has the type defined, then the attribute is not applied. The type may
include wildcards. It is also
possible to specify the syntax as "–istype=!type" to determine if the
type is not defined anywhere in
the roster."

so the usage you're looking for is:
umax:1u-istype=honor

but as I said, I think it's probably best implemented as a race
validation...

daniel


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Small business owners...
Tell us what you think!
http://us.click.yahoo.com/vO1FAB/txzCAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Using "umax" with the "istype" qualifier tells AB that you want to impose a
limit of one instance of the unit if ANY unit in the ENTIRE roster has the
specified type. From your description, this is not want you are after. If
you want to limit the roster to one instance of a unit that has type
"honor", then the best solution is to use "tlmt". You just have to be sure
not to re-use the type "honor" on other units, so you might consider
calling it type "xxxxhonor", where the "xxxx" indicates the particular unit
in some way.

Thanks, Rob


At 02:23 PM 7/26/2001 +0000, you wrote:
>I want to make a unit that is type honor limited to 1 per army.
>
>I have assigned type:honor to the corrct units.
>
>Then i tried umax:1u (but I dont know what the "#" is in #istype)


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Small business owners...
Tell us what you think!
http://us.click.yahoo.com/vO1FAB/txzCAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Back
Top