177 || `AirMinesNum` || `0` || Number of air mines being placed on a medium-sized map || |
177 || `AirMinesNum` || `0` || Number of air mines being placed on a medium-sized map || |
178 || `Explosives` || `2` || Number of barrels being placed on a medium-sized map || |
178 || `Explosives` || `2` || Number of barrels being placed on a medium-sized map || |
179 || `SuddenDeathTurns` || `15` || Number of rounds until Sudden Death begins, _after the first round is over_. E.g. 0 = SD starts in 2nd round || |
179 || `SuddenDeathTurns` || `15` || Number of rounds until Sudden Death begins, _after the first round is over_. E.g. 0 = SD starts in 2nd round || |
180 || `WaterRise` || `47` || Height of water rise in pixels for each Sudden Death turn || |
180 || `WaterRise` || `47` || Height of water rise in pixels for each Sudden Death turn || |
181 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death || |
181 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death || |
182 || `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`. || |
182 || `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` || |
183 || `WorldEdge` || `weNone` || Type edges being used at the left and right sides of the terrain (see below). || |
183 || `WorldEdge` || `weNone` || Type edges being used at the left and right sides of the terrain (see below). || |
184 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen || |
184 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen || |
185 || `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen || |
185 || `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen || |
186 |
186 |
187 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`. |
187 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`. |
1505 Use to tell the player what he/she is supposed to do. If you use this function, a mission panel is shown for the amount of time specified in `time` (in milliseconds). If `time` is set to 0, it will be displayed for a default amount of time. |
1505 Use to tell the player what he/she is supposed to do. If you use this function, a mission panel is shown for the amount of time specified in `time` (in milliseconds). If `time` is set to 0, it will be displayed for a default amount of time. |
1506 This function replaces the *entire* text of the mission panel. Compare this to the global `Goals` variable, which *adds* to the default text without replacing it. |
1506 This function replaces the *entire* text of the mission panel. Compare this to the global `Goals` variable, which *adds* to the default text without replacing it. |
1507 |
1507 |
1508 `caption` is the text displayed in the first line, `subcaption` is displayed in the second line and `text` is the text displayed in the third and following lines. |
1508 `caption` is the text displayed in the first line, `subcaption` is displayed in the second line and `text` is the text displayed in the third and following lines. |
1509 |
1509 |
1510 `text` uses some special characters for formatting: `|` is used for a line break, and everything written before and including a `:` in a line is written in a lighter color. |
1510 `text` uses some special characters for formatting: |
|
1511 |
|
1512 || Special character || Meaning || |
|
1513 || `|` || Line break || |
|
1514 || `:` || Highlight itself and all text before that character in this line. The colon itself will be written. || |
|
1515 || `::` || Like above, except the two colons will not be written. || |
|
1516 || `\|` || Will be replaced with “:” without triggering highlighting (escape sequence) || |
|
1517 || `\:` || Will be replaced with “|” without triggering a line break (escape sequence) || |
1511 |
1518 |
1512 `icon` accepts the following values: |
1519 `icon` accepts the following values: |
1513 |
1520 |
1514 || *`icon`* || *What is shown* || |
1521 || *`icon`* || *What is shown* || |
1515 || _negative number_ || Icon of an ammo type. It is specified as the negative of an ammo type constant (see [AmmoTypes]), i.e. `-amBazooka` for the bazooka icon. || |
1522 || _negative number_ || Icon of an ammo type. It is specified as the negative of an ammo type constant (see [AmmoTypes]), i.e. `-amBazooka` for the bazooka icon. || |