OpenTTD/scripts
truelight bff8c0af61 (svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in:
- set server_pw "password"
 - set server_name "servername"
 - set company_pw "password"
 - set name "playername"
(patch by sign_de)
2004-12-13 15:07:33 +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
readme.txt (svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in: 2004-12-13 15:07:33 +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

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