Definition at line 73 of file escort_mission.py.
References defend.arrived, escort_mission.arrived, escort_local.arrived, directions_mission.arrived, bounty.arrived, cargo_mission.arrived, bounty.difficulty, escort_local.difficulty, defend.difficulty, cargo_mission.difficulty, escort_mission.difficulty, SystemInformation.faction, ambush.faction, escort_mission.faction, bounty.faction, defend.faction, ShipTracker.faction, escort_local.faction, cargo_mission.faction, go_to_adjacent_systems.faction, Launch.faction, ClearFactionRecord.faction, PushRelation.faction, PopRelation.faction, LaunchWingmen.faction, ChangeSystemOwner.faction, ChangeShipOwners.faction, escort_mission.gametime, escort_local.gametime, escort_mission.mplay, defend.mplay, bounty.mplay, escort_local.mplay, directions_mission.mplay, cargo_mission.mplay, universe.punish(), defend.var_to_set, escort_local.var_to_set, escort_mission.var_to_set, bounty.var_to_set, cargo_mission.var_to_set, escort_mission.you, directions_mission.you, go_to_adjacent_systems.you, bounty.you, defend.you, escort_local.you, and cargo_mission.you.
75 if (VS.GetGameTime()-self.
gametime>10):
76 self.escortee.setFgDirective(
'F')
78 VS.IOmessage (0,
"escort",self.
mplay,
"#ff0000You were to protect your escort. Mission failed.")
79 VS.terminateMission(0)
81 self.escortee.setFlightgroupLeader(self.
you)
84 if (self.escortee.isNull()):
85 VS.IOmessage (0,
"escort",self.
mplay,
"#ff0000You were to protect your escort. Mission failed.")
88 quest.removeQuest (self.you.isPlayerStarship(),self.
var_to_set,-1)
89 VS.terminateMission(0)
91 if (
not self.adjsys.Execute()):
93 self.adjsys.SignificantUnit().setSpeed(0.0)
94 self.adjsys.SignificantUnit().SetVelocity((0.0,0.0,0.0))
99 self.
role = self.adjsys.SignificantUnit().getCombatRole()
100 self.adjsys.SignificantUnit().setCombatRole(
"INERT");
101 self.adjsys.Print (
"You must escort your starship to the %s",
"defend",
"docked around the %s", 0)
102 elif (self.you.getDistance(self.
escortee)<2000):
103 self.you.addCredits(self.
creds)
105 VS.IOmessage (0,
"escort",self.
mplay,
"#00ff00Excellent work! You have completed this mission!")
106 self.escortee.setFgDirective(
'b')
107 self.escortee.setFlightgroupLeader(self.
escortee)
108 self.escortee.performDockingOperations(self.adjsys.SignificantUnit(),0)
109 self.adjsys.SignificantUnit().setCombatRole(self.
role);
111 quest.removeQuest (self.you.isPlayerStarship(),self.
var_to_set,1)
VS.terminateMission(1)