1048 AddCaption("Melon bomb rain in 2 rounds!", 0xFF0000FF, capgrpGameState) |
1048 AddCaption("Melon bomb rain in 2 rounds!", 0xFF0000FF, capgrpGameState) |
1049 -- Green example message. |
1049 -- Green example message. |
1050 </code> |
1050 </code> |
1051 |
1051 |
1052 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> === |
1052 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> === |
1053 Use to tell the player what he is supposed to do. If you use this function, a mission pop-up is shown for the amount of time specified in `time` (in milliseconds). |
1053 Use to tell the player what he is supposed to do. If you use this function, a mission pop-up 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. |
1054 This function replaces the *entire* text of the pop-up. Compare this to the global `Goals` variable, which *adds* to the default text without replacing it. |
1054 This function replaces the *entire* text of the pop-up. Compare this to the global `Goals` variable, which *adds* to the default text without replacing it. |
1055 |
1055 |
1056 `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. |
1056 `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. |
1057 |
1057 |
1058 `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. |
1058 `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. |