@polv,
Are you wanting to make the two scripts compatible? Or make a new script with features from both?
Adding ‘No Cigar’ to Double-Check
You can add a No-Cigar option to Double-Check in the [case 'first_submit'] section. The following line is where it sets the initial answer result (line 234):
set_answer_state(answer, true);
When you give a close-but-no-cigar answer, the answer object looks like this:
{
passed: true,
accurate: false,
multipleAnswers: false,
exception: false
}
So, if it passed, but isn’t accurate, it’s a “No Cigar”.
Start by adding an option at the top of the script:
// Mark answer wrong when slightly off.
change_slightly_off_to_wrong: 1,
Then in the ‘first_submit’ section, change the set_answer_state() call to:
// Close but no cigar
if (answer.passed && !answer.accurate && settings.change_slightly_off_to_wrong)
answer.passed = false;
set_answer_state(answer, true /* show_msgs */);
Adding Blacklist
In the same part of the code, you could check your exception_array, and again set answer.passed = false.