Retaining Variables Between Sessions

Feb 02, 2016

I need to have Storyline "remember" variables between sessions of a program.  Is there a method to do this?

In the program a user enters a value between 1 and 10 using a slider control.  They also might enter a comment in a comment text entry field.  I have created variables to hold the user's entered value, the comments, as well as variables to perform calculations on the entered values to arrive at an cumulative average value over time.  At any given time, I want to be able to view the average response value and all comments that have been entered.

As long as I do not exit the program, everything works as I'd like.  When I exit however the values are lost.  I have had limited success by setting the player to resume on a restart, but this is inconsistent.  It seems to only work when I set the player to prompt to resume and even this does not consistently work.

Does Storyline have a method for persistent variables, or a way to write values out to a file and read them back in?  I am sure that can be scripted but I am not knowledgeable enough to write the script.

Any solutions or pointers to information would be greatly appreciated.  Thanks.

3 Replies
Neil Cramer

Christie,

Thanks for this. The difference in my case is that I am not running this program through an LMS. With the LMS, I would have access to the AICC suspend data, but that is not directly suited to storing a wide range of user inputted data. It is more suited to the example, where the state of a course component is retained. At any rate, this is not a program ("course") that I would run in an LMS. I am looking for somewhere else to retain user inputted data from session to session.

Neil Cramer

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