<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The SLENZ Project</title>
	<atom:link href="http://slenz.edumuve.ac.nz/feed/" rel="self" type="application/rss+xml" />
	<link>http://slenz.edumuve.ac.nz</link>
	<description>Second Life Education in New Zealand</description>
	<lastBuildDate>Mon, 03 May 2010 20:55:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Welcome Sign Script: Foundation Studies Build</title>
		<link>http://slenz.edumuve.ac.nz/2010/04/26/welcome-sign-script-foundation-studies-build/</link>
		<comments>http://slenz.edumuve.ac.nz/2010/04/26/welcome-sign-script-foundation-studies-build/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 21:49:59 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Foundation Build]]></category>
		<category><![CDATA[Second Life Scripts]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[customising the build]]></category>
		<category><![CDATA[LSL]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[second life]]></category>
		<category><![CDATA[slenz]]></category>

		<guid isPermaLink="false">http://slenz.edumuve.ac.nz/?p=132</guid>
		<description><![CDATA[    This post is the first in a series that will look at the scripting of objects in both the SLENZ Foundation and Midwifery Studies builds and hopefully help those who wish to adapt, enhance or change the builds to other purposes.  It looks at the Welcome sign for the Foundations Studies build (a similar one is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://slenz.edumuve.ac.nz/wp-content/uploads/2010/04/welcomeSignScript.jpg"><img class="alignright size-full wp-image-135" title="welcomeSignScript" src="http://slenz.edumuve.ac.nz/wp-content/uploads/2010/04/welcomeSignScript.jpg" alt="Foundation Welcome Sign" width="256" height="256" /></a>    This post is the first in a series that will look at the scripting of objects in both the SLENZ Foundation and Midwifery Studies builds and hopefully help those who wish to adapt, enhance or change the builds to other purposes.  It looks at the Welcome sign for the Foundations Studies build (a similar one is found on the complete Midwifery Studies build) which welcomes new users to the build and presents them with a number of options for further information in the form of a notecard and links out to WikiEducator.  The script is called <strong><em>welcome</em></strong> and can be found in the actual sign itself (see image).  A pdf showing the complete script is available throught the following link: <a href="http://slenz.edumuve.ac.nz/wp-content/uploads/2010/05/welcome-Script.pdf" target="_blank">Welcome Script</a></p>
<p>I will attempt to colour the code syntax as it is seen in Second Life to facilitate identification and identify line numbers where appropriate.  It would be greatly appreciated that if any errors are discovered in this and/or subsequent posts or any questions are raised, readers comment here so that I can address them promptly and other readers can benefit from the discussion.</p>
<p><strong>The Variables: Lines 0 to 6</strong></p>
<pre><span style="color: #008000;">integer </span>sensorRange = 30;
<span style="color: #008000;">float </span>sensorFrequency = 10.0;
<span style="color: #008000;">integer </span>listenChannel = 1000;
<span style="color: #ff6600;">// Delay for clearing out latestVisitors list (2 hours in seconds)
</span><span style="color: #008000;">float </span>welcomeBackDelay = 7200.0;
<span style="color: #008000;">list </span>visitors;
<span style="color: #008000;">list</span> latestVisitors;</pre>
<p>    The integer <em><strong>sensorRange</strong></em> is the distance in metres from the sign that avatars are detected for automatic delivery of the welcome through a dialog box.  The float <em><strong>sensorFrequency</strong></em> is the time in seconds that the area is scanned for avatars.  The integer <em><strong>listenChannel</strong></em> is the communications channel used.  The float <em><strong>welcomeBackDelay</strong></em> is used in conjunction with the list <em><strong>latestVisitors</strong></em> to ensure that visitors to the build are not pestered by the welcome each time the area is scanned.  The list <em><strong>visitors</strong></em> holds the names of up to 80 visitors so that on revisiting the site newer visitors will not automatically be delivered the welcome notice but instead told how to access the information (by clicking on the sign).</p>
<p><strong>state_entry(): Lines 10 to 15</strong></p>
<pre><span style="color: #993300;">llSensorRepeat</span>("","",<span style="color: #000080;">AGENT</span>,sensorRange,2*PI,sensorFrequency);
<span style="color: #993300;">llSetTimerEvent</span>(welcomeBackDelay); 
<span style="color: #993300;">llListen</span>(listenChannel, "", <span style="color: #3366ff;">NULL_KEY</span>, "");</pre>
<p>    Set up in the <strong><em>state_entry</em></strong> event are the sensor which scans for avatars, the timer event for managing the visitor lists and the listener which handles button selections from the dialog box delivered to visitors.</p>
<p><strong>sensor(integer total_number): Lines 17 to 42</strong><br />
    The <em><strong>sensor</strong></em> event handles delivery of information to visitors picked up by the <strong><em>llSensorRepeat</em></strong> function.  Each detected visitor is first checked against the <em><strong>visitors</strong></em> list as follows:</p>
<pre><span style="color: #008000;">string </span>userName = <span style="color: #993300;">llDetectedName</span>(i);
<span style="color: #008000;">list</span> nameCheck = [userName];
<span style="color: #008000;">integer</span> test1 = <span style="color: #993300;">llListFindList</span>(visitors, nameCheck);</pre>
<p>    If the visitor is not on the list they are delivered a dialog box with button choices for selecting information on the build and added to both the <strong><em>visitors</em></strong> list and the <em><strong>latestVisitors</strong> </em>list.</p>
<pre>if(test1 == -1)
{
     <span style="color: #993300;">llDialog</span>(<span style="color: #993300;">llDetectedKey</span>(i), "<span style="color: #008000;">Welcome </span>" + userName + " <span style="color: #008000;">to the Skill Mastery Hyperdome. Note: Click on the Welcome sign to re-open this dialog/n** Options for Information **/n1. Notecard: Read and save to your SL Inventory/n2. Resources: View teacher resources on WikiEducator/n3. Notes: View student notes on WikiEducator</span>", ["<span style="color: #008000;">Notecard</span>", "<span style="color: #008000;">Resources</span>", "<span style="color: #008000;">Notes</span>"], listenChannel);
     visitors = visitors + userName;
     latestVisitors = latestVisitors + userName;
}</pre>
<p>    If they are on the <strong><em>visitors</em></strong> list (i.e they were one of the last 80 visitors) they are then checked against the <strong><em>latestVisitors</em></strong> list.  If they are not on the <strong><em>latestVisitors</em></strong> list they are delivered an instant message in chat informing them how to access the initial dialog box.</p>
<pre><span style="color: #000080;">else</span>
{
     <span style="color: #008000;">integer </span>test2 = <span style="color: #993300;">llListFindList</span>(latestVisitors, nameCheck);
     <span style="color: #000080;">if</span>(test2 == -1)
     {
          <span style="color: #993300;">llInstantMessage</span>(<span style="color: #993300;">llDetectedKey</span>(i), "<span style="color: #008000;">Welcome back to the Skill Mastery Hyperdome</span> " + userName + <span style="color: #008000;">". To review general information on this build please click on the Welcome sign.</span>");
          latestVisitors = latestVisitors + userName;
     }
}</pre>
<p><strong>touch_start(integer num_detected): Lines 44 to 47</strong><br />
    The <strong><em>touch_start </em></strong>event allows visitors to touch the Welcome sign and receive the initial dialog box for information review purposes.  They are informed of this ability in the original dialog box and when they revisit the build and are still on the <strong><em>visitors</em></strong> list.</p>
<p><strong>listen(integer channel, string name, key id, string message): Lines 49 to 71<br />
</strong>    The <strong><em>listen </em></strong>event receives the button name from the dialog box on the selected communications channel and delivers the appropriate response depending on which button is selected<strong><em>.  Lines 63 to 70</em></strong> were inserted as a list testing solution to see that the list <strong><em>visitors</em></strong> was accurately receiving data.</p>
<pre><span style="color: #000080;">else if</span>(message == "<span style="color: #008000;">say list</span>" &amp;&amp; id == llGetOwner())
{
     <span style="color: #008000;">integer</span> i;
     <span style="color: #000080;">for</span> (i=0; i&lt;<span style="color: #993300;">llGetListLength</span>(visitors); i++)
     {
          <span style="color: #993300;">llOwnerSay</span>(<span style="color: #993300;">llList2String</span>(visitors, i));
     }
}</pre>
<p>    These lines enable the owner of the build to type <strong><em>/1000 say list</em></strong> into the main chat window and the current items in the list <strong><em>visitors</em></strong> will be displayed (to the owner only).</p>
<p><strong>timer(): Lines 73 t0 84</strong></p>
<pre><span style="color: #ff6600;">// Remove oldest half of latest visitors list</span>
<span style="color: #008000;">integer </span>halfLen = <span style="color: #993300;">llGetListLength</span>(latestVisitors)/2;
latestVisitors = <span style="color: #993300;">llDeleteSubList</span>(latestVisitors, 0, halfLen);
<span style="color: #ff6600;">// If visitors list over 80 remove oldest visitors from l</span><span style="color: #ff6600;">ist</span>
<span style="color: #000080;">if</span>(<span style="color: #993300;">llGetListLength</span>(visitors) &gt; 80)
{
     <span style="color: #008000;">integer</span> over80 = <span style="color: #993300;">llGetListLength</span>(visitors) - 60;
     visitors = <span style="color: #993300;">llDeleteSubList</span>(visitors, 0, over80);
}</pre>
<p>    The <strong><em>timer</em></strong> event runs every 2 hours and is used to keep the lists to a manageable size while enabling those who have recently visited the build to not be bothered by repeated notices from the welcome sign.  First the event removes the oldest half of the <strong><em>latestVisitors</em> </strong>list, then it checks the <strong><em>visitors</em></strong> list and if the list count is greater than 80 it will remove the oldest visitors from the list leaving the latest 60 or thereabouts.  This method ensures that the character count for a list does not stretch the script memory and that the latest visitors are always retained in the list.</p>
<p>    I hope that this explains the <em><strong>welcome</strong></em> script adequately and is of use in adapting the script for other purposes.  As mentioned above any questions should be addressed to this blog as comments so that all users can benefit from the discussion.</p>
<p>    <strong>Isa Goodman/Aaron Griffiths</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://slenz.edumuve.ac.nz/2010/04/26/welcome-sign-script-foundation-studies-build/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SLENZ Midwifery Studies Build Now Available</title>
		<link>http://slenz.edumuve.ac.nz/2010/03/26/slenz-midwifery-studies-build-now-available/</link>
		<comments>http://slenz.edumuve.ac.nz/2010/03/26/slenz-midwifery-studies-build-now-available/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 00:54:33 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Midwifery Build]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[second life]]></category>
		<category><![CDATA[slenz]]></category>

		<guid isPermaLink="false">http://slenz.edumuve.ac.nz/?p=115</guid>
		<description><![CDATA[    The second of the SLENZ Project builds, Midwifery Studies Build Version 1.0, has now been made available free to the general public.  Nelson Marlborough Institute of Technology (NMIT) as the fund holders for the SLENZ project are making this build available under the Creative Commons Attribution Share-Alike License 3.0.   The build can be accessed on [...]]]></description>
			<content:encoded><![CDATA[<p>    The second of the SLENZ Project builds, Midwifery Studies Build Version 1.0, has now been made available free to the general public.  Nelson Marlborough Institute of Technology (NMIT) as the fund holders for the SLENZ project are making this build available under the Creative Commons Attribution Share-Alike License 3.0.   The build can be accessed on the NMIT island of Kowhai at the SLENZ Project central landing point [ <a href="http://slurl.com/secondlife/Kowhai/146/115/32">http://slurl.com/secondlife/Kowhai/146/115/32</a> ].</p>
<p><strong>The Provided Build<br />
</strong>    This build provides all the items required for the Normal Birth Scenario developed by the SLENZ team for the Midwifery Studies part of the SLENZ Project.  This includes the birthing room, midwives office, treatment room and outdoor courtyard.  The rooms provided constitute a portion of the complete Birthing Unit, Te Wāhi Whānau &#8211; The Birth Place, the full build able to be viewed on the NMIT sim Kowhai (link provided above).  Ceilings on the rooms have been removed to facilitate camera access.   The SLENZ Midwifery Studies Resource Pack is also included in the build package delivered to your Inventory and contains all other resources and instructions required for completing the Normal Birth Scenario.  All build items are full permissions, i.e. Modify Copy and Transfer.   This includes textures, animations and scripts.</p>
<p>    The build items are provided inside a 24 x 40 metre megaprim base (SLENZ Midwifery Studies Rez Base) and can be rezzed from this base once it is positioned.  The base top forms the natural ground level for correct build placement and is removed once the build is rezzed.  The build is rezzed by the owner clicking on the positioned base and receiving the rezzing menu.</p>
<p><strong>The Birthing Room</strong><br />
    The Birthing Room contains a large number of scripted objects used in the Normal Birth scenario.  The majority are interacted with directly through a left click and are designed to display variable results (in chat) throughout the birth or indications that a certain object or proceedure has been used, e.g. taking the mothers temperature or using sterile gloves.  Three items, the birthing pool, the chair and the bed, contain multiple poses and use the SLENZ Mother Controller (HUDs created by Toddles Lightworker, SLENZ Developer) found in the Resource Pack to change poses.  Other items such as the bench or the mantlepiece are single left click poses.  The SLENZ Midwife Contoller is used to control or reset the scenario, changing the scenes as the they progress.  It also interacts with various items in the birthing room and with the mother through local chat.</p>
<p><strong>The Treatment Room<br />
</strong>    This contains a medications fridge and IV unit which are incorporated into the scenario.  Medications are displayed in the birthing room. </p>
<p><strong>The Midwives Office</strong><br />
    The Midwives Office contains a filing cabinet used as a dropbox for midwife notes (notecards) written at the end of each scenario scene.  Retrieval from the filing cabinet is assigned to specific tutors through a configurable notecard.</p>
<p><strong>The Courtyard<br />
</strong>    The Courtyard is an integral part of the birthing room having been part of the building design formulated out of research on the <em>ideal birthing unit</em>.  It is however its own linked group and may be deleted if prim counts are a problem.  It has not been supplied with plants, just the paving, seating and mulched beds.</p>
<p><strong>Look out for…</strong><br />
    the first of the technical discussions which will focus on a users first interaction with the Foundation Studies and Midwifery Builds.  It will look at the scripts used to welcome users and offer them introductory information.</p>
<p>    Please contact me (see details below or use Comments in this blog) for any help required in accessing or rezzing this second build should any complications arise.  Feedback on the Build package would be most appreciated so that it can be better adapted to users needs.</p>
<p>    It is also hoped that enhancements to the current builds and any adaptations produced by users will be fed back to myself by emailing Aaron Griffiths offworld [ <a href="mailto:debnaar@clear.net.nz">debnaar@clear.net.nz</a> ] or IMing Isa Goodman inworld, in the spirit of the Creative Commons Attribution-Share Alike license, so that all may benefit from such improvements.</p>
<p><!-- AddThis Button BEGIN --><script type="text/javascript">// <![CDATA[
var addthis_language = ''''''''''''''''en'''''''''''''''';
// ]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRss>http://slenz.edumuve.ac.nz/2010/03/26/slenz-midwifery-studies-build-now-available/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>SLENZ Foundation Studies Build Now Available</title>
		<link>http://slenz.edumuve.ac.nz/2010/03/16/slenz-foundation-studies-build-now-available/</link>
		<comments>http://slenz.edumuve.ac.nz/2010/03/16/slenz-foundation-studies-build-now-available/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 22:39:38 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Foundation Build]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[second life]]></category>
		<category><![CDATA[slenz]]></category>

		<guid isPermaLink="false">http://slenz.edumuve.ac.nz/?p=99</guid>
		<description><![CDATA[    The first of the SLENZ Project builds, Foundation Studies Build Version 1.0, has now been made available free to the general public.  Nelson Marlborough Institute of Technology as the fund holders for the SLENZ project are making this build available under the Creative Commons Attribution Share-Alike License 3.0.   The build can be accessed on the [...]]]></description>
			<content:encoded><![CDATA[<p>    The first of the SLENZ Project builds, Foundation Studies Build Version 1.0, has now been made available free to the general public.  Nelson Marlborough Institute of Technology as the fund holders for the SLENZ project are making this build available under the Creative Commons Attribution Share-Alike License 3.0.   The build can be accessed on the island of Kowhai at the SLENZ Project central landing point [ <a href="http://slurl.com/secondlife/Kowhai/146/115/32">http://slurl.com/secondlife/Kowhai/146/115/32</a> ].</p>
<p><strong>The Provided Build</strong><br />
    The provided build includes the Skill Mastery Hyperdome with all rezzable scenes available (includes the Stairway of Learning) and the Private Interview Room Teleporters.  With the exception of the majority of the clothes and hair provided for the Hyperdome shop and a few seating animations all build items are full permissions, i.e. Modify Copy and Transfer.   This includes textures, animations and scripts.</p>
<p>    The build items are provided inside a 60 x 80 metre megaprim base (SLENZ Foundation Studies Rez Base) and can be rezzed from this base once it is positioned.  The base top forms the natural level for correct build placement but can be removed once the build is rezzed.</p>
<p><strong>The Skill Mastery Hyperdome</strong><br />
    The Skill Mastery Hyperdome, which takes the form of a holodeck, contains a number of rezzable scenes relevant to training students in interview techniques.  Each scene is rezzed inside the Hyperdome using the Hyperdome console.  The console buttons have been configured for each scene (these reside in the Hyperdome base) and use a specific chat channel command to rez them.  The console is lockable by individually approved users through an editable notecard.</p>
<p><strong>The Stairway of Learning</strong><br />
    The Stairway of Learning is a dual staircase surrounding the Hyperdome and is used to deliver individual pieces of learning around preparation for an interview.  The stairway is designed so that each piece of information is displayed as a user mounts (or descends) each step so as to actively engage the learner in seeking the knowledge.  As this function is collision based each step is rezzed individually when the build is first rezzed from the SLENZ Foundation Studies Rez Base.</p>
<p><strong>Private Interview Room Teleporters</strong><br />
    The interview room teleporters, situated near the front of the Hyperdome, provide for rezzing of individual interview rooms for student interview practice.  The rooms are rezzed on demand, each situated above the chosen teleporter platform and spaced approximately 70m apart to prevent the crossover of voice if used in the interview process.  The rooms have been designed specifically for the SLENZ Foundation Studies project and reflect a number of interview rooms likely to be encountered by the students involved.  The room types made available are fully configurable through an editable notecard and individual rooms, with their full permissions, can be adapted to any number of interview situations.</p>
<p><strong>Look out for&#8230;</strong><br />
    the second build, Midwifery Studies, to be released shortly.  Also for a much more indepth discussion of all aspects of both builds that will facilitate adaptations.</p>
<p>    Please contact me (see details below or use Comments in this blog) for any help required in accessing or rezzing this first build should any complications arise.  Feedback on the Build package would be most appreciated so that it can be better adapted to users needs.</p>
<p>    It is also hoped that enhancements to the current builds and any adaptations produced by users will be fed back to myself by emailing Aaron Griffiths offworld [ <a href="mailto:debnaar@clear.net.nz">debnaar@clear.net.nz</a> ] or IMing Isa Goodman inworld, in the spirit of the Creative Commons Attribution-Share Alike license, so that all may benefit from such improvements.</p>
]]></content:encoded>
			<wfw:commentRss>http://slenz.edumuve.ac.nz/2010/03/16/slenz-foundation-studies-build-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The SLENZ Builds Technical Blog</title>
		<link>http://slenz.edumuve.ac.nz/2010/03/16/the-slenz-builds-technical-blog/</link>
		<comments>http://slenz.edumuve.ac.nz/2010/03/16/the-slenz-builds-technical-blog/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 21:24:26 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Foundation Build]]></category>
		<category><![CDATA[Midwifery Build]]></category>
		<category><![CDATA[Second Life Scripts]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[customising the build]]></category>
		<category><![CDATA[LSL]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[second life]]></category>
		<category><![CDATA[slenz]]></category>

		<guid isPermaLink="false">http://slenz.edumuve.ac.nz/?p=93</guid>
		<description><![CDATA[
This blog will give an ongoing commentary on the SLENZ Project builds from a technical perspective, looking at the methodologies used in the build, talking through the scripts so as to facilitate upgrades or enhancements and as a central point for discussions on futher developments.
Written/compiled by Aaron Griffiths &#8211; SL: Isa Goodman
Lead Developer for the SLENZ [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://slenz.edumuve.ac.nz/wp-content/uploads/2010/03/blogBanner.jpg"><img class="aligncenter size-full wp-image-78" title="blogBanner" src="http://slenz.edumuve.ac.nz/wp-content/uploads/2010/03/blogBanner.jpg" alt="" width="800" height="171" /></a></p>
<p style="text-align: center;">This blog will give an ongoing commentary on the SLENZ Project builds from a technical perspective, looking at the methodologies used in the build, talking through the scripts so as to facilitate upgrades or enhancements and as a central point for discussions on futher developments.</p>
<p style="text-align: center;"><strong>Written/compiled by Aaron Griffiths &#8211; SL: Isa Goodman<br />
Lead Developer for the SLENZ Builds</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://slenz.edumuve.ac.nz/2010/03/16/the-slenz-builds-technical-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

