Missions.wiki
changeset 1684 a15513ab7e2b
parent 566 dc9a1250fe28
child 1685 2e6f3bfcb26b
equal deleted inserted replaced
1683:e8df7f4501a6 1684:a15513ab7e2b
    21  * Important set up functions: `AddTeam`, `AddHog`, `AddGear`, `SetGearPosition`.
    21  * Important set up functions: `AddTeam`, `AddHog`, `AddGear`, `SetGearPosition`.
    22  * You probably almost always want to call `ShowMission` at the beginning of the game (`onGameStart`) to show the objectives of your mission.
    22  * You probably almost always want to call `ShowMission` at the beginning of the game (`onGameStart`) to show the objectives of your mission.
    23  * Enable the game flag `gfOneClanMode` if you need only one clan for your mission.
    23  * Enable the game flag `gfOneClanMode` if you need only one clan for your mission.
    24  * Normally, the game ends when all hedgehogs are dead or one clan is remaining (unless `gfOneClanMode` is set). You can call `EndGame` to end the game manually.
    24  * Normally, the game ends when all hedgehogs are dead or one clan is remaining (unless `gfOneClanMode` is set). You can call `EndGame` to end the game manually.
    25  * Call `SendStat` to customize the statistics screen.
    25  * Call `SendStat` to customize the statistics screen.
    26  * Use the [LuaLibraries#Locale Locale] library to make your mission translatable. Enclose the human-readable texts in `loc`.
    26  * Use the [LuaLibraryLocale Locale] library to make your mission translatable.
    27  * When making your mission translatable, use Lua's `string.format` to insert numbers and other strings instead of just concatenating everything together.
    27  * When making your mission translatable, use Lua's `string.format` to insert numbers and other strings instead of just concatenating everything together.
    28  * If you want to create complex animations and/or cinematics, include and use the [LuaLibraries#Animate Animate] library.
    28  * If you want to create complex animations and/or cinematics, include and use the [LuaLibraries#Animate Animate] library.
    29 
    29 
    30 === Preview image ===
    30 === Preview image ===
    31 The preview image is displayed in the mission menu when you have selected the mission.
    31 The preview image is displayed in the mission menu when you have selected the mission.