Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Iowa Gambling Task Variant
Iowa Gambling Task Variant
Post Reply
Like
36
1
2
Next
Jump To Page
Iowa Gambling Task Variant
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Emily Jane Kothe
Emily Jane Kothe
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 1,
Visits: 19
MiskatonicStudent, would you be willing to share the version of the script you got working?
Reply
Like
30
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
No problem at all -- good to hear it's working now!
Reply
Like
32
MiskatonicStudent
MiskatonicStudent
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Awaiting Activation
Posts: 5,
Visits: 22
...you are right. I feel so dumb. Thank you for your help and for being patient with me.
Reply
Like
35
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
Proper /isvalidresponse logic as detailed in the 1st response should prevent that from happening.
Reply
Like
30
MiskatonicStudent
MiskatonicStudent
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Awaiting Activation
Posts: 5,
Visits: 22
Yes, this is working in Inquisit 3 as you said.
I'm curious if there is a way to make it so that when participants click on where the deck used to be it does not count as a
response
. As it is now, the image of the deck goes away once the threshold is reached but click in the place where it was results in a selection from that deck.
Reply
Like
35
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
NB: The alternative approach outlined in my 1st reply is perfectly applicable to Inquisit 3, as it does not require the removestimulusframe() function.
Reply
Like
32
MiskatonicStudent
MiskatonicStudent
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Awaiting Activation
Posts: 5,
Visits: 22
Makes sense. Thank you again!
Reply
Like
32
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
That's because those functions do not exist in Inquisit 3.
Reply
Like
32
MiskatonicStudent
MiskatonicStudent
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Awaiting Activation
Posts: 5,
Visits: 22
This works perfectly in Inquisit 4. Thank you so much!
The only downside is it does not seem to work in Inquisit 3. When I try to run it I get this error message:
<trial igt>
Expression 'if (values.deckeselected>=60){trial.igt.removestimulusframe(5);}' is invalid. Item not found.
Reply
Like
31
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
> I also tried using the validreponse attribute but I do not know how to set it to allow for some responses to be valid but not others.
You cannot do that with the /validresponse attribute. You need to use /isvalidresponse instead to invalidate a given repsonse option if a certain condition is met:
<trial igt>
...
/ validresponse = (deck1, deck2, deck3, deck4)
/ isvalidresponse = [values.deckEselected<2 && trial.igt.response=="deck1"]
/ isvalidresponse = [values.deckFselected<2 && trial.igt.response=="deck2"]
/ isvalidresponse = [values.deckGselected<2 && trial.igt.response=="deck3"]
/ isvalidresponse = [values.deckHselected<2 && trial.igt.response=="deck4"]
...
</trial>
> I've tried using the removestimulusframes attribute but it doesn't appear to be working when I set it to remove one of the deck pictures
It is working just fine, but since the stimuli in question are set to *not* be erased
<picture deck1>
/ items = ("deck.jpg")
/ position = (20%, 50%)
/ valign = bottom
/ erase = false
/ size = (20%, 20%)
</picture>
they won't magically disappear from the screen. The removal of the respective stimulusframe
<trial igt>
/ stimulusframes = [1=deck1; 2=deck2; 3=deck3; 4=deck4; 5=deck1label; 6=deck2label; 7=deck3label; 8=deck4label; 9=selectinstructions]
/ ontrialbegin = [if (values.deckEselected>=2){trial.igt.removestimulusframe(1);}]
/ ontrialbegin = [if (values.deckFselected>=2){trial.igt.removestimulusframe(2);}]
/ ontrialbegin = [if (values.deckGselected>=2){trial.igt.removestimulusframe(3);}]
/ ontrialbegin = [if (values.deckHselected>=2){trial.igt.removestimulusframe(4);}]
...
</trial>
merely means that the *next* instance of the <trial> will *not* (re-)draw that frame anymore.
The removal of the labels only "works" because they get overwritten by <text gain> and <text loss> at some point. Thus you are able to notice that they are not re-drawn.
My personal opinion is that you should ditch the removestimulusframe() approach. Instead create a blank white jpg the size of the other card images and set the deck picture to that blank image when your card selection threshold is met (just like you set a deck to "deckon.jpg" in case of a selection of that deck).
Edited
11 Years Ago by
Dave
Reply
Like
35
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
36
1
2
Next
Jump To Page
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search