Forum Discussion
Self-Scoring Questionnaire Not Calculating Properly
I have no idea where ChatGPT got the idea that there was an "fx button" in Storyline. Glad you came here to the community instead.
In Storyline, calculations are done one operation at a time. For example, here's a set of triggers to get the total from Q1-Q3, and then figure the average.
- A trigger sets the variable to 0 first. That ensures it is reset if the user returns to the slide. The following triggers add variable values.
- FYI: In the Trigger Wizard window, a dashed underline indicates that the item is editable. That's how you can select Set vs. math operations and how you can set a specific number vs. using another variable's value.
For simplicity, I like to put calculation triggers on a layer. That's why the "when" in the example triggers is "when the timeline starts on this layer."
- The layer's timeline would be set as short as possible. T
- The final trigger would hide the layer when the layer's timeline ends.
- The Slide Layer Properties would be "Reset to initial state."
- The trigger to show the layer could be attached to a "calculate" button, or could run when the user reaches the slide.
I don't know what you plan to show based on the results. Here's an example of how to show a layer if the Assert_Avg variable > the Resp_Avg variable. This trigger would come after all the calculation triggers.
Here are posts that you might find helpful:
- The Value of Variables | Articulate - Community
- PRIMER: Trigger calculations in Storyline | Articulate - Community
-
TIP: Track Responses to Custom Questions or Surveys | Articulate - Community
Calculations can also be done with JavaScript. If you search the community, I'm sure you'll find examples.
Related Content
- 1 year ago