def updateCounter(objBeingSold): global counter, SELLABLES, sellNarrative, selector, APARTMENT, SCENE if objBeingSold in SELLABLES: counter.decrementValue(LABEL_DATA, objBeingSold.cost, DAYS_PASS_PER_SELL) LABEL_DATA[1].value -= objBeingSold.cost LABEL_DATA[0].value -= DAYS_PASS_PER_SELL print "decremented" print LABEL_DATA[1].value print LABEL_DATA[0].value if LABEL_DATA[0].value == 0: yield viztask.waitTime(1) finalEvictNarrative.play() selector.disable() duration = finalEvictNarrative.getDuration() yield viztask.waitTime(duration) vizact.ontimer2(0.1,10,Events.addFlickeringLight,APARTMENT,SCENE) Events.stopFan(APARTMENT, SCENE) else: yield viztask.waitTime(1) viz.playsound(PLEASE_SELL_AUDIO)