Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder

Notices

Reply
 
Thread Tools Display Modes
Mettius
Senior Member
 
Join Date: Jan 2009
Location: Austin, TX
Posts: 140

Old January 18th, 2015, 11:56 AM
Does an option intrinsically have a tag?

Example: given an option with unique id:
Code:
Bear_Arm
Is it referenceable via a tag expression? Or must one manually assign a tag to the option when defining it?

*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.
Mettius is offline   #1 Reply With Quote
Harkan_again
Senior Member
 
Join Date: May 2012
Posts: 206

Old January 19th, 2015, 11:24 AM
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
Harkan_again is offline   #2 Reply With Quote
AntaresCD
Senior Member
Volunteer Data File Author
 
Join Date: Oct 2011
Posts: 121

Old January 21st, 2015, 09:49 AM
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!
AntaresCD is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 06:09 PM.


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