Rather than having all of your script code in the one 'ServerScript.mit' file, it is expected that you will split your script across multiple files, with each file usually relating to one area of your game-world. (e.g. You may have a file to handle all the usable items on your world, or one for handling a particular cutscene or scripted building).
To link files into your script, use the format..
<codedoc> #include “<FILENAME>” </codedoc>
e.g.
ServerScript.mit <codedoc> #include “CrowTournament.mit” </codedoc>
CrowTournament.mit <codedoc> Event( “Custom”, “StartCrowTournamentUser” ) {
}
Event( “Custom”, “StartCrowTournament” ) {
} </codedoc>
Keeping related code separated like this can make it easier to share script across worlds - e.g. You could add your crow tournament feature to another world by copying the CrowTournament.mit
file across and including it from the ServerScript.