• 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

ABCreator - Validating by Unit Category

  • Thread starter Thread starter jerrya at wellspringsolut
  • Start date Start date
J

jerrya at wellspringsolut

Guest
Hi all,

I'm new to creating AB files so bear with me on this one. I'm putting
together AB files for a game called AK47 Republic. The organization of the
game somewhat maps to how AB is designed but there are some gaps. One of the
gaps that I am trying to close involves restricting the number of units
present in a roster. This is how things are organized - I will use Warhammer
40k as a reference.

Roster type: Religious, Popular Front = Imperial Guard, Orks, etc.

Composition groups: Professional, Regular, Militia = HQ, Elites, Troops,
etc.

Units: Unit 1, 2, 3, 4, 5 = Armored Fist Squad, Basilisk, etc.

The problem that I am trying to solve is for an army roster to be valid
there can be only 5 units, filled out with other options of course, but
nonetheless the roster can only have 5 units and the units can be any one of
the composition groups i.e. Professional, Regular or Militia. I've created
specific Units for each Composition Group e.g. there is a Professional Unit
1, Regular Unit 1 and a Militia Unit 1. The user is only allowed to have one
Unit 1 - either Professional, Regular or Militia. How do I setup the
validation rules so that I can look at the entire roster and only allow a
single unit to be created regardless of its composition group? I would like
to use the Unit Category field but I can't figure out how to validate using
it. The reason I would like to use that field is because I've used it to
uniquely identify each unit regardless of its composition group. BTW - I
have been able to figure out how to restrict the users from creating more
than one unit of each type by limiting the size to a max of one.

Thanks
Jerry

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Universal Inkjet Refill Kit $29.95
Refill any ink cartridge for less!
Includes black and color ink.
http://us.click.yahoo.com/kL8TtD/MkNDAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
external attribute for the unit "umax=1u"

this will restrict to you 1 unit for the whole army.

race attribue "tlmt:unit1=1"

this would limit units of type "unit1" to only 1 unit per army. Make sure
you give all of "unit1" that type.

(I am certain of the first one, I am thinking off the top of my head for the
second... if I am off, I should at least be on the right track.)

Shawn 'Not Colen' Campbell
40k3@electricstitch.com
http://www.electricstitch.com/ab_files (40k3 Datafiles Website)


> The problem that I am trying to solve is for an army roster to be valid
> there can be only 5 units, filled out with other options of course, but
> nonetheless the roster can only have 5 units and the units can be any one
of
> the composition groups i.e. Professional, Regular or Militia. I've created
> specific Units for each Composition Group e.g. there is a Professional
Unit
> 1, Regular Unit 1 and a Militia Unit 1. The user is only allowed to have
one
> Unit 1 - either Professional, Regular or Militia. How do I setup the
> validation rules so that I can look at the entire roster and only allow a
> single unit to be created regardless of its composition group? I would
like
> to use the Unit Category field but I can't figure out how to validate
using
> it. The reason I would like to use that field is because I've used it to
> uniquely identify each unit regardless of its composition group. BTW - I
> have been able to figure out how to restrict the users from creating more
> than one unit of each type by limiting the size to a max of one.



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Promise to Quit
Nicotrol will help
http://us.click.yahoo.com/5vN8tD/AqSDAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
I am already doing the first option. I'll give the second a try.

Thanks Shawn.

--- In armybuilder@y..., "Shawn 'Not Colen' Campbell" <shawn@e...>
wrote:
> external attribute for the unit "umax=1u"
>
> this will restrict to you 1 unit for the whole army.
>
> race attribue "tlmt:unit1=1"
>
> this would limit units of type "unit1" to only 1 unit per army.
Make sure
> you give all of "unit1" that type.
>
> (I am certain of the first one, I am thinking off the top of my
head for the
> second... if I am off, I should at least be on the right track.)
>
> Shawn 'Not Colen' Campbell
> 40k3@e...
> http://www.electricstitch.com/ab_files (40k3 Datafiles Website)
>
>
> > The problem that I am trying to solve is for an army roster to be
valid
> > there can be only 5 units, filled out with other options of
course, but
> > nonetheless the roster can only have 5 units and the units can be
any one
> of
> > the composition groups i.e. Professional, Regular or Militia.
I've created
> > specific Units for each Composition Group e.g. there is a
Professional
> Unit
> > 1, Regular Unit 1 and a Militia Unit 1. The user is only allowed
to have
> one
> > Unit 1 - either Professional, Regular or Militia. How do I setup
the
> > validation rules so that I can look at the entire roster and only
allow a
> > single unit to be created regardless of its composition group? I
would
> like
> > to use the Unit Category field but I can't figure out how to
validate
> using
> > it. The reason I would like to use that field is because I've
used it to
> > uniquely identify each unit regardless of its composition group.
BTW - I
> > have been able to figure out how to restrict the users from
creating more
> > than one unit of each type by limiting the size to a max of one.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Universal Inkjet Refill Kit $29.95
Refill any ink cartridge for less!
Includes black and color ink.
http://us.click.yahoo.com/iHh8lD/MkNDAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Shawn had good suggestions - types are by far the most flexible and capable
mechanism within AB. However, you CAN limit units based on category via the
"ulmt" attribute. Check the documentation for "ulmt" within ABCreator and
you'll see how it works.

Thanks, Rob


At 09:46 AM 11/27/2001 -0800, you wrote:
>Hi all,
>
>I'm new to creating AB files so bear with me on this one. I'm putting
>together AB files for a game called AK47 Republic. The organization of the
>game somewhat maps to how AB is designed but there are some gaps. One of the
>gaps that I am trying to close involves restricting the number of units
>present in a roster. This is how things are organized - I will use Warhammer
>40k as a reference.
>
>Roster type: Religious, Popular Front = Imperial Guard, Orks, etc.
>
>Composition groups: Professional, Regular, Militia = HQ, Elites, Troops,
>etc.
>
>Units: Unit 1, 2, 3, 4, 5 = Armored Fist Squad, Basilisk, etc.
>
>The problem that I am trying to solve is for an army roster to be valid
>there can be only 5 units, filled out with other options of course, but
>nonetheless the roster can only have 5 units and the units can be any one of
>the composition groups i.e. Professional, Regular or Militia. I've created
>specific Units for each Composition Group e.g. there is a Professional Unit
>1, Regular Unit 1 and a Militia Unit 1. The user is only allowed to have one
>Unit 1 - either Professional, Regular or Militia. How do I setup the
>validation rules so that I can look at the entire roster and only allow a
>single unit to be created regardless of its composition group? I would like
>to use the Unit Category field but I can't figure out how to validate using
>it. The reason I would like to use that field is because I've used it to
>uniquely identify each unit regardless of its composition group. BTW - I
>have been able to figure out how to restrict the users from creating more
>than one unit of each type by limiting the size to a max of one.
>
>Thanks
>Jerry


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (650) 726-9689
Lone Wolf Development www.wolflair.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
PLAY Adversity AND WIN PRIZES!
Test your advertising trivia knowledge and win free products.
http://us.click.yahoo.com/bSZwRD/0AYDAA/9ZuFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Back
Top