Group: Administrators
Posts: 13K,
Visits: 104K
|
> For example, if there were 3 loss cards in a round, the points feedback was correct when I pressed 1 or 2 times > but 0 scoring appeared after I press 3times and stop pressing (do nothing and wait for timeout).
This is *precisely* what I pointed out in my previous reply. Again, look at:
/ ontrialend = [if(trial.pickcard.response!="8" && values.cardtype==3) values.score-=values.score]
You've opened 3 "safe cards" and are now in the 4th instance of <trial pickcard>. Only 3 loss cards remain, i.e. values.cardtype at this point *is* 3 as in
/ ontrialend = [if(trial.pickcard.response!="8" && values.cardtype==3) values.score-=values.score]
You do *not* respond in this trial. Hence, trial.pickcard.response *is* 0. Obviously, 0 is *not* equal to 8 as in
/ ontrialend = [if(trial.pickcard.response!="8" && values.cardtype==3) values.score-=values.score]
It should now be obvious that the entire condition
/ ontrialend = [if(trial.pickcard.response!="8" && values.cardtype==3) values.score-=values.score]
is met and the score is zeroed as instructed. In your particular case, if you *don't* want this to happen, change the logic to
/ ontrialend = [if(trial.pickcard.response=="7" && values.cardtype==3) values.score-=values.score]
Work through the rest of the logic accordingly.
|