﻿<?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  » BART with array of pictures instead of one picture inflating</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 10 Sep 2026 02:52:07 GMT</lastBuildDate><ttl>20</ttl><item><title>BART with array of pictures instead of one picture inflating</title><link>https://forums.millisecond.com/Topic21799.aspx</link><description>Hi,&lt;br/&gt;I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.&lt;br/&gt;&lt;br/&gt;This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name_1&amp;gt;&lt;br/&gt;/ items = ("body_1.jpg)&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;&amp;lt;picture image_name_2&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_2.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture image_name_128&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_128.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;...&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;...&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp; picture.current = picture["image_name_"+values.totalpumpcount]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?&lt;br/&gt;&lt;br/&gt;Thank you very much for your help,&lt;br/&gt;&lt;br/&gt;Eleonora&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sat, 24 Jun 2017 00:52:26 GMT</pubDate><dc:creator>Elo</dc:creator></item><item><title>RE: BART with array of pictures instead of one picture inflating</title><link>https://forums.millisecond.com/Topic21955.aspx</link><description>&lt;div data-id="21953" class="if-quote-wrapper" unselectable="on" data-guid="1498290716277"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21953" 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="21953" 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="21953" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, June 23, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21953"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21952" class="if-quote-wrapper" unselectable="on" data-guid="1498290716277"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21952" 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="21952" 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="21952" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Friday, June 23, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21952"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21806" class="if-quote-wrapper" unselectable="on" data-guid="1498290716277"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21806" 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="21806" 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="21806" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21806"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21804" class="if-quote-wrapper" unselectable="on" data-guid="1498290716277"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21804" 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="21804" 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="21804" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21804"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21803" class="if-quote-wrapper" unselectable="on" data-guid="1498290716277"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21803" 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="21803" 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="21803" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21803"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21799" class="if-quote-wrapper" unselectable="on" data-guid="1498290716277"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21799" 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="21799" 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="21799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21799"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.&lt;br/&gt;&lt;br/&gt;This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name_1&amp;gt;&lt;br/&gt;/ items = ("body_1.jpg)&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;&amp;lt;picture image_name_2&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_2.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture image_name_128&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_128.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;...&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;...&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp; picture.current = picture["image_name_"+values.totalpumpcount]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?&lt;br/&gt;&lt;br/&gt;Thank you very much for your help,&lt;br/&gt;&lt;br/&gt;Eleonora&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21799"&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 don't need 128 &amp;lt;picture&amp;gt; elements. You need a single &amp;lt;picture&amp;gt; element with 128 items and then you can "navigate" through them by increasing a global variable (a &amp;lt;values&amp;gt; entry) by one on a trial by trial basis.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name&amp;gt;&lt;br/&gt;/ items = image_name_items&lt;br/&gt;/ select = values.image_name_item&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item image_name_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;...&lt;br/&gt;/ 128 = "body_128.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp;values.image_name_item +=1}]&lt;a class="if-quote-goto quote-link" href="#" data-id="21803"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. I have now modified the script and put below the instructions:&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;instructions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item body_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;/ 2 = "body_2.jpg"&lt;br/&gt;/ 3 = "body_3.jpg"&lt;br/&gt;/ 4 = "body_4.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;then instead of the&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture balloon&amp;gt;&lt;br/&gt;/ items = ("balloon.jpg")&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;I have put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;/ select = values.body_item&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Then after&amp;nbsp;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;if (trial.choice.response == "pumpbutton") {&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;I put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;values.image_name_item +=1}]&lt;br/&gt;&lt;/span&gt;but without closing the square bracket and I have deleted&lt;br/&gt;&lt;br/&gt;picture.balloon.width += parameters.balloonsizeincrement;&lt;br/&gt;picture.balloon.height += parameters.balloonsizeincrement;&lt;br/&gt;shape.blank.width = picture.balloon.width;&lt;br/&gt;shape.blank.height = picture.balloon.height;&lt;br/&gt;&lt;br/&gt;When I try to run the script I receive an error message in Element: trial.choice and the messages says: expression 'values.body_item' is invalid. Expression contains an unknown element or property name.&lt;br/&gt;&lt;br/&gt;I cannot understand what I should do...&lt;a class="if-quote-goto quote-link" href="#" data-id="21804"&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;The error message means the script cannot find a &amp;lt;value&amp;gt; called "body_item" defined anywhere in the script, which you reference here:&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;&lt;strong&gt;/ select = values.body_item&lt;/strong&gt;&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;You need to define that global variable in the &amp;lt;values&amp;gt; element and update it accordingly in your &amp;lt;trial&amp;gt;s or elsewhere throughout the script.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21806"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. in the script there is a part where the &amp;lt;values&amp;gt; are specified:&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ completed = 0&lt;br/&gt;/ totalearnings = 0.0&lt;br/&gt;now I have added&lt;br/&gt;&lt;strong&gt;/ imagenumber = 0&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;the script runs but it get stucked when it tries to find image number 129. I am not sure where in the script I sould specify that the images number are from 1:129.&amp;nbsp;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&lt;strong&gt;values.imagenumber +=1;&lt;/strong&gt;&amp;nbsp;&lt;font color="#424242"&gt;&lt;strong&gt;here i should put until 128?&lt;/strong&gt;&lt;/font&gt;&lt;br/&gt;shape.blank.width = shape.blank.width;&lt;br/&gt;shape.blank.height = shape.blank.height ;&lt;br/&gt;values.pumpcount += 1;&lt;br/&gt;if (values.pumpcount &amp;gt; 1) {&lt;br/&gt;values.mean_timebtwpumps = values.sum_timebtwpumps / (values.pumpcount-1);&lt;br/&gt;&lt;br/&gt;How do I know which image is selected on the first trial thoughout the script? (I mean where I have to look in the script to eventually modify it).&lt;br/&gt;&lt;br/&gt;Thanks again, I really appreciate your help.&lt;br/&gt;&lt;br/&gt;Eleonora&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21952"&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;What you need to to is reset values.imagenumber back to 0 at the start of each "round" in the task. You do that in &amp;lt;trial init&amp;gt;.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;...&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.countchoice = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.imagenumber = 0;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21953"&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;I can not thank you enough! It works!</description><pubDate>Sat, 24 Jun 2017 00:52:26 GMT</pubDate><dc:creator>Elo</dc:creator></item><item><title>RE: BART with array of pictures instead of one picture inflating</title><link>https://forums.millisecond.com/Topic21953.aspx</link><description>&lt;div data-id="21952" class="if-quote-wrapper" unselectable="on" data-guid="1498231929627"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21952" 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="21952" 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="21952" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Friday, June 23, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21952"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21806" class="if-quote-wrapper" unselectable="on" data-guid="1498231929627"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21806" 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="21806" 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="21806" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21806"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21804" class="if-quote-wrapper" unselectable="on" data-guid="1498231929627"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21804" 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="21804" 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="21804" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21804"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21803" class="if-quote-wrapper" unselectable="on" data-guid="1498231929627"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21803" 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="21803" 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="21803" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21803"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21799" class="if-quote-wrapper" unselectable="on" data-guid="1498231929627"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21799" 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="21799" 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="21799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21799"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.&lt;br/&gt;&lt;br/&gt;This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name_1&amp;gt;&lt;br/&gt;/ items = ("body_1.jpg)&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;&amp;lt;picture image_name_2&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_2.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture image_name_128&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_128.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;...&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;...&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp; picture.current = picture["image_name_"+values.totalpumpcount]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?&lt;br/&gt;&lt;br/&gt;Thank you very much for your help,&lt;br/&gt;&lt;br/&gt;Eleonora&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21799"&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 don't need 128 &amp;lt;picture&amp;gt; elements. You need a single &amp;lt;picture&amp;gt; element with 128 items and then you can "navigate" through them by increasing a global variable (a &amp;lt;values&amp;gt; entry) by one on a trial by trial basis.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name&amp;gt;&lt;br/&gt;/ items = image_name_items&lt;br/&gt;/ select = values.image_name_item&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item image_name_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;...&lt;br/&gt;/ 128 = "body_128.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp;values.image_name_item +=1}]&lt;a class="if-quote-goto quote-link" href="#" data-id="21803"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. I have now modified the script and put below the instructions:&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;instructions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item body_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;/ 2 = "body_2.jpg"&lt;br/&gt;/ 3 = "body_3.jpg"&lt;br/&gt;/ 4 = "body_4.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;then instead of the&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture balloon&amp;gt;&lt;br/&gt;/ items = ("balloon.jpg")&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;I have put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;/ select = values.body_item&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Then after&amp;nbsp;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;if (trial.choice.response == "pumpbutton") {&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;I put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;values.image_name_item +=1}]&lt;br/&gt;&lt;/span&gt;but without closing the square bracket and I have deleted&lt;br/&gt;&lt;br/&gt;picture.balloon.width += parameters.balloonsizeincrement;&lt;br/&gt;picture.balloon.height += parameters.balloonsizeincrement;&lt;br/&gt;shape.blank.width = picture.balloon.width;&lt;br/&gt;shape.blank.height = picture.balloon.height;&lt;br/&gt;&lt;br/&gt;When I try to run the script I receive an error message in Element: trial.choice and the messages says: expression 'values.body_item' is invalid. Expression contains an unknown element or property name.&lt;br/&gt;&lt;br/&gt;I cannot understand what I should do...&lt;a class="if-quote-goto quote-link" href="#" data-id="21804"&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;The error message means the script cannot find a &amp;lt;value&amp;gt; called "body_item" defined anywhere in the script, which you reference here:&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;&lt;strong&gt;/ select = values.body_item&lt;/strong&gt;&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;You need to define that global variable in the &amp;lt;values&amp;gt; element and update it accordingly in your &amp;lt;trial&amp;gt;s or elsewhere throughout the script.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21806"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. in the script there is a part where the &amp;lt;values&amp;gt; are specified:&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ completed = 0&lt;br/&gt;/ totalearnings = 0.0&lt;br/&gt;now I have added&lt;br/&gt;&lt;strong&gt;/ imagenumber = 0&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;the script runs but it get stucked when it tries to find image number 129. I am not sure where in the script I sould specify that the images number are from 1:129.&amp;nbsp;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&lt;strong&gt;values.imagenumber +=1;&lt;/strong&gt;&amp;nbsp;&lt;font color="#424242"&gt;&lt;strong&gt;here i should put until 128?&lt;/strong&gt;&lt;/font&gt;&lt;br/&gt;shape.blank.width = shape.blank.width;&lt;br/&gt;shape.blank.height = shape.blank.height ;&lt;br/&gt;values.pumpcount += 1;&lt;br/&gt;if (values.pumpcount &amp;gt; 1) {&lt;br/&gt;values.mean_timebtwpumps = values.sum_timebtwpumps / (values.pumpcount-1);&lt;br/&gt;&lt;br/&gt;How do I know which image is selected on the first trial thoughout the script? (I mean where I have to look in the script to eventually modify it).&lt;br/&gt;&lt;br/&gt;Thanks again, I really appreciate your help.&lt;br/&gt;&lt;br/&gt;Eleonora&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21952"&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;What you need to to is reset values.imagenumber back to 0 at the start of each "round" in the task. You do that in &amp;lt;trial init&amp;gt;.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;...&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.countchoice = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.imagenumber = 0;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Fri, 23 Jun 2017 08:35:38 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: BART with array of pictures instead of one picture inflating</title><link>https://forums.millisecond.com/Topic21952.aspx</link><description>&lt;div data-id="21806" class="if-quote-wrapper" unselectable="on" data-guid="1498208185511"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21806" 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="21806" 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="21806" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21806"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21804" class="if-quote-wrapper" unselectable="on" data-guid="1498208185511"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21804" 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="21804" 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="21804" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21804"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21803" class="if-quote-wrapper" unselectable="on" data-guid="1498208185511"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21803" 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="21803" 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="21803" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21803"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21799" class="if-quote-wrapper" unselectable="on" data-guid="1498208185511"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21799" 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="21799" 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="21799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21799"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.&lt;br/&gt;&lt;br/&gt;This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name_1&amp;gt;&lt;br/&gt;/ items = ("body_1.jpg)&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;&amp;lt;picture image_name_2&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_2.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture image_name_128&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_128.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;...&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;...&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp; picture.current = picture["image_name_"+values.totalpumpcount]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?&lt;br/&gt;&lt;br/&gt;Thank you very much for your help,&lt;br/&gt;&lt;br/&gt;Eleonora&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21799"&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 don't need 128 &amp;lt;picture&amp;gt; elements. You need a single &amp;lt;picture&amp;gt; element with 128 items and then you can "navigate" through them by increasing a global variable (a &amp;lt;values&amp;gt; entry) by one on a trial by trial basis.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name&amp;gt;&lt;br/&gt;/ items = image_name_items&lt;br/&gt;/ select = values.image_name_item&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item image_name_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;...&lt;br/&gt;/ 128 = "body_128.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp;values.image_name_item +=1}]&lt;a class="if-quote-goto quote-link" href="#" data-id="21803"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. I have now modified the script and put below the instructions:&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;instructions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item body_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;/ 2 = "body_2.jpg"&lt;br/&gt;/ 3 = "body_3.jpg"&lt;br/&gt;/ 4 = "body_4.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;then instead of the&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture balloon&amp;gt;&lt;br/&gt;/ items = ("balloon.jpg")&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;I have put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;/ select = values.body_item&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Then after&amp;nbsp;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;if (trial.choice.response == "pumpbutton") {&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;I put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;values.image_name_item +=1}]&lt;br/&gt;&lt;/span&gt;but without closing the square bracket and I have deleted&lt;br/&gt;&lt;br/&gt;picture.balloon.width += parameters.balloonsizeincrement;&lt;br/&gt;picture.balloon.height += parameters.balloonsizeincrement;&lt;br/&gt;shape.blank.width = picture.balloon.width;&lt;br/&gt;shape.blank.height = picture.balloon.height;&lt;br/&gt;&lt;br/&gt;When I try to run the script I receive an error message in Element: trial.choice and the messages says: expression 'values.body_item' is invalid. Expression contains an unknown element or property name.&lt;br/&gt;&lt;br/&gt;I cannot understand what I should do...&lt;a class="if-quote-goto quote-link" href="#" data-id="21804"&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;The error message means the script cannot find a &amp;lt;value&amp;gt; called "body_item" defined anywhere in the script, which you reference here:&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;&lt;strong&gt;/ select = values.body_item&lt;/strong&gt;&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;You need to define that global variable in the &amp;lt;values&amp;gt; element and update it accordingly in your &amp;lt;trial&amp;gt;s or elsewhere throughout the script.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21806"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. in the script there is a part where the &amp;lt;values&amp;gt; are specified:&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ completed = 0&lt;br/&gt;/ totalearnings = 0.0&lt;br/&gt;now I have added&lt;br/&gt;&lt;strong&gt;/ imagenumber = 0&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;the script runs but it get stucked when it tries to find image number 129. I am not sure where in the script I sould specify that the images number are from 1:129.&amp;nbsp;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&lt;strong&gt;values.imagenumber +=1;&lt;/strong&gt;&amp;nbsp;&lt;font color="#424242"&gt;&lt;strong&gt;here i should put until 128?&lt;/strong&gt;&lt;/font&gt;&lt;br/&gt;shape.blank.width = shape.blank.width;&lt;br/&gt;shape.blank.height = shape.blank.height ;&lt;br/&gt;values.pumpcount += 1;&lt;br/&gt;if (values.pumpcount &amp;gt; 1) {&lt;br/&gt;values.mean_timebtwpumps = values.sum_timebtwpumps / (values.pumpcount-1);&lt;br/&gt;&lt;br/&gt;How do I know which image is selected on the first trial thoughout the script? (I mean where I have to look in the script to eventually modify it).&lt;br/&gt;&lt;br/&gt;Thanks again, I really appreciate your help.&lt;br/&gt;&lt;br/&gt;Eleonora&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 23 Jun 2017 02:04:26 GMT</pubDate><dc:creator>Elo</dc:creator></item><item><title /><link>https://forums.millisecond.com/Topic21951.aspx</link><description>&lt;div data-id="21806" class="if-quote-wrapper" unselectable="on"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21806" 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="21806" 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="21806" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21806"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21804" class="if-quote-wrapper" unselectable="on" data-guid="1497026132342"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21804" 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="21804" 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="21804" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21804"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21803" class="if-quote-wrapper" unselectable="on" data-guid="1497026132342"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21803" 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="21803" 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="21803" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21803"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21799" class="if-quote-wrapper" unselectable="on" data-guid="1497026132342"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21799" 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="21799" 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="21799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21799"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.&lt;br/&gt;&lt;br/&gt;This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name_1&amp;gt;&lt;br/&gt;/ items = ("body_1.jpg)&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;&amp;lt;picture image_name_2&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_2.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture image_name_128&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_128.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;...&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;...&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp; picture.current = picture["image_name_"+values.totalpumpcount]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?&lt;br/&gt;&lt;br/&gt;Thank you very much for your help,&lt;br/&gt;&lt;br/&gt;Eleonora&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21799"&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 don't need 128 &amp;lt;picture&amp;gt; elements. You need a single &amp;lt;picture&amp;gt; element with 128 items and then you can "navigate" through them by increasing a global variable (a &amp;lt;values&amp;gt; entry) by one on a trial by trial basis.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name&amp;gt;&lt;br/&gt;/ items = image_name_items&lt;br/&gt;/ select = values.image_name_item&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item image_name_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;...&lt;br/&gt;/ 128 = "body_128.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp;values.image_name_item +=1}]&lt;a class="if-quote-goto quote-link" href="#" data-id="21803"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. I have now modified the script and put below the instructions:&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;instructions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item body_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;/ 2 = "body_2.jpg"&lt;br/&gt;/ 3 = "body_3.jpg"&lt;br/&gt;/ 4 = "body_4.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;then instead of the&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture balloon&amp;gt;&lt;br/&gt;/ items = ("balloon.jpg")&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;I have put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;/ select = values.body_item&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Then after&amp;nbsp;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;if (trial.choice.response == "pumpbutton") {&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;I put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;values.image_name_item +=1}]&lt;br/&gt;&lt;/span&gt;but without closing the square bracket and I have deleted&lt;br/&gt;&lt;br/&gt;picture.balloon.width += parameters.balloonsizeincrement;&lt;br/&gt;picture.balloon.height += parameters.balloonsizeincrement;&lt;br/&gt;shape.blank.width = picture.balloon.width;&lt;br/&gt;shape.blank.height = picture.balloon.height;&lt;br/&gt;&lt;br/&gt;When I try to run the script I receive an error message in Element: trial.choice and the messages says: expression 'values.body_item' is invalid. Expression contains an unknown element or property name.&lt;br/&gt;&lt;br/&gt;I cannot understand what I should do...&lt;a class="if-quote-goto quote-link" href="#" data-id="21804"&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;The error message means the script cannot find a &amp;lt;value&amp;gt; called "body_item" defined anywhere in the script, which you reference here:&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;&lt;strong&gt;/ select = values.body_item&lt;/strong&gt;&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;You need to define that global variable in the &amp;lt;values&amp;gt; element and update it accordingly in your &amp;lt;trial&amp;gt;s or elsewhere throughout the script.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21806"&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;&lt;br/&gt;</description><pubDate>Fri, 23 Jun 2017 01:56:10 GMT</pubDate><dc:creator>Elo</dc:creator></item><item><title>RE: BART with array of pictures instead of one picture inflating</title><link>https://forums.millisecond.com/Topic21806.aspx</link><description>&lt;div data-id="21804" class="if-quote-wrapper" unselectable="on" data-guid="1497026132342"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21804" 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="21804" 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="21804" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Friday, June 9, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21804"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21803" class="if-quote-wrapper" unselectable="on" data-guid="1497026132342"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21803" 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="21803" 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="21803" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21803"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21799" class="if-quote-wrapper" unselectable="on" data-guid="1497026132342"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21799" 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="21799" 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="21799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21799"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.&lt;br/&gt;&lt;br/&gt;This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name_1&amp;gt;&lt;br/&gt;/ items = ("body_1.jpg)&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;&amp;lt;picture image_name_2&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_2.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture image_name_128&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_128.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;...&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;...&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp; picture.current = picture["image_name_"+values.totalpumpcount]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?&lt;br/&gt;&lt;br/&gt;Thank you very much for your help,&lt;br/&gt;&lt;br/&gt;Eleonora&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21799"&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 don't need 128 &amp;lt;picture&amp;gt; elements. You need a single &amp;lt;picture&amp;gt; element with 128 items and then you can "navigate" through them by increasing a global variable (a &amp;lt;values&amp;gt; entry) by one on a trial by trial basis.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name&amp;gt;&lt;br/&gt;/ items = image_name_items&lt;br/&gt;/ select = values.image_name_item&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item image_name_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;...&lt;br/&gt;/ 128 = "body_128.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp;values.image_name_item +=1}]&lt;a class="if-quote-goto quote-link" href="#" data-id="21803"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. I have now modified the script and put below the instructions:&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;instructions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item body_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;/ 2 = "body_2.jpg"&lt;br/&gt;/ 3 = "body_3.jpg"&lt;br/&gt;/ 4 = "body_4.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;then instead of the&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture balloon&amp;gt;&lt;br/&gt;/ items = ("balloon.jpg")&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;I have put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;/ select = values.body_item&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Then after&amp;nbsp;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;if (trial.choice.response == "pumpbutton") {&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;I put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;values.image_name_item +=1}]&lt;br/&gt;&lt;/span&gt;but without closing the square bracket and I have deleted&lt;br/&gt;&lt;br/&gt;picture.balloon.width += parameters.balloonsizeincrement;&lt;br/&gt;picture.balloon.height += parameters.balloonsizeincrement;&lt;br/&gt;shape.blank.width = picture.balloon.width;&lt;br/&gt;shape.blank.height = picture.balloon.height;&lt;br/&gt;&lt;br/&gt;When I try to run the script I receive an error message in Element: trial.choice and the messages says: expression 'values.body_item' is invalid. Expression contains an unknown element or property name.&lt;br/&gt;&lt;br/&gt;I cannot understand what I should do...&lt;a class="if-quote-goto quote-link" href="#" data-id="21804"&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;The error message means the script cannot find a &amp;lt;value&amp;gt; called "body_item" defined anywhere in the script, which you reference here:&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;&lt;strong&gt;/ select = values.body_item&lt;/strong&gt;&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;You need to define that global variable in the &amp;lt;values&amp;gt; element and update it accordingly in your &amp;lt;trial&amp;gt;s or elsewhere throughout the script.&lt;br/&gt;</description><pubDate>Fri, 09 Jun 2017 09:37:58 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: BART with array of pictures instead of one picture inflating</title><link>https://forums.millisecond.com/Topic21804.aspx</link><description>&lt;div data-id="21803" class="if-quote-wrapper" unselectable="on" data-guid="1497007645738"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21803" 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="21803" 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="21803" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21803"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21799" class="if-quote-wrapper" unselectable="on" data-guid="1497007645738"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21799" 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="21799" 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="21799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21799"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.&lt;br/&gt;&lt;br/&gt;This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name_1&amp;gt;&lt;br/&gt;/ items = ("body_1.jpg)&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;&amp;lt;picture image_name_2&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_2.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture image_name_128&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_128.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;...&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;...&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp; picture.current = picture["image_name_"+values.totalpumpcount]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?&lt;br/&gt;&lt;br/&gt;Thank you very much for your help,&lt;br/&gt;&lt;br/&gt;Eleonora&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21799"&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 don't need 128 &amp;lt;picture&amp;gt; elements. You need a single &amp;lt;picture&amp;gt; element with 128 items and then you can "navigate" through them by increasing a global variable (a &amp;lt;values&amp;gt; entry) by one on a trial by trial basis.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name&amp;gt;&lt;br/&gt;/ items = image_name_items&lt;br/&gt;/ select = values.image_name_item&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item image_name_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;...&lt;br/&gt;/ 128 = "body_128.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp;values.image_name_item +=1}]&lt;a class="if-quote-goto quote-link" href="#" data-id="21803"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;thank you very much for your help. I have now modified the script and put below the instructions:&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;instructions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item body_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;/ 2 = "body_2.jpg"&lt;br/&gt;/ 3 = "body_3.jpg"&lt;br/&gt;/ 4 = "body_4.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;then instead of the&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture balloon&amp;gt;&lt;br/&gt;/ items = ("balloon.jpg")&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;I have put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture body&amp;gt;&lt;br/&gt;/ items = body_items&lt;br/&gt;/ select = values.body_item&lt;br/&gt;/ position = (33%, 83%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Then after&amp;nbsp;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;if (trial.choice.response == "pumpbutton") {&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(102, 102, 102); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(248, 248, 248); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;I put&amp;nbsp;&lt;br/&gt;&lt;br/&gt;values.image_name_item +=1}]&lt;br/&gt;&lt;/span&gt;but without closing the square bracket and I have deleted&lt;br/&gt;&lt;br/&gt;picture.balloon.width += parameters.balloonsizeincrement;&lt;br/&gt;picture.balloon.height += parameters.balloonsizeincrement;&lt;br/&gt;shape.blank.width = picture.balloon.width;&lt;br/&gt;shape.blank.height = picture.balloon.height;&lt;br/&gt;&lt;br/&gt;When I try to run the script I receive an error message in Element: trial.choice and the messages says: expression 'values.body_item' is invalid. Expression contains an unknown element or property name.&lt;br/&gt;&lt;br/&gt;I cannot understand what I should do...</description><pubDate>Fri, 09 Jun 2017 04:38:45 GMT</pubDate><dc:creator>Elo</dc:creator></item><item><title>RE: BART with array of pictures instead of one picture inflating</title><link>https://forums.millisecond.com/Topic21803.aspx</link><description>&lt;div data-id="21799" class="if-quote-wrapper" unselectable="on" data-guid="1496940623201"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21799" 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="21799" 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="21799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Elo - Thursday, June 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21799"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.&lt;br/&gt;&lt;br/&gt;This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name_1&amp;gt;&lt;br/&gt;/ items = ("body_1.jpg)&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;br/&gt;&amp;lt;picture image_name_2&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_2.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;picture image_name_128&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;/ items = ("body_128.jpg)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;...&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;/span&gt;...&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;...&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp; picture.current = picture["image_name_"+values.totalpumpcount]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?&lt;br/&gt;&lt;br/&gt;Thank you very much for your help,&lt;br/&gt;&lt;br/&gt;Eleonora&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21799"&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 don't need 128 &amp;lt;picture&amp;gt; elements. You need a single &amp;lt;picture&amp;gt; element with 128 items and then you can "navigate" through them by increasing a global variable (a &amp;lt;values&amp;gt; entry) by one on a trial by trial basis.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture image_name&amp;gt;&lt;br/&gt;/ items = image_name_items&lt;br/&gt;/ select = values.image_name_item&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item image_name_items&amp;gt;&lt;br/&gt;/ 1 = "body_1.jpg"&lt;br/&gt;...&lt;br/&gt;/ 128 = "body_128.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;if (trial.choice.response == "pumpbutton") {&lt;br/&gt;&amp;nbsp;values.image_name_item +=1}]</description><pubDate>Thu, 08 Jun 2017 09:55:20 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>