Forum Discussion
Variable not working across all layers on Multi-answer Quiz
Hi Veronica. The story file you attached did not seem to have any triggers for showing any of the second-round layers. Duplicating each of your layer 1, 2, 3, 4b, and 4c triggers, changing the target layers, and adding conditionals to them all to check Attemps_2 seemed to do what you wanted.
Here's a few notes:
Not all answer combinations are accounted for, but you are still incrementing the Attemps_2 counter. It is therefore better to check if the counter is greater or less than your target value, rather than equal to it.
You will need to check the Attemps_2 variable in all of the triggers (either <2 for 1st try, or >= 2 for 2nd try).
If an unchecked answer combination is selected first, the next valid attempt goes straight to the 2nd-Attempt layer.
You might want to put the maximum number of attempts into a variable, and then use the variable in the conditional checks. It makes it easier to quickly change the number of allowed attempts without retyping.
The variable Attemps_2 is missing a 't', so it is easy to mistype when troubleshooting.