コード例 #1
0
	def __call__(self,room,subnodes):
		Script.__call__(self,room,subnodes)
		import VS
		if VS.networked():
			return True
		import universe
		universe.addTechLevel(self.tech)
コード例 #2
0
ファイル: guilds.py プロジェクト: jowave/Vegastrike-taose
	def Join(self):
		plr=VS.getPlayer()
		plrnum=plr.isPlayerStarship()
		if self.CanPay():
			quest.removeQuest(plrnum,self.savestring,1)
			plr.addCredits(-1*self.membership)
			for tt in self.tech:
				import universe
				universe.addTechLevel(tt)
			self.MakeMissions()
			return ["success"]
		else:
			return ["failure"]
コード例 #3
0
ファイル: guilds.py プロジェクト: yutiansut/Vegastrike-taose
 def Join(self):
     plr = VS.getPlayer()
     plrnum = plr.isPlayerStarship()
     if self.CanPay():
         quest.removeQuest(plrnum, self.savestring, 1)
         plr.addCredits(-1 * self.membership)
         for tt in self.tech:
             import universe
             universe.addTechLevel(tt)
         self.MakeMissions()
         return ["success"]
     else:
         return ["failure"]
コード例 #4
0
ファイル: guilds.py プロジェクト: ermo/privateer_wcu
    def Join(self):
        plr=VS.getPlayer()
        plrnum=plr.isPlayerStarship()
        VS.StopAllSounds()
        if self.CanPay():
            quest.removeQuest(plrnum,self.savestring,1)
            plr.addCredits(-1*self.membership)
            for tt in self.tech:
                universe.addTechLevel(tt)

            Base.Message('Thank you for joining the '+str(self.name)+' Guild! Feel free to accept any of our large quantity of high-paying missions.')
            VS.playSound("guilds/"+str(self.name).lower()+"accept.wav",(0,0,0),(0,0,0))
        else:
            Base.Message('We have checked your account and it apperas that you do not have nough credits to join this guild. Please come back and reconsider our offer when you have recieved more credits.')
            VS.playSound("guilds/"+str(self.name).lower()+"notenoughmoney.wav",(0,0,0),(0,0,0))
コード例 #5
0
ファイル: guilds.py プロジェクト: npetrell/privateer_wcu
    def Join(self):
        plr = VS.getPlayer()
        plrnum = plr.isPlayerStarship()
        VS.StopAllSounds()
        if self.CanPay():
            quest.removeQuest(plrnum, self.savestring, 1)
            plr.addCredits(-1 * self.membership)
            for tt in self.tech:
                universe.addTechLevel(tt)

            Base.Message(
                'Thank you for joining the ' + str(self.name) +
                ' Guild! Feel free to accept any of our large quantity of high-paying missions.'
            )
            VS.playSound("guilds/" + str(self.name).lower() + "accept.wav",
                         (0, 0, 0), (0, 0, 0))
        else:
            Base.Message(
                'We have checked your account and it apperas that you do not have nough credits to join this guild. Please come back and reconsider our offer when you have recieved more credits.'
            )
            VS.playSound(
                "guilds/" + str(self.name).lower() + "notenoughmoney.wav",
                (0, 0, 0), (0, 0, 0))