Variables, triggers, states and tantrums
I'm having some trouble with variables changing the state of an object.
I have 9 buttons and I want to add a value of 1 to a variable every time a button is selected, when the variable equals 1 I want it to change the state of an object then again when the variable reaches say 2,3,4 etc. I've no trouble doing this, however, I also want the variable to subtract a value of 1 when the user deselects the button, this is what is causing me the trouble and change the state od the object again.
Thank you for any help you are able to give.