LuaAPI.wiki
changeset 573 aa505738aff0
parent 572 dd27ba1f54a6
child 576 dff03a98693a
equal deleted inserted replaced
572:dd27ba1f54a6 573:aa505738aff0
   149  * <tt>!WaterRise = 47</tt> - height of water rise at sudden death in pixels
   149  * <tt>!WaterRise = 47</tt> - height of water rise at sudden death in pixels
   150  * <tt>!HealthDecrease = 5</tt> - amount of health decreased on sudden death
   150  * <tt>!HealthDecrease = 5</tt> - amount of health decreased on sudden death
   151  * <tt>Map = "Bamboo"</tt> - the map being played
   151  * <tt>Map = "Bamboo"</tt> - the map being played
   152  * <tt>Theme = "Bamboo"</tt> - the theme to be used
   152  * <tt>Theme = "Bamboo"</tt> - the theme to be used
   153  * <tt>!MapGen</tt> - type of map generator. One of `mgRandom`, `mgMaze`, `mgPerlin`, `mgDrawn`.
   153  * <tt>!MapGen</tt> - type of map generator. One of `mgRandom`, `mgMaze`, `mgPerlin`, `mgDrawn`.
   154  * <tt>!TemplateFilter</tt>
       
   155  * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines
   154  * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines
       
   155  * <tt>!TemplateFilter</tt> - _unknown meaning_
       
   156  * <tt>!TemplateNumber</tt> - _unknown meaning_
   156 
   157 
   157 If you want to add teams or hogs manually you have to do it here. If you want to draw your own map using `AddPoint` and `FlushPoints`, you have to do this within this function as well.
   158 If you want to add teams or hogs manually you have to do it here. If you want to draw your own map using `AddPoint` and `FlushPoints`, you have to do this within this function as well.
   158 
   159 
   159 === <tt>onGameStart()</tt> ===
   160 === <tt>onGameStart()</tt> ===
   160 This function is called when the first round starts.
   161 This function is called when the first round starts.