Senior Member
Join Date: Jan 2009
Location: Austin, TX
Posts: 140
|
Does an option intrinsically have a tag?
Example: given an option with unique id: Code:
Bear_Arm *Edit: I'm now not even sure one can assign a tag to an option. I can't seem to find a way to do it. There is no option to assign a tag via the ABC Gui to an option, only to a unit. Is this correct? Last edited by Mettius; January 18th, 2015 at 12:16 PM. |
#1 |
Senior Member
Join Date: May 2012
Posts: 206
|
You can't tag an option, you can tag the unit or item if an option is selected:
if option[option name].selection > 0) then var tagRet as number tagRet = unit.assign[tag group.tag name] endif My own Warlord Games gallery and the home of the Warlord Games datafiles: http://www.facebook.com/ABDataFileWarlordGames |
#2 |
Senior Member
Volunteer Data File Author
Join Date: Oct 2011
Posts: 121
|
You can also assign a tag as part of the pre-link script for an item (since iirc you said the option is for the selection of an item). I do this in a few places for the x-wing data files. Check out a few of the title upgrades.
My code doesn't have bugs; it has undocumented features! |
#3 |
Thread Tools | |
Display Modes | |
|
|