Exemplo n.º 1
0
 def saveGlobalData(self):
     try:
         for i in xrange(self.max_lines):
             GlobalVariablesManager.getInstance().storeVariable(
                 'Memo' + str(i), self.Memo[i])
     except:
         print "save error"
Exemplo n.º 2
0
	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"
Exemplo n.º 3
0
 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"
Exemplo n.º 4
0
	def saveGlobalData(self):
		try:
			for i in xrange(self.max_lines):
				GlobalVariablesManager.getInstance().storeVariable('Memo'+str(i), self.Memo[i])
		except:
			print "save error"