Sending variables from Storyline to Web Object with Javascript

May 08, 2019

Hello Heroes!

My team is working on a course that combines Storyline with the Unity3D engine, to create a collection of small simulations that teach the Trainee how to operate the machinery.

The Unity3D is exported to HTML5 which we import as a Web Object, and listens to changes in JavaScript variables.

At this moment we have figured out how to send information from the WO to the Storyline application, so that we can use high-scores and active time trained etc from the simulation in the other slides of the training.

However, we have had little luck sending variables from the Storyline application down into the WO.

We were hoping to use this technique to use Trainee names and statistics from previous simulations in the current WO. It is not essential to have this ability, but it sure would spice up our interactive design, so any help would be greatly appreciated!

6 Replies
Michael Anderson

You're welcome, and that is the method supported by Articulate via the GetVar command. Adding setInterval lets you re-check the variable at set intervals. Doing this too often (more than a few times a second) may impact CPU, so watch for that.

The other method was very ingenious, but I will have to look through all of my bookmarks to try to find it, if you are interested.

Daniel de Ridder

I did find one resource earlier this week which delved into the exported HTML files from the Storyline output, but since this is too much 'after the fact' work and not suitable for quick tests, I was hoping to find something a bit easier to work with.

GetVar will probably get us there!

However, if you do have the time to go through your bookmarks, it would be nice to hear alternatives. Especially if another user finds their way into this topic and wonders what they might be :)

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