<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tribal+Toland</id>
	<title>Second Life Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tribal+Toland"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/wiki/Special:Contributions/Tribal_Toland"/>
	<updated>2026-07-27T09:14:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland/slaves&amp;diff=43303</id>
		<title>User:Tribal Toland/slaves</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland/slaves&amp;diff=43303"/>
		<updated>2007-12-04T17:36:22Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Slave Scripts !! ==&lt;br /&gt;
&lt;br /&gt;
In general these are used fairly often. &lt;br /&gt;
&lt;br /&gt;
First, we get the amount of slaves that are in the object:&lt;br /&gt;
&lt;br /&gt;
 integer slaveCount = 0;&lt;br /&gt;
 get_slaves()&lt;br /&gt;
 {&lt;br /&gt;
    slaveCount = 0;&lt;br /&gt;
    integer i = 0;&lt;br /&gt;
    integer num = llGetInventoryNumber(INVENTORY_SCRIPT);&lt;br /&gt;
    do&lt;br /&gt;
    {&lt;br /&gt;
        string name = llGetInventoryName(INVENTORY_SCRIPT,i);&lt;br /&gt;
        if(llSubStringIndex(llToLower(name),&amp;quot;slave&amp;quot;) == 0)&lt;br /&gt;
        {&lt;br /&gt;
            ++slaveCount;&lt;br /&gt;
        }&lt;br /&gt;
        ++i;&lt;br /&gt;
    }  &lt;br /&gt;
    while(i &amp;lt; num);&lt;br /&gt;
    llOwnerSay(&amp;quot;Number of slaves: &amp;quot;+(string)slaveCount);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you call this in the state_entry event, it will search the objects inventory for scripts where the name begins with &amp;quot;slave&amp;quot; (case in-sensitive).&lt;br /&gt;
&lt;br /&gt;
Lets break this bit of code down:&lt;br /&gt;
&lt;br /&gt;
 get_slaves() //name of function&lt;br /&gt;
 {&lt;br /&gt;
    slaveCount = 0; //sets slaveCount to 0 so we don&#039;t double up&lt;br /&gt;
    integer i = 0; //create variable for loop&lt;br /&gt;
    integer num = llGetInventoryNumber(INVENTORY_SCRIPT); //this gets the number of scripts in the objects inventory&lt;br /&gt;
    do //start the do-while loop&lt;br /&gt;
    {&lt;br /&gt;
        string name = llGetInventoryName(INVENTORY_SCRIPT,i); //gets the name of the script at position i in the objects inventory&lt;br /&gt;
        if(llSubStringIndex(llToLower(name),&amp;quot;slave&amp;quot;) == 0) //puts the name in lower case. If the name has slave at the beginning increase the number of slaves&lt;br /&gt;
        {&lt;br /&gt;
            ++slaveCount; //increment slaveCount by 1&lt;br /&gt;
        }&lt;br /&gt;
        ++i; //increment the loop variable by 1. This stops the loop being infinite &lt;br /&gt;
    }  &lt;br /&gt;
    while(i &amp;lt; num); //do the do-while loop whilst the variable i (loop variable) is less than the num variable (number of scripts in object)&lt;br /&gt;
    llOwnerSay(&amp;quot;Number of slaves: &amp;quot;+(string)slaveCount); //Say out loud the number of slaves in inventory&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
You can call this function in the state_entry event.&lt;br /&gt;
&lt;br /&gt;
 default&lt;br /&gt;
 {&lt;br /&gt;
     on_rez(integer val)&lt;br /&gt;
     {&lt;br /&gt;
         llResetScript();&lt;br /&gt;
     }&lt;br /&gt;
     &lt;br /&gt;
     state_entry()&lt;br /&gt;
     {&lt;br /&gt;
         get_slaves();&lt;br /&gt;
     }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Next, we need to create our function that decides what slave to use.&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland/slaves&amp;diff=43301</id>
		<title>User:Tribal Toland/slaves</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland/slaves&amp;diff=43301"/>
		<updated>2007-12-04T17:24:46Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: New page: == Slave Scripts !! ==  In general these are used fairly often.   First, we get the amount of slaves that are in the object:   get_slaves()  {     slaveCount = 0;     integer i = 0;     in...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Slave Scripts !! ==&lt;br /&gt;
&lt;br /&gt;
In general these are used fairly often. &lt;br /&gt;
&lt;br /&gt;
First, we get the amount of slaves that are in the object:&lt;br /&gt;
&lt;br /&gt;
 get_slaves()&lt;br /&gt;
 {&lt;br /&gt;
    slaveCount = 0;&lt;br /&gt;
    integer i = 0;&lt;br /&gt;
    integer num = llGetInventoryNumber(INVENTORY_SCRIPT);&lt;br /&gt;
    do&lt;br /&gt;
    {&lt;br /&gt;
        string name = llGetInventoryName(INVENTORY_SCRIPT,i);&lt;br /&gt;
        if(llSubStringIndex(llToLower(name),&amp;quot;slave&amp;quot;) == 0)&lt;br /&gt;
        {&lt;br /&gt;
            ++slaveCount;&lt;br /&gt;
        }&lt;br /&gt;
        ++i;&lt;br /&gt;
    }  &lt;br /&gt;
    while(i &amp;lt; num);&lt;br /&gt;
    llOwnerSay(&amp;quot;Number of slaves: &amp;quot;+(string)slaveCount);&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=43297</id>
		<title>User:Tribal Toland</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=43297"/>
		<updated>2007-12-04T17:16:05Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==&lt;br /&gt;
&lt;br /&gt;
I am Tribal Toland, a scripter in the virtual world of secondlife. &lt;br /&gt;
&lt;br /&gt;
I see myself as a fairly decent scripter and can script most things thrown at me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Script Snippets ==&lt;br /&gt;
&lt;br /&gt;
These are just afew snippets of scripts that i am using all the time&lt;br /&gt;
&lt;br /&gt;
*[[WarpPos|warpPos]] - Hack that allows non-physical objects to move over 10m per call.&lt;br /&gt;
*[[User:Tribal Toland/slaves|Slave]] - A way around script delay (simple)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bugs To Track ==&lt;br /&gt;
&lt;br /&gt;
Just a list of bugs i am tracking on the jira&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/SVC-125 llSitTarget]&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/VWR-3483 A New form of llDialog] - this isnt a bug, just something that would be very usefull&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42858</id>
		<title>User:Tribal Toland</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42858"/>
		<updated>2007-12-02T14:07:45Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==&lt;br /&gt;
&lt;br /&gt;
I am Tribal Toland, a scripter in the virtual world of secondlife. &lt;br /&gt;
&lt;br /&gt;
I see myself as a fairly decent scripter and can script most things thrown at me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Script Snippets ==&lt;br /&gt;
&lt;br /&gt;
These are just afew snippets of scripts that i am using all the time&lt;br /&gt;
&lt;br /&gt;
*[[WarpPos|warpPos]] - Hack that allows non-physical objects to move over 10m per call.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bugs To Track ==&lt;br /&gt;
&lt;br /&gt;
Just a list of bugs i am tracking on the jira&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/SVC-125 llSitTarget]&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/VWR-3483 A New form of llDialog] - this isnt a bug, just something that would be very usefull&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42837</id>
		<title>User:Tribal Toland</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42837"/>
		<updated>2007-12-02T12:55:20Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==&lt;br /&gt;
&lt;br /&gt;
I am Tribal Toland, a scripter in the virtual world of secondlife. &lt;br /&gt;
&lt;br /&gt;
I see myself as a fairly decent scripter and can script most things thrown at me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Script Snippets ==&lt;br /&gt;
&lt;br /&gt;
These are just afew snippets of scripts that i am using all the time&lt;br /&gt;
&lt;br /&gt;
*[[WarpPos|warpPos]] - Hack that allows non-physical objects to move over 10m per call.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bugs To Track ==&lt;br /&gt;
&lt;br /&gt;
Just a list of bugs i am tracking on the jira&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/SVC-125 llSitTarget]&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/VWR-3483 A New form of llDialog] - this isnt a bug, just something that would be very usefull&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/VWR-3594 My Feature request - llScriptRequest] - A feature i think lsl could do with&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42815</id>
		<title>User:Tribal Toland</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42815"/>
		<updated>2007-12-02T12:37:39Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==&lt;br /&gt;
