Need help with variables.

I have a list of 12 items with check boxes next to each.

Hello,

I am hoping someone can help me. 

I need to show one of three possible outcomes:

Outcome 1:If user selects all of Options 1, 2, 3, 4, 5,7,12 - The "Correct" layer is shown

Outcome 2: If user selects any of Options 6,8, 9, 10, 11 - The "Incorrect" Layer is shown.

Outcome 3: If user selects some of the Options 1, 2, 3, 4, 5, 7, 12 - An "Incomplete" Layer is shown.

I have been trying to figure this out but am stumped.

Any help would be wicked awesome!

Kurt

6 Replies
James McLuckie
I have feeling that there are easier ways of doing it than this but ...
I started off by 
Show Layer - Correct  - When User Clicks - Button 1 - On Condition - (all of) 1/2/3/4/5/7/12 - Are - Selected
Show Layer -Incorrect -When User Clicks - Button 1 - On Condition - (all of) 6/8/9/10/11 - Are - Selected
Show Layer - Incomplete - When User Clicks- Button 1 -On Condition - (any of) 1/2/3/4/5/7/12 - Are Not -Selected
Despite having the third Incomplete trigger below the Incorrect trigger, when you press Button 1 it bypasses the conditions for the incorrect layer and goes straight to the incomplete layer. I tried adding additional conditions to the trigger to generate the incorrect layer (e.g. that 1/2/3/4/5/6/12 are either set to normal or not set to selected) but no luck. 
So, I removed the trigger for the incorrect layer and set up a numeric variable. When the learner selected 6/89/10/11 the numeric variable goes up by 1. The trigger to generate the incorrect layer is now:
Show Layer -Incorrect-When User Clicks-Button 1- On Condition-Variable1 - Is Equal to - 5.
Two things, however. You need to set up a visited state for 6/8/9/10/11 and set conditions that 1 is only added to the variable on the condition that the shape's state is not equal to visited. Otherwise the learner can merrily click away on the one number and the variable will keep going up and up. (I have put a counter on screen so that you can see it working.)
If you want the learner to try again, then you will need to set up a trigger to reset Variable1 to zero (I have done this on the incomplete layer, so you can see it). You will probably also need to set up a trigger to return the states of 6/8/9/10/11 to normal, so that the exercise resets itself.
Story file is attached. You'll probably need to do a bit more tinkering with it to make it perfect, but it hopefully gives you a steer. 
Good luck! 
(Incidentally, am sorry this post is so hard to read. For some reason, the paragraph breaks keeps being removed when I post.)
Kurt Masteller

Wow!  Those are both excellent solutions!

James I shall name my first born after you... however, he is 17 and that might freak him out.  Either way, thank you for your solution!

Dipti, very elegant and brilliant solution!  I will play with both and learn from both.

Thank you so much for all your help and quick responses!

Kurt