scripts/readme.txt
author darkvater
Mon, 10 Jan 2005 14:43:00 +0000
changeset 970 492ca84ecc6c
parent 644 e833509107ad
child 1065 0f8760146009
permissions -rw-r--r--
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
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.