You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/scripts
truelight 92b8ec9ff8 (svn r1064) -Fixed typo (tnx GeniusDex) 20 years ago
..
on_client.scr.example (svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in: 20 years ago
on_dedicated.scr.example (svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in: 20 years ago
on_server.scr.example (svn r1050) -Fix: [Network] Scripts are no longer under revision control 20 years ago
pre_dedicated.scr.example (svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port' 20 years ago
pre_server.scr.example (svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port' 20 years ago
readme.txt (svn r1064) -Fixed typo (tnx GeniusDex) 20 years ago

readme.txt

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

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