By kosbornecrowley - 2/15/2015
Is there a way I can display a running total of points earned across the whole experiment either in a feedback trial or in a <page> at the end of a block?
Thanks!
Katie
|
By Dave - 2/15/2015
Yes. Suppose you have store the total in values.totalpoints. To display it in a <text> element via a <trial> do:
<text youtotalpoints> / items = ("You have achieved <%values.totalpoints%> points! Congratulations!") ... </text>
<trial feedbacktrial> / stimulusframes = [1=yourtotalpoints] ... </trial>
If you want the total to be displayed in all your trials, add the yourtotalpoints stimulus to those trial's /stimulustimes or -frames.
Displaying it in an instruction <page> works the same:
<page feedbackpage> You have achieved <%values.totalpoints%> points. Congratulations! </page>
<block someblock> / postinstructions = (feedbackpage) ... </block>
|
|