Forum Discussion

4 Replies

  • ParnazMaboud105​: For future reference, a variable maintains its value until a trigger changes it. A slide's revisiting setting ("Reset to Initial State" or "Resume saved state") doesn't impact the value at all. 

    One common issue with variables: Folks often use "when variable changes" in a trigger. But that only works if the variable changes on the same slide as that trigger. Instead, as shown in your "Trigger feilds v.2.png," a trigger often needs a different "when" plus conditions that check the values in the appropriate variables. 

    Also note that a trigger that runs "when the timeline starts on this slide" will run every time the user visits that slide. So a trigger with that "when" plus variable-checking conditions is a great way to make something happen when a user returns to a slide.

  • I got some help from ChatGPT, but I'm still stuggling. I changed the trigger so it jumps to the "Mission Accomplished" slide when all three variables have changed to True. I think the reason I'm having trouble is because they're on different slides. I also tried changing the settings of all the pages to "resume state" so it remembers the values are true. 

  • Hi Kendal, 

    Thank you so much for the quick response. Sorry it's taken a bit for me to respond back, but I'm having some trouble with the solution you gave me. 

    I think it's because for the "When" field, I can't figure out how to list all 3 variables. 

     

  • Hello,

    You can create a True/False variable for each puzzle to indicate whether or not it has been completed. For example, you can create a True/False variable named "Puzzle1Complete" and set the initial value to False. When the user completes the puzzle, you can use a trigger to set the variable to True. Then repeat the process for the other 2 puzzles.

    If you are restricting an action, you can use the Condition part of the Trigger for that action to be executed when all 3 of your variables equal True. For example, you can use a Continue button's trigger to go to the next slide, upon the Condition that all 3 variables equal True. 

    If this answers your question, please mark the question as Solved. Otherwise, feel free to ask a follow-up question.