Editing MG/Lua
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 216: | Line 216: | ||
Parameters:<br /> | Parameters:<br /> | ||
'''pos''' - an array of two elements, specifying the co-ordinates {x,y}. | '''pos''' - an array of two elements, specifying the co-ordinates {x,y}. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===togglePauseGame(pauseStatus)=== | ===togglePauseGame(pauseStatus)=== | ||
Line 719: | Line 703: | ||
Code here will be executed whenever the scenario is started. | Code here will be executed whenever the scenario is started. | ||
--> | --> | ||
− | < | + | <global> |
<onSave> | <onSave> | ||
<!-- | <!-- | ||
Code here will be executed when the game is about to save. | Code here will be executed when the game is about to save. | ||
--> | --> | ||
− | < | + | <onSave> |
<onLoad> | <onLoad> | ||
<!-- | <!-- | ||
Code here will be executed when the savegame got loaded. | Code here will be executed when the savegame got loaded. | ||
--> | --> | ||
− | < | + | <onLoad> |
<startup> | <startup> | ||
<!-- | <!-- | ||
Code here will be executed once on startup. | Code here will be executed once on startup. | ||
--> | --> | ||
− | < | + | <startup> |
<unitCreatedOfType type="unitname"> | <unitCreatedOfType type="unitname"> | ||
<!-- | <!-- | ||
Line 790: | Line 774: | ||
[[Category:Scenarios]] | [[Category:Scenarios]] | ||
[[Category:Lua]] | [[Category:Lua]] | ||
− |