Update Score Action

image\Actions_Score_Update.jpg

The Update Score action allows you to amend the points awarded to a score. This may arise because a user makes a choice and the question is scored but then the user changes their choice, in which case the score will need to be amended.

For example, if the user is awarded 3 out of 5 points for a question using the Store Score action but then they change their response so that they are awarded 5 out of 5 using the Store Score action then, because they have answered the question twice the amount of points awarded for the question is not 5 but 10 (because the Store Score action has been run twice). Therefore, you need to amend the score and one way is to use the Update Score action. Instead of allowing the user to answer the question twice and using the Store Score twice, allow the user to answer the question twice (or however many times you like) but only use the Store Score action the first time and for every other time use the Update Score action.

Setting up the Update Score action:

1. Add the Update Score action to your trigger, as described in adding actions. The Update Score tab will automatically appear when you add the action.

2. Use the Variable box to enter the variable that holds the current score for this question. Click on the down arrow next to the box to list all of the variables currently available in your publication. Alternatively, click on the New… button to open the New Variable dialog and create your variable.

Note:
The variable entered here must contain the amount of points awarded to the user by the Store Score action when they answered the question the first time. You can do this by simply adding a Set Variable action after the Store Score action that stores the same number of points as you awarded in the Store Score action – see bottom note in the Store Score action for more information.

3. Use the Update this score variable to this amount option if you want to set the value in the variable entered in point 1 above to a specific number. Use the spin buttons next to the box to increase or decrease the number or type the number in by hand.

Note:
For example, with this option if the variable contains the value 3, you can set it to a specific number e.g. 5 – the new value for the variable is 5.

4. Use the Update this score variable by adding this amount option if you want to add a number to the current value in the variable entered in point 1 above. Use the spin buttons next to the box to increase or decrease the number or type the number in by hand.

Note:
For example, with this option, if the variable contains the value 3, you can add a number to it e.g. 3 – the new value for the variable is 6.

5. Use the Store Score as panel to state if the users response to the question is Correct or Incorrect.

6. Use the Update the Total Value… panel to set the amount by which the Scoring Variable SCORE_TOTAL_VALUE will be revised. Use the spin buttons next to the box to increase or decrease the number or type the number in by hand.

7. Click on the Apply button to save your changes.

Note:
The variable entered in point 1 above will be updated as you have specified whenever this action is called.

Related Topics:

Introducing the Scoring Actions

Preset Variables Glossary