Forum Discussion
Triggers on Slide Layer for Object don't seem to be executing top to bottom
I hope someone can help. I have a question slide with correct/incorrect layers. When the user clicks the continue button on one of these layers, they should jump to a slide based on the value of a variable. I've included a screenshot showing a layer with the variables references on the top and the triggers on that layer. Based on the values of the variables and the ordering of the triggers, I believe that the user should jump to slide 7.16 Educational Items. However, the user jumps to slide 7.18 instead. I can't figure out why the triggers aren't executing from top to bottom or what the issue could be. (I tried separating the multi-conditional trigger into separate triggers and the user was still directed to 7.18 instead of 7.16).
- WaltHamiltonSuper Hero
With the values the way the references show, and the triggers the way they show in the picture, the second trigger is never executed, because the first jump stops any further execution of triggers. So it looks like your problem is somewhere else.
There may be a trigger on 7.16 that jumps to 7.18 when the timeline starts, or perhaps it is the second visit to 7.16, and it is set to return to saved state on revisit, and jump to 7.18 when timeline ends. Either of those ( and many more) conditions could cause what you are seeing. Attaching the .story file here makes it much easier for someone to tkae a look at it.
- ThomasReilly-c7Community Member
Hi,
Thank you for your response. I'm attaching an abbreviated .story file. The issue is that the first trigger isn't executed, the third one is instead. It's as if the triggers are executing bottom up. I changed the Or to And in the third trigger so that it evaluates to false, and then the first trigger executed as intended. My slides are set to reset to initial state and user must click Next to move from slide to slide. I'm stumped.
Test Case: 4 pre-test questions (Answers: C, A, D, B). If questions 2 & 3 are answered incorrectly, then the user moves to 1.12, 1.13, 1.14 and 1.15. The triggers on 1.14 should have the user move to 1.15 (top trigger) but instead the user goes to 1.18 (bottom trigger). Similar thing happens if the user answers questions 3 & 4 incorrectly. Should go 1.12, 1.13, 1.15, 1.16. The triggers on 1.15 should move the use to 1.16 (top trigger) but instead they move to 1.18(bottom trigger).
- WaltHamiltonSuper Hero
These are the triggers in question. When all four variables are false, clicking Button causes a jump to slide1.18. I tested it a lot of ways, and slide 1.18 is definitely the priority choice. If the jump to 1.18 is disabled, it then jumps to 1.15. There are triggers on 1.15 to jump to 1.18, but they must be accessed through means of two distinct clicks, so it is not a wayward trigger. This is absolutely not expected behavior. If you don't have something corrupted in your project, then I suspect something about the trigger with two conditions is causing it to grab preference over the single condition triggers. I would definitely open a support case.
- ThomasReilly-c7Community Member
Thank you for taking a look. The issue must be related to the triggers being on a layer. I was never able to get the triggers to function correctly. I decided to remove the Continue buttons on the feedback layers and attach the triggers to the Player Next button on the Base layer instead. Now everything works as expected.