Guest
Posts: n/a
|
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/txz...SFAA/IMSolB/TM ---------------------------------------------------------------------~-> |
#1 |
Guest
Posts: n/a
|
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/txz...SFAA/IMSolB/TM ---------------------------------------------------------------------~-> |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
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/txz...SFAA/IMSolB/TM ---------------------------------------------------------------------~-> |
#3 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple question... | UrbanKnight | Warhammer 40,000 | 1 | December 22nd, 2005 04:01 AM |
Shadorun action figure game | emperor799 at bellsouth.n | Card Vault | 5 | December 17th, 2003 07:15 AM |
Simple problem for a simpleton(me) | boarak at hotmail.com | Army Builder | 1 | January 26th, 2001 12:34 PM |
Two (simple?) Questions | hunton at hotmail.com | Army Builder | 4 | June 14th, 2000 12:14 PM |
A simple question | wraith_21 at mail.com | Army Builder | 5 | March 19th, 2000 08:45 PM |