Forum Discussion
Slide state: reset to initial state?
Hi Sara,
Slide states and variables are treated differently in Storyline as the state of an individual slide only affects the slide itself, whereas variables are accessible and can be changed throughout the course.
If you set a slide to "Reset to Initial State" when revisited, it will reset the timeline of the slide to ensure that all components of the slide can be viewed again, just as if the user was visiting for the first time. However, it will not change any variables associated with that slide. This can only be done using triggers.
If, on the other hand, you have a trigger on a slide that resets a variable, that will still occur. The point to note here is that you may wish to reset some of your variables for your slide to work properly. This was probably originally catered for by setting the initial values for some of your variables, but these values will not be reset again as this only affects the point at which the course was started.
I hope this helps and isn't too confusing, but should you have any further queries, just get back to me here.
- Sara4 years agoCommunity Member
Hi Ned,
Thanks for your reply.
Let me see if I understand your last para. If I set a slide to "Reset to Initial State" when revisited, and there are triggers on that slide, the triggers are triggered again? And say that trigger is a number variable (for instance, add +1 to variable 'page count'), that slide trigger would be triggered every time that slide would be revisited, correct?
I don't think I have any such triggers and variables, only true/false variables and visited/checked states on objects.
- NedWhiteley4 years agoCommunity Member
Hi Sara,
That is correct. Basically, if you reset a slide to its original state, it acts exactly as it did the first time it was visited. Its timeline is reset to the start and any triggers associated with the slide should act exactly as they did the first time round.
As far as your True/False variables are concerned, you may still need to reset some of them. If, for example, a variable is changed from False to True to show that a particular layer has been visited, it will already be set to True when the user revisits the slide. Depending on how you have then used that variable, it may prevent a layer being shown when the slide is revisited.