Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Shared Action With Increment Variable?

Explorer ,
Oct 09, 2017 Oct 09, 2017

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.

357
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2017 Oct 10, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 10, 2017 Oct 10, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2017 Oct 10, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 31, 2017 Oct 31, 2017
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources