Forum Replies Created
-
AuthorPosts
-
ekakoki
ParticipantHello,
I’ve tried using this for my own experiment, but I couldn’t find a way to log the code. At first, I thought I could do this by simply writing this code:
newText("display", "Your unique code is: " + Code).center().print() , getText("display").log()
But when I ctrl+F’ed the code that was shown on the screen when I took it, there were no matches in the results file. Is there a way to directly log the Code constant? Or better syntax in logging displays? Thank you!
ekakoki
ParticipantThat was it! Thank you so much for your help, everything is running smoothly now!
ekakoki
ParticipantThank you for the help! It runs!…But I also realized that I’d need to include the trial number in describing which audio to play, as each trial has a different correct answer. I tried simply adding the trial number as a new parameter and into the newAudio line of
whichOne
, but it came back with another undefined property error. I then tried taking the newAudio line out completely and using it immediately afterwards:...whichOne([1,2,3,4,5,6], "response") , newAudio("ex" + exNum + "o" + getVar("selected") + ".m4a").play().wait()
However, it won’t play anything upon clicking on the options, and it doesn’t let me continue to the next practice example. The demonstration link is here: https://farm.pcibex.net/r/EIXHMT/
Maybe I can’t use getVar in this context? But I’m not sure why not.ekakoki
ParticipantThat makes so much sense! Thank you so much, and for your quick response!
-
AuthorPosts