<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://www.theuniversal.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://www.theuniversal.net/worldmanual/feed.php">
        <title>Universal World Owners Manual - scripting:reference:system_functions</title>
        <description></description>
        <link>http://www.theuniversal.net/worldmanual/</link>
        <image rdf:resource="http://www.theuniversal.net/worldmanual/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-23T09:48:43+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:accountsources&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:buildinginformationfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:buildinginterfacefunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:constructionfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:entityfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:fullfunctionlist&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:mathsfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:miscfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerbuildingownershipfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerinventoryandwealthfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerstatusfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:subgamefunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:textfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:townfunctions&amp;rev=1748458714&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:worldmapfunctions&amp;rev=1748458714&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.theuniversal.net/worldmanual/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Universal World Owners Manual</title>
        <link>http://www.theuniversal.net/worldmanual/</link>
        <url>http://www.theuniversal.net/worldmanual/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:accountsources&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>accountsources</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:accountsources&amp;rev=1748458714&amp;do=diff</link>
        <description>Account Source

The (sysAddWealth) and (sysRemoveWealth) script functions use an 'Account Source' parameter to specify the 'type' of cash that is being given. (Unlike the *grantcash command which always shows up as 'Gifts from God' in the player's accounts).

If you're making a full economy world it can be important for the players to have the accounts view available and correctly categorised (so they can see how much they're making in sales vs investment, etc etc). This data can also be used to…</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:buildinginformationfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>buildinginformationfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:buildinginformationfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Building Information Functions

System functions that provide information about a building and its contents, and allow you to control the building UI.

Unless otherwise stated, these functions refer to the building currently being accessed by the player. (This can be overriden using SetBuildingContext).</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:buildinginterfacefunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>buildinginterfacefunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:buildinginterfacefunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Building Interface Script Functions

Standard, non-scripted buildings have a standard set of UI buttons and displays, some of which can be controlled via settings.  If you're scripting your building interface, sometimes you may want to access these standard screens too. For instance, you might add a button to your main building interface that brings up the 'Stockroom' interface.
The commands for doing this are:</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:constructionfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>constructionfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:constructionfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Building Construction Functions

System functions that allow you to construct buildings in the world and set/query construction parameters

sysIsBuildingPositionValid
 Format  sysIsBuildingPositionValid( Building_Type )  Description  Checks whether the player's current position is a valid place to add a building of the specified type</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:entityfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>entityfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:entityfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>SetEntityContext 

EntityAddToWorld 

EntitySetPosition 

EntitySetRotation 

EntitySetModel 

EntitySetAnimation 

EntityMoveTo 

EntitySetBehaviour 

EntityDelete 

EntityDeleteAll 

EntityCommandCode 

EntitySetValue 

EntitySetControlFlag 

EntityActivateUpdateEvent</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:fullfunctionlist&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>fullfunctionlist</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:fullfunctionlist&amp;rev=1748458714&amp;do=diff</link>
        <description>System Function List

sysActivateBuildingProximityEvent (World)

sysActivateLocalProximityEvent (World)

sysActivateRangeEvent (World)

sysAddBackgroundModels (Misc)

sysAddBuilding (Construction)

sysAddBuildingWorld (Construction)

sysAddLocalBackgroundModel (Misc)

sysAddToInventory (Inventory)

sysAddWealth (</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:mathsfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mathsfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:mathsfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Maths Functions

sysRand
 Format  sysRand ( [MAX_NUM] ) Description  Returns a random number between 1 and the value specified  Example  $var = Rand(500) 
sysSin
 Format  sysSin ( ANGLE, [SCALE] ) Description  Returns a sine value ; Angle is in degrees (0 to 360),</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:miscfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>miscfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:miscfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Misc other functions

System functions that don't fall into any other particular category

sysRealTime
 Format  sysRealTime ( Type ) Description  Returns details of the current real time (according to the server clock) Returns  Depending on the type field:</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerbuildingownershipfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>playerbuildingownershipfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerbuildingownershipfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Building Ownership functions

Functions allowing you to query and manipulate the ownership of buildings

sysPlayerGetNumBuildingsOwned
 Format  sysPlayerGetNumBuildingsOwned ( PlayerID ) Description  Returns the number of buildings the specified player currently owns</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerinventoryandwealthfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>playerinventoryandwealthfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerinventoryandwealthfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>sysPlayerInventory
 Format  sysPlayerInventory ( Item ) Description  Returns the number of an item the current player currently possesses  Returns  Amount carried  Notes  Item parameter can be the name or number of the item 
Example: 

Event( &quot;PreAccessBuilding&quot;, &quot;10&quot; )
{
    $hasKeys = sysPlayerInventory( &quot;Keys&quot; )
    if ( $hasKeys == 0 )
    {
       *msg %PLAYER% You cannot access this building without keys
       CancelTransaction()
    }
}</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerstatusfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>playerstatusfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:playerstatusfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Player Information Functions

Most of the information about the player who has triggered the script event is available through System Values - e.g $gPlayerID, $gPlayerCash, $gPlayerX &amp; $gPlayerY.

These system functions can provide information about other players or query extra information about the context player, such as whether they have a particular skill or if they're in a specific town..</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:subgamefunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>subgamefunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:subgamefunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Script Subgame Function Reference

System functions that are used to create, monitor and manipulate subgames. An overview of the Subgame system can be found here.

Setup and Exit

Functions to join players to a subgame, start timers and register events.</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:textfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>textfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:textfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Text Functions

Special text codes are used to get the names of things associated with the current script context, these are:

%PLAYER% : Name of the player 

%BUILDINGOWNER% : Name of the owner of the building in context (where applicable)

%KILLER%</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:townfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>townfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:townfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>Town information and control functions

Town Functions

sysGetNearestTown

sysGetNearestTown( WorldX, WorldY ) returns buildingID num for the nearest town to the specified world coord

sysTownGetRelationship

sysTownGetRelationship( townIDNum1, townIDNum2 )</description>
    </item>
    <item rdf:about="http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:worldmapfunctions&amp;rev=1748458714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-28T18:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>worldmapfunctions</title>
        <link>http://www.theuniversal.net/worldmanual/doku.php?id=scripting:reference:system_functions:worldmapfunctions&amp;rev=1748458714&amp;do=diff</link>
        <description>World / Map Functions

This group collects a few different sets of functions relating to the world -

	*  Functions for converting co-ordinates from map ('tile') to world scale
	*  Functions for finding out how much of a particular object can be found in specified locations</description>
    </item>
</rdf:RDF>
