Copy link to clipboard
Copied
Is there anything about a shared action that would prevent an increment variable action from working?
I'm using an eLearning Bros interaction as the jumping-off point for a multiple-choice quiz, and want to add a 'score' to each question- when the correct answer is selected, a user variable (QuizScore) should increment by 10, and while the rest of the shared action seems to work fine, the variable doesn't seem to be changing.
Copy link to clipboard
Copied
Hi Becky! Long time....
I don't know about that interaction at all.... always create my interactions. Can you post a screenshot of that shared action and tell how you did track the value of the variable? You are probably aware of the fact that you cannot change the quizzing system variables, which are used for reporting to a LMS, because they are read only. That is the reason you are with a user variable.
Copy link to clipboard
Copied
Hi, Lieve ❤️
I'm tracking score in a user variable called QuizScore, and tracking it in a text box on the slide.
Here's the Advanced Action I used to create the Shared Action. The only thing I've added is the last line on this tab, to increment QuizScore by 10.
When I save this as a Shared Action, I've tried indicating that QuizScore is a required parameter, and I've also tried without including it as a parameter - neither seem to work.
Copy link to clipboard
Copied
Becky, I suppose this is an eLB action? Can you show me the total action, using the Preview button, which is the first button in the control panel at the top right (arrow). Sequence is very important in actions, want to see what happens before and after this decision.
Can you also tell which event is triggering this action? You can check the Advanced Interaction panel - F9 (if it is an advanced action) or the Usage button in the Library for shared actions.
You are not on CP2017, that is clear from the AA dialog box. Neither the variable nor the literal should be parameters, if you always want to add 10 points to the same variable.
Copy link to clipboard
Copied
Yes - I'm so sorry I didn't respond earlier, but it turned out the item I was trying to affect was in a different Advanced Action. This is a PICNIC problem