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
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 26th, 2007, 11:05 AM
Here's what I'm trying to accomplish:

If a unit takes a specific item, an option on other items becomes visible. Basically, the one item improves the function of the others, and I want to put in reminder text.

I tried a global tag, but that means that once any unit takes the improving item, all of them think they have it.

Mirroring doesn't work either. Mirroring controls selection state, not visibility.

Suggestions, please?
Mathias is offline   #1 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old June 28th, 2007, 02:41 PM
At 12:05 PM 6/26/2007, you wrote:
Quote:
If a unit takes a specific item, an option on other items becomes visible. Basically, the one item improves the function of the others, and I want to put in reminder text.

I tried a global tag, but that means that once any unit takes the improving item, all of them think they have it.

Mirroring doesn't work either. Mirroring controls selection state, not visibility.
Since you tried mirroring, I assume you are coordinating two items on the same parent unit. If that assumption is wrong, then the following response is irrelevant.

This can be orchestrated through the careful management of evaluation timing. The item that adds the option to the others must be processed BEFORE the others. This means that the link attaching the item must have an earlier priority. This further means that the item cannot be added via the same selection mechanism as the others.

The first item can then assign a tag to the parent unit that can be propogated downward and tested. Better yet, you could use the "children" transition from within the PreLinks script of the item to navigate up to the unit and then assign a tag to all of the child enties to indicate the first item is present. You should then be able to conditionally display the options on the other items based on the presence of the tag.
rob is offline   #2 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


All times are GMT -8. The time now is 12:30 AM.


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