• 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

lglx or itst

  • Thread starter Thread starter rjs at inorbit.com
  • Start date Start date
At 12:35 PM 8/29/00 +1100, you wrote:
>There's two ways to do race restriction on an item.
>lglx:race=xx OR itst:race=xx
>
>Is one better than the other? Is there a difference?

The "lglx" attribute is applied immediately when the roster is created. If
an item doesn't satisfy the "lglx" attribute, it's never shown and never
even considered by AB. This is definitely the preferable mechanism for
performance. The "itst" mechanism really makes no sense for a simple
"race=xx" test. Where it's real power comes from is the ability to write
boolean expressions that are based on the race, type, category, and all
sorts of other things. Some items are only available to units of type XX in
a given race, and "itst" makes this possible.

Hope this helps,
Rob

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

-------------------------- eGroups Sponsor -------------------------~-~>
GET A NEXTCARD VISA, in 30 seconds! Get rates
of 2.9% Intro or 9.9% Ongoing APR* and no annual fee!
Apply NOW!
http://click.egroups.com/1/7872/4/_/36190/_/967515524/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
Thanks, that was exactly the answer I was after :-)

> -----Original Message-----
> From: Rob Bowes [mailto:rob@wolflair.com]
> Sent: Tuesday, 29 August 2000 1:21 PM
> To: armybuilder@egroups.com
> Subject: Re: [AB] lglx or itst
>
>
> At 12:35 PM 8/29/00 +1100, you wrote:
> >There's two ways to do race restriction on an item.
> >lglx:race=xx OR itst:race=xx
> >
> >Is one better than the other? Is there a difference?
>
> The "lglx" attribute is applied immediately when the roster
> is created. If
> an item doesn't satisfy the "lglx" attribute, it's never
> shown and never
> even considered by AB. This is definitely the preferable
> mechanism for
> performance. The "itst" mechanism really makes no sense for a simple
> "race=xx" test. Where it's real power comes from is the
> ability to write
> boolean expressions that are based on the race, type,
> category, and all
> sorts of other things. Some items are only available to units
> of type XX in
> a given race, and "itst" makes this possible.
>
> Hope this helps,
> Rob
>
> --------------------------------------------------------------
> -------------
> Rob Bowes (rob@wolflair.com)
> (650) 726-9689
> Lone Wolf Development
> www.wolflair.com
>
> -------------------------- eGroups Sponsor
> -------------------------~-~>
> GET A NEXTCARD VISA, in 30 seconds! Get rates
> of 2.9% Intro or 9.9% Ongoing APR* and no annual fee!
> Apply NOW!
> http://click.egroups.com/1/7872/4/_/36190/_/967515524/
> --------------------------------------------------------------
> -------_->
>
> To unsubscribe from this group, email
>
> armybuilder-unsubscribe@egroups.com
>
>
>


-------------------------- eGroups Sponsor -------------------------~-~>
GET A NEXTCARD VISA, in 30 seconds! Get rates
of 2.9% Intro or 9.9% Ongoing APR* and no annual fee!
Apply NOW!
http://click.egroups.com/1/7872/4/_/36190/_/967516466/
---------------------------------------------------------------------_->

To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com
 
Back
Top