Hey Liza,
What you need is a variable that is able to carry information over
several trials.
This is done by 'user tab declared variables', which are variables
that also fall out of the currect 'context' (or c. as in c.setattrib).
Go to the script window and in the lower left tab select the user tab.
On the user tab write: " dim ncorrect as integer " . There's your
counter of correct trials.
In the trialproc create an inline after slide2 that will update the
attribute ncorrect.
********************
if slide2.acc = 1 then ncorrect = ncorrect +1
c.setattrib "correctn", ncorrect
*****************
The first line adds 1 to ncorrect if the accurcay is 1, the second
line writes ncorrect to correctn. Ncorrect will typically not be
logged into your edat-file, whereas this line updates a logged
attribute called correctn.
Now in your feedback slide you can show the value of correctn (or
ncorrect if you wish) as the value of xx in xx times in 25 tries.
Hope this is clear enought to you.
Best,
liw