• 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

Global attributes

  • Thread starter Thread starter stevenjcox at cableinet.c
  • Start date Start date
S

stevenjcox at cableinet.c

Guest
Rob, I need help!

I've been at this one for a few weeks, but still haven't got it working.

The army has six options that, when chosen, apply to the whole army.
However, only one option may be chosen.

I gave each option the 'glob:auto' attribute, but every unit ended up with
all six options, before I even gave any unit the option.

There is a unit in the army that must be taken, who also happens to be the
general, and I would like the options to be selected through him.

Steve the Builder
Can we fix it.. yes we can!

AB40k Group: http://groups.yahoo.com/group/ab-40k3/

AB40k Homepage: http://www.electricstitch.com/ab_files/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/17NapD/XdiDAA/9ZuFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
The "glob" attribute is working as it should. When you mark as an option as
"glob", that option is automatically assigned to EVERY option in the entire
system. If you specify "glob:cost", then the option will need to be
selected by the user, but it will be available for every unit.

Based on your description, I recommend the following....

1. Define your six options and assign them all to the same conflict group.
This way, only one can be selected by the user.

2. Use the "more" attribute to chain each of these options off of the
"general" option. If a unit is assigned the "general" option, all six of
the army-wide options will appear for that unit.

3. Have each of your six options assign the type "ArmyOption" (or whatever)
to the unit via the "type" attribute.

4. Use a "tlmt" attribute to enforce that a minimum of 1 unit with type
"ArmyOption" exist within the army.

I think the above ought to solve the problem for you....

Hope this helps,
Rob

[Rob ducks back down and resumes working on code again....]


At 09:45 AM 2/15/2002 +0000, you wrote:
>Rob, I need help!
>
>I've been at this one for a few weeks, but still haven't got it working.
>
>The army has six options that, when chosen, apply to the whole army.
>However, only one option may be chosen.
>
>I gave each option the 'glob:auto' attribute, but every unit ended up with
>all six options, before I even gave any unit the option.
>
>There is a unit in the army that must be taken, who also happens to be the
>general, and I would like the options to be selected through him.


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


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/17NapD/XdiDAA/9ZuFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Back
Top