66 if (self.
stage==1
and VS.GetGameTime()>self.
timer and self.station.getDistance(self.
player)<50000):
71 if (self.
stage==2
and VS.GetGameTime()>self.
timer and self.station.getDistance(self.
player)<15000):
77 if (self.
stage==3
and VS.GetGameTime()<self.
timer and VS.GetGameTime()>=self.
anitime):
79 for index
in range (len(self.
sequence)):
84 self.
anitime = VS.GetGameTime()+2
85 if (self.
stage==3
and VS.GetGameTime()>=self.
timer):
89 if (self.
stage==4
and VS.GetGameTime()>self.
timer):
92 VS.AdjustRelation(self.merchant.getFactionName(),self.socialist.getFactionName(),-5,1)
93 self.merchant.LoadAIScript(
"default")
95 self.merchant.setFgDirective(
"A.")
96 self.
timer = VS.GetGameTime()+5
100 if (self.
stage==5
and VS.GetGameTime()>self.
timer):
102 VS.IOmessage (0,
"[Lenin's Mercy]",
"privateer",self.
socColor+
"Mayday! We are under attack! Privateer, please help us... we are no match for them. We have wounded on board!")
103 VS.IOmessage (6,
"[VulCorp Transport A-5]",
"privateer",self.
merColor+
"Privateer, if you look the other way... you will be duly compensated.")
104 self.
animations = [[
"com_dispute_socialist.ani",2],[
"com_dispute_merchant.ani",2]]
107 VS.AdjustRelation(self.socialist.getFactionName(),self.merchant.getFactionName(),-5,1)
108 self.socialist.SetTarget(self.
merchant)
109 self.socialist.LoadAIScript(
"default")
110 self.socialist.setFgDirective(
"A.")
111 self.
timer = VS.GetGameTime()+10
115 if (self.
stage==6
and VS.GetGameTime()<self.
timer and VS.GetGameTime()>=self.
anitime):
116 for index
in range (len(self.
sequence)):
119 self.
anitime = VS.GetGameTime()+2
120 if (self.
stage==6
and VS.GetGameTime()>=self.
timer):
124 if (self.
stage==7
and VS.GetGameTime()>self.
timer):
125 self.merchant.LoadAIScript(
"default")
126 self.socialist.LoadAIScript(
"default")
127 self.
timer = VS.GetGameTime()+2
130 if (self.
stage==7
and self.merchant.isNull()):
131 VS.IOmessage (0,
"[VulCorp Transport A-5]",
"all",self.
merColor+
"Oh nooooo...!!!!!")
132 self.player.commAnimation(
"com_dispute_merchant.ani")
134 if (self.
stage==7
and self.socialist.isNull()):
135 VS.IOmessage (0,
"[Lenin's Mercy]",
"all",self.
socColor+
"Liberte! Egalite!! Fraternite...!!!!!")
136 self.player.commAnimation(
"com_dispute_socialist.ani")
140 if (self.
stage==11
and VS.GetGameTime()>self.
timer):
141 self.socialist.PrimeOrders()
142 VS.IOmessage (0,
"[Lenin's Mercy]",
"privateer",self.
socColor+
"Thank you, Privateer! The Interstellar Socialist Organization is in your debt. We are getting our wounded to the base's medical facility.")
143 VS.IOmessage (5,
"[Lenin's Mercy]",
"privateer",self.
socColor+
"We have no money... but we are transmitting you the coordinates of the cargo we dumped to make room for the attack victims. Do with it what you will.")
144 VS.IOmessage (10,
"[Lenin's Mercy]",
"privateer",self.
socColor+
"You have made a friend with the ISO today. Have a safe journey.")
145 self.
animations = [[
"com_dispute_socialist.ani",2]]
154 VS.AdjustRelation(self.player.getFactionName(),self.socialist.getFactionName(),1,5)
156 text =
"PRIVATEER SAVES SHIPLOAD OF WOUNDED\\\Today, an unprecedented dispute about landing priorities took place close to a station in the Regallis system of Sol sector. "
157 text +=
"A merchant was delivering a priority shipment to a station in the system while an ISO transport vessel requested emergency landing having twelve rescued passengers on board who were previously wounded in a pirate attack. "
158 text +=
"A privateer approaching that base at the same time, and assisting the dispute, reacted to the situation before security forces could arrive at the scene and promptly removed the capitalist bloodsucker, thus saving many lives. "
159 text +=
"Presently, the injured are being taken care of at the medical facilities of the station with two heavily wounded remaining under intensive care."
162 self.
timer = VS.GetGameTime()+15
167 if (self.
stage==12
and VS.GetGameTime()<self.
timer and VS.GetGameTime()>=self.
anitime):
168 for index
in range (len(self.
sequence)):
171 self.
anitime = VS.GetGameTime()+2
172 if (self.
stage==12
and VS.GetGameTime()>=self.
timer):
176 if (self.
stage==21
and VS.GetGameTime()>self.
timer):
177 self.merchant.PrimeOrders()
180 VS.IOmessage (0,
"[VulCorp Transport A-5]",
"privateer",self.
merColor+
"Privateer, thank you for your cooperation.")
181 VS.IOmessage (3,
"[VulCorp Transport A-5]",
"privateer",self.
merColor+
"We will be able to make a killing on this shipment thanks to you. Here are 15000 credits for your trouble.")
182 self.
animations = [[
"com_dispute_merchant.ani",2]]
185 self.player.addCredits(15000)
187 VS.AdjustRelation(self.player.getFactionName(),self.merchant.getFactionName(),.1,.5)
189 text =
"MALICIOUS MERCHANT MASSACRES MARXIST MERCY MISSION\\\Today, an unprecedented dispute about landing priorities took place close to a station in the Regallis system of Sol sector. "
190 text +=
"A merchant was delivering a priority shipment to a station in the system while an ISO transport vessel requested emergency landing having twelve rescued passengers on board who were previously wounded in a pirate attack. "
191 text +=
"Before security forces could arrive at the scene the merchant pilot promptly applied his own justice scheme thus reducing the other vessel cum content to space dust."
194 self.
timer = VS.GetGameTime()+8
199 if (self.
stage==22
and VS.GetGameTime()<self.
timer and VS.GetGameTime()>=self.
anitime):
200 for index
in range (len(self.
sequence)):
203 self.
anitime = VS.GetGameTime()+2
204 if (self.
stage==22
and VS.GetGameTime()>=self.
timer):
208 if (self.
stage==30
and VS.GetGameTime()>self.
timer):
209 self.
timer = VS.GetGameTime()+5
211 if (
not self.winner.isNull()):
220 if (self.
stage==99
and VS.GetGameTime()>self.
timer):
229 radius = self.station.rSize()
234 self.merchant.PrimeOrders()
235 self.socialist.PrimeOrders()
240 self.merchant.performDockingOperations(self.
station,
False)
241 self.socialist.performDockingOperations(self.
station,
False)
245 VS.IOmessage (0,
"[VulCorp Transport A-5]",
"all",self.
merColor+
"VulCorp Transport alpha five requesting priority docking.")
246 VS.IOmessage (5,
"[VulCorp Transport A-5]",
"all",self.
merColor+
"We have a load of spare parts that needs to be delivered within the next half hour, or else we don't get paid.")
247 VS.IOmessage (15,
"[Lenin's Mercy]",
"all",self.
socColor+
"Negative, transport Lenin's Mercy requesting emergency docking. We have thirteen critically injured passengers.")
248 VS.IOmessage (25,
"[Lenin's Mercy]",
"all",self.
socColor+
"We picked them up after a squadron of pirates attacked their ship. They need immediate medical attention!")
249 VS.IOmessage (35,
"[VulCorp Transport A-5]",
"all",self.
merColor+
"Station control, might we remind you that we have a contract with your base? We demand priority in the docking queue so we can complete our transaction.")
250 VS.IOmessage (45,
"[Lenin's Mercy]",
"all",self.
socColor+
"You capitalist pigs! We have dying men and women on board, and all you can think about is your filthy money!")
251 VS.IOmessage (55,
"[VulCorp Transport A-5]",
"all",self.
merColor+
"Socialist vessel: Stay out of the docking queue or you will be fired upon. We will not let a bunch of bleeding communists turn this major deal sour!")
252 VS.IOmessage (65,
"[Lenin's Mercy]",
"all",self.
socColor+
"Negative, VulCorp Transport. The lives of our passengers are worth more than your profits!")
253 VS.IOmessage (75,
"[VulCorp Transport A-5]",
"all",self.
merColor+
"All batteries! Open fire!!")
256 self.
animations = [[
"com_dispute_merchant.ani",2],[
"com_dispute_socialist.ani",2]]
258 self.
sequence = [[0,10,0],[15,15,1],[35,5,0],[45,5,1],[55,5,0],[65,5,1],[75,4,0]]
261 self.
timer = VS.GetGameTime()+80
266 quest.quest_factory.__init__ (self,
"quest_dispute")
273 Director.Mission.__init__(self)
274 self.classes = classesToExecute
276 for c
in self.classes: