Code: Select all
screen home:
tag menu
add "browser_gfx/home_screen_bg.png"
imagebutton auto "browser_gfx/home_icon1_%s.png" focus_mask True action Show("deeble_home") # This is the CERTAIN imagebutton
imagebutton auto "browser_gfx/home_icon2_%s.png" focus_mask True action Show("deeble_home") # this is the CERTAIN imagebutton
if not viewed_websites:
$ renpy.say(e, "But you aren't done on the web yet!")
else:
imagebutton auto "browser_gfx/home_button_%s.png" xpos 0 ypos 0 focus_mask True action Return()
screen deeble_home:
tag menu
use home
$ viewed_websites = True
text "Nothing yet"
I have a variable set to False after my start label, that variable is "viewed_websites." The point of this is that they have to click a certain imagebutton before they try to return to the place after the aforementioned menu. Clicking this certain imagebutton will send them to screen deeble_home at which the variable will be set to true, and then the player can return to screen home (after I add some more imagebuttons.) But if they DONT click the certain imagebutton, a bit of dialogue should show (using the say screen) telling them that they havent viewed all the websites yet, and theyll know to click on the certain imagebutton.
But this is the error I am receiving:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 23, in script
$ renpy.call_screen("home")
File "game/script.rpy", line 23, in <module>
$ renpy.call_screen("home")
File "game/browser.rpy", line 1, in execute
screen home:
File "game/browser.rpy", line 7, in execute
if not viewed_websites:
File "game/browser.rpy", line 8, in execute
$ renpy.say(e, "But you aren't done on the web yet!")
File "game/browser.rpy", line 8, in <module>
$ renpy.say(e, "But you aren't done on the web yet!")
Exception: ui.interact called with non-empty widget/layer stack. Did you forget a ui.close() somewhere?
Thanks in advance.