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

Captivate 9 Knowledge Check Decrement score

New Here ,
Jul 08, 2016 Jul 08, 2016

I am using Captivate 9 and have two knowledge checks in a module. I'm using knowledge checks (KC) so that the scores are not recorded to the LMS and so I can have two separate sets of questions in the module. A score will be kept and displayed at the end of each KC though.

I would like the KC to work such that you get 2 attempts at each question (5 questions), a correct answer gets 2 points but an incorrect answers gets -1 point.

I've set up a variable for each KC, score_1 and score_2. I've set up a script so that neither score can go above 10 and below 0. I can get the scores to increment by 2 points and have 2 attempts at each question but I can't get the scores to decrement by 1 on an incorrect answer.

Is there any way of doing this in a knowledge check please? Thanks.

345
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 ,
Jul 08, 2016 Jul 08, 2016

Can you post a screenshot of the advanced action or shared action that you use?

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
New Here ,
Jul 08, 2016 Jul 08, 2016

Is this what you mean?

captivate actions.png

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 ,
Jul 08, 2016 Jul 08, 2016
LATEST

I thought you were calculating a score, but you just show me a Properties panel? You don't know anything about advanced actions? You'll have to create an advanced action for the Last attempt, where you use the Expression command to subtract 1 point from the total score. If the total score is stored in a user variable v_total, that  action 'FailureAct' would be something like this:

     Expression v_total = v_total - 1

     Continue

However there is one big problem: Captivate cannot manage negative points. This means that the score will remain at 0 if the first answer is a failure. You'll have to tweak this: you could start with a default value for the variable v_total of 5 points, and at the end create another advanced action that subtracts 5 from the score to restore the correct score. Even then you'll have to be aware that this total score can never be below 0.

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