Hi all.
I'm new to the forums and have been playing with ABCreator now for a few weeks, trying to add support for the new Diving Eagles FoW book to my AB data files for that game system.
I've made real good progress but am stumped on the best way to go about something. Hope someone can help.
For illustration purposes let me talk in abstracts.
I have a unit (U0), linked to it are two otions (O1 and O2) and two child units (UO1A and UO1B). There is a third unit (UO2) which is linked as a child to UO1A and UO1B.
If O1 is not selected then UO1A appears beneath U0.
If O1 is selected then UO1B appears beneath U0.
If O2 is not selected then UO2 does not appear beneath whichever is visible between UO1A and UO1B.
If O2 is selected then UO2 does appear beneath whichever is visible between UO1A and UO1B.
When I use tags to "signal flare" the above it all works great, I understand how to use the "signal flare" concept Rob alludes to elsewhere, but my problem is now this...
When I leave O1 unselected I see UO1A, when I select O2 then UO2 appears beneath UO1A, just as I want. But if I now select O1 then UO1B appears in place of UO1A but it does not have UO2 beneath it, even though O2 is still selected. I have to un-select O2 and re-select it to get UO2 to appear beneath UO1B. I think I know why this is happening - in my EVAL script for O2 I visit UO's children UO1A and UO1B and fire my "flare" but at that time only one of them is really "active" so I think AB is only "flaring" the "active" one (as dictated by the current state of O1), meaning when I use O1 to "activate" the other unit it doesn't know its supposed to be "flared" by O2.
So what is the easiest way to remedy this? I was trying to write a PreLink script on UO1A and UO1B that would check to see if O2 was selected and then fire their own "flare" to get UO2 to appear but I haven't cracked the code necessary to do that, or even know if that is the correct approach.
Does a better approach involve some further nesting of links to permit these two options, O1 and O2, to work together like this?
Does it just boil down to a priority issue?
Thanks for any advice or tips in advance.
--Andy
I'm new to the forums and have been playing with ABCreator now for a few weeks, trying to add support for the new Diving Eagles FoW book to my AB data files for that game system.
I've made real good progress but am stumped on the best way to go about something. Hope someone can help.
For illustration purposes let me talk in abstracts.
I have a unit (U0), linked to it are two otions (O1 and O2) and two child units (UO1A and UO1B). There is a third unit (UO2) which is linked as a child to UO1A and UO1B.
If O1 is not selected then UO1A appears beneath U0.
If O1 is selected then UO1B appears beneath U0.
If O2 is not selected then UO2 does not appear beneath whichever is visible between UO1A and UO1B.
If O2 is selected then UO2 does appear beneath whichever is visible between UO1A and UO1B.
When I use tags to "signal flare" the above it all works great, I understand how to use the "signal flare" concept Rob alludes to elsewhere, but my problem is now this...
When I leave O1 unselected I see UO1A, when I select O2 then UO2 appears beneath UO1A, just as I want. But if I now select O1 then UO1B appears in place of UO1A but it does not have UO2 beneath it, even though O2 is still selected. I have to un-select O2 and re-select it to get UO2 to appear beneath UO1B. I think I know why this is happening - in my EVAL script for O2 I visit UO's children UO1A and UO1B and fire my "flare" but at that time only one of them is really "active" so I think AB is only "flaring" the "active" one (as dictated by the current state of O1), meaning when I use O1 to "activate" the other unit it doesn't know its supposed to be "flared" by O2.
So what is the easiest way to remedy this? I was trying to write a PreLink script on UO1A and UO1B that would check to see if O2 was selected and then fire their own "flare" to get UO2 to appear but I haven't cracked the code necessary to do that, or even know if that is the correct approach.
Does a better approach involve some further nesting of links to permit these two options, O1 and O2, to work together like this?
Does it just boil down to a priority issue?
Thanks for any advice or tips in advance.
--Andy