Forum Discussion
SamKauffman-3fd
2 years agoCommunity Member
JavaScript Help - Adding 5 variables to 1 for a Total Score in Storyline
Does anyone know why my JavaScript trigger isn't working in Storyline? I have 5 scenarios, each with a sectional score (ScorePessimist, ScoreExpert, etc.). I also want to show a Total Score (ScoreTo...
JudyNollet
2 years agoSuper Hero
You don't need JavaScript to add the value of variables. Just use a set of triggers like these:
- The first trigger, which sets the ScoreTotal to 0, is used to ensure that the scores don't get added more than once (for example, if the user revisits the slide).
- Instead of "when the timeline starts," the triggers could be attached to a button.
- In the Trigger Wizard, any item with a dashed underline can be edited. That's how to access the math operators: