[go: up one dir, main page]

Menu

[r11]: / modules / quest_slaver.py  Maximize  Restore  History

Download this file

31 lines (29 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import quest
import Vector
import VS
import unit
import vsrandom
import launch
import faction_ships
class quest_slaver (quest.quest):
def __init__ (self):
playa = VS.getPlayer()
if (playa):
confed = faction_ships.factions[faction_ships.confed]
pirates = faction_ships.factions[faction_ships.pirates]
illustrious=launch.launch_wave_around_unit ('Illustrious',confed,faction_ships.getRandomCapitol(confed),'default',1,1000,4000,playa)
launch.launch_wave_around_unit ('Illustrious',confed,faction_ships.getRandomCapitol(confed),'default',2,1000,2000,illustrious)
launch.launch_wave_around_unit ('Illustrious',confed,faction_ships.getRandomFighter(confed),'default',4,100,200,illustrious)
launch.launch_wave_around_unit ('SlaverGuild',pirates,faction_ships.getRandomFighter(pirates),'default',4,100,200,illustrious)
launch.launch_wave_around_unit ('SlaverGuild',pirates,faction_ships.getRandomCapitol(pirates),'default',2,100,200,illustrious)
VS.IOmessage (3,"game","all","[Computer] Scans show the remnants of the Slaver Guild being cleaned up by Special Forces.")
def Execute (self):
self.removeQuest()
return 0
class quest_slaver_factory (quest.quest_factory):
def __init__ (self):
quest.quest_factory.__init__ (self,"quest_slaver")
def precondition(self,playernum):
return 1
def create (self):
return quest_slaver()