Senior Member
Volunteer Data File Author
Join Date: Apr 2009
Posts: 134
|
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 The only "hobby" GW is interested in is lining their pockets with your money. Last edited by Homer S; June 10th, 2010 at 03:32 PM. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
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. |
#2 |
Thread Tools | |
Display Modes | |
|
|