Forum Discussion
Calculating percentages on the results using variables
Andrew,
What is throwing you off is that SL can't evaluate an expression. It can perform only one math function per trigger, so your solution is correct that you have to write a trigger for each step.
You can accomplish these same actions all on one slide, using steps 3, 4, and 6. Triggers are executed one at a time, in the order they appear, from top to bottom, so you can set several triggers to one action. You can set these to fire when a button is clicked, when a slide or layer starts, when a variable changes values, or on any other action the learner can take.
Your instinct in step 3 is correct, you don't want to change NumberCorrect.
Copy NumberCorrect to PercentCorrect, then divide PercentCorrect by TotalPoints, then multiply PercentCorrect by 100.
The percent correct will appear so fast you won't see the changes.