Unfortunately, this causes the first line of dialogue to repeat itself in the called label.
Code: Select all
screen countdown:
modal False
timer 0.01 repeat True action If(time > 0, true=SetVariable("time", time - 0.01), false=[Hide("countdown"), SetVariable("losttime", True), Function(renpy.call, label=timer_call)])
bar value time range timer_range xalign 0.5 yalign 0.9 xmaximum 300 at alpha_dissolveCode: Select all
screen countdown:
modal False
timer 0.01 repeat True action If(time > 0, true=SetVariable("time", time - 0.01), false=[Hide("countdown"), SetVariable("losttime", True), Function(renpy.call_in_new_context, label=timer_call)])
bar value time range timer_range xalign 0.5 yalign 0.9 xmaximum 300 at alpha_dissolveCode: Select all
screen countdown:
modal False
timer 0.01 repeat True action If(time > 0, true=SetVariable("time", time - 0.01), false=[Hide("countdown"), Return("lost")])
bar value time range timer_range xalign 0.5 yalign 0.9 xmaximum 300 at alpha_dissolveCode: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 636, in script call
call Jul1 from _call_Jul1
File "game/jul.rpy", line 367, in script
menu:
TypeError: list indices must be integers, not str
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 636, in script call
call Jul1 from _call_Jul1
File "game/jul.rpy", line 367, in script
menu:
File "\Desktop\renpy-6.99.7-sdk\renpy-6.99.6-sdk\renpy\ast.py", line 1453, in execute
next_node(self.items[choice][2][0])
TypeError: list indices must be integers, not str
