• 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

Can Option A deselect Option D?

Homer S

Well-known member
Is it possible to remove options based on either tags or other options?

The case is

When Option A is selected Tag One is assigned
When Option B is selected Tag Two is assigned
Options A & B are Exclusion 11 (so one is required, the other is disabled)

Option C is auto and live with Tag One and not Tag Two
Option D is user selectable and live with Tag One and not Tag Two

If A and D are selected and the user deselects A to select B, Option C disappears but Option D remains and flags a validation error.

I'd like deselecting A to remove the selection of Option D.

Homer
 
Last edited:
You should be able to do a "parent.option[id].selection = 0" in an option eval script to have one option deselect another. (You can't do this in a pre-link or post-link script on a unit or item, only on a script on an option.)

Alternatively you can use "parent.option[id].kill = 1" to make an option disappear entirely, as if it failed its live test.
 
Back
Top