Forum Discussion

RobertaMarke465's avatar
RobertaMarke465
Community Member
9 years ago

Using a variable to jump to a slide

I have SlideX with 7 shapes that have triggers that jump to 7 different slides. The target slides all have an image with a trigger to jump back to SlideX

I made a number variable and each time the user clicks on one of the 7 target slide return triggers, it adds +1 to the variable.

So I want a trigger that says jump to a different slide all together when variable equals 7.

Users may click on the 7 triggers on SlideX in any order, so I can't just put a trigger to jump to the desired slide on the "last" target, if that makes sense. 

Where do I put the trigger that says jump to "totally different slide" when var = 7, remembering that the target slides' triggers are all sending the user back to SlideX?

THANKS!

9 Replies

  • Hi Roberta

    On Slide X try this trigger:

    Jump to slide 'totally different' when timeline starts on slide X on condition that variable >7

     

  • I was trying it the other way (Jump to slide 'new' when variable changes with condition that var = 7) but I just tried your way... I had to move the respective triggers that added the +1 to the var on each slide to first position, but it worked. I tried making the trigger on SlideX say when timeline = 0, however, so that there wouldn't be that split second flash of SlideX before 'new slide" appears... unfortunately, that does not work. There's still a quick flash of Slide X. But this is progress!

    Thank you for your kind assistance.

    • WendyFarmer's avatar
      WendyFarmer
      Super Hero

      Hi Roberta

      if you want them to come back to slide X and not flash you could have the next button disabled on Slide X and have the next button enabled.

      So the triggers would be

      • change state of next button to disabled when timeline starts on Slide X
      • change the state of next button to normal when timeline starts on Slide X on condition that variable =7
      • jump to totally different slide when user clicks the next button
  • PaulGurdin's avatar
    PaulGurdin
    Community Member

    I have the same sort of issue:

    If the variable = 1 I want it to jump to slide x

    If the variable = 2 I want it to jump to slide y

    Any help would be gratefully received

    • MichaelHinze's avatar
      MichaelHinze
      Community Member

      Can you share your .story file here so that someone can have a closer look?

  • PaulGurdin's avatar
    PaulGurdin
    Community Member

    Hi Michael

    Thanks for your prompt response. I have actually resolved the matter now. Basically I set up a condition to say

    if variable1 = x then jump to sheet1 or

    if variable1 = y then jump to sheet2 or

    if variable1 = z then jump to sheet3

    It's not perfect but it does the job for what I needed

    Kind Regards

  • Glad you found a method that'll work for you Paul! If you're stuck again, feel free to share a copy of your .story file us! 

  • I have a file which contains a menu slide with 6 buttons whereby I wish to have jump back to the main menu after completion of each section. How do I do this?

  • Check the mixed Navigation in the sample at this post:
    https://community.articulate.com/discussions/articulate-storyline/free-sample-restricted-and-free-random-navigation-using-variables-and-triggers 
    It has a menu slide with four buttons that take the learner to different slides. When each section is finished, it jumps back to the menu, and when they are all visited, a button appears that can have any trigger on it you want. In the restricted navigation, the four buttons appear in order, only after the previous one is visited.