OpenTTD-patches/scripts
dominik a9972399c5 (svn r1077) Implements scripts/autoexec.scr to get executed on game starting (sign_de)
- %! allows to merge alias parameters
- \% allows to use % in alias strings
- "alias" command now overwrites the old alias list entry
2004-12-13 22:13:02 +00:00
..
on_client.scr.example (svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in: 2004-12-13 15:07:33 +00:00
on_dedicated.scr.example (svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in: 2004-12-13 15:07:33 +00:00
on_server.scr.example (svn r1050) -Fix: [Network] Scripts are no longer under revision control 2004-12-13 14:43:41 +00:00
pre_dedicated.scr.example (svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port' 2004-12-13 17:47:21 +00:00
pre_server.scr.example (svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port' 2004-12-13 17:47:21 +00:00
readme.txt (svn r1077) Implements scripts/autoexec.scr to get executed on game starting (sign_de) 2004-12-13 22:13:02 +00:00

Scripting
---------

OpenTTD supports scripts.

 - 'on_client.scr' is executed when you join a server as client
 - 'on_server.scr' is executed when you start a server / dedicated server
 - 'on_dedicated.scr' is additionally executed when you start a dedicated server
 - 'pre_server.scr' is executed before the server is started
 - 'pre_dedicated.scr' is additionally executed when you start a dedicated server
 - 'autoexec.scr' is executed on gamestart [use this for custom aliases per ex.]

For examples how a script can look, check the .example examples.