====== System Functions ====== The scripting engine provides a set of 'System Functions', usually preceded by **sys**. Below is the complete list of system functions currently available. (Note also the list of [[Scripting:Reference:Special System Control Functions|special system control functions]] which includes special cases like the 'Sleep' function etc) [[Scripting:Reference:system_functions:TextFunctions|Text Functions]] \\ [[Scripting:Reference:system_functions:PlayerStatusFunctions|Player Information]] \\ [[Scripting:Reference:system_functions:PlayerInventoryAndWealthFunctions|Inventory and Wealth manipulation]] \\ [[Scripting:Reference:system_functions:BuildingInformationFunctions|Building Information]] \\ [[Scripting:Reference:system_functions:WorldMapFunctions|World map functions]] \\ [[Scripting:Reference:system_functions:ConstructionFunctions]] \\ [[Scripting:Reference:system_functions:SubgameFunctions|Scripted Subgames]] \\ [[Scripting:Reference:system_functions:PlayerBuildingOwnershipFunctions|Building Ownership]] \\ [[Scripting:Reference:system_functions:TownFunctions|Town information and control]] \\ [[Scripting:Reference:system_functions:MathsFunctions|Maths Functions]] \\ [[Scripting:Reference:system_functions:EntityFunctions|Entity Functions]] \\ [[Scripting:Reference:system_functions:MiscFunctions|Misc. other functions]] \\ For a full(ish) alphabetical list of script functions : [[Scripting:Reference:system_functions:FullFunctionList|Alphabetical Function List]] [[Scripting:Reference:system_functions:TextFunctions|Text Functions]]\\ For providing names of items, players, skills etc; converting names to IDs and vice versa \\ [[Scripting:Reference:system_functions:PlayerStatusFunctions|Player Information]]\\ Get information about the player ; what skills, inventory, health they have etc \\ [[Scripting:Reference:system_functions:PlayerInventoryAndWealthFunctions|Inventory and Wealth manipulation]] \\ Add items and wealth to the player \\ [[Scripting:Reference:system_functions:BuildingInformationFunctions|Building Information]]: Provides information about a building and its contents (and functions to change the building UI) \\ [[Scripting:Reference:system_functions:WorldMapFunctions|World map functions]]: Get map coordinates for items in the world, convert map to world coordinates and vice versa \\ [[Scripting:Reference:system_functions:ConstructionFunctions]]\\ For construction of buildings and other permanent or transient items on the world \\ [[Scripting:Reference:system_functions:SubgameFunctions|Scripted Subgames]]\\ System for creating and controlling subgames which groups of players can participate in \\ [[Scripting:Reference:system_functions:PlayerBuildingOwnershipFunctions|Building Ownership]]\\ Querying and controlling the ownership status of buildings \\ [[Scripting:Reference:system_functions:TownFunctions|Town information and control]]\\ Info about towns and functions to modify the status of town buildings \\ [[Scripting:Reference:system_functions:MathsFunctions|Maths Functions]]\\ Maths functions such as rand, sin, cos etc \\ [[Scripting:Reference:system_functions:EntityFunctions|Entity Functions]]\\ System for creating 'entities' in the world - these are models/objects that you can control from script, including the ability to set off standard behaviours such as 'attack the player' [[Scripting:Reference:system_functions:MiscFunctions|Misc. other functions]]\\ General other uncategorised bits