How do you reset global variables in Storyline 360?

Feb 04, 2022

Hey there

How do you reset global variables in Storyline 360?

I am using JavaScript in a Storyline project where I have object triggers set to a variable which then executes JavaScript, and then sets a variable to be equal to the typed value. This is for a Point of Sale (Till) operation that I am simulating. Users will input the number of notes/coins which are then given a dollar value.

The JavaScript works for the first scene, but when the user moves on to the next scene where a similar function is required, the quantities are 'copied' across from the previous scene. Is there a way to reset them to zero for the new scene?

Cheers
Roger
3 Replies