Senior Member
Volunteer Data File Author
Join Date: May 2005
Location: Matawan, NJ, USA
Posts: 158
|
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? CASH FOR THE CASH GOD!!! MORE COINS!!! MORE COINS!!! |
#1 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
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".
|
#2 |
Senior Member
Volunteer Data File Author
Join Date: Apr 2009
Posts: 134
|
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 The only "hobby" GW is interested in is lining their pockets with your money. |
#3 |
Senior Member
Join Date: May 2012
Posts: 206
|
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!
My own Warlord Games gallery and the home of the Warlord Games datafiles: http://www.facebook.com/ABDataFileWarlordGames |
#4 |
|
|