Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 154, in script
$ renpy.notify("Your relationship with "+str(fM)+" decreased by 1","decrease")
File "game/script.rpy", line 154, in <module>
$ renpy.notify("Your relationship with "+str(fM)+" decreased by 1","decrease")
TypeError: notify() takes exactly 1 argument (2 given)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 154, in script
$ renpy.notify("Your relationship with "+str(fM)+" decreased by 1","decrease")
File "C:\Program Files (x86)\renpy-6.99.13-sdk\renpy\ast.py", line 827, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Program Files (x86)\renpy-6.99.13-sdk\renpy\python.py", line 1764, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 154, in <module>
$ renpy.notify("Your relationship with "+str(fM)+" decreased by 1","decrease")
TypeError: notify() takes exactly 1 argument (2 given)
Windows-8-6.2.9200
Ren'Py 6.99.13.2919
High School Shenaningans 0.017-(Alpha)
Code: Select all
screen notify(message, status = None):
zorder 100
style_prefix "notify"
frame at notify_appear:
text "[message!tq]"
timer 3.25 action Hide('notify')
if status:
if status == 'decrease':
frame at notify_appear:
text "[message!tq]" style "red_color"
transform notify_appear:
on show:
alpha 0
linear .25 alpha 1.0
on hide:
linear .5 alpha 0.0
style notify_frame is empty
style notify_text is gui_text
style notify_frame:
ypos gui.notify_ypos
background Frame("gui/notify.png", gui.notify_frame_borders, tile=gui.frame_tile)
padding gui.notify_frame_borders.padding
style notify_text:
properties gui.text_properties("notify")