Jump to content

BSL:Functions: Difference between revisions

→‎message: well, it's more complicated than that
(→‎message: dprint is really messed up, thanks BWest; rephrasing dmsg note)
(→‎message: well, it's more complicated than that)
Line 371: Line 371:
''dmsg prints to the subtitle area; the "b" in [b. hello] stands for "blue", setting the color of the word "hello". Available colors: b (blue), c (cyan), g (green), l (lavender), o (orange), r (red), u (umber), y (yellow)''
''dmsg prints to the subtitle area; the "b" in [b. hello] stands for "blue", setting the color of the word "hello". Available colors: b (blue), c (cyan), g (green), l (lavender), o (orange), r (red), u (umber), y (yellow)''
*dprint astring:string - debugging print
*dprint astring:string - debugging print
''dprint prints to the console output. Note that calling dprint more than once within a single function produces unexpected results; two calls result in one of the dprint calls becoming the return value for the function (even if it it's type "void"), and more than two calls are ignored.''
''dprint prints to the console output. Note that calling dprint and dmsg more than once within a single function produces unexpected results; two calls result in one of the dprint/dmsg calls becoming the return value for the function (even if it it's type "void") or sometimes creating a return value of 0, and more than two calls might be ignored.''
*message message:string [timer:int] - sends a message from the subtitle file - message begin_fight 240
*message message:string [timer:int] - sends a message from the subtitle file - message begin_fight 240
*message_remove [message:string] - removes a currently displayed message - message_remove c01_50_23 // message_remove
*message_remove [message:string] - removes a currently displayed message - message_remove c01_50_23 // message_remove