I am glad to have found this forum on e-prime! [Smile]
I'm in the process of learning e-prime and I'm hoping to continue
learn advanced techniques.
I'm trying to create an experiment where the participant chooses one
option and a certain set of outcomes occur and if they choose another
option then another set of outcomes occurs.
I know I can have correct or incorrect on the feedback display but
what if I want to have 3 options to pick from? I can make 1 correct, 2
incorrect but what if I want a third or fourth outcome?
i.e. if the participant chooses 1 something different happens from 2,
or 3.
Is this able to be done with out any inline script?
Thank you very much for any help!
What is the 'something different' that you want to happen? Is it
another text or another display altogether?
I suggest that you ditch the feedbackscreen and build your own
'feedbackscreen' on a normal slide.
Then you do need inlines, but these really aren't scary, so don't
worry.
An inline could contain a series of lines that reads the response and
then manipulates some variable or another that determines the content
of the next screen.
If responsslide.resp = "1" = then do this and this
If responselide.resp = "2" then do this and this
If responslide.resp = "3" then do this and this.
The word responseslide should be replaced by the name of your
responseslide, 1 2 and 3 should be replaced by the actual response
(i.e: if your subject answer trought the buttons z am and space it
could be set to "z", "m" and "{SPACE}").
You would also need to replace the 'do this and this' but the code
that comes there is totally dependent on your needs.
So... tell us a litle bit more about the thing that you want to
happen.
Best,
liw
That said, here is my take ...
So, you want to have multiple correct response targets? As it turns
out back in Oct 2009 I drafted a discussion of various ways to do
this meaning to post that here on the Google Group, along with a
program to demonstrate it all. Sadly, I got called away to other
projects just as I was on the verge of finishing my demo program (and
I still don't know how to post files to the Group anyway, sigh). But
here is a preview from my draft text, in case it is of any use.
----------------
Earlier online discussions have presented four methods for using
multiple correct response targets in E-Prime:
(1) http://support.pstnet.com/forum/Topic1072-5-1.aspx (from Matt
Lenhart (PST staff), 15 Jan 2008) discusses the most basic approach
of using inline script and If...Then.
(2)
http://groups.google.com/group/e-prime/browse_thread/thread/934247a6e5ad3e3b
(or
http://listserv.linguistlist.org/cgi-bin/wa?A2=ind0906E&L=EPRIME&P=R162
) (from Peter Quain, 29 Jun 2009) essentially extends (1) just using
an array and loop to handle large numbers of correct responses.
(3)
http://listserv.linguistlist.org/cgi-bin/wa?A2=ind0709D&L=EPRIME&P=R736
(from Paul Groot, 26 Sep 2007) shows how to do (1) & (2) much more
elegantly using the InStr() function (see the online E-Basic Help).
(4) http://support.pstnet.com/forum/Topic2223-5-1.aspx (from David
McFarlane (this author), 7 Oct 2008) hints at how to use multiple
input masks (see the Input Mask Object topic in the online E-Basic Help).
----------------
You will note that method (4) does not use any inline script, as you
asked, and I really like it; however, I hazard that very few E-Prime
users other than me would dare to use multiple input masks in that
manner (and as a result I tend to favor the InStr() script method
just for the sake of others who have to use my work :) ).
If you send me a private e-mail I will send you what I have worked
out so far, as long as you promise not to ask me any more questions
about it (insofar as it is merely a work in progress).
-- David McFarlane, Professional Faultfinder