interactions: [
// Display the target stimulus.
{conditions:[{type:'begin'}],
actions: [{type:'showStim', handle: 'target'},
{type:"setInput",input:{handle:"targetOut",on:"timeout",duration:15000}}]
},
// Correct response actions
{conditions: [
{type:'inputEqualsTrial',property:'group'}
],
actions: [
{type:'setTrialAttr', setter:{score:1}},
{type:'setGlobalAttr', setter:function(global){ global.current.acceptMore++;}},
{type:'trigger', handle:'ITI'},
{type:'log'}
]
},
// Incorrect response actions
{conditions: [
{type:'inputEqualsTrial',property:'group',negate:true},
{type:'inputEquals',value:['reject','accept']}
],
actions: [
{type:'setTrialAttr', setter:{score:0}},
{type:'removeInput',handle:['reject','accept','targetOut']},
{type:'trigger', handle:'ITI'},
{type:'log'}
]
},
// Timeouts
{conditions: [{type:"inputEquals",value:'targetOut'}],
actions: [
{type:'removeInput',handle:['accept','reject', 'targetOut']},
{type:"hideStim",handle:"target"}, // hide the stimulus
{type:"showStim",handle:"warning"},// and show the warning
{type:'setTrialAttr', setter:{score:0}},
{type:"setInput",input:{handle:"ITI", on:"timeout",duration:300}},
{type:'log'}] //End the trial in 250ms (show the warning until then)
},
// Inter trial interval
{conditions: [{type:'inputEquals', value:'ITI'}],
actions:[
{type:'hideStim',handle:'All'},
{type:'removeInput',handle:['reject','accept','targetOut']},
{type:'trigger', handle:'end',duration:200}
]
},
// End trial
{conditions: [{type:'inputEquals', value:'end'}],
actions:[
{type:'endTrial'}
]
}
]
--
You received this message because you are subscribed to the Google Groups "Minno.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minnojs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minnojs/CAN9p%3DakFB2O17LwZwJLabhSBsfnmFrSZzxkqZcbm__dsbsgpHw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minnojs/CAB8xrexFL0yH8NH1pWYmmEePrr4Cqn01XTrXDy%2BA7yizaAKpJA%40mail.gmail.com.
Hi Mayan,Thank you very much for your help here! It is very much appreciated. I think I am quite close to figuring this out. I believe I have correctly updated my test files to have the four trial types, each with their own counter, based on the code you sent along. I also think I have set up my debriefing to refer to the correct values.My only issue is that I cannot figure out where and how to define my four counters (current.acceptmore, current.acceptless, current.rejectmore, current.rejectless). Could you help me with a) letting me know where and how to define these counters in my test files? and b) let me know if I have correctly set up the reference to those values in my debriefing (see lines 8 and 10 of the debriefing file)?Here is my showfiles page again: https://app-prod-03.implicit.harvard.edu/implicit/showfiles.jsp?user=jaxt&study=sample_jbtThanks again,Jordan
--Jordan Axt
Hi Mayan,I am sorry. I am still having trouble. I have tried defining my counter in two ways, both of which return zero errors but neither of which actually let's me run my task. Can you tell me what my issue is? I have tried the following:Option 1var acceptMore = 0;
var acceptLess = 0;
var rejectMore = 0;
var rejectLess = 0;
API.addCurrent(acceptMore);
API.addCurrent(acceptLess);
API.addCurrent(rejectMore);
API.addCurrent(rejectLess);Option 2API.addCurrent('acceptMore',{
value: 0});
API.addCurrent('acceptLess',{
value: 0);
API.addCurrent('rejectMore',{
value: 0});
API.addCurrent('rejectLess',{
value: 0});Thank you,Jordan
--Jordan Axt