start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
start [2020/05/06 16:31] – [More info on:] maxime | start [2020/05/06 18:31] – maxime | ||
---|---|---|---|
Line 9: | Line 9: | ||
* ** [[changelog|Changelog]] ** | * ** [[changelog|Changelog]] ** | ||
* ** [[migration|Migration Notes]] ** | * ** [[migration|Migration Notes]] ** | ||
- | * ** [[guides|Guides]] ** | + | * ** [[guides|Community |
===== More info on: ===== | ===== More info on: ===== | ||
Line 57: | Line 57: | ||
In order to include another LUA file, you can call the '' | In order to include another LUA file, you can call the '' | ||
- | <code lua> | + | < |
myMod: | myMod: | ||
</ | </ | ||
This will execute the script '' | This will execute the script '' | ||
- | <file lua anotherscript.lua> | + | <code lua anotherscript.lua> |
local myMod = ... -- retrieve arguments passed to the script | local myMod = ... -- retrieve arguments passed to the script | ||
-- do stuff with myMod | -- do stuff with myMod | ||
-- ... | -- ... | ||
- | </file> | + | </code> |
In addition, you can pass any number of variable to the called script: | In addition, you can pass any number of variable to the called script: | ||
- | <code lua> | + | < |
myMod: | myMod: | ||
</ | </ | ||
- | <file lua anotherscript.lua> | + | <code lua anotherscript.lua> |
local myMod, anInteger, aString, anArray = ... -- retrieve arguments passed to the script | local myMod, anInteger, aString, anArray = ... -- retrieve arguments passed to the script | ||
- | </file> | + | </code> |
===== Enabling / Disabling a mod ===== | ===== Enabling / Disabling a mod ===== |
start.txt · Last modified: 2022/03/30 10:53 by maxime