def saveGlobalData(self): try: for i in xrange(self.max_lines): GlobalVariablesManager.getInstance().storeVariable( 'Memo' + str(i), self.Memo[i]) except: print "save error"
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) for i in xrange(self.max_lines): self.Memo += [GlobalVariablesManager.getInstance().getStoredVariable('Memo'+str(i)) or ""] for id in self.NPCID: self.addStartNpc(id) self.addFirstTalkId(id) self.addTalkId(id) print "Init:" + qn + " loaded"
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) for i in xrange(self.max_lines): self.Memo += [ GlobalVariablesManager.getInstance().getStoredVariable('Memo' + str(i)) or "" ] for id in self.NPCID: self.addStartNpc(id) self.addFirstTalkId(id) self.addTalkId(id) print "Init:" + qn + " loaded"
def saveGlobalData(self): try: for i in xrange(self.max_lines): GlobalVariablesManager.getInstance().storeVariable('Memo'+str(i), self.Memo[i]) except: print "save error"