Millisecond Forums

I want to fix the color about particular text.

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

By Sato - 5/16/2015

I have a question.

Now, I want to present instructions for 2 condition.
I wrote following script.

<expt >
/ onexptbegin = [values.expcondition = 1]
/ onexptbegin = [values.format1 = "青色"; values.format2 = "黄色"]
/ subjects = (1 of 2)
......
......
</expt>

<expt >
/ onexptbegin = [values.expcondition = 2]
/ onexptbegin = [values.format2 = "青色"; values.format1 = "黄色"]
/ subjects = (2 of 2)
......
......
</expt>

<item instructions>
/1 ="以下の課題は、横か縦どちらかの画像で呈示されます。
~n~n これからしていただく課題では:
~n* もし <%values.format1%> の枠線で囲まれた写真が提示されたらレバーを引いてください。
~n * もし <%values.format2%> の枠線で囲まれた写真が提示されたらレバーを押してください。
</item>

My plan is that I make format1 = blue, and format2 = yellow.
I want to know the script.

By Dave - 5/16/2015

This isn't possible. The text color is determined by the /txcolor attribute of the <text> element that displays the <item>. A <text> element can only have one color.
By Sato - 5/16/2015

Thanks for your comment!
I see.

For example, is it possible that using image file (it is color text) instead texts?
By Dave - 5/16/2015

What you can do is use an image file to display your instructions. E.g.:

https://www.millisecond.com/forums/uploads/images/a9ee48c0-5c22-4604-b9c3-1645.png

with
<picture myinstructionspicture>
/ items = ("Instructions1.png")
...
</picture>

<trial instructionstrial>
/ stimulusframes = [1=myinstructionspicture]
...
</trial>

etc.


It is *not* possible to "embed" images in a <text> element.


Hope this helps.
By Sato - 5/16/2015

Thanks!

> It is *not* possible to "embed" images in a <text> element.
I understand.

Is it possible that I present different picture for two condition (A group or B group)?
On the other words, A group see one instruction "pull-blue, push-red", and B group see another "pull-red, push-blue".

I think that it can set in <expt>. 
By Dave - 5/16/2015

Yes, that's possible. You do

<values>
...
/ picturetoshow = 1
...
</values>

<picture myinstructionspicture>
/ items = ("Pictureforgroup1.png", "Pictureforgroup2.png")
/ select = values.picturetoshow
...
</picture>


with

<expt>
/ onexptbegin = [values.picturetoshow=1; ...]
/ subjects = (1 of 2)
...
</expt>

<expt>
/ onexptbegin = [values.picturetoshow=2; ...]
/ subjects = (2 of 2)
...
</expt>
By Sato - 5/16/2015

Thank you so much!
Your instruction is very smart!