Jul 14, 2021 #1 M Mulligun Still Mildly Glowing Is there a way to set a text color for the display_msg function? Does the display_msg function handle the new line sequence?
Is there a way to set a text color for the display_msg function? Does the display_msg function handle the new line sequence?
Jul 14, 2021 #2 Femic First time out of the vault As far as I know it's not possible to change the color of the display_msg text. There seems to be no way to pass an argument for color changing Code: display_msg(mstr(x)) The floater instead can change the text color Code: float_msg(self_obj, message_str(NAME,x), FLOAT_COLOR_NORMAL) Maybe you can try to combine Code: display_msg(mstr(x)) with Code: float_msg(self_obj, message_str(NAME,x), FLOAT_COLOR_NORMAL) to create Code: display_msg(mstr(x), FLOAT_COLOR_NORMAL) I don't know if this works. I think that the color of Code: display_msg(mstr(x)) is defined in the engine. Maybe it's hackable. Last edited: Jul 14, 2021
As far as I know it's not possible to change the color of the display_msg text. There seems to be no way to pass an argument for color changing Code: display_msg(mstr(x)) The floater instead can change the text color Code: float_msg(self_obj, message_str(NAME,x), FLOAT_COLOR_NORMAL) Maybe you can try to combine Code: display_msg(mstr(x)) with Code: float_msg(self_obj, message_str(NAME,x), FLOAT_COLOR_NORMAL) to create Code: display_msg(mstr(x), FLOAT_COLOR_NORMAL) I don't know if this works. I think that the color of Code: display_msg(mstr(x)) is defined in the engine. Maybe it's hackable.