Forum Discussion

HollySumner's avatar
HollySumner
Community Member
3 years ago

Can I make a trigger/if statement that links back to a previous slide?

I'm creating a build-your-own-adventure using Storyline. So far, the branching has taken place within slides. I'll give the user three choices of how to respond, then set up triggers so that the next slide depends on their choice.

I'd like to try something more sophisticated, but can't figure out how. What I want to do is set a slide to appear (or not) based on a user's choice in a previous slide. So far, it looks like I can't do that with triggers/if statements. Do you have any suggestions?

If it helps to be more concrete, the user is acting as a female middle/high school principal. On slide 1, she decides whether to wear sandals, sneakers, or high heels to school that day. Later in the slides, her choice will determine whether she sees slide 22 (she gets blisters running), 23 (she runs successfully), or 24 (she can't run at all).

  • There is a sample at this thread:

    https://community.articulate.com/discussions/articulate-storyline/solution-to-alternate-path-navigation

    That does exactly what you have asked. As you go through it, different slides are visited depending on a choice made earlier. If you have a more sophisticated number of choices, you will need more conditions on your trigger. For example, you might have something like:

    Jump to slide GoToSchoolOnCrutches when user clicks IDontNeedToSeeADoctor

  • HollySumner's avatar
    HollySumner
    Community Member

    Thank you, @Walt! As tends to happen, I finally discovered variables after I posted this thread. I made a few things happen, but still can't get the above scenario (with the shoes) to work in preview. Instead of jumping to the next slide according to the set variable/trigger, the next button doesn't do anything at all.

    Does anything look awry with how I've set up the variables?

  • Once you jump, none of the rest of the triggers are executed, so the value of Shoes is never set. Always put the jump last in the list.

  • HollySumner's avatar
    HollySumner
    Community Member

    @Walt thank you so much! That made all the difference. I'll be sure to remember to keep the jumps last in the list.