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

Public Member Functions

def __init__
 
def SignificantsNear
 
def Victory
 
def Lose
 
def Execute
 
- Public Member Functions inherited from quest
def NoSignificantsNear
 
def SignificantsNear
 
def setOwner
 
def removeQuest
 
def makeQuestPersistent
 
def isPersistent
 
def Execute
 

Data Fields

 sysfile
 
 stage
 
 sig
 
 spy
 
- Data Fields inherited from quest
 name
 
 playernum
 

Detailed Description

Definition at line 7 of file quest_rlaan_spy.py.

Constructor & Destructor Documentation

def __init__ (   self)

Definition at line 8 of file quest_rlaan_spy.py.

8 
9  def __init__ (self):
10  self.sysfile = VS.getSystemFile()
11  self.stage=0
self.sig=VS.Unit()

Member Function Documentation

def Execute (   self)

Definition at line 38 of file quest_rlaan_spy.py.

References quest_rlaan_spy.Lose(), plunder.Lose(), bounty.Lose(), rescue.Lose(), quest_rlaan_spy.sig, quest_rlaan_spy.stage, quest_drone.stage, quest_racene.stage, quest_dispute.stage, quest_blockade.stage, quest_debug.stage, quest_disappear.sysfile, quest_rlaan_spy.sysfile, quest_racene.sysfile, quest_drone.sysfile, quest_explore.sysfile, and quest_rlaan_spy.Victory().

38 
39  def Execute (self):
40  if (VS.getSystemFile()!=self.sysfile):
41  return 1
42  if (self.stage==1):
43  if (self.spy.isNull()):
44  self.Victory()
45  return 0
46  else:
47  if (self.spy.getUnitSystemFile()!=self.sysfile):
48  self.Lose()
49  return 0
50  else:
51  self.spy.SetTarget(self.sig)
52  return 1
def Lose (   self)

Definition at line 32 of file quest_rlaan_spy.py.

References quest.removeQuest().

32 
33  def Lose(self):
34  VS.IOmessage (0,"game","all","[Computer] Jump signature matching Rlaan spy reported earlier detected.")
35  VS.IOmessage (0,"game","all","[Computer] unable to track.")
36  VS.IOmessage (10,"game","all","[Computer] burst transmission to Rlaan space detected.")
37  self.removeQuest()
def SignificantsNear (   self,
  significant 
)

Definition at line 12 of file quest_rlaan_spy.py.

References quest_disappear.sysfile, quest_rlaan_spy.sysfile, quest_racene.sysfile, quest_drone.sysfile, and quest_explore.sysfile.

12 
13  def SignificantsNear(self,significant):
14  if (significant.isJumppoint()):
15  import faction_ships
16  VS.IOmessage (0,"game","all","[Computer] Target detected matching engine signature reported for rlaan spy in %s" % self.sysfile)
17  VS.IOmessage (0,"game","all","[Computer] Confed was hunting this target...");
18  self.spy=launch.launch_wave_around_unit("Spy",faction_ships.factions[faction_ships.rlaan],faction_ships.getRandomFighterInt(faction_ships.rlaan),"default",1,30000,50000,significant)
19  self.spy.ActivateJumpDrive(0)
20  self.spy.SetTarget(significant)
21  VS.getPlayer().SetTarget(self.spy)
22  self.spy.setFgDirective('B')
23  self.sig=significant
self.stage=1
def Victory (   self)

Definition at line 24 of file quest_rlaan_spy.py.

References quest.removeQuest().

24 
25  def Victory(self):
26  VS.IOmessage (0,"game","all","[Confed] You stopped the Rlaan spy from delivering his information to Rlaan HQ.")
27  VS.IOmessage (0,"game","all","[Confed] A price of 20,000 will be awarded to you for your expert effort.")
28  self.removeQuest()
29  playa = VS.getPlayer()
30  VS.IOmessage (0,"game","news","RLAAN SPY CAPTURED: After miners in the Novaya Kiev system exposed the rlaan spy and its escape ship, privateers across the sector began searching for the spy. The Rlaan ship made best speed to the local jump point, putting it right in the path of a hungry privateer. 20 thousand credits later, that privateer crushed the Rlaan spy and prevented it from communicating whatever finds it had made to the headquarters. Officially the Star Confederacy discourages vigilante policing; however, in this case the information snagged by the spy was valuable enough to justify putting a hefty sum on the rlaan's head.")
31  if (playa):
playa.addCredits(20000)

Field Documentation

sig

Definition at line 11 of file quest_rlaan_spy.py.

spy

Definition at line 17 of file quest_rlaan_spy.py.

stage

Definition at line 10 of file quest_rlaan_spy.py.

sysfile

Definition at line 9 of file quest_rlaan_spy.py.


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