Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder

Notices

Reply
 
Thread Tools Display Modes
Russell
Senior Member
Volunteer Data File Author
 
Join Date: Mar 2005
Location: Australia
Posts: 254

Old April 9th, 2006, 02:35 AM
I have a ruleset which I use to limit the list of available units to a small fixed subset of the standard list when it is selected. The list of units to be shown is much smaller than the list to be excluded when the ruleset is active and future figure releases will also most likely fall into the excluded list.

Aside from adding a !ruleset.xyz to the member tagexp for every unit I don't want in the list (which is what I've currently got), is there a quicker way where I use the reverse logic?
Basically I only want to "do something" to the units I want to appear in the list and hide everything else when the ruleset is active.

The aim is to avoid me forgetting to put the !ruleset.xyz in the member tagexp when I add new units in the future.

Cheers,
Russell.
Russell is offline   #1 Reply With Quote
HakujinGrande
Senior Member
Volunteer Data File Author
 
Join Date: May 2005
Location: Santa Cruz, CA, US
Posts: 123

Old April 9th, 2006, 07:02 AM
If I think I understand, the only other scheme would involve adding member tags to every unit. As far as I can tell, you're already using the easiest method.

Space Marine Maintainer for AB3
Battlefleet Gothic Maintainer for AB3
40K: Space Wolves, 13th Company, Grey Knights, Deathwatch
BFG: Space Marine Fleet, Armageddon Fleet, Tau Fleet
HakujinGrande is offline   #2 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,005

Old April 17th, 2006, 07:09 PM
If this is the only situation where the exceptional behavior will exist, then there really isn't a better way to deal with it. :-(

However, if this type of exception will occur in multiple situations, with different sets of units, you're probably better off setting up an inverted behavior implementation. For example, let's say that there is a ruleset for race X that only includes a handful of units, plus a separate ruleset for race Y that only includes a handful of units, plus the same for race Z, etc. Now what if the publisher comes up with a different subset for race X, a different one for race Y, etc. In this situation, you'll be needing to add the "& !ruleset.xyz" all other the place. This gets pretty sucky. So the trick is to force AB to use an inverted way of handling inclusion.

Basically, what this approach amounts to is defining a tag that excludes all units and then individually add the units in when appropriate. Start by defining a global tag called "allunits". Then add to EVERY unit's Member tagexpr "!global.allunits". Yes, this is the same as your current situation, so it's no better, UNLESS this situation arises in multiple cases, where it becomes a true savings. :-) The net result at this point is that no unit will appear.

I'm going to assume that ruleset(s) you're worried about represent special scenarios or other options that will be chosen as alternatives to the "standard game". So now you can have the "standard game" ruleset define the "global.allunits" tag. Voila! All of the units once again appear for that ruleset. However, no units appear for the other units. You can now add appropriate modifications to the Member tagexprs for the small number of units that should appear in the other rulesets, with all units being excluded by default. The key difference is that you'll use an "|" to combine terms in the Member tagexprs instead of "&".

The net result is that you've now inverted the way AB includes units, so you only have to worry about mucking with the units that are included in a ruleset to make them visible. :-)

Hope this helps,
Rob


At 03:35 AM 4/9/2006, you wrote:

Quote:
I have a ruleset which I use to limit the list of available units to a small fixed subset of the standard list when it is selected. The list of units to be shown is much smaller than the list to be excluded when the ruleset is active and future figure releases will also most likely fall into the excluded list.

Aside from adding a !ruleset.xyz to the member tagexp for every unit I don't want in the list (which is what I've currently got), is there a quicker way where I use the reverse logic?
Basically I only want to "do something" to the units I want to appear in the list and hide everything else when the ruleset is active.

The aim is to avoid me forgetting to put the !ruleset.xyz in the member tagexp when I add new units in the future.

Cheers,
Russell.
rob is offline   #3 Reply With Quote
Russell
Senior Member
Volunteer Data File Author
 
Join Date: Mar 2005
Location: Australia
Posts: 254

Old April 18th, 2006, 03:40 AM
Hmm, I think what you propose might be just the logic I was looking for. I'll have a bash at it and see how it comes up.

Thanks again Rob!

Russell.
Russell is offline   #4 Reply With Quote
Reply

Thread Tools
Display Modes

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


All times are GMT -8. The time now is 11:57 PM.


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