User Tools

Site Tools


scripting:other_language_features

This is an old revision of the document!


Table of Contents

Includes

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”, “StartCrowTournament” ) {

  • say Crow Tournament commencing

… } </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.

Sleep command

TBD

Timers

TBD

scripting/other_language_features.1348787676.txt.gz · Last modified: (external edit)