Until the point I encountered another one in this very context.Ayutac wrote:[method in screen problem]
EDIT: Today on the 6.1.'13 was the first time I found a topic of mine with search function and it helped me solving the problem. Prosit!
So, I'm calling an inventory screen by clicking on a button of the quickmenu, wich is itself within the say screen.
Code: Select all
screen quickmenu
[...]
if location == 0:
textbutton _("Inventory") action ShowMenu('inventory')Code: Select all
screen inventory
tag menu
[...]
imagebutton:
idle "item01.png"
hover "item01_selected.png"
action [SetVariable("item", i), useItem, Return]
hovered SetVariable("mouseOverItem", i)Code: Select all
python:
def useItem():
global item
if girl != -1 or inventory[item].hasWith() != True:
return
if inventory[item] == [...]
[...]
else:
Oak("[prota.Name], this isn't the right time for this.")
Prota("Professor?")Code: Select all
While running game code:
File "game/itemDB.rpy", line 124, in python
Exception: Cannot start an interaction in the middle of an interaction, without creating a new context.Details:
