Skip to content
Discussion options

You must be logged in to vote

Hi @rayoverweij, this should be pretty straightforward if you don't mind editing the plugin file. If I understand correctly, then I think what you want to do is insert a delay between the response and the end of the trial. You can do that by editing the after_response function in the plugin. Specifically, this bit of code checks to see whether the trial should end after a response, and if so, then it immediately ends the trial:

if (trial.response_ends_trial) {
end_trial();
}

So you can insert a delay between the response and the end of the trial here using a setTimeout timer. I recommen…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rayoverweij
Comment options

Answer selected by rayoverweij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants