def exploremission(part,filename,sysfile,creditnum): fixers.DestroyActiveButtons () if part==1: plyr=VS.getPlayer().isPlayerStarship() if quest.findQuest(plyr,(sysfile+"_nav"),1) or quest.findQuest(plyr,(sysfile+"_nav"),2): part=3 if part==1: fixers.CreateChoiceButtons(Base.GetCurRoom(),[ fixers.Choice("bases/fixers/yes.spr",filename,"Accept This Mission"), fixers.Choice("bases/fixers/no.spr","bases/fixers/no.py","Decline This Mission")]) Base.Message("""Hi. Our researchers have found a new signal similar to that of a jump point coming from an area in the #55ffff%s#000000 system. This mission will require that you own a jump drive. We hope that you will accept this mission. You will earn %.2f credits when you explore the area."""%(sysfile.split('/')[-1],creditnum)) elif part==2: Base.Message("""Excellent! Go to the unknown energy source that we have uploaded to your ship computer as a navpoint in #55ffff%s#000000. Once next to the energy source, jump into the energy source and get close to all of the planets in the connecting system."""%sysfile.split('/')[-1]) Base.EnqueueMessage("""You will earn %.2f credits when this is completed"""%creditnum) plyr=VS.getPlayer().isPlayerStarship() if Director.getSaveDataLength(plyr,(sysfile+"_nav"))==0: Director.pushSaveData(plyr,(sysfile+"_nav"),1) else: Director.putSaveData(plyr,(sysfile+"_nav"),0,1) else: Base.Message("""Go to the unknown energy source that we have uploaded to your ship computer as a navpoint in #55ffff%s#000000. Once next to the energy source, jump into the energy source and get close to all of the planets in the connecting system."""%sysfile.split('/')[-1])
def precondition(self, playernum): for blah in self.precond: print(blah) if not quest.findQuest(playernum, blah): return 0 print("suc") return 1
def precondition(self, playernum): for blah in self.precond: debug.info(blah) if (not quest.findQuest(playernum, blah)): return 0 debug.info("quest_surplus_factory.precondition success") return 1
def Execute (self): sys=VS.getSystemFile() plyr=VS.getPlayerX(self.playernum) if not plyr: return 1 if (sys==self.sysfile): if quest.findQuest(self.playernum,(self.sysfile+"_nav"),1): if self.notcreatedyet==0: self.navpoint=VS.launch("Base","navpoint","neutral","unit","sitting_duck",1,1,(861946880,2132313,31337),"") self.notcreatedyet=1 elif self.notcreatedyet==1 and self.navpoint and VS.getPlayerX(self.playernum).getDistance(self.navpoint)<=2000: # VS.IOmessage(0,'game','all','[Computer] Energy source identified as a jump point, destination: unknown') self.createjumppoint(True) self.navpoint.Kill() Director.putSaveData(self.playernum,(self.sysfile+"_nav"),0,2) # elif (sys==self.newsys): # if not (quest.checkSaveValue(self.playernum,self.newsys+'_navpoint',0)): # print "ret0becausenewsys+_navpoint==0!!!!!!!!!!!" # return 1 # if plyr!=self.you: # if self.notcreatedyet==5: # VS.LoadMission('patrol/explore.mission') # self.you=plyr # if quest.findQuest(self.playernum,(self.sysfile+"_nav"),2): # VS.LoadMission('patrol/explore.mission') # self.notcreatedyet=5 # Director.putSaveData(self.playernum,(self.sysfile+"_nav"),0,3) # elif self.notcreatedyet!=5 and quest.findQuest(self.playernum,(self.sysfile+"_nav"),3): # VS.LoadMission('patrol/explore.mission') # self.notcreatedyet=5 return 1
def precondition(self, playernum): for blah in self.precond: debug.info(blah) if (not quest.findQuest (playernum,blah)): return 0 debug.info("quest_surplus_factory.precondition success") return 1
def precondition(self,playernum): for blah in self.precond: print blah if (not quest.findQuest (playernum,blah)): return 0 print "suc" return 1
def precondition(self, playernum): for blah in self.precond: print blah if (not quest.findQuest(playernum, blah)): return 0 print "suc" return 1
def exploremission(part, filename, sysfile, creditnum): fixers.DestroyActiveButtons() if part == 1: plyr = VS.getPlayer().isPlayerStarship() if quest.findQuest(plyr, (sysfile + "_nav"), 1) or quest.findQuest( plyr, (sysfile + "_nav"), 2): part = 3 if part == 1: fixers.CreateChoiceButtons(Base.GetCurRoom(), [ fixers.Choice("bases/fixers/yes.spr", filename, "Accept This Mission"), fixers.Choice("bases/fixers/no.spr", "bases/fixers/no.py", "Decline This Mission") ]) Base.Message( """Hi. Our researchers have found a new signal similar to that of a jump point coming from an area in the #55ffff%s#000000 system. This mission will require that you own a jump drive. We hope that you will accept this mission. You will earn %.2f credits when you explore the area.""" % (sysfile.split('/')[-1], creditnum)) elif part == 2: Base.Message( """Excellent! Go to the unknown energy source that we have uploaded to your ship computer as a navpoint in #55ffff%s#000000. Once next to the energy source, jump into the energy source and get close to all of the planets in the connecting system.""" % sysfile.split('/')[-1]) Base.EnqueueMessage( """You will earn %.2f credits when this is completed""" % creditnum) plyr = VS.getPlayer().isPlayerStarship() if Director.getSaveDataLength(plyr, (sysfile + "_nav")) == 0: Director.pushSaveData(plyr, (sysfile + "_nav"), 1) else: Director.putSaveData(plyr, (sysfile + "_nav"), 0, 1) else: Base.Message( """Go to the unknown energy source that we have uploaded to your ship computer as a navpoint in #55ffff%s#000000. Once next to the energy source, jump into the energy source and get close to all of the planets in the connecting system.""" % sysfile.split('/')[-1])
def precondition(self, playernum): return quest.findQuest(playernum, "abu_dhabi_return")
def precondition(self, playernum): return quest.findQuest(playernum, 'rlaan_mining_spy')
import Base import VS import Director import quest plyr = VS.getPlayer().isPlayerStarship() if VS.numActiveMissions() <= 1: if quest.findQuest(plyr, 'gemini_sector/delta_navpoint', 1): VS.getPlayer().addCredits(5000) quest.removeQuest(plyr, 'gemini_sector/delta_navpoint', 2) Base.Message( '''Congratulations on your first mission! We have decided to go to the next system. Based on the data that you have collected, it appears that the other jump point should go to a system that we have named #55ffffbeta#000000. Again, collect info on six objects there and report back to me with your info. You will earn 10000 credits.''' ) VS.LoadMission('patrol/explore_beta.mission') else: Base.Message( '''Hi. Our records indicate that you are already completing another mission. Finish that and then come back to me.''')
import Base import VS import Director import quest plyr = VS.getPlayer().isPlayerStarship() if VS.numActiveMissions() <= 1: if quest.findQuest(plyr, 'gemini_sector/gamma_navpoint', 1): VS.getPlayer().addCredits(10000) quest.removeQuest(plyr, 'gemini_sector/gamma_navpoint', 2) Base.Message( '''Congratulations on your third mission! We have decided to go to the next system. Based on the data that you have collected, it appears that the other jump point should go to a system that we have named #55ffffdelta prime#000000. Again, collect info on six objects there and report back to me with your info. You will earn 25000 credits.''' ) VS.LoadMission('patrol/explore_delta_prime.mission') else: Base.Message( '''Hi. Our records indicate that you are already completing another mission. Finish that and then come back to me.''')
def precondition(self,playernum): print('precondition') return 1 return quest.findQuest(playernum,'racene_star_intro') and quest.notLoadedQuest(playernum,'racene_star_loss')
import Base import VS import Director import quest import fixers plyr = VS.getPlayer().isPlayerStarship() if quest.findQuest(plyr, "quest_drone", -1): Base.Message( """There is an alien vessel let loose on confed territory. We are offering 30,000 credits to anyone who manages to take it out. Be warned, however, our scans reveal armor and shielding that we do not know how to penetrate. Good luck and godspeed!""" ) elif quest.findQuest(plyr, "quest_drone", 1): Base.Message( """Thank you! Your effort saved the lives of trillions of civilians. That drone was terrorizing our people and our space force!""" ) if fixers.checkSaveValue(plyr, "quest_drone_cash", 0): VS.getPlayer().addCredits(30000) quest.removeQuest(plyr, "gemini_sector/quest_drone_cash", 1)
def precondition(self,playernum): return quest.findQuest (playernum,"quest_blockade")
def precondition(self, playernum): return quest.findQuest(playernum, "quest_blockade")
import Base import VS import Director import quest plyr=VS.getPlayer().isPlayerStarship() if VS.numActiveMissions()<=1: if quest.findQuest(plyr,'gemini_sector/delta_navpoint',1): VS.getPlayer().addCredits(5000) quest.removeQuest(plyr,'gemini_sector/delta_navpoint',2) Base.Message(_('''Congratulations on your first mission! We have decided to go to the next system. Based on the data that you have collected, it appears that the other jump point should go to a system that we have named #55ffffbeta#000000. Again, collect info on six objects there and report back to me with your info. You will earn 10000 credits.''')) VS.LoadMission('patrol/explore_beta.mission') else: Base.Message(_('''Hi. Our records indicate that you are already completing another mission. Finish that and then come back to me.'''))
import Base import VS import Director import quest import fixers plyr=VS.getPlayer().isPlayerStarship() if quest.findQuest(plyr,'quest_drone',-1): Base.Message("""There is an alien vessel let loose on confed territory. We are offering 30,000 credits to anyone who manages to take it out. Be warned, however, our scans reveal armor and shielding that we do not know how to penetrate. Good luck and godspeed!""") elif quest.findQuest(plyr,'quest_drone',1): Base.Message("""Thank you! Your effort saved the lives of trillions of civilians. That drone was terrorizing our people and our space force!""") if fixers.checkSaveValue(plyr,'quest_drone_cash',0): VS.getPlayer().addCredits(30000) quest.removeQuest(plyr,'gemini_sector/quest_drone_cash',1)
def precondition(self, playernum): print('precondition') return 1 return quest.findQuest(playernum, 'racene_star_intro') and quest.notLoadedQuest( playernum, 'racene_star_loss')
import Base import VS import Director import quest import fixers plyr = VS.getPlayer().isPlayerStarship() if quest.findQuest(plyr, 'quest_drone', -1): Base.Message( """There is an alien vessel let loose on confed territory. We are offering 30,000 credits to anyone who manages to take it out. Be warned, however, our scans reveal armor and shielding that we do not know how to penetrate. Good luck and godspeed!""" ) elif quest.findQuest(plyr, 'quest_drone', 1): Base.Message( """Thank you! Your effort saved the lives of trillions of civilians. That drone was terrorizing our people and our space force!""" ) if fixers.checkSaveValue(plyr, 'quest_drone_cash', 0): VS.getPlayer().addCredits(30000) quest.removeQuest(plyr, 'gemini_sector/quest_drone_cash', 1)
import Base import VS import Director import quest plyr=VS.getPlayer().isPlayerStarship() if VS.numActiveMissions()<=1: if quest.findQuest(plyr,'gemini_sector/gamma_navpoint',1): VS.getPlayer().addCredits(10000) quest.removeQuest(plyr,'gemini_sector/gamma_navpoint',2) Base.Message(_('''Congratulations on your third mission! We have decided to go to the next system. Based on the data that you have collected, it appears that the other jump point should go to a system that we have named #55ffffdelta prime#000000. Again, collect info on six objects there and report back to me with your info. You will earn 25000 credits.''')) VS.LoadMission('patrol/explore_delta_prime.mission') else: Base.Message(_('''Hi. Our records indicate that you are already completing another mission. Finish that and then come back to me.'''))
def precondition(self,playernum): return quest.findQuest(playernum,'rlaan_mining_spy')