scripting:includes
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| scripting:includes [2012/03/23 02:07] – created mit | scripting:includes [2025/05/28 16:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Includes ===== | ===== Includes ===== | ||
| - | Rather than having all of your script code in the one ' | + | Rather than having all of your script code in the one ' |
| To link files into your script, use the format.. | To link files into your script, use the format.. | ||
| Line 9: | Line 9: | ||
| </ | </ | ||
| + | e.g. | ||
| + | **ServerScript.mit** | ||
| + | < | ||
| + | #include " | ||
| + | </ | ||
| + | |||
| + | **CrowTournament.mit** | ||
| + | < | ||
| + | Event( " | ||
| + | { | ||
| + | *setcrow 1 | ||
| + | *crowlives 5 | ||
| + | } | ||
| + | |||
| + | Event( " | ||
| + | { | ||
| + | *say Crow Tournament commencing | ||
| + | *eao StartCrowTournamentUser | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | 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 '' | ||
scripting/includes.1332468444.txt.gz · Last modified: (external edit)
