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):
When you give a close-but-no-cigar answer, the
answer object looks like this:
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.
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 */);
In the same part of the code, you could check your exception_array, and again set
answer.passed = false.