LuaAPI.wiki
changeset 627 9a690b99f3e9
parent 626 c243eb309e6f
child 628 c6d08e074223
equal deleted inserted replaced
626:c243eb309e6f 627:9a690b99f3e9
   154  * <tt>Theme = "Bamboo"</tt> - the theme to be used
   154  * <tt>Theme = "Bamboo"</tt> - the theme to be used
   155  * <tt>!MapGen</tt> - type of map generator. One of `mgRandom`, `mgMaze`, `mgPerlin`, `mgDrawn`.
   155  * <tt>!MapGen</tt> - type of map generator. One of `mgRandom`, `mgMaze`, `mgPerlin`, `mgDrawn`.
   156  * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines
   156  * <tt>Goals = "Jumping is disabled"</tt> - if you want to add info to the game mode dialog, use "|" to separate lines
   157  * <tt>!TemplateFilter</tt> - _unknown meaning_
   157  * <tt>!TemplateFilter</tt> - _unknown meaning_
   158  * <tt>!TemplateNumber</tt> - _unknown meaning_
   158  * <tt>!TemplateNumber</tt> - _unknown meaning_
       
   159  * <tt>!MapFeatureSize</tt> - Used by random maps to determine its “curvyness” or complexity. This value can be set by the user with the slider under the random map preview in the game setup screen. The user-set value ranges from 1 (leftmost position) to 25 (rightmost position).
   159 
   160 
   160 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.
   161 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.
   161 
   162 
   162 === <tt>onGameStart()</tt> ===
   163 === <tt>onGameStart()</tt> ===
   163 This function is called when the first round starts.
   164 This function is called when the first round starts.