Exemplo n.º 1
0
    def OnSDLNotify(self, VARname, SDLname, playerID, tag):
        global visionplaying
        global statesN
        global statesS
        global statesE
        global statesW
        global speechKilled

        self.ageSDL = PtGetAgeSDL()

        if VARname == stringSDLVarLocked.value:
            windmillLocked = self.ageSDL[stringSDLVarLocked.value][0]
            if windmillLocked and visionplaying:
                PtAtTimeCallback(self.key, 3, kLostPowerID)
                #~ speechKilled = 1
                #~ self.StopVision()
                #~ imagerBrokenBtn.disableActivator()
                #~ imagerLockN.disableActivator()
                #~ imagerLockS.disableActivator()
                #~ imagerLockW.disableActivator()
                #~ imagerLockE.disableActivator()

        # checks if one of the Imager panel/symbol SDL vars has changed,
        # sets new state of any changed panels and runs corresponding responder
        if VARname == stringSDLVarPanelN.value:
            intPanelN = self.ageSDL[stringSDLVarPanelN.value][0]
            panelN = statesN[intPanelN]
            imagerRespN.run(self.key, state="%s" % (panelN))
        if VARname == stringSDLVarPanelS.value:
            intPanelS = self.ageSDL[stringSDLVarPanelS.value][0]
            panelS = statesS[intPanelS]
            imagerRespS.run(self.key, state="%s" % (panelS))
        if VARname == stringSDLVarPanelE.value:
            intPanelE = self.ageSDL[stringSDLVarPanelE.value][0]
            panelE = statesE[intPanelE]
            imagerRespE.run(self.key, state="%s" % (panelE))
        if VARname == stringSDLVarPanelW.value:
            intPanelW = self.ageSDL[stringSDLVarPanelW.value][0]
            panelW = statesW[intPanelW]
            imagerRespW.run(self.key, state="%s" % (panelW))

        intPanelN = self.ageSDL[stringSDLVarPanelN.value][0]
        intPanelS = self.ageSDL[stringSDLVarPanelS.value][0]
        intPanelE = self.ageSDL[stringSDLVarPanelE.value][0]
        intPanelW = self.ageSDL[stringSDLVarPanelW.value][0]
        if intPanelN == 0 and intPanelS == 0 and intPanelW == 0 and intPanelE == 0:
            import xSndLogTracks
            if xSndLogTracks.LogTrack("421", "15"):
                xSndLogTracks.SetLogMode()
Exemplo n.º 2
0
 def OnSDLNotify(self, VARname, SDLname, playerID, tag):
     global visionplaying
     global statesN
     global statesS
     global statesE
     global statesW
     self.ageSDL = PtGetAgeSDL()
     if (VARname == stringSDLVarLocked.value):
         windmillLocked = self.ageSDL[stringSDLVarLocked.value][0]
         if (windmillLocked and visionplaying):
             PtAtTimeCallback(self.key, 3, kLostPowerID)
     if (VARname == stringSDLVarPanelN.value):
         intPanelN = self.ageSDL[stringSDLVarPanelN.value][0]
         panelN = statesN[intPanelN]
         imagerRespN.run(self.key, state=('%s' % panelN))
     if (VARname == stringSDLVarPanelS.value):
         intPanelS = self.ageSDL[stringSDLVarPanelS.value][0]
         panelS = statesS[intPanelS]
         imagerRespS.run(self.key, state=('%s' % panelS))
     if (VARname == stringSDLVarPanelE.value):
         intPanelE = self.ageSDL[stringSDLVarPanelE.value][0]
         panelE = statesE[intPanelE]
         imagerRespE.run(self.key, state=('%s' % panelE))
     if (VARname == stringSDLVarPanelW.value):
         intPanelW = self.ageSDL[stringSDLVarPanelW.value][0]
         panelW = statesW[intPanelW]
         imagerRespW.run(self.key, state=('%s' % panelW))
     intPanelN = self.ageSDL[stringSDLVarPanelN.value][0]
     intPanelS = self.ageSDL[stringSDLVarPanelS.value][0]
     intPanelE = self.ageSDL[stringSDLVarPanelE.value][0]
     intPanelW = self.ageSDL[stringSDLVarPanelW.value][0]
     if ((intPanelN == 0) and ((intPanelS == 0) and ((intPanelW == 0) and
                                                     (intPanelE == 0)))):
         import xSndLogTracks
         if xSndLogTracks.LogTrack('421', '15'):
             xSndLogTracks.SetLogMode()
Exemplo n.º 3
0
def SndSetLogMode(args):
    import xSndLogTracks
    xSndLogTracks.SetLogMode()
Exemplo n.º 4
0
        vault = ptVault()
        psnlSDL = vault.getPsnlAgeSDL()
        for n in range(1, 13):  # numbers 1 to 12
            name = 'psnlCalendarStone%02d' % n
            psnlSDL.findVar(name).setBool(True)
        vault.updatePsnlAgeSDL(psnlSDL)
        if not silent:
            if (PtGetAgeName() == 'Personal'):
                ki.IAddRTChat(
                    None,
                    'Enabled all the Sparklies. Please re-link to see the changes.',
                    0)
            else:
                ki.IAddRTChat(None, 'Enabled all the Sparklies.', 0)
        return True
    if (cmnd == 'getzandoni'):
        import xSndLogTracks
        xSndLogTracks.SetLogMode()
        if not silent: ki.IAddRTChat(None, 'Got you the Zandoni!', 0)
        return True
    if (cmnd == 'getfirstweek'):
        if (PtGetAgeName() == 'Personal'):
            xUserKI.SetSDL('FirstWeekClothing', 0, 1)
            if not silent:
                ki.IAddRTChat(None, 'Got you the frst week clothing!', 0)
        else:
            ki.IDoErrorChatMessage(
                'You have to call this command in your Relto')
        return True
    return False