scripting:reference:system_functions
This is an old revision of the document!
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 special system control functions which includes special cases like the 'Sleep' function etc)
==== Text Functions ====
- For providing names of items, players, skills etc; converting names to IDs and vice versa
- Get information about the player ; what skills, inventory, health they have etc
Inventory and Wealth manipulation
- Add items and wealth to the player
- Provides information about a building and its contents (and functions to change the building UI)
- Get map coordinates for items in the world, convert map to world coordinates and vice versa
- For construction of buildings and other permanent or transient items on the world
- System for creating and controlling subgames which groups of players can participate in
- Querying and controlling the ownership status of buildings
- Info about towns and functions to modify the status of town buildings
- Maths functions such as rand, sin, cos etc
- 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'
- General other uncategorised bits
For a full(ish) alphabetical list of script functions : Alphabetical Function List
scripting/reference/system_functions.1580297459.txt.gz · Last modified: 2020/01/29 05:30 by mit