Forum Discussion

RossMann's avatar
RossMann
Community Member
3 years ago

Multi-digit entry for Trigger

Hello,  

While this is my first post,  I've found this board priceless while learning Storyline 3 over the past two years!!

 

Briefly,   I'm completing a software simulation for my portfolio and have finally figured out how to provide a means of entry via keypad OR mouse for my gamified assessment.  (A big thanks to the user who shared the timer code in this scene!)

However,  my issue is my Trigger to show the "Incorrect - try again!" layer is not working properly.  

The correct answer is 4 4 5 5.   However,  the Trigger does not cause the Incorrect layer to appear if ANY of the four digits are correct  (e g,  4 3 2 1,  7 8 9 5 both fail to trigger the Incorrect layer.      I intended for Incorrect to appear if any of the four digits are incorrect.

 

If any one may have any suggestion or other approaches I can pursue to produce the same,   I'd appreciate it!!

Thanks, Ross

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    Have a look at the attached and see if that's what you wanted. I changed the baselayer trigger to show the Correct layer if the Counter>5. Then, on the Correct Layer, I added a trigger that immediately shows the Incorrect layer if any (OR) of the variables is incorrect.

  • RossMann's avatar
    RossMann
    Community Member

    Michael,

            Thanks a lot,  that did it!     I've still a lot to learn, but your solution is illuminating.   It's amazing what we can do simply by changing the order of triggers.

    Thanks again!