当前位置: 首页>>代码示例>>Python>>正文


Python Base.message方法代码示例

本文整理汇总了Python中Base.message方法的典型用法代码示例。如果您正苦于以下问题:Python Base.message方法的具体用法?Python Base.message怎么用?Python Base.message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Base的用法示例。


在下文中一共展示了Base.message方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: elif

# 需要导入模块: import Base [as 别名]
# 或者: from Base import message [as 别名]
import fixers
import Base
fixers.DestroyActiveButtons ()
playernum = VS.getPlayer().isPlayerStarship()
if (fixers.checkSaveValue(playernum,"iso_mission1",0) and VS.numActiveMissions()<=1):
	fixers.setSaveValue (playernum,"iso_mission1",0)
	#load mission 1
	VS.LoadMission ("defend/iso/defend_iso_mission1.mission")
elif (fixers.checkSaveValue(playernum,"iso_mission2",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission1",1)):
	fixers.setSaveValue (playernum,"iso_mission2",0)
	VS.LoadMission ("escort/iso/escort_iso_mission2.mission")
	#load mission 2
elif (fixers.checkSaveValue(playernum,"iso_mission3",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission2",1)):
	fixers.setSaveValue (playernum,"iso_mission3",0)
	VS.LoadMission ("cargo/iso/cargo_contraband_mission3.mission")
	#load mission 3
elif (fixers.checkSaveValue(playernum,"iso_mission4",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission3",1)):
	fixers.setSaveValue (playernum,"iso_mission4",0)
	VS.LoadMission ("defend/iso/defend_iso_mission4.mission")
	#load mission 4
else:
	Base.message ("Our records indicate that you are already completing a mission. Come back to me when you're done with that business first.")
开发者ID:jowave,项目名称:Vegastrike-taose,代码行数:24,代码来源:iso_mission.py

示例2: elif

# 需要导入模块: import Base [as 别名]
# 或者: from Base import message [as 别名]
import fixers
import Base
fixers.DestroyActiveButtons ()
playernum = VS.getPlayer().isPlayerStarship()
if (fixers.checkSaveValue(playernum,"iso_evil2",0) and VS.numActiveMissions()<=1):
	fixers.setSaveValue (playernum,"iso_evil2",0)
	#load mission 2
	VS.LoadMission ("bounty/iso/attack_iso_freighter.mission")
elif (fixers.checkSaveValue(playernum,"iso_evil3",0) and VS.numActiveMissions()<=1):
	fixers.setSaveValue (playernum,"iso_evil3",0)
	VS.LoadMission ("bounty/iso/attack_iso_prisoners.mission")
	#load mission 2
elif (fixers.checkSaveValue(playernum,"iso_evil4",0) and VS.numActiveMissions()<=1):
	fixers.setSaveValue (playernum,"iso_evil4",0)
	VS.LoadMission ("defend/iso/attack_iso_force.mission")
	#load mission 3
else:
	Base.message ("Ahh but you are already completing a mission. Come back to me when you're done with that contract first.")
开发者ID:jowave,项目名称:Vegastrike-taose,代码行数:20,代码来源:iso_antagonist_mission.py

示例3: elif

# 需要导入模块: import Base [as 别名]
# 或者: from Base import message [as 别名]
import fixers
import Base
fixers.DestroyActiveButtons ()
playernum = VS.getPlayer().isPlayerStarship()
if (fixers.checkSaveValue(playernum,"pirate_mission1",0)):
    fixers.setSaveValue (playernum,"pirate_mission1",0)
    Base.Message("Great! We will give you four missions to complete and once they are all done, you will earn a lump sum of 80000 credits. The first mission is a cargo mission. Your cargo has already been transported to your ship. See my friend in the #55ffffrigel#000000 system after the cargo has been transported.")
    #load mission 1
    VS.LoadMission ("cargo/pirates/pirates_cont_1.mission")
elif (fixers.checkSaveValue(playernum,"pirate_mission2",0) and fixers.checkSaveValue (playernum,"pirate_mission1",1)):
    fixers.setSaveValue (playernum,"pirate_mission2",0)
    Base.Message("Great! Your cargo has already been transported to your ship. Fly carefully to the #55fffftingvallir#000000 system and talk to him when the contraband run is complete.")
    VS.LoadMission ("cargo/pirates/pirates_cont_2.mission")
    #load mission 2
elif (fixers.checkSaveValue(playernum,"pirate_mission3",0) and fixers.checkSaveValue (playernum,"pirate_mission2",1)):
    fixers.setSaveValue (playernum,"pirate_mission3",0)
    Base.Message("We have uploaded the coordinates to where we have last seen the merchant docked. Your nav computer will automatically autopilot to those coordinates around the planet.  Once he is destroyed, tractor in all of the cargo and bring it to a base that will jump into this system soon.")
    VS.LoadMission ("cargo/pirates/plunder.mission")
    #load mission 3
elif (fixers.checkSaveValue(playernum,"pirate_mission4",0) and (fixers.checkSaveValue (playernum,"pirate_mission3",1) or fixers.checkSaveValue (playernum,"pirate_mission3",2))):
    fixers.setSaveValue (playernum,"pirate_mission4",0)
    Base.Message("Destroy all of the enemies attacking this base and come back to me when the battle is over. After that, I will give you all of your long deserved money")
    VS.LoadMission ("defend/pirates/pirate_msision4.mission")
    #load mission 4
else:
    Base.message ("Yes about what?")
开发者ID:Ikesters,项目名称:vega-strike,代码行数:28,代码来源:pirates_mission.py


注:本文中的Base.message方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。