• 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

Deselecting tags via options

Dirkhrod

New member
What I want to do is be able to deselect a "type" (tag) by selecting an option.

Namely, I have a unit that is of type "X" when without bows and of type "Y" with bows. By selecting bows, I want to select type "Y" (which I know how to do), but at the same time deselect/override type "X". The second issue, I do not know how to handle.

I know there is the possibility of linking type X to an option and having the option deselected (I did that until now), but I wanted to know if there is a possibility for doing this automatically.

Thank you,
Dan.
 
Sounds to me like you're doing it the right way already...
If you want it to be "more automatic", you could use a live expression on the option that sets tag X that makes it valid only when tag Y is not defined. Ensure the option that sets tag Y is of a slightly lower priority (so it gets processed first). Then attach both options to your unit in the appropriate manner...

Hope that helps,
Russell.
 
You can use the script target reference "assign[group.id]" to assign a tag to a unit by including it within the Evaluate script for an option. Similarly, you can use the target reference "delete[group.id]" to delete a tag from a unit via an option's Evaluate script.

Hope this helps,
Rob

At 10:05 PM 8/18/2005, you wrote:

What I want to do is be able to deselect a "type" (tag) by selecting an option.

Namely, I have a unit that is of type "X" when without bows and of type "Y" with bows. By selecting bows, I want to select type "Y" (which I know how to do), but at the same time deselect/override type "X". The second issue, I do not know how to handle.

I know there is the possibility of linking type X to an option and having the option deselected (I did that until now), but I wanted to know if there is a possibility for doing this automatically.

Thank you,
Dan.
 
Back
Top