Jump to content

BSL:Functions: Difference between revisions

→‎message: dprint is really messed up, thanks BWest; rephrasing dmsg note
(→‎message: note on dmsg vs. dprint)
(→‎message: dprint is really messed up, thanks BWest; rephrasing dmsg note)
Line 369: Line 369:
===message===
===message===
*dmsg astring:string - debugging message - dmsg [b. hello]
*dmsg astring:string - debugging message - dmsg [b. hello]
''[b. hello] ==> b stands for blue, it's the colour of the word hello [.hello] ==> without a character in front of the point, the colour of the word is white. Available colours: b (blue), c (cyan), g (green), l (lila), 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
''dmsg prints to the subtitle area, and dprint prints to the console output''
''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.''
*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