本文整理汇总了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.")
示例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.")
示例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?")