﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Issue with Overlapping Locations</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 06 Apr 2026 06:13:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Issue with Overlapping Locations</title><link>https://forums.millisecond.com/Topic27800.aspx</link><description>I'm working on a task that will show either 4, 5, or 8 colored squares on the screen. I'm having an issue though with the location assignment as occasionally I will get a trial with 3, 5, or 7 items (though I did get one 2). I figured out that on some trials items are getting assigned to the same location.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thing is I've been using some variant of this script for a while and never had the issue. I've modeled it after the ChangeBlindness script on the task library and I think I have everything set up the same way. The relevant bits are:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[quote]&amp;lt;values&amp;gt;&lt;br/&gt;/column1_x = 45%&lt;br/&gt;/column2_x = 50%&lt;br/&gt;/column3_x = 55%&lt;br/&gt;/column4_x = 60%&lt;br/&gt;/row1_y = 45%&lt;br/&gt;/row2_y = 50%&lt;br/&gt;/row3_y = 55%&lt;br/&gt;&lt;br/&gt;/object1_x = 0&lt;br/&gt;/object2_x = 0&lt;br/&gt;/object3_x = 0&lt;br/&gt;/object4_x = 0&lt;br/&gt;/object5_x = 0&lt;br/&gt;/object6_x = 0&lt;br/&gt;/object7_x = 0&lt;br/&gt;/object8_x = 0&lt;br/&gt;&lt;br/&gt;/object1_y = 0&lt;br/&gt;/object2_y = 0&lt;br/&gt;/object3_y = 0&lt;br/&gt;/object4_y = 0&lt;br/&gt;/object5_y = 0&lt;br/&gt;/object6_y = 0&lt;br/&gt;/object7_y = 0&lt;br/&gt;/object8_y = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object1&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object1&lt;br/&gt;/hposition = values.object1_x&lt;br/&gt;/vposition = values.object1_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object2&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object2&lt;br/&gt;/hposition = values.object2_x&lt;br/&gt;/vposition = values.object2_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object3&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object3&lt;br/&gt;/hposition = values.object3_x&lt;br/&gt;/vposition = values.object3_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object4&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object4&lt;br/&gt;/hposition = values.object4_x&lt;br/&gt;/vposition = values.object4_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object5&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object5&lt;br/&gt;/hposition = values.object5_x&lt;br/&gt;/vposition = values.object5_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object6&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object6&lt;br/&gt;/hposition = values.object6_x&lt;br/&gt;/vposition = values.object6_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object7&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object7&lt;br/&gt;/hposition = values.object7_x&lt;br/&gt;/vposition = values.object7_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object8&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object8&lt;br/&gt;/hposition = values.object8_x&lt;br/&gt;/vposition = values.object8_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list screencoordinates_x&amp;gt;&lt;br/&gt;/items = (values.column1_x, values.column1_x, values.column1_x, &lt;br/&gt;  values.column2_x, values.column2_x, values.column2_x,&lt;br/&gt;  values.column3_x, values.column3_x, values.column3_x,&lt;br/&gt;  values.column4_x, values.column4_x, values.column4_x)&lt;br/&gt;/replace = false&lt;br/&gt;/selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list screencoordinates_y&amp;gt;&lt;br/&gt;/items = (values.row1_y, values.row2_y, values.row3_y, values.row4_y,&lt;br/&gt;  values.row1_y, values.row2_y, values.row3_y, values.row4_y,&lt;br/&gt;  values.row1_y, values.row2_y, values.row3_y, values.row4_y)&lt;br/&gt;/ selectionmode= list.screencoordinates_x.currentindex&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial createarray&amp;gt;&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 1) {values.object1 = list.arrayobjects.nextvalue; values.object1_x = list.screencoordinates_x.nextvalue; values.object1_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 2) {values.object2 = list.arrayobjects.nextvalue; values.object2_x = list.screencoordinates_x.nextvalue; values.object2_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 3) {values.object3 = list.arrayobjects.nextvalue; values.object3_x = list.screencoordinates_x.nextvalue; values.object3_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 4) {values.object4 = list.arrayobjects.nextvalue; values.object4_x = list.screencoordinates_x.nextvalue; values.object4_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 5) {values.object5 = list.arrayobjects.nextvalue; values.object5_x = list.screencoordinates_x.nextvalue; values.object5_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 6) {values.object6 = list.arrayobjects.nextvalue; values.object6_x = list.screencoordinates_x.nextvalue; values.object6_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 7) {values.object7 = list.arrayobjects.nextvalue; values.object7_x = list.screencoordinates_x.nextvalue; values.object7_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 8) {values.object8 = list.arrayobjects.nextvalue; values.object8_x = list.screencoordinates_x.nextvalue; values.object8_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;&amp;lt;/trial createarray&amp;gt;[/quote]&lt;br/&gt;&lt;br/&gt;Any insights as to why I'm sometimes getting items assigned to the same location? I've fiddled with this for a while and keep coming up with the same outcome. I left out the parts of the script that don't have to do with location but let me know if the full script is needed.&lt;br/&gt;&lt;br/&gt;Thanks!</description><pubDate>Wed, 18 Sep 2019 10:48:13 GMT</pubDate><dc:creator>ldb24</dc:creator></item><item><title>RE: Issue with Overlapping Locations</title><link>https://forums.millisecond.com/Topic27802.aspx</link><description>&lt;div data-id="27801" class="if-quote-wrapper" unselectable="on" data-guid="1568828790906"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27801" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="27801" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="27801" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 9/18/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27801"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27800" class="if-quote-wrapper" unselectable="on" data-guid="1568828790906"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27800" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="27800" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="27800" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ldb24 - 9/18/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27800"&gt;&lt;div class="if-quote-message-margin"&gt;I'm working on a task that will show either 4, 5, or 8 colored squares on the screen. I'm having an issue though with the location assignment as occasionally I will get a trial with 3, 5, or 7 items (though I did get one 2). I figured out that on some trials items are getting assigned to the same location.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thing is I've been using some variant of this script for a while and never had the issue. I've modeled it after the ChangeBlindness script on the task library and I think I have everything set up the same way. The relevant bits are:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[quote]&amp;lt;values&amp;gt;&lt;br/&gt;/column1_x = 45%&lt;br/&gt;/column2_x = 50%&lt;br/&gt;/column3_x = 55%&lt;br/&gt;/column4_x = 60%&lt;br/&gt;/row1_y = 45%&lt;br/&gt;/row2_y = 50%&lt;br/&gt;/row3_y = 55%&lt;br/&gt;&lt;br/&gt;/object1_x = 0&lt;br/&gt;/object2_x = 0&lt;br/&gt;/object3_x = 0&lt;br/&gt;/object4_x = 0&lt;br/&gt;/object5_x = 0&lt;br/&gt;/object6_x = 0&lt;br/&gt;/object7_x = 0&lt;br/&gt;/object8_x = 0&lt;br/&gt;&lt;br/&gt;/object1_y = 0&lt;br/&gt;/object2_y = 0&lt;br/&gt;/object3_y = 0&lt;br/&gt;/object4_y = 0&lt;br/&gt;/object5_y = 0&lt;br/&gt;/object6_y = 0&lt;br/&gt;/object7_y = 0&lt;br/&gt;/object8_y = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object1&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object1&lt;br/&gt;/hposition = values.object1_x&lt;br/&gt;/vposition = values.object1_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object2&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object2&lt;br/&gt;/hposition = values.object2_x&lt;br/&gt;/vposition = values.object2_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object3&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object3&lt;br/&gt;/hposition = values.object3_x&lt;br/&gt;/vposition = values.object3_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object4&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object4&lt;br/&gt;/hposition = values.object4_x&lt;br/&gt;/vposition = values.object4_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object5&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object5&lt;br/&gt;/hposition = values.object5_x&lt;br/&gt;/vposition = values.object5_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object6&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object6&lt;br/&gt;/hposition = values.object6_x&lt;br/&gt;/vposition = values.object6_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object7&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object7&lt;br/&gt;/hposition = values.object7_x&lt;br/&gt;/vposition = values.object7_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object8&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object8&lt;br/&gt;/hposition = values.object8_x&lt;br/&gt;/vposition = values.object8_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list screencoordinates_x&amp;gt;&lt;br/&gt;/items = (values.column1_x, values.column1_x, values.column1_x, &lt;br/&gt;  values.column2_x, values.column2_x, values.column2_x,&lt;br/&gt;  values.column3_x, values.column3_x, values.column3_x,&lt;br/&gt;  values.column4_x, values.column4_x, values.column4_x)&lt;br/&gt;/replace = false&lt;br/&gt;/selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list screencoordinates_y&amp;gt;&lt;br/&gt;/items = (values.row1_y, values.row2_y, values.row3_y, values.row4_y,&lt;br/&gt;  values.row1_y, values.row2_y, values.row3_y, values.row4_y,&lt;br/&gt;  values.row1_y, values.row2_y, values.row3_y, values.row4_y)&lt;br/&gt;/ selectionmode= list.screencoordinates_x.currentindex&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial createarray&amp;gt;&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 1) {values.object1 = list.arrayobjects.nextvalue; values.object1_x = list.screencoordinates_x.nextvalue; values.object1_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 2) {values.object2 = list.arrayobjects.nextvalue; values.object2_x = list.screencoordinates_x.nextvalue; values.object2_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 3) {values.object3 = list.arrayobjects.nextvalue; values.object3_x = list.screencoordinates_x.nextvalue; values.object3_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 4) {values.object4 = list.arrayobjects.nextvalue; values.object4_x = list.screencoordinates_x.nextvalue; values.object4_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 5) {values.object5 = list.arrayobjects.nextvalue; values.object5_x = list.screencoordinates_x.nextvalue; values.object5_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 6) {values.object6 = list.arrayobjects.nextvalue; values.object6_x = list.screencoordinates_x.nextvalue; values.object6_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 7) {values.object7 = list.arrayobjects.nextvalue; values.object7_x = list.screencoordinates_x.nextvalue; values.object7_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 8) {values.object8 = list.arrayobjects.nextvalue; values.object8_x = list.screencoordinates_x.nextvalue; values.object8_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;&amp;lt;/trial createarray&amp;gt;[/quote]&lt;br/&gt;&lt;br/&gt;Any insights as to why I'm sometimes getting items assigned to the same location? I've fiddled with this for a while and keep coming up with the same outcome. I left out the parts of the script that don't have to do with location but let me know if the full script is needed.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="27800"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You are sampling coordinates from &amp;lt;list&amp;gt; elements. Those lists are set to sample randomly &lt;strong&gt;without replacement&lt;/strong&gt;. When you sample a varying number of positions (for a varying number of on-screen objects) from those lists, at some point the position lists will run out of unsampled positions in the middle of a trial -- the list then has to reset and all positions become available for sampling again, including those already sampled during the trial before the list ran out of items. This, then, will lead to overlapping positions -- i.e. multiple objects being assigned the same position in the trial. Make sure to reset your lists properly (e.g. at the beginning or end of each trial) such that they *don't* run out of positions to sample from during some subsequent trial.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27801"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah okay, that did the trick. I was resetting the x and y values for each object but NOT the list. Thank you!</description><pubDate>Wed, 18 Sep 2019 10:48:13 GMT</pubDate><dc:creator>ldb24</dc:creator></item><item><title>RE: Issue with Overlapping Locations</title><link>https://forums.millisecond.com/Topic27801.aspx</link><description>&lt;div data-id="27800" class="if-quote-wrapper" unselectable="on" data-guid="1568827768874"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27800" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="27800" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="27800" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ldb24 - 9/18/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27800"&gt;&lt;div class="if-quote-message-margin"&gt;I'm working on a task that will show either 4, 5, or 8 colored squares on the screen. I'm having an issue though with the location assignment as occasionally I will get a trial with 3, 5, or 7 items (though I did get one 2). I figured out that on some trials items are getting assigned to the same location.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thing is I've been using some variant of this script for a while and never had the issue. I've modeled it after the ChangeBlindness script on the task library and I think I have everything set up the same way. The relevant bits are:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[quote]&amp;lt;values&amp;gt;&lt;br/&gt;/column1_x = 45%&lt;br/&gt;/column2_x = 50%&lt;br/&gt;/column3_x = 55%&lt;br/&gt;/column4_x = 60%&lt;br/&gt;/row1_y = 45%&lt;br/&gt;/row2_y = 50%&lt;br/&gt;/row3_y = 55%&lt;br/&gt;&lt;br/&gt;/object1_x = 0&lt;br/&gt;/object2_x = 0&lt;br/&gt;/object3_x = 0&lt;br/&gt;/object4_x = 0&lt;br/&gt;/object5_x = 0&lt;br/&gt;/object6_x = 0&lt;br/&gt;/object7_x = 0&lt;br/&gt;/object8_x = 0&lt;br/&gt;&lt;br/&gt;/object1_y = 0&lt;br/&gt;/object2_y = 0&lt;br/&gt;/object3_y = 0&lt;br/&gt;/object4_y = 0&lt;br/&gt;/object5_y = 0&lt;br/&gt;/object6_y = 0&lt;br/&gt;/object7_y = 0&lt;br/&gt;/object8_y = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object1&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object1&lt;br/&gt;/hposition = values.object1_x&lt;br/&gt;/vposition = values.object1_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object2&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object2&lt;br/&gt;/hposition = values.object2_x&lt;br/&gt;/vposition = values.object2_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object3&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object3&lt;br/&gt;/hposition = values.object3_x&lt;br/&gt;/vposition = values.object3_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object4&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object4&lt;br/&gt;/hposition = values.object4_x&lt;br/&gt;/vposition = values.object4_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object5&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object5&lt;br/&gt;/hposition = values.object5_x&lt;br/&gt;/vposition = values.object5_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object6&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object6&lt;br/&gt;/hposition = values.object6_x&lt;br/&gt;/vposition = values.object6_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object7&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object7&lt;br/&gt;/hposition = values.object7_x&lt;br/&gt;/vposition = values.object7_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture object8&amp;gt;&lt;br/&gt;/items = objects&lt;br/&gt;/select = values.object8&lt;br/&gt;/hposition = values.object8_x&lt;br/&gt;/vposition = values.object8_y&lt;br/&gt;/size = (20,20)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list screencoordinates_x&amp;gt;&lt;br/&gt;/items = (values.column1_x, values.column1_x, values.column1_x, &lt;br/&gt;  values.column2_x, values.column2_x, values.column2_x,&lt;br/&gt;  values.column3_x, values.column3_x, values.column3_x,&lt;br/&gt;  values.column4_x, values.column4_x, values.column4_x)&lt;br/&gt;/replace = false&lt;br/&gt;/selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list screencoordinates_y&amp;gt;&lt;br/&gt;/items = (values.row1_y, values.row2_y, values.row3_y, values.row4_y,&lt;br/&gt;  values.row1_y, values.row2_y, values.row3_y, values.row4_y,&lt;br/&gt;  values.row1_y, values.row2_y, values.row3_y, values.row4_y)&lt;br/&gt;/ selectionmode= list.screencoordinates_x.currentindex&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial createarray&amp;gt;&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 1) {values.object1 = list.arrayobjects.nextvalue; values.object1_x = list.screencoordinates_x.nextvalue; values.object1_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 2) {values.object2 = list.arrayobjects.nextvalue; values.object2_x = list.screencoordinates_x.nextvalue; values.object2_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 3) {values.object3 = list.arrayobjects.nextvalue; values.object3_x = list.screencoordinates_x.nextvalue; values.object3_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 4) {values.object4 = list.arrayobjects.nextvalue; values.object4_x = list.screencoordinates_x.nextvalue; values.object4_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 5) {values.object5 = list.arrayobjects.nextvalue; values.object5_x = list.screencoordinates_x.nextvalue; values.object5_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 6) {values.object6 = list.arrayobjects.nextvalue; values.object6_x = list.screencoordinates_x.nextvalue; values.object6_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 7) {values.object7 = list.arrayobjects.nextvalue; values.object7_x = list.screencoordinates_x.nextvalue; values.object7_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;/ontrialbegin = [if (values.numberofobjects &amp;gt;= 8) {values.object8 = list.arrayobjects.nextvalue; values.object8_x = list.screencoordinates_x.nextvalue; values.object8_y = list.screencoordinates_y.nextvalue}]&lt;br/&gt;&amp;lt;/trial createarray&amp;gt;[/quote]&lt;br/&gt;&lt;br/&gt;Any insights as to why I'm sometimes getting items assigned to the same location? I've fiddled with this for a while and keep coming up with the same outcome. I left out the parts of the script that don't have to do with location but let me know if the full script is needed.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="27800"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You are sampling coordinates from &amp;lt;list&amp;gt; elements. Those lists are set to sample randomly &lt;strong&gt;without replacement&lt;/strong&gt;. When you sample a varying number of positions (for a varying number of on-screen objects) from those lists, at some point the position lists will run out of unsampled positions in the middle of a trial -- the list then has to reset and all positions become available for sampling again, including those already sampled during the trial before the list ran out of items. This, then, will lead to overlapping positions -- i.e. multiple objects being assigned the same position in the trial. Make sure to reset your lists properly (e.g. at the beginning or end of each trial) such that they *don't* run out of positions to sample from during some subsequent trial.&lt;br/&gt;</description><pubDate>Wed, 18 Sep 2019 10:35:23 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>