help with selecting a subset of options

jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

I've been working on this for a few days, and there has be an easier way of doing this. My code should work, but it doesn't. In my game I present the user with 6 options. They can select and deselect them at will. This part works fine. The problem is, I only want 3 of the options to be selected at any time. So if the user selects options 1, 2, 4. They would have to deselect one of them to choose option 5. On top of that, I need to keep track of the values of each option.

I've tried storing the values in attributes and tables. but for whatever reason my deselect code never seems to function properly. the image will show it deselected, but the back end attribute doesn't update.

I know this is easy, but I have a feeling I'm getting too caught up with my existing code to see the answer staring me in the face.

Anyone done something similar before?

Comments

Sign In or Register to comment.