Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
jerrya at wellspringsolut
Guest
 
Posts: n/a

Old November 27th, 2001, 08:51 AM
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/MkN...SFAA/IMSolB/TM
---------------------------------------------------------------------~->
  #1 Reply With Quote
shawn at electricstitch.c
Guest
 
Posts: n/a

Old November 27th, 2001, 09:01 AM
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/AqS...SFAA/IMSolB/TM
---------------------------------------------------------------------~->
  #2 Reply With Quote
jerrya at wellspringsolut
Guest
 
Posts: n/a

Old November 27th, 2001, 09:27 AM
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/MkN...SFAA/IMSolB/TM
---------------------------------------------------------------------~->
  #3 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old November 29th, 2001, 11:05 PM
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/0AY...uFAA/IMSolB/TM
---------------------------------------------------------------------~->
rob is offline   #4 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating Skill Focus, School and Alignment AWizardInDallas HL - d20 System 1 December 18th, 2008 12:53 PM
validating unit sizes goulddt at thai.amedd.arm Army Builder 1 July 2nd, 2003 09:54 PM
Category of this group? moser at cse.unsw.edu.au Army Builder 2 August 7th, 2000 06:16 PM
Item Category cyboarg at yahoo.com Army Builder 5 January 24th, 2000 03:12 PM


All times are GMT -8. The time now is 08:20 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.