Variable Persistence

Jul 10, 2013

I am setting a variable to "complete" (true) when the learner completes a topic (scene) and changing the state of the main menu item to show the completion based on the value of this variable.  I would like these topic completions to be "remembered" if the learner exits and restarts the program later.

How can I maintain that state when a user exits and reenters the program?  Below is the trigger as I have it now.  I have tried this as a slide trigger and also as a button trigger (on the menu item button.  Both work as I run through the program but as soon as I exit and re-enter the button state resets to its initial state.  I am not sure how to set the state based on a persistent variable (if there is such a thing).

7 Replies
Antony Snow

Hi Neil,

Just to be sure, are you viewing the published version of your project or are you using the preview? If you are using the preview, then I don't beleive variables and states will be remembered.

They can however be retained when re-launching the published version and there are a couple of things you could try:

1) Ensure that each of your slides are NOT set to 'reset to initial state' when revisiting - this can be done at slide level via the slide properties (cog icon) or by pressing [Ctrl] + [A] when in story view and then using the 'When revisiting:' dropdown in the lower-right

2) Adjust the resume functionality via the player: Click on player on the ribbon at the top of the screen; click on 'other' (another cog icon) within the 'Custom' set of options; Click on the 'On restart' dropdown under 'Resume' and select 'Always resume'.

I hope this helps!

Antony

Alex Turcotte

Hello all,

I have followed Antony’s suggested solution, but I’m still unable to get a custom-created variable to persist when a user closes out a course, and then re-launches it. I’ve attached a super-simple Storyline file that behaves this way. Any ideas would be greatly appreciated!

 

This discussion is closed. You can start a new discussion or contact Articulate Support.