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
harkan
Senior Member
Volunteer Data File Author
 
Join Date: Mar 2005
Posts: 345

Old November 27th, 2005, 11:05 AM
situation:

unit A has champion as child unit B. Unit A can select option X which is then applied to child unit B. Child unit B can the deselect that option.

I've tried mirroring but that disables the option, have tried script from parent unit to enable it but AB won't allow it.

Tried tagging it so when the parent unit selects the option then option X becomes live on the child unit but to no avail (child does show the tag in place and the priorities are different)

Tried starting option X as non-visible and start selected then the visibility be changed by child unit B scripting when it detetcts the parent has selected the option but as it is 'start selected' it automatically shows

any-one had a similar circumstance?
harkan is offline   #1 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old November 27th, 2005, 12:46 PM
I believe this is an issue of timing. The tagging approach is the right way to solve this, but the tag has to be assigned to the child before it tests the tag, else you won't get the behavior you want. The exact timing sequence for everything is documented in the Critical Concepts chapter in the topic Evaluation Sequence.

The child entity is processed at the priority of the option that attaches it. If the priority of that option is earlier than the option that assigns the tag on the parent, the tag will not be assigned in time. The trick is to assign the tag on the parent earlier, which can be accomplished by having an eariler evaluation priority. You can keep things displayed the way you want them by using a different display priority.

If you have situation where the parent needs to do this for various child entities, remember that you can use the "children" context transition to apply a tag change to all children. This makes it possible to have the option on the parent work for a variety of different child entities without having to identify each one explicitly.

When you debug a situation like this, please remember to look at both the tags AND the link for each entity involved. The list of tags only shows you the FINAL set of tags assigned to an entity. The links are shown in their evaluation priority and will tell you the SEQUENCE in which everything is being processed by AB. Between the two, you can usually piece together what's going on. :-)

Hope this helps,
Rob

At 12:05 PM 11/27/2005, you wrote:

Quote:
situation:

unit A has champion as child unit B. Unit A can select option X which is then applied to child unit B. Child unit B can the deselect that option.

I've tried mirroring but that disables the option, have tried script from parent unit to enable it but AB won't allow it.

Tried tagging it so when the parent unit selects the option then option X becomes live on the child unit but to no avail (child does show the tag in place and the priorities are different)

Tried starting option X as non-visible and start selected then the visibility be changed by child unit B scripting when it detetcts the parent has selected the option but as it is 'start selected' it automatically shows

any-one had a similar circumstance?
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 08:17 PM.


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