Variable changing but state not updating
I have a couple of issues with this actually.
On the first slide, users are asked to choose whether they want to hear the audio or to just read the content. Depending on their answer, they'll either go to 1.2 (for reading) or 1.3 (for audio).
For both of these, when all of the interactions are complete, it's set to send learners to the last slide that will allow them to x out of the course.
These are the problems I'm having right now:
1.2- as soon as you click on the last character, instead of opening the corresponding layer, it goes straight to the last slide. I have the triggers set so that the layer should appear before the variable is updated and I thought that was sufficient.
1.3- the audio slides are a bit different in that there is a duplicate of the original slide that brings learners to a muted layer so that the player isn't continually going back to play the audio once the user tries to return to the screen. I did create variables and set my triggers to update in the correct order- on the initial slide it's
- update variable to true
- change state to visited
- show layer
When learners are finished with the new layer and close out of it, it's supposed to bring them to the muted slide. This is working, and the variable is updating appropriately, but the state isn't changing. This is only for the first character- for all of the rest of them the state change works as intended since it's not relying on the variable being carried over from the original slide.
I'm not really sure what I'm doing wrong. Do I need to add triggers with conditions and if so, what should they be? Can anyone help me? Attaching the file here.