﻿<?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 4  » updating points total</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 27 Sep 2026 05:08:38 GMT</lastBuildDate><ttl>20</ttl><item><title>updating points total</title><link>https://forums.millisecond.com/Topic22643.aspx</link><description>I need to make a simple passive avoidance learning task where participants learn to Go or No-Go to different numbers by trial and error, as half the numbers cause a loss in points and the other half cause a gain in points when a Go response is made.&lt;br/&gt;&lt;br/&gt;I need to show a running points total so the participant knows whether they made a correct or incorrect response, but I'm not sure what stimulus type this would come under, as it is text (e.g. "10,000") but this points total needs to change according to performance.&lt;br/&gt;&lt;br/&gt;I guess I need to use the branch attribute for each trial, but need some help as how exactly to do this, so if correct response add 1000 points, but if incorrect response lose 1000 points (for example).&lt;br/&gt;&lt;br/&gt;I'm at the very basic starting stages of this script so any advice most welcome :)</description><pubDate>Wed, 11 Oct 2017 06:11:03 GMT</pubDate><dc:creator>charlottebooth</dc:creator></item><item><title>RE: updating points total</title><link>https://forums.millisecond.com/Topic22670.aspx</link><description>&lt;div data-id="22644" class="if-quote-wrapper" unselectable="on" data-guid="1507727452314"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22644" 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="22644" 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="22644" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, October 4, 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-22644"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22643" class="if-quote-wrapper" unselectable="on" data-guid="1507727452314"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22643" 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="22643" 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="22643" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;charlottebooth - Wednesday, October 4, 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-22643"&gt;&lt;div class="if-quote-message-margin"&gt;I need to make a simple passive avoidance learning task where participants learn to Go or No-Go to different numbers by trial and error, as half the numbers cause a loss in points and the other half cause a gain in points when a Go response is made.&lt;br/&gt;&lt;br/&gt;I need to show a running points total so the participant knows whether they made a correct or incorrect response, but I'm not sure what stimulus type this would come under, as it is text (e.g. "10,000") but this points total needs to change according to performance.&lt;br/&gt;&lt;br/&gt;I guess I need to use the branch attribute for each trial, but need some help as how exactly to do this, so if correct response add 1000 points, but if incorrect response lose 1000 points (for example).&lt;br/&gt;&lt;br/&gt;I'm at the very basic starting stages of this script so any advice most welcome :)&lt;a class="if-quote-goto quote-link" href="#" data-id="22643"&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 need to create a variable in the &amp;lt;values&amp;gt; element:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ pointstotal = 10000&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;You can display this variable via a standard &amp;lt;text&amp;gt; element &lt;br/&gt;&lt;br/&gt;&amp;lt;text points&amp;gt;&lt;br/&gt;/ items = ("Points: &amp;lt;%values.pointstotal%&amp;gt;")&lt;br/&gt;/ erase = false&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;in your &amp;lt;trial&amp;gt;s and update it there as needed /ontrialend&lt;br/&gt;&lt;br/&gt;&amp;lt;trial exampletrial&amp;gt;&lt;br/&gt;/ stimulustimes = [0=points, ....]&lt;br/&gt;...&lt;br/&gt;/ ontrialend = [if (trial.exampletrial.correct) values.pointstotal += 1000;]&lt;br/&gt;/ ontrialend = [if (trial.exampletrial.error) values.pointstotal -= 1000;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22644"&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;Thank you it worked a treat :)&amp;nbsp;</description><pubDate>Wed, 11 Oct 2017 06:11:03 GMT</pubDate><dc:creator>charlottebooth</dc:creator></item><item><title>RE: updating points total</title><link>https://forums.millisecond.com/Topic22644.aspx</link><description>&lt;div data-id="22643" class="if-quote-wrapper" unselectable="on" data-guid="1507134629347"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22643" 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="22643" 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="22643" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;charlottebooth - Wednesday, October 4, 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-22643"&gt;&lt;div class="if-quote-message-margin"&gt;I need to make a simple passive avoidance learning task where participants learn to Go or No-Go to different numbers by trial and error, as half the numbers cause a loss in points and the other half cause a gain in points when a Go response is made.&lt;br/&gt;&lt;br/&gt;I need to show a running points total so the participant knows whether they made a correct or incorrect response, but I'm not sure what stimulus type this would come under, as it is text (e.g. "10,000") but this points total needs to change according to performance.&lt;br/&gt;&lt;br/&gt;I guess I need to use the branch attribute for each trial, but need some help as how exactly to do this, so if correct response add 1000 points, but if incorrect response lose 1000 points (for example).&lt;br/&gt;&lt;br/&gt;I'm at the very basic starting stages of this script so any advice most welcome :)&lt;a class="if-quote-goto quote-link" href="#" data-id="22643"&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 need to create a variable in the &amp;lt;values&amp;gt; element:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ pointstotal = 10000&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;You can display this variable via a standard &amp;lt;text&amp;gt; element &lt;br/&gt;&lt;br/&gt;&amp;lt;text points&amp;gt;&lt;br/&gt;/ items = ("Points: &amp;lt;%values.pointstotal%&amp;gt;")&lt;br/&gt;/ erase = false&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;in your &amp;lt;trial&amp;gt;s and update it there as needed /ontrialend&lt;br/&gt;&lt;br/&gt;&amp;lt;trial exampletrial&amp;gt;&lt;br/&gt;/ stimulustimes = [0=points, ....]&lt;br/&gt;...&lt;br/&gt;/ ontrialend = [if (trial.exampletrial.correct) values.pointstotal += 1000;]&lt;br/&gt;/ ontrialend = [if (trial.exampletrial.error) values.pointstotal -= 1000;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Wed, 04 Oct 2017 09:34:59 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>