So I'll try to be quick. I have these functions:
Code: Select all
class Inventory(renpy.store.object):
def __init__(self):
self.items = []
def add(self, item):
self.items.append(item)
def drop(self, item):
self.items.remove(item)Code: Select all
def item_add():
inventory.add(item)
def item_drop():
inventory.drop(item)Code: Select all
if buc in inventory.items:
imagebutton:
at hp
idle "sys/fillbuc.png"
hover "sys/fillbuch.png"
pos (500, 700)
action [SetVariable("item", buc), item_drop, SetVariable("item", buw), item_add, Play("sound", "audio/obt.mp3"), Notify(buw.noti)]
Why is this happening? I can provide some more info if it's neccesary.
