3 checkboxes, ID 41, 42, & 43
Each checkbox is 3 state
If 41 is clicked and state does not equal 0 then 42 & 43 are unchecked
if 42 or 43 are clicked and state does not equal 0, then 41 is unchecked
I tried this
on *:dialog:dialog_name:sclick:41-43:{
if $did(41).state {
did -u $dname 42,43
}
if $did(42).state {
did -u $dname 41,43
}
if $did(43).state {
did -u $dname 41
}
}
but when tested, if a lower ID had a state, then the higher ID's wouldn't change
In case the above is confusing
Checking the first box unchecks the other two
Checking the 2nd box unchecks the first & 3rd
Checking the 3rd box unchecks the first
Hopefully one of the two explanations (if not both) is clear enough for someone to show how I should do this.