Millisecond Forums

Making changes to the emotional stroop test

https://forums.millisecond.com/Topic9868.aspx

By joynjoyce - 3/5/2013

hi all,

i am trying to modify the emotional stroop test available at the task library.
i would like to see if anyone here can tell me how i can make the following changes, ie. under which part of the script & what the code should be.

1) instead of the default blue colour for the words, i need to change it to (0, 147, 175).
2) instead of having the word presented in RANDOM colour, i want to have the same word presented in ALL 4 colours.

thanks in advance for the possible suggestions!

best,
joyce

By Dave - 3/5/2013

1) instead of the default blue colour for the words, i need to change it to (0, 147, 175).


Look at the various <list> elements in the script. Those hold the colors. The various <text> elements get them from there at runtime:


<text Aggression>
/ items = aggression
/select = noreplace
/onprepare = [text.aggression.textcolor = list.aggression_selectcolor.nextvalue]
</text>


The color you want to use does not have a handy name, thus you'll have to encode the R, G and B channels separately and then set the respective <text> elements' textcolorblue, textcolorgreen and textcolorred properties accordingly.


2) instead of having the word presented in RANDOM colour, i want to have the same word presented in ALL 4 colours.


Then you need to encode all word-color combinations somewhere in the script (e.g. using <list> elements) and then sample from those combinations.


Before you make any changes to the existing script, please work through it until you sufficiently understand what it does / how it works. Once you've done so, modifying the script to suit your needs should be rather straightforward.

By joynjoyce - 3/5/2013

thanks a lot for your reply.

just to check whether i get you right, for the first part.
so to set the respective colours, i should go to the <list>elements in the script, and then change it to something like:

<list NegativeWord_selectcolor>
/items = (/color = (210, 35, 42), black, blue/color = (0, 173, 239), /color = (255, 242, 0))
/replace = false
</list>

but how can the program knows (210,35,42) = red = keyboard response 'd'?

By Dave - 3/5/2013

so to set the respective colours, i should go to the <list>elements in the script, and then change it to something like:

<list NegativeWord_selectcolor>
/items = (/color = (210, 35, 42), black, blue/color = (0, 173, 239), /color = (255, 242, 0))
/replace = false
</list>


No. You need separate <list> elements, one for each color channel (R, G and B).


but how can the program knows (210,35,42) = red = keyboard response 'd'?


You define another list holding the scancodes of the correct key and check it via a <trial>'s /iscorrectresponse.

By joynjoyce - 3/10/2013

Thanks Dave!

I have settled the above two problems and the program is basically ready :)
Just want to ask one last question: is it difficult to insert a 60 seconds rest in the middle of the experiment?
Again, do you mind suggesting the respective codes and where the codes should be placed?


Many thanks,
Joyce

By Dave - 3/10/2013

Set up a <block> that runs a <trial> which accepts no response and has a /trialduration of 60 seconds. Run that block at the appropriate point in time via the <expt> element.