• 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

Tryin to "identify" a unit dragged into another unit

shaggai

Well-known member
Question: In the 40K files we started to make use of the drag-and-drop mechanic. The problem that we are facing at the moment is the need of a unit to take on either a tag or stat which can be used to identify that it has been dropped into a specific unit, so then that unit can be modified.

At the moment it looks like units which have been dropped into another unit are simply there, there seems to be no child/parent relationship between the two.

Is this something that is possible of would this take a new iteration or major build of AB to accomplish?
 
Look into using the "squad tags" mechanism - I believe you should be able to define "squad tags" on your units that apply to all units in the same squad. You can then code things like "If I'm in a squad with unit X, do A; if I'm in a squad with unit Y, do B; etc".
 
Yes!

Once I figured out how to make the squad tags, I created a global linkset to add an option with eval that assigns a tag to the unit if it's squad has a certain tag. I can then make logic work on that assigned tag, such as checking if the dropped unit is legal for the squad. I had to exclude the squad itself since it would get tagged as well.

Homer
 
That's useful to know - am looking to use the squads mechanism for Hail Caesar, Black Powder and Pike & Shotte too - the only barrier is the ordering of things so that when you drop a squad into the container unit it doesn't end up at the top of it by accident then all is good to go!
 
Back
Top