Adding to variable APQuizScore

Problem:

In my project, I’m using standard questions built-in to ActivePresenter, as well as questions that I built myself.
The score of the standard questions is stored in %APQuizScore%.
The score of my custom-built questions is stored in '%ActivityScore%.

When I try to add the two variables to get my final score, I like to do that with the standard ‘Adjust Variable’ action, but for some reason it doesn’t list ‘%APQuizScore’.

Any ideas?

ActivePresenter version: 10.1.1

OS: Windows 11

Notes:

Hi,

You can add the following script to the project’s On Load event (File > Project > Properties > Interactivity tab):

if (!prez.myCustomScore) {
    prez.myCustomScore = true;
    var fOriginalScore = prez.score;
    prez.score = function() {
        // update your_score_variable_name
        var additionalScore = prez.variable('your_score_variable_name');
        return fOriginalScore.call(this) + additionalScore;
    };
}

Regards,

Is there a reason why %APQuizScore% is not available in the list of variables, when choosing the action ‘Adjust Variable’?

Your solution will work for people like me who use ActivePresenter day in day out. But this ‘code-solution’ is simply too difficult for my average ActivePresenter training participant.

Thanks so much for the quick reply!

For your information, the value of %APQuizScore% is returned from the prez.score() function. This score is calculated based on the interactions performed by the learner, so it cannot be manually set.

Regards,