What am I missing?


Author
Message
Lucie1043
Lucie1043
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 15, Visits: 183
Hi,

I am trying to link correct responses to text items but I must have missed something as the program register every answer as an error. Could you please check my script?

<trial opposite0click>
/ stimulusframes = [1 = yes, no, instructionframe, stimuli1, opposite1; 2 = stimuli2, opposite2; 3 = question0click, questionopposite0click, Is, ?]
/ inputdevice = mouse
/ validresponse = (yes, no)
/ iscorrectresponse = [trial.opposite0click.correct == list.answers1.nextvalue]
/ errormessage = true(error, 500)
/ correctmessage = true (correctmessage, 500)
</trial>

<list answers1>
/ items = ("no", "yes")
/ selectionmode = text.questionopposite.currentindex
</list>

<text questionopposite>
/ items = questionopposite
/ fontstyle = ("Arial", 15pt, true)
/ txcolor = (255, 0, 0)
/ position = (50, 30)
/ select = list.answers1.nextvalue
</text>

<item no>
/1 = "NO"
</item>

<item yes>
/1 = "YES"
</item>

<text no>
/items = no
/select = replace
/vposition = 90%
/ hposition = list.hpos.nextvalue
/txcolor = (255, 0, 0)
/ fontstyle = ("Arial", 30pt, true)
</text>

<text yes>
/items = yes
/select = replace
/vposition = 90%
/ hposition = list.hpos.nextvalue
/txcolor = (255, 0, 0)
/ fontstyle = ("Arial", 30pt, true)
</text>

<text error>
/ items= ("ERROR")
/ fontstyle = ("Arial", 50pt, true)
/ txcolor = (255, 0, 0)
</text>

<text correctmessage>
/ items= ("You won")
/ fontstyle = ("Arial", 50pt, true)
/ txcolor = (255, 0, 0)
</text>

<text questionopposite>
/ items = questionopposite
/ fontstyle = ("Arial", 15pt, true)
/ txcolor = (255, 0, 0)
/ position = (50, 30)
/ select = list.answers1.nextvalue
</text>


Thanks for your help!

Lucie
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search