• 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

Son of Stupid Tag Question

Mettius

Well-known member
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:
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
 
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.
 
Back
Top