equal
deleted
inserted
replaced
30 || `ReadyTimeLeft` || Remaining ready time in millseconds, 0 if turn in progress. To set this value, use `SetReadyTimeLeft` || |
30 || `ReadyTimeLeft` || Remaining ready time in millseconds, 0 if turn in progress. To set this value, use `SetReadyTimeLeft` || |
31 || `GameTime` || Number of total game ticks || |
31 || `GameTime` || Number of total game ticks || |
32 || `TotalRounds` || Number of rounds that have passed. Equals `-1` if game has not started yet or hogs are still being placed. || |
32 || `TotalRounds` || Number of rounds that have passed. Equals `-1` if game has not started yet or hogs are still being placed. || |
33 || `CurrentHedgehog` || The hedgehog gear that is currently in play || |
33 || `CurrentHedgehog` || The hedgehog gear that is currently in play || |
34 || `AmmoTypeMax` || Maximum ammo type ID (useful to iterate through all ammo types, starting by 0) || |
34 || `AmmoTypeMax` || Maximum ammo type ID (useful to iterate through all ammo types, starting by 0) || |
|
35 || `ScreenWidth` || Width of the Hedgewars window or screen. Not available before `onGameInit` || |
|
36 || `ScreenHeight` || Height of the Hedgewars window or screen. Not available before `onGameInit` || |
35 |
37 |
36 == !GameFlags == |
38 == !GameFlags == |
37 The !GameFlags are used to store simple boolean settings of the game. |
39 The !GameFlags are used to store simple boolean settings of the game. |
38 You can read/modify them using the [LuaGameplay#GameFlags_functions GameFlags functions]. |
40 You can read/modify them using the [LuaGameplay#GameFlags_functions GameFlags functions]. |
39 |
41 |
99 || `SuddenDeathTurns` || `15` || Number of rounds until Sudden Death begins, _after the first round is over_. E.g. 0 = SD starts in 2nd round || |
101 || `SuddenDeathTurns` || `15` || Number of rounds until Sudden Death begins, _after the first round is over_. E.g. 0 = SD starts in 2nd round || |
100 || `WaterRise` || `47` || Height of water rise in pixels for each Sudden Death turn || |
102 || `WaterRise` || `47` || Height of water rise in pixels for each Sudden Death turn || |
101 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death || |
103 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death || |
102 || `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. The text supports the same special characters as in `ShowMission` || |
104 || `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. The text supports the same special characters as in `ShowMission` || |
103 || `WorldEdge` || `weNone` || Type edges being used at the left and right sides of the terrain (see below). || |
105 || `WorldEdge` || `weNone` || Type edges being used at the left and right sides of the terrain (see below). || |
104 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen (read-only) || |
|
105 || `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen (read-only) || |
|
106 |
106 |
107 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`. |
107 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`. |
108 |
108 |
109 == <tt>!TemplateFilter</tt> == |
109 == <tt>!TemplateFilter</tt> == |
110 Depending on the map type (`MapGen`), the meaning of `TemplateFilter` differs: |
110 Depending on the map type (`MapGen`), the meaning of `TemplateFilter` differs: |