Variables trigger working wrong

Dec 21, 2018

Hello,

when I try to add a trigger that sets the variable to 0, Storyline 360 adds a trigger that sets it equal to the typed value. Am I doing something wrong or is it a bug?

In the attached file I wanted to add two variables Input to the variable Output, when the control loses focus. In order not to add repeatedly when the learner changes the Inputs, I tried to add the trigger "Set Output to zero" at the beginning. But instead of it, the trigger "Set Output equal to the typed value" was added.

Thanks, Jan

1 Reply
Daniel Servan

Hi,

I have here a simple solution to add a number from a TextEntry Input.

Maybe there is the best way of doing this but I have also problem resetting the Output so it won't add up the previous values. So I decided to compute it inside a layer.

So when Input1 changes in value, I show an "Add" layer and reset Output value and add Input1 & Input 2.

Same thing with Input 2, when changes in value, I show an "Add" layer and reset Output value and add Input1 & Input 2.

So everytime value changes on the inputs, I will reset the sum or the Output variable and use the current value of Input1 & Input2.

What do you think of this basic and simple solution?

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