LuaAPI.wiki
changeset 862 d06141c36428
parent 861 ccbc115e68ad
child 863 825d0dcd739f
equal deleted inserted replaced
861:ccbc115e68ad 862:d06141c36428
   164 || `MinesNum` || `4` || Number of mines being placed on a medium-sized map ||
   164 || `MinesNum` || `4` || Number of mines being placed on a medium-sized map ||
   165 || `MinesTime` || `3000` || Time for a mine to explode from activated (in milliseconds), `-1000` for random ||
   165 || `MinesTime` || `3000` || Time for a mine to explode from activated (in milliseconds), `-1000` for random ||
   166 || `MineDudPercent` || `0` || Chance of mine being a dud, in percent ||
   166 || `MineDudPercent` || `0` || Chance of mine being a dud, in percent ||
   167 || `Explosives` || `2` || Number of barrels being placed on a medium-sized map ||
   167 || `Explosives` || `2` || Number of barrels being placed on a medium-sized map ||
   168 || `SuddenDeathTurns` || `15` || Turns until Sudden Death begins ||
   168 || `SuddenDeathTurns` || `15` || Turns until Sudden Death begins ||
   169 || `WaterRise` || `47` || Height of water rise each turn in Sudden Death, in pixels ||
   169 || `WaterRise` || `47` || Height of water rise in pixels for each Sudden Death turn ||
   170 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death ||
   170 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death ||
   171 || `Goals` || `""` || Use this to add additional text to the goal text popup shown at the beginning and when using the quit or pause keys. The text is added to the default text which usually explains the game modifiers and does not replace it. Use `|` for line breaks. Also, all text before and including a `:` in a line will be highlighted. See also `ShowMission`. ||
   171 || `Goals` || `""` || Use this to add additional text to the goal text popup shown at the beginning and when using the quit or pause keys. The text is added to the default text which usually explains the game modifiers and does not replace it. Use `|` for line breaks. Also, all text before and including a `:` in a line will be highlighted. See also `ShowMission`. ||
   172 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen ||
   172 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen ||
   173 || `ScreenHeigth` || _N/A_ || Heigth of the Hedgewars window or screen ||
   173 || `ScreenHeigth` || _N/A_ || Heigth of the Hedgewars window or screen ||
       
   174 
       
   175 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`.
   174 
   176 
   175 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.
   177 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.
   176 
   178 
   177 === <tt>onGameStart()</tt> ===
   179 === <tt>onGameStart()</tt> ===
   178 This function is called when the first round starts.
   180 This function is called when the first round starts.