&lt;br /&gt;
I am Tribal Toland, a scripter in the virtual world of secondlife. &lt;br /&gt;
&lt;br /&gt;
I see myself as a fairly decent scripter and can script most things thrown at me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Script Snippets ==&lt;br /&gt;
&lt;br /&gt;
These are just afew snippets of scripts that i am using all the time&lt;br /&gt;
&lt;br /&gt;
*[[WarpPos|warpPos]] - Hack that allows non-physical objects to move over 10m per call.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bugs To Track ==&lt;br /&gt;
&lt;br /&gt;
Just a list of bugs i am tracking on the jira&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/SVC-125 llSitTarget]&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/VWR-3483 A New form of llDialog] - this isnt a bug, just something that would be very usefull&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42801</id>
		<title>User:Tribal Toland</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42801"/>
		<updated>2007-12-02T10:18:36Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==&lt;br /&gt;
&lt;br /&gt;
I am Tribal Toland, a scripter in the virtual world of secondlife. &lt;br /&gt;
&lt;br /&gt;
I see myself as a fairly decent scripter and can script most things thrown at me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Script Snippets ==&lt;br /&gt;
&lt;br /&gt;
These are just afew snippets of scripts that i am using all the time&lt;br /&gt;
&lt;br /&gt;
*[[WarpPos|warpPos]] - Hack that allows non-physical objects to move over 10m per call.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bugs To Track ==&lt;br /&gt;
&lt;br /&gt;
Just a list of bugs i am tracking on the jira&lt;br /&gt;
&lt;br /&gt;
*[http://jira.secondlife.com/browse/SVC-125 llSitTarget]&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42593</id>
		<title>User:Tribal Toland</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42593"/>
		<updated>2007-12-01T15:40:35Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==&lt;br /&gt;
&lt;br /&gt;
I am Tribal Toland, a scripter in the virtual world of secondlife. &lt;br /&gt;
&lt;br /&gt;
I see myself as a fairly decent scripter and can script most things thrown at me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Script Snippets ==&lt;br /&gt;
&lt;br /&gt;
These are just afew snippets of scripts that i am using all the time&lt;br /&gt;
&lt;br /&gt;
*[[WarpPos|warpPos]] - Hack that allows non-physical objects to move over 10m per call.&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42581</id>
		<title>User:Tribal Toland</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42581"/>
		<updated>2007-12-01T13:37:54Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About Me ==&lt;br /&gt;
&lt;br /&gt;
I am Tribal Toland, a scripter in the virtual world of secondlife. I see myself as a fairly decent scripter and can script most things thrown at me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Script Snippets ==&lt;br /&gt;
&lt;br /&gt;
These are just afew snippets of scripts that i am using all the time&lt;br /&gt;
&lt;br /&gt;
[[WarpPos]]&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42576</id>
		<title>User:Tribal Toland</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Tribal_Toland&amp;diff=42576"/>
		<updated>2007-12-01T13:27:29Z</updated>

		<summary type="html">&lt;p&gt;Tribal Toland: New page: &amp;#039;&amp;#039;&amp;#039;About Me&amp;#039;&amp;#039;&amp;#039;  I am Tribal Toland, a scripter in the virtual world of secondlife. I see myself as a fairly decent scripter and can script most things thrown at me.   ----  &amp;#039;&amp;#039;&amp;#039;Snippets&amp;#039;&amp;#039;&amp;#039; ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;About Me&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I am Tribal Toland, a scripter in the virtual world of secondlife. I see myself as a fairly decent scripter and can script most things thrown at me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Snippets&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
These are just afew snippets of scripts that i am using all the time&lt;br /&gt;
&lt;br /&gt;
[[WarpPos]]&lt;/div&gt;</summary>
		<author><name>Tribal Toland</name></author>
	</entry>
</feed>