Forum Discussion
Triggers order
I need to move a trigger from the top of the list to the bottom but up/down buttons are greyed out.
I'm new to 360 so I'm guessing there's something different to do this?
- JudyNolletSuper Hero
JoseAGomes : Your trigger at the top will only fire when all of the designated objects reach the Drop Correct state. So it doesn't matter that it appears in the Trigger Panel before the triggers associated with each object.
Trigger order does matter when multiple triggers have the same action for the "when." When that action happens, those triggers will run in order.
- For example, if you add a trigger to adjust a variable or do anything else on the slide when the user clicks Next, that trigger must appear before the trigger that jumps to the next slide. (A trigger can't run if the program has already left the slide with the trigger.)
- JoseAGomesCommunity Member
I understand that.
Can you have a look at the file and give me your opinion? Please?
thank you- Nathan_HilliardCommunity Member
So, this performs as Judy and Phil indicated. DropCorrect is set to 1 once all the pieces are correctly placed. What other behavior were you looking to achieve?
https://360.articulate.com/review/content/087a0d72-e13e-4243-aa19-3dd291636d86/review
- NedimCommunity Member
I agree with Judy and Phil. The trigger order is not the issue in your interaction. Both triggers at the top will fire as expected. The issue lies with where the variable 'DropCorrect' changes — it changes on the last correct layer. The 'Show layer - Summary' trigger will execute, but you won't see both the 'Summary' layer and the last correct layer at the same time unless the correct layers are set to show other layers. In that case, the correct layer and the Summary layer would overlap. I suggest moving the 'Show layer - Summary' trigger from the base layer to each correct layer, where the 'DropCorrect' variable actually changes to 1.
Even if you managed to move this trigger all the way down on the base layer, it wouldn't make much difference — you'd likely run into another issue. I've attached a short video demonstrating how I think this interaction should end. Clicking the close button on the last correct layer should lead directly to the Summary layer.
- DinuGranaciCommunity Member
Thank you Nedim... That worked.
Thank you very much
- Nathan_HilliardCommunity Member
As you can see from the trigger list, the triggers are in groups and sub-groups. The order of triggers within a sub-group can generally be rearranged, but not always. Sometimes a prticular trigger will automatically just come before or after another. Trigger groups and sub-groups also have this precedence. One group of triggers willl just come before another by design. Sub-groups are often alphbetical, and groups are just organized by type. These cannot be rearranged. As a whole, they just fire in order, from top to bottom. If the order does not support what you are trying to do, then you may have to rethink your approach and try different logic. Sometimes you can get similar results using different trigger types.
- JoseAGomesCommunity Member
Thank you, Nathan...
But as it is storyline doesn't make any sense...
I did all the triggers for the drag-and-drop interaction.
When I finished I realized that it would be nice to add something once all the triggers were finished and now the trigger for adding that stays on the top and doesn't work since it is on top and it is the first.
Before we could rearrange the triggers to any desired position.
So if I decide to do something after having created a lot of triggers I'll have to delete everything and put the last trigger first because I can't move them around...
It just doesn't make sense.
there must be something wrong with my approach or storyline just made things a lot harder- Nathan_HilliardCommunity Member
If I need something to happen after a bunch of other things complete, I will typically use a flag variable and toggle it to indicate it's time (e.g., toggling a true/false value). I add another trigger to watch for the variable change, and then do whatever is needed. This way, it doesn't matter where the trigger lands in the list, it just happens when it's called for.
- JoseAGomesCommunity Member
That's what I mean... It shouldn't have to be so complicated. If I dragged the trigger to last it would work and with one click the problem was solved like this is a bunch of more steps.
I have created a variable that changes when all the drops are correct but then I want a layer to show when the variable changes. BUt this last action needs a trigger and that trigger will be on top so it won't work either. - PhilMayorSuper Hero
Agree with Judy, this trigger can only fire when you expect it to. The order would only be important if you had two triggers that fire at that specific listener
- JoseAGomesCommunity Member
That trigger fires when all the drop correct are finished and then the variable changes. So far so good this happens because I tested the variable and it changes.
But then I create a trigger that says to show layer when variable changes and that trigger is on the top of all the triggers and it doesn't work.
I'm used to previous storyline version where we could move the triggers freely and I'm struggling with this.
If you could be so kind as to have a look at my file I would appreciate it.
Thank youHi JoseAGomes,
I'm sorry to hear you're having trouble with your project!
I've opened a support case on your behalf and our Support Engineers will take a look at your file. They'll follow up via email shortly.
- DinuGranaciCommunity Member
Thank you Nedim... That worked.
I would like to mark this answer as the accepted solution but I don't know how.- JudyNolletSuper Hero
Only the author of the original post can mark an answer as the solution.
Anyone who's signed in can "Like" any post or comment.