Custom score and success

Hi,

You can add the following script to Project > Properties > Event to use your score and success as the system score and success:

if (!prez.myCustomScore) {
    prez.myCustomScore = true;
    prez.score = function() {
        // update your_score_variable_name
        return this.variable('your_score_variable_name');
    };
    prez.maxScore = function() {
        // update maximum score for your project
        return 100; 
    };
    prez.result = function() {
        // return true -> success, false -> fail
        // for example, use your TRUE/FALSE variable
        return this.variable('your_TRUE_FALSE_success_variable_name');
    };
}

P/S: it would be helpful if you could share your project or describe your own quiz so that we can improve ActivePresenter quizzes and the system score.

Regards

1 Like