<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://gameislands.net/worldmanual/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://gameislands.net/worldmanual/feed.php">
        <title>Universal World Owners Manual - scripting</title>
        <description></description>
        <link>http://gameislands.net/worldmanual/</link>
        <image rdf:resource="http://gameislands.net/worldmanual/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-18T12:52:14+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:basic_syntax&amp;rev=1748450096&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:cutscenes&amp;rev=1748450096&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:events_reference&amp;rev=1748450096&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:functions_custom_events_overview&amp;rev=1748450096&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:functions&amp;rev=1748450096&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:includes&amp;rev=1748450096&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:introduction_to_events&amp;rev=1748450096&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:introduction&amp;rev=1748450096&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:other_language_features&amp;rev=1748450097&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:reference&amp;rev=1748450097&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:samples&amp;rev=1748450097&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:scriptedosd&amp;rev=1748450097&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:setting_up_visual_studio&amp;rev=1748458686&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:subgames&amp;rev=1748458686&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:syntax&amp;rev=1748450097&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:system_functions&amp;rev=1748450097&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:system_values_functions_overview&amp;rev=1748450097&amp;do=diff"/>
                <rdf:li rdf:resource="http://gameislands.net/worldmanual/doku.php?id=scripting:system_values&amp;rev=1748450097&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://gameislands.net/worldmanual/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Universal World Owners Manual</title>
        <link>http://gameislands.net/worldmanual/</link>
        <url>http://gameislands.net/worldmanual/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:basic_syntax&amp;rev=1748450096&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>basic_syntax</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:basic_syntax&amp;rev=1748450096&amp;do=diff</link>
        <description>Script Language Syntax

The scripting language supports a limited range of the basic syntactical components that make up most similar-level programming languages

General Rules

	*  Each line of script needs to be put on a new line
	*  All script code is case-insensitive. (e.g. the variable 'a' is the same as the variable 'A' )</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:cutscenes&amp;rev=1748450096&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cutscenes</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:cutscenes&amp;rev=1748450096&amp;do=diff</link>
        <description>Cutscenes Overview

You can trigger a cutscene for someone from script or manually using the command :
&lt;codedoc&gt;
*cutscene [PLAYERNAME] [CUTSCENE_FILENAME]
&lt;/codedoc&gt;

The cutscene is contained within a file on the server that the client will download. Cutscenes allow you to control the camera and player, add models and graphics, add UI text and do things like play music and control special effects.</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:events_reference&amp;rev=1748450096&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>events_reference</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:events_reference&amp;rev=1748450096&amp;do=diff</link>
        <description>Events Reference

Here is a list of all the events currently supported by the world server

Player Status Events

NewPlayer 

PlayerLogin 

PlayerLogout 

PlayerBirthday 

PlayerDeath 

PlayerKilled 

RobocrowKilled 

RobocrowKill 

PlayerRespawn</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:functions_custom_events_overview&amp;rev=1748450096&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>functions_custom_events_overview</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:functions_custom_events_overview&amp;rev=1748450096&amp;do=diff</link>
        <description>Functions

Functions are defined in your script as shown in this example:

&lt;codedoc&gt;
Function	IsItemASword( $itemNum )
{
if ( $itemNum = 112 )		// Sword
{
	return( 1 )
}
else if ( $itemNum = 113 )	// Sword 2	
      {
	return( 1 )
}
return( 0 )
}
&lt;/codedoc&gt;</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:functions&amp;rev=1748450096&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>functions</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:functions&amp;rev=1748450096&amp;do=diff</link>
        <description>Functions

Functions are defined in your script as shown in this example:

&lt;codedoc&gt;
Function	IsItemASword( $itemNum )
{
if ( $itemNum = 112 )		// Sword
{
	return( 1 )
}
else if ( $itemNum = 113 )	// Sword 2	
      {
	return( 1 )
}
return( 0 )
}
&lt;/codedoc&gt;</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:includes&amp;rev=1748450096&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>includes</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:includes&amp;rev=1748450096&amp;do=diff</link>
        <description>Includes

Rather than having all of your script code in the one 'ServerScript.mit' file, it is expected that you will split your script across multiple files, with each file usually relating to one area of your game-world. (e.g. You may have a file to handle all the usable items on your world, or one for handling a particular cutscene or scripted building).</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:introduction_to_events&amp;rev=1748450096&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>introduction_to_events</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:introduction_to_events&amp;rev=1748450096&amp;do=diff</link>
        <description>Event Scripting Overview

Events are triggered on your world server when various things happen - for instance, a 'UseItem' event is triggered when a player uses an item - and you add script for each event - for instance, adding a particle effect and changing a score whenever a particular item is used. You control events on your world server by script through the file</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:introduction&amp;rev=1748450096&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>introduction</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:introduction&amp;rev=1748450096&amp;do=diff</link>
        <description>Introduction to World Scripting

The Universal allows world owners to control much of the game via script. Using the custom scripting language you can create new behaviours for items and scenes on your world. Although the scripting language is fairly simple, you will require some knowledge of programming to understand and make the most of the features on offer. This section of the manual covers most of the basics about writing scripts - to really find out what you can do with it, you'll just nee…</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:other_language_features&amp;rev=1748450097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>other_language_features</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:other_language_features&amp;rev=1748450097&amp;do=diff</link>
        <description>Includes

Rather than having all of your script code in the one 'ServerScript.mit' file, it is expected that you will split your script across multiple files, with each file usually relating to one area of your game-world. (e.g. You may have a file to handle all the usable items on your world, or one for handling a particular cutscene or scripted building).</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:reference&amp;rev=1748450097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>reference</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:reference&amp;rev=1748450097&amp;do=diff</link>
        <description>Scripting Reference

This section provides detailed lists and explanations of the functionality provided by the scripting system(s). See the Scripting Overview for an introduction to the scripting language and its uses.

	*  Events Reference
	*  System Values
	*  System Functions

	*  Scripted OSD Reference
	*  Scripted Entities Reference

	*  Cutscenes Reference

	*  Command Reference Index</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:samples&amp;rev=1748450097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>samples</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:samples&amp;rev=1748450097&amp;do=diff</link>
        <description>Script Samples

Possibly the best place to find script samples is to create a local world, pick one of the templates provided then examine the scripts that make up the template. (You can look at the scripts in the F10 -&gt; Script Editor in game, or browse to your LocalWorlds folder which will be in C:\Users\[UserName]\AppData\Local\Games For May\The Universal\ by default). By editing those template scripts and reloading them while in game (press F11 or use *reloadscript) you can immediately see ho…</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:scriptedosd&amp;rev=1748450097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>scriptedosd</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:scriptedosd&amp;rev=1748450097&amp;do=diff</link>
        <description>Scripted OSD Overview

The ScriptedOSD system allows you to write scripts on your server that can bring up a window on the client, displaying images, text, buttons etc, which the player is able to interact with. 


For details of all the OSD commands and parameters available see the</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:setting_up_visual_studio&amp;rev=1748458686&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>setting_up_visual_studio</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:setting_up_visual_studio&amp;rev=1748458686&amp;do=diff</link>
        <description>Setting Up Visual Studio to manage your Script Files

Microsoft provide a free IDE called Visual Studio Community : &lt;https://visualstudio.microsoft.com/vs/express/&gt;
Although intended for full application development, it offers some features that make it useful for developing scripts in the game. If thats all you want it for, don't bother adding any of the extra 'workload' features and then its not too big of a download.</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:subgames&amp;rev=1748458686&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>subgames</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:subgames&amp;rev=1748458686&amp;do=diff</link>
        <description>Scripted Subgames Overview

The 'Subgames' system provides your script with a set of functions that allows dynamic creation, monitoring and conclusion of multiplayer subgames.

The basic process is :
- Create a Subgame and join players to it
- Start the Subgame (perhaps moving players to a new location, starting timers, etc)
- Update the game and wait for end-game criteria to be me
- Finish the subgame (perhaps rewarding victorious players before returning them to their original location)</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:syntax&amp;rev=1748450097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>syntax</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:syntax&amp;rev=1748450097&amp;do=diff</link>
        <description>Script Language Syntax

The scripting language supports a limited range of the basic syntactical components that make up most similar-level programming languages

General Rules

	*  Each line of script needs to be put on a new line
	*  All script code is case-insensitive. (e.g. the variable 'a' is the same as the variable 'A' )</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:system_functions&amp;rev=1748450097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>system_functions</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:system_functions&amp;rev=1748450097&amp;do=diff</link>
        <description>System Functions

“Rand”,  SF_RAND e.g. $var = Rand(500) 

		Returns a random number between 1 and the value specified
“PlayerSkillLevel”,  SF_PLAYERSKILLLEVEL e.g $var = PlayerSkillLevel(“Farmer”) 

		Returns the current player's skill level for the skill named</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:system_values_functions_overview&amp;rev=1748450097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>system_values_functions_overview</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:system_values_functions_overview&amp;rev=1748450097&amp;do=diff</link>
        <description>System Values

'System Values' are special read-only, global variables that provide information about the state of the current player and the world.
e.g.  $gPlayerAge tells you the age of the current player. Here's a quick example of how you might use that</description>
    </item>
    <item rdf:about="http://gameislands.net/worldmanual/doku.php?id=scripting:system_values&amp;rev=1748450097&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T16:34:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>system_values</title>
        <link>http://gameislands.net/worldmanual/doku.php?id=scripting:system_values&amp;rev=1748450097&amp;do=diff</link>
        <description>System Values

'System Values' are special read-only, global variables that provide information about the state of the current player and the world.
e.g.  $gPlayerAge tells you the age of the current player. Here's a quick example of how you might use that</description>
    </item>
</rdf:RDF>
