本文整理汇总了Python中quest.removeQuest函数的典型用法代码示例。如果您正苦于以下问题:Python removeQuest函数的具体用法?Python removeQuest怎么用?Python removeQuest使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了removeQuest函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: Lose
def Lose(self, terminate):
VS.IOmessage(0, "plunder mission", self.mplay, "#ff0000You have failed this mission and will not be rewarded.")
if len(self.donevar):
quest.removeQuest(int(self.mplay[1:]), self.donevar, -1)
if terminate:
print "lose plunder mission"
VS.terminateMission(0)
开发者ID:bsmr-games,项目名称:Privateer-Gemini-Gold,代码行数:7,代码来源:plunder.py
示例2: Execute
def Execute(self):
escort_mission.escort_mission.Execute(self)
sys = self.escortee.getUnitSystemFile()
if sys in self.alternatesystems:
for i in range(len(self.alternatesystems)):
if sys==self.alternatesystems[i]:
import quest
quest.removeQuest(self.cp,self.alternatevariable,i)
quest.removeQuest(self.cp,self.var_to_set,-1)
import VS
import launch
L = launch.Launch()
L.fg="Escorts"
L.faction=self.alternatefactions[i]
L.dynfg=self.alternateflightgroups[i]
L.type=self.alternatetypes[i]
L.ai="default"
L.num=6
L.minradius=3000.0
L.maxradius=4000.0
try:
L.minradius*=faction_ships.launch_distance_factor
L.minradius*=faction_ships.launch_distance_factor
except:
pass
launched=L.launch(self.escortee)
self.escortee.setFgDirective('f')
self.escortee.setFlightgroupLeader(launched)
self.escortee.setFactionName(self.alternatefactions[i])
import universe
universe.greet(self.alternategreeting[i],launched,VS.getPlayerX(self.cp))
VS.terminateMission(1)
return
开发者ID:Ikesters,项目名称:vega-strike,代码行数:33,代码来源:wrong_escort.py
示例3: Lose
def Lose (self,terminate):
VS.AdjustRelation(self.you.getFactionName(),self.faction,-.02,1)
VS.IOmessage(0,"rescue_mission",self.mplay,"#ff0000Credit agency reports that you have failed the mission.")
if len(self.donevar):
quest.removeQuest(int(self.mplay[1:]),self.donevar,-1)
if (terminate):
debug.info("lose plunder mission")
VS.terminateMission(0)
开发者ID:ermo,项目名称:privateer_wcu,代码行数:8,代码来源:rescue.py
示例4: Win
def Win (self,un,terminate):
self.SetVar(1)
quest.removeQuest(self.you.isPlayerStarship(),"quest_drone")
VS.IOmessage (0,"defend mission",self.mplay,"[Computer] #00ff00Defend Mission Accomplished!")
un.addCredits(self.cred)
if (terminate):
debug.info("you win defend mission!")
VS.terminateMission(1)
开发者ID:ermo,项目名称:privateer_wcu,代码行数:8,代码来源:defend_drone.py
示例5: takeCargoAndTerminate
def takeCargoAndTerminate(self,you, remove=1):
global isambushrunning
if (self.var, self.savedCargo) in isambushrunning:
del isambushrunning[(self.var, self.savedCargo)]
if self.var:
quest.removeQuest(self.you.isPlayerStarship(), self.var, 1)
VS.terminateMission(1)
return
开发者ID:ermo,项目名称:privateer_wcu,代码行数:8,代码来源:directions_mission.py
示例6: SuccessMission
def SuccessMission (self):
self.you.addCredits (self.cred)
if self.donevar!='':
quest.removeQuest(self.you.isPlayerStarship(),self.donevar,1)
VS.IOmessage (0,"computer",self.mplay,"[Computer] Transmitting Data..")
VS.IOmessage (0,"patrol",self.mplay,"Thank you! Patrol Complete.")
VS.IOmessage (0,"patrol",self.mplay,"We have credited your account.")
VS.terminateMission(1)
开发者ID:ermo,项目名称:privateer_wcu,代码行数:8,代码来源:patrol.py
示例7: Win
def Win (self,un,terminate):
VS.IOmessage (0,"Passenger",self.mplay,"#00ff00Excellent work pilot.")
VS.IOmessage (0,"Passenger",self.mplay,"#00ff00You have been rewarded for your effort as agreed.")
VS.IOmessage (0,"Passenger",self.mplay,"#00ff00You saved my life. I owe you a drink, pal")
un.addCredits(self.cred)
VS.AdjustRelation(self.you.getFactionName(),self.faction,.02,1)
if len(self.donevar):
quest.removeQuest(self.you.isPlayerStarship(),self.donevar,1)
if (terminate):
VS.terminateMission(1)
开发者ID:ermo,项目名称:privateer_wcu,代码行数:10,代码来源:rescue.py
示例8: Win
def Win(self, un, terminate):
VS.IOmessage(0, "plunder mission", self.mplay, "#00ff00Excellent work pilot.")
VS.IOmessage(0, "plunder mission", self.mplay, "#00ff00You have been rewarded for your effort as agreed.")
VS.IOmessage(0, "plunder mission", self.mplay, "#00ff00Your contribution to the war effort will be remembered.")
print "do you win?"
un.addCredits(self.cred)
if len(self.donevar):
quest.removeQuest(self.you.isPlayerStarship(), self.donevar, 1)
if terminate:
print "you win plunder mission!"
VS.terminateMission(1)
开发者ID:bsmr-games,项目名称:Privateer-Gemini-Gold,代码行数:11,代码来源:plunder.py
示例9: __init__
def __init__ (self,factionname,missiondifficulty,distance_from_base,creds,numsysaway,jumps=(),var_to_set='',dynfg='',dyntype='',alternatesystems=(),alternatefactions=(),alternateflightgroups=(),alternatetypes=(),alternategreeting=(),alternatevariable='diverted'):
escort_mission.escort_mission.__init__(self,factionname,missiondifficulty,0,0,distance_from_base,creds,0,numsysaway,jumps,var_to_set,dynfg,dyntype)
self.alternatesystems=alternatesystems
self.alternatevariable=alternatevariable
self.alternateflightgroups=alternateflightgroups
self.alternatetypes=alternatetypes
self.alternategreeting=alternategreeting
self.alternatefactions=alternatefactions
import quest
import VS
self.cp = VS.getCurrentPlayer()
quest.removeQuest(self.cp,alternatevariable,-1)
开发者ID:Ikesters,项目名称:vega-strike,代码行数:12,代码来源:wrong_escort.py
示例10: Join
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"]
开发者ID:jowave,项目名称:Vegastrike-taose,代码行数:13,代码来源:guilds.py
示例11: Join
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))
开发者ID:ermo,项目名称:privateer_wcu,代码行数:15,代码来源:guilds.py
示例12: Execute
def Execute (self):
if (VS.GetGameTime()-self.gametime>10):
self.escortee.setFgDirective('F')
if self.you.isNull():
VS.IOmessage (0,"escort",self.mplay,"#ff0000You were to protect your escort. Mission failed.")
VS.terminateMission(0)
return
self.escortee.setFlightgroupLeader(self.you)
#print 'name: '+self.escortee.getFlightgroupLeader().getName()
#self.escortee.SetVelocity(self.you.GetVelocity())
if (self.escortee.isNull()):
VS.IOmessage (0,"escort",self.mplay,"#ff0000You were to protect your escort. Mission failed.")
universe.punish(self.you,self.faction,self.difficulty)
if (self.var_to_set!=''):
quest.removeQuest (self.you.isPlayerStarship(),self.var_to_set,-1)
VS.terminateMission(0)
return
if (not self.adjsys.Execute()):
if (self.arrived):
self.adjsys.SignificantUnit().setSpeed(0.0)
self.adjsys.SignificantUnit().SetVelocity((0.0,0.0,0.0))
return
if (not self.arrived):
self.arrived=1
self.adjsys=go_somewhere_significant (self.you,1,self.distfrombase+15*self.escortee.rSize(),self.difficulty<=1,self.faction)
self.role = self.adjsys.SignificantUnit().getCombatRole()
self.adjsys.SignificantUnit().setCombatRole("INERT");
self.adjsys.Print ("You must escort your starship to the %s","defend","docked around the %s", 0)
elif (self.you.getDistance(self.escortee)<2000):
self.you.addCredits(self.creds)
VS.AdjustRelation(self.you.getFactionName(),self.faction,self.difficulty*.01,1)
VS.IOmessage (0,"escort",self.mplay,"#00ff00Excellent work! You have completed this mission!")
self.escortee.setFgDirective('b')
self.escortee.setFlightgroupLeader(self.escortee)
self.escortee.performDockingOperations(self.adjsys.SignificantUnit(),0)
self.adjsys.SignificantUnit().setCombatRole(self.role);
if (self.var_to_set!=''):
quest.removeQuest (self.you.isPlayerStarship(),self.var_to_set,1)
VS.terminateMission(1)
开发者ID:jowave,项目名称:Vegastrike-taose,代码行数:39,代码来源:escort_mission.py
示例13:
import Base
import VS
import Director
import quest
plyr=VS.getPlayer().isPlayerStarship()
if quest.findQuest(plyr,'gemini_sector/delta_prime_navpoint',1):
VS.getPlayer().addCredits(20000)
quest.removeQuest(plyr,'gemini_sector/delta_prime_navpoint',2)
Base.Message("Congratulations on giving us the data on the last sector! We seem to have found a passage deep into Aera territory. Perhaps even the aera haven't completely civilized that sector of space. Rumor has it that an unknown vessel has emerged from the jump point you discovered. If you have any scans or information please take them to one of my former associates in the Enigma system. Thank you for working with me, and I hope you have found it to be a profitable and worthwhile venture.")
开发者ID:Ikesters,项目名称:vega-strike,代码行数:10,代码来源:attack_drone0.py
示例14:
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)
开发者ID:jowave,项目名称:Vegastrike-taose,代码行数:13,代码来源:attack_drone1.py
示例15:
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.'''))
开发者ID:VsOBu,项目名称:Vega-Strike,代码行数:17,代码来源:explore_delta_prime.py
示例16:
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)
开发者ID:vegastrike,项目名称:Assets-Production,代码行数:18,代码来源:attack_drone1.py
示例17: SetVar
def SetVar (self,val):
if (self.var_to_set!=''):
quest.removeQuest (self.cp,self.var_to_set,val)
开发者ID:Ikesters,项目名称:vega-strike,代码行数:3,代码来源:tail.py
示例18: SetVar
def SetVar (self,val):
if (self.var_to_set!=''):
quest.removeQuest (self.you.isPlayerStarship(),self.var_to_set,val)
开发者ID:bsmr-games,项目名称:Privateer-Gemini-Gold,代码行数:3,代码来源:cargo_mission.py
示例19: FailMission
def FailMission (self):
self.you.addCredits (self.cred)
if self.donevar!='':
quest.removeQuest(self.you.isPlayerStarship(),self.donevar,-1)
VS.IOmessage (0,"patrol",self.mplay,"Mission a failure!")
VS.terminateMission(0)
开发者ID:ermo,项目名称:privateer_wcu,代码行数:6,代码来源:patrol.py
示例20: setSaveValue
def setSaveValue (playernum,name,value):
quest.removeQuest(playernum,name,value);
开发者ID:Ikesters,项目名称:vega-strike,代码行数:2,代码来源:fixers.py
注:本文中的quest.removeQuest函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论