Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
quest_contraband_truck Class Reference
Inheritance diagram for quest_contraband_truck:
quest

Public Member Functions

def mission_fail
 
def mission_success
 
def setup_all
 
def start_destruction
 
def end_destruction
 
def __init__
 
def Execute
 
- Public Member Functions inherited from quest
def NoSignificantsNear
 
def SignificantsNear
 
def setOwner
 
def removeQuest
 
def makeQuestPersistent
 
def isPersistent
 
def Execute
 

Data Fields

 quest_exit
 
 confed_cruiser
 
 confed_epeels
 
 jumpout
 
 truck_pirate
 
 cargo_container
 
 numaera
 
 aera_specopp
 
 repeat_more
 
 repeat_less
 
 repeat_end1
 
 repeat_end2
 
 timer1
 
 playa
 
 confed_epeels2
 
- Data Fields inherited from quest
 name
 
 playernum
 

Detailed Description

Definition at line 21 of file quest_contraband_truck.py.

Constructor & Destructor Documentation

def __init__ (   self)

Definition at line 150 of file quest_contraband_truck.py.

151  def __init__ (self):
152  self.playa = VS.getPlayer()
153  if (self.playa):
154  self.setup_all()
155  VS.IOmessage (3,"[Computer]","all","Scans show several peices of scrap in this system. May contain valuable cargo.")
156 
157 

Member Function Documentation

def end_destruction (   self)

Definition at line 113 of file quest_contraband_truck.py.

References quest_contraband_truck.aera_specopp, quest_contraband_truck.mission_fail(), unit.TfgJumpTo(), and quest_contraband_truck.timer1.

114  def end_destruction(self):
115 # print "testing timer"
116  if (self.timer1 + 12) <= VS.GetGameTime():
117 
118  print "playing sounds"
119  VS.playSound("sfx43.wav",self.playa.Position(),self.playa.GetVelocity())
120  VS.playSound("Flux.wav",self.playa.Position(),self.playa.GetVelocity())
121  VS.playSound("electricity.wav",self.playa.Position(),self.playa.GetVelocity())
122 
123  print "attempting the jump"
124 
125  unit.TfgJumpTo(self.aera_specopp,"gemini_sector/pestilence")
126 
127  print "attempted the jump"
128 
129  self.playa.JumpTo("gemini_sector/pestilence")
130  print "jumped playa"
131  VS.IOmessage (0,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] ...id")
132  VS.IOmessage (5,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <untranslatable> section of excretement <untranslatable> human <untranslatable> genitalia <untranslatable> fire <untranslatable> nice day.")
133 
134  VS.IOmessage (0,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] Flee smart to go entity/self <conditional> life value.")
135 
136  print "done all but fail"
137  self.mission_fail()
138 
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
149 
def Execute (   self)

Definition at line 158 of file quest_contraband_truck.py.

References quest_contraband_truck.aera_specopp, quest_contraband_truck.end_destruction(), quest_contraband_truck.jumpout, quest_contraband_truck.mission_success(), dantestmission.playa, quest_contraband_truck.playa, quest_contraband_truck.quest_exit, quest_contraband_truck.repeat_end1, quest_contraband_truck.repeat_end2, unit.setTfgDirective(), quest_contraband_truck.start_destruction(), unit.TfgCloak(), and unit.TfgisNull().

159  def Execute (self):
160 
161 
162 # remove this test self.sysfile = VS.getSystemFile()
163 # if self.truck_pirate.getUnitSystemFile()!= VS.getSystemFile():
164 # print "Truck has Jumped Away :-)"
165 # else:
166 # print "Truck is still here! :-("
167 
168 
169 
170 
171 
172 
173 
174 
175  if self.quest_exit == 1:
176  return 0
177  if (self.playa):
178 
179 
180  if self.jumpout == 1:
181  self.end_destruction()
182 
183  elif self.cargo_container.getMinDis(self.playa.Position()) < 1000:
184  self.start_destruction()
185 
186  elif self.cargo_container.getMinDis(self.playa.Position()) < 2500 and not self.cargo_container.isNull():
187  if self.repeat_end2 == 1:
188  VS.IOmessage (3,"[Computer]","all","Warning! Annomalous warp echos detected.")
189  print
190  print "Aera Un-Cloaked"
191  print
193  self.repeat_end2 = 2
194 
195  elif self.cargo_container.isNull():
196  if self.repeat_end2 == 1:
197  print "null activating"
198  VS.IOmessage (3,"[Computer]","all","Warning! De-Cloaking hostiles.")
199  print
200  print "Aera Un-Cloaked"
201  print
204  VS.IOmessage (0,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <surprise> Attention all! <anger> Entity/self valueless takes possession away value.")
205  VS.IOmessage (3,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <anger> Filthy human procreate entity/self! Death done!")
206  self.repeat_end2 = 0
207 
208 
209 
210  if unit.TfgisNull(self.aera_specopp):
211  self.mission_success()
212 
213  if self.jumpout == 1:
214  self.end_destruction()
215 
216 
217  if self.truck_pirate.getMinDis(self.playa.Position()) < 200:
218  if self.repeat_end1 == 2:
219  VS.IOmessage (0,"Sonorous E2","all","I am with Confed Special Service.")
220  VS.IOmessage (0,"Sonorous E2","all","You are hampering a priority 0 operation.")
221  self.confed_epeels2=launch.launch_wave_around_unit("Sonorous A3","confed","epeellcat","default",5,1000,5000,self.playa)
222  VS.IOmessage (5,"Sonorous E2","all","You are Terminated.")
223  self.confed_epeels2.SetTarget(self.playa)
224  self.confed_epeels2.setFgDirective('A')
225  self.repeat_end1 = 3
226 
227  elif self.truck_pirate.getMinDis(self.playa.Position()) < 1000:
228  if self.repeat_end1 == 1:
229  VS.IOmessage (0,"Smuggler:truck","all","Back off mate, if you know what's good for you.")
230  print "My target is..."
231 
232  global truck_exit
233  truck_exit = 1
234  print truck_exit
235 
236  self.repeat_more = 0
237  self.repeat_less = 0
238  self.repeat_end1 = 2
239 
240  elif self.truck_pirate.getMinDis(self.playa.Position()) < 3000:
241  if self.repeat_less == 1:
242  VS.IOmessage (0,"Smuggler:truck","all","Please stay away, we are carrying valuable cargo.")
243  self.repeat_more = 1
244  self.repeat_less = 0
245 
246  else:
247  if self.repeat_more == 1:
248  VS.IOmessage (0,"Smuggler:truck","all","Keep your distance.")
249  self.repeat_more = 0
250  self.repeat_less = 1
251 
252 
253 
254 
255 
256 
257 
258 
259 
260 # self.makeQuestPersistent()
261  return 1
def mission_fail (   self)

Definition at line 24 of file quest_contraband_truck.py.

24 
25  def mission_fail(self):
26  print "mission failed"
27  VS.IOmessage (0,"game","news","AERAN WARP CORE EXPLODES: \n GNN reports the explosion of a warp core in Klondike system today. The unstable core was apparently being smuggled out of Confederation space by cloaked Aeran ships. It is understood that the Aeran ships, and an unknown privateer vessel were in the aera. They are presumed destroyed.\n\n GNN --- Your News Network Anywhere")
28  print "mission terminating"
29 
30  print "mission terminated"
31  self.quest_exit = 1
32 
def mission_success (   self)

Definition at line 33 of file quest_contraband_truck.py.

33 
34  def mission_success(self):
35  self.confed_cruiser=launch.launch_wave_around_unit("Sonorous","confed","corvette","default",1,4000,8000,self.cargo_container)
36  self.confed_epeels=launch.launch_wave_around_unit("Sonorous E1","confed","epeellcat","default",5,1000,1000,self.confed_cruiser)
37  VS.IOmessage (3,"Sonorous Command","all","Attention Private Vessel!")
38  VS.IOmessage (4,"Sonorous Command","all","Under Code 1530 of the Trade Practices Charter, we take posession of this cargo pod.")
39  VS.IOmessage (6,"Sonorous Command","all","Please remove yourself or we will remove you.")
40  self.jumpout = 0
41  self.quest_exit = 1
42 
43 
44 
45 
46 
def setup_all (   self)

Definition at line 47 of file quest_contraband_truck.py.

47 
48  def setup_all(self):
49  print
50  print "Truck Launched"
51  print
52  self.truck_pirate=launch.launch_wave_around_unit("Smuggler","pirate","truck","modules/ai_qct_waitjump.py",1,3000,5000,self.playa)
53 
54 
55  print
56  print "Scrap Released"
57  print
58 
59  self.cargo_container=launch.launch_wave_around_unit("Scrap","aera","cargo","default",1,7000,5000,self.playa)
60 
61 
62  print
63  print "Aera Released"
64  print
65 
66  self.numaera = 4
67  self.aera_specopp = ()
68  for i in range(self.numaera):
69  self.aera_specopp = self.aera_specopp + (launch.launch_wave_around_unit("Aera/SpecOpp","aera","dagger","default",1,2000,4000,self.playa),)
70 
71  print
72  print "Aera Cloaked"
73  print
75 
76  self.repeat_more = 1
77  self.repeat_less = 1
78  self.repeat_end1 = 1
79  self.repeat_end2 = 1
80  self.timer1 = 0
81  self.jumpout = 0
82  self.quest_exit = 0
83  global truck_exit
84  truck_exit = 0
def start_destruction (   self)

Definition at line 85 of file quest_contraband_truck.py.

References quest_contraband_truck.aera_specopp, quest_contraband_truck.jumpout, dantestmission.playa, quest_contraband_truck.playa, quest_contraband_truck.repeat_end2, unit.setTfgDirective(), and quest_contraband_truck.timer1.

85 
86  def start_destruction(self):
87  if self.repeat_end2 == 2 and not self.cargo_container.isNull():
88  if self.timer1 == 0:
89  self.timer1 = VS.GetGameTime()
90  self.cargo_container.Split(75)
91  VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),300)
92  VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),100)
93  VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),700)
94  VS.playAnimation("explosion_wave.ani",self.cargo_container.Position(),1000)
95  VS.playSound("sfx43.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())
96  VS.playSound("Flux.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())
97  VS.playSound("electricity.wav",self.cargo_container.Position(),self.cargo_container.GetVelocity())
98 
99  print "adding particle"
100  VS.addParticle(self.cargo_container.Position(),self.cargo_container.GetVelocity(),(1,.2,.2))
101  print "added particle"
103 
104  print "begin msgs"
105 
106  VS.IOmessage (0,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] Turn your attention <surprise> Entity/self triggered item warp core!")
107  VS.IOmessage (5,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] <fear, anxiety, anger> Filthy human procreate entity/self!")
108  VS.IOmessage (12,"Aera SpecOpp","all","[Translate: Aernoss -> Englysh] Group leave fast danger avo...")
109  print "ended msgs"
110  self.jumpout = 1
111  self.repeat_end2 = 0
112  print "ended start_destruction"

Field Documentation

aera_specopp

Definition at line 66 of file quest_contraband_truck.py.

cargo_container

Definition at line 58 of file quest_contraband_truck.py.

confed_cruiser

Definition at line 34 of file quest_contraband_truck.py.

confed_epeels

Definition at line 35 of file quest_contraband_truck.py.

confed_epeels2

Definition at line 220 of file quest_contraband_truck.py.

jumpout

Definition at line 39 of file quest_contraband_truck.py.

numaera

Definition at line 65 of file quest_contraband_truck.py.

playa

Definition at line 151 of file quest_contraband_truck.py.

quest_exit

Definition at line 30 of file quest_contraband_truck.py.

repeat_end1

Definition at line 77 of file quest_contraband_truck.py.

repeat_end2

Definition at line 78 of file quest_contraband_truck.py.

repeat_less

Definition at line 76 of file quest_contraband_truck.py.

repeat_more

Definition at line 75 of file quest_contraband_truck.py.

timer1

Definition at line 79 of file quest_contraband_truck.py.

truck_pirate

Definition at line 51 of file quest_contraband_truck.py.


The documentation for this class was generated from the following file: