Activating/deactivating an image when several buttons are clicked but others are not
Activating/deactivating an image when several buttons are clicked but others are not.
I'm currently struggling with an issue with trigger, variables and states.
I have tried many things, none satisfying.
I have 8 images which are turned into buttons with 3 states (Normal, Deactivated, Selected), these images are several choices. So I'll refer to them as "the choices" hereafter
On the other side of the screen I have 9 images which have to states Deactivated and Normal. These are "the results". By default they are deactivated.
Let's say that Result1 should turn to "Normal" when any of choices 1, 2, 3 and/or 4 are selected AND NONE of choices 5, 6, 7 nor 8 is.
Also, Result1 should turn back to "Deactivated" (default state) when none of 1,2, 3 ad 4 are selected OR if any of 5, 6, 7 or 8 is.
How can I do this?
So far I succeeded into getting Result1 to Normal when I select the proper ones, and deactivate if I select another one, but if I unselect 5 for example, the state doesn't change. (But if unselect one of 1, 2, 3 or 4, it is deactivated :'( )
My triggers so far are :
Change state of Result1 to Normal if ANY OF objects 1,2, 3 or 4 is selected, on the conditions that 5 is NOT selected
AND 6 is NOT selected
AND 7 is NOT selected
AND 8 is NOT selected
Change state of Result1 to Deactivated if ANY OF objects 5,6,7 or 8 is selected.
Then I tried other things, unsuccessfully. I tried things with variables but I was hoping that something like "Change Result1 to Normal if variable var_1 = True" but I can only say "if variable var_1 changes" :/
The overall idea is to get a result depending on the choices, so I need to be able to say :
If choices 1, 2, 3 or 4 and none of the others --> display Result1
If choices 2, 4, 6 and 7 and none of the others --> display Result2
If choices 2, 3,and 8 and none of the others --> display Result3
If choices 5 and 6 and none of the others --> display Result4
Thanks for your help.