random traffic lights, but after a yellow light comes a red light
Robert_A
rariel at kent.edu
Mon Mar 30 14:32:36 UTC 2009
On the e-prime website there is a sample experiment that will allow
you to never have 2 consecutive trials of the same type repeat. What
you want to do requires similar logic, because you want a specific
trial type (red stim) to follow presentation of another stim type
(yellow). So if I were you, I would get that script from the e-prime
downloads (I think it is called No repeats or something like that).
You can probably make some minor tweaks to that script to accomplish
your goal.
On Mar 30, 4:34 am, "A. de Ruijter" <lonkek... at gmail.com> wrote:
> I hope someone can help me with the following situation: I'm emulating
> a traffic light with red (r.jpg), yellow (y.jpg) and green (g.jpg)
> circles that appear randomly in three different location. For each
> location I've created an attribute, namely lightlow, lightabove and
> lightright. Now I want to write a script that causes a yellow light to
> always be followed by a red one. Other than that, I want everything to
> be random.
>
> So the logic as far as I get the logic is:
>
> IF lightlow OR lightabove OR lightright = y.bmp THEN (in the next
> trial)
> randomly select in lightlow OR lightabove OR lightright = r.bmp
>
> Like you can see this is not VB so I was hoping someone who does
> understand the language can help me with the code. Thanks a bunch
> already!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---
More information about the Eprime
mailing list