From 7db456aee207d13acb4e02c507b9de47ff69ec3e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 17 Dec 2020 21:23:50 -0300 Subject: Add support for server notices --- game/04_init.rpy | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'game') diff --git a/game/04_init.rpy b/game/04_init.rpy index 99359f6..69d9e34 100644 --- a/game/04_init.rpy +++ b/game/04_init.rpy @@ -25,6 +25,15 @@ init python: global tr_load, tr_val, tr_busy stdout("Server : " + str(message)) + # Wait wait, it might have been a SERVNOTICE! + try: + if (message.split(':')[0] == "NOTICE"): + renpy.call_screen("msgbox", + "{b}SERVER NOTICE{b}\n\n%s" % str(":".join(command.split(':')[1:]))) + return + except: + pass + # Inform whatever is waiting for us that a reply was obtained tr_load=True tr_val=str(message) -- cgit v1.2.3-70-g09d2