maya
New Member
Posts: 8
|
Post by maya on Aug 3, 2021 4:20:51 GMT
Hello,
Is there a way to code for more than one correct response?
For example, the keys for my task are q r u p, but for one of the questions both q and r are valid responses.
Thank you!
|
|
|
Post by rachelc on Aug 4, 2021 9:06:08 GMT
Hi jay! I am encountering the same problem! Please can you let me know if you figure out how to do it?
|
|
|
Post by matia on Aug 7, 2021 9:48:11 GMT
Of course, you just have to be a bit creative in saving the status:
task batman keys b a n e show rectangle 0 0 1200 800 255 100 100 show rectangle 0 0 600 400 100 255 100 delay 500 clear -1 show rectangle 0 0 200 200 100 100 255 readkey 1 10000 if KEY == 1 | KEY == 2 set $x 1 fi if KEY > 2 set $x 0 fi clear -1 save STATUS KEY $x Although there will be variable STATUS with 1, 2 and 3-s depending on what is stated is the correct key after the readkey argument, there is no law that says this is the ultimate STATUS variable. Go ahead and make your own This is a simplification, but ofcourse, you can use arrays, tables or whatever to have a custom correct response depending on the trial in question.
Best, Matia
|
|