Example #1
0
else:
    fixers.DestroyActiveButtons()
    if (fixers.checkSaveValue(playernum, "iso_mission1", 0)):
        Base.Message(
            "Excellent! You accepted the mission.  I will offer you 38,000 credits to do one thing: destroy that vessel. You should have help from a few of my elite force; however, I expect the ISO to put up a fight, so be wary and beware. I trust you will accept my offer, my young....friend"
        )
    elif (fixers.checkSaveValue(playernum, "iso_mission1", 1)
          or fixers.checkSaveValue(playernum, "iso_evil2", -1)
          or fixers.checkSaveValue(playernum, "iso_evil3", -1)
          or fixers.checkSaveValue(playernum, "iso_evil4", -1)):
        Base.Message(
            "There is only one thing I despise more than a member of the Interplanetary Socialist Organization: and that is one of their mercenary lapdogs. You are not worth the breath I have wasted on you. Leave now, if you dare.  My forces will destroy your starship and leave your corpse to boil in vacuum."
        )
        type = faction_ships.getRandomFighter("confed")
        fgname = "IntelSecElite"
        fixers.setSaveValue(playernum, "decided_iso_good", 1)
        launch.launch_wave_around_unit(fgname, "confed", type, "default", 1,
                                       80, 100, playa).SetTarget(playa)
        launch.launch_wave_around_unit(fgname, "confed", type, "default", 1,
                                       80, 100, playa).SetTarget(playa)
        launch.launch_wave_around_unit(fgname, "confed", type, "default", 1,
                                       80, 100, playa).SetTarget(playa)
        launch.launch_wave_around_unit(fgname, "confed", type, "default", 1,
                                       80, 100, playa).SetTarget(playa)
        launch.launch_wave_around_unit(fgname, "confed", type, "default", 1,
                                       80, 100, playa).SetTarget(playa)
    elif (fixers.checkSaveValue(playernum, "iso_mission1", -1)
          and fixers.checkSaveValue(playernum, "iso_evil2", 0)):
        msg = ''
        if (fixers.checkSaveValue(playernum, "iso_mission1_paid", 0)):
            msg += 'Excellent! Excellent! Without him, the ISO cannot stand against us! Soon Defiance itself will be in my grasp! Here is your pay. '
Example #2
0
        Base.Message("We are in need of a pilot who can safely transport this cargo to one of our bases in the #55ffffrigel#000000 system. It is highly important that no confed or militia know of these goods. Will you accept this unavoidable offer?")
#And then if you fail.......
    elif (fixers.checkSaveValue (playernum,"pirate_mission1",-1) or fixers.checkSaveValue (playernum,"pirate_mission2",-1) or fixers.checkSaveValue (playernum,"pirate_mission3",-1) or fixers.checkSaveValue (playernum,"pirate_mission4",-1)):
        Base.Message ("How could you let our precious cargo be destroyed. It has cost us millions of credits and you trashed it like it was nothing. Prepare to be nailed,pal!")
        type = faction_ships.getRandomFighter ("pirates")
        fgname="shadow"
        launch.launch_wave_around_unit (fgname,"pirates",type,"default",1,80,300,playa).SetTarget(playa)
        launch.launch_wave_around_unit (fgname,"pirates",type,"default",1,80,300,playa).SetTarget(playa)
    else:
        if (fixers.checkSaveValue (playernum,"pirate_mission1",1) and fixers.checkSaveValue(playernum,"pirate_mission2",0)):
            Base.Message ("Thanks for the cargo that we needed, pal. We now need some cargo delivered to the #55fffftingvallir#000000 system. Can you do that without geting caught?")#assign mis 2
            fixers.payCheck(playernum,'paidpiratemission',0,20000)
            AssignMission()
        elif (fixers.checkSaveValue (playernum,"pirate_mission2",1) and fixers.checkSaveValue(playernum,"pirate_mission3",0)):
            Base.Message ("Hey, pal. You got back here all right. Now I have a special mission for you that requires a tractor beam. This will require you to destroy a merchant transport in this system. You must have a tractor beam equipped to your ship...we want the ship to blow, but the cargo...")#assign mis 3:
            fixers.payCheck(playernum,'paidpiratemission',1,20000)
            AssignMission()
        elif (fixers.checkSaveValue (playernum,"pirate_mission3",1) and fixers.checkSaveValue(playernum,"pirate_mission4",0)):
            fixers.setSaveValue(playernum,"pirate_mission3",2)
            fixers.payCheck(playernum,'paidpiratemission',2,25000)
            Base.Message ("It looks like you got some nice cargo from that guy. Go to the #55ffffrigel#000000 system immediately. There is something very important that must be done. Meet my friend who will tell you what to do.")
        elif ((fixers.checkSaveValue (playernum,"pirate_mission3",2) or fixers.checkSaveValue (playernum,"pirate_mission3",1)) and VS.getSystemFile()=='enigma_sector/rigel' and fixers.checkSaveValue(playernum,"pirate_mission4",0)):
            Base.Message ("Our base is under attack! Defend it from the militia! They have heard about illegal contraband transferring and are not happy.")#assign mis 4
            AssignMission()
        elif (fixers.checkSaveValue(playernum,"pirate_mission4",1)):
            fixers.setSaveValue(playernum,"pirate_mission4",2)
            Base.Message ("Thanks, pal. You've earned our trust. You're a recognized friend of the pirates now. I don't know if you fully grok this yet, but you have saved many of our lives here in the Rigel system. Here are your 80000 credits that we promised. Go out, take what's yours, and don't let anyone give you flak.")
            fixers.payCheck(playernum,'paidpiratemission',3,80000)
        else:
            pass
import fixers
import Base
fixers.DestroyActiveButtons ()
playernum = VS.getPlayer().isPlayerStarship()
if (fixers.checkSaveValue(playernum,"iso_evil2",0) and VS.numActiveMissions()<=1):
	fixers.setSaveValue (playernum,"iso_evil2",0)
	#load mission 2
	VS.LoadMission ("bounty/iso/attack_iso_freighter.mission")
elif (fixers.checkSaveValue(playernum,"iso_evil3",0) and VS.numActiveMissions()<=1):
	fixers.setSaveValue (playernum,"iso_evil3",0)
	VS.LoadMission ("bounty/iso/attack_iso_prisoners.mission")
	#load mission 2
elif (fixers.checkSaveValue(playernum,"iso_evil4",0) and VS.numActiveMissions()<=1):
	fixers.setSaveValue (playernum,"iso_evil4",0)
	VS.LoadMission ("defend/iso/attack_iso_force.mission")
	#load mission 3
else:
	Base.message ("Ahh but you are already completing a mission. Come back to me when you're done with that contract first.")
Example #4
0
len=Director.getSaveDataLength (playernum,"kills");
kills=0
if (len!=0):
	kills=Director.getSaveData(playernum,"kills",len-1)
if (kills<25):
	Base.Message("Hello Pilot. " + intro_string + " We are actively seeking new members in our organization.  However to fly defense runs, you need some more experience. Come back when your record is somewhat more interesting and then together we can overthrow the confederacy!");
elif (VS.numActiveMissions()>1):
	Base.Message ("It is a pleasure to speak to you; however, if you wish to work with me you must first finish up your other contractual obligations.")
else:
	if (fixers.checkSaveValue (playernum,"iso_mission1",0)):
		Base.Message("Hello Mercenary. " + intro_string + " We are actively seeking mercenaries to help us defend our supplies and our party members. There is, in this system, a vessel carrying several key party members and some valuable sensor data with them.  Comrade, we offer 18000 credits if you will defend these starships! Do you accept our offer?")
#And then if you fail.......
		AssignMission()
	elif (fixers.checkSaveValue (playernum,"iso_mission1",-1)):
		Base.Message ("You conspirator! I should have realized you were a kepitalizt pig when I first smelled your foul stench! You probably got paid to destroy our vessel. If I shared in your lack of honor I would kill you where you stand.  But instead I shall ask my operatives to rid you of your ship. The next time any of us see your vessel, it will be fired upon. Leave my presence - you nauseate me.")
		fixers.setSaveValue (playernum,"decided_iso_evil",1)
		type = faction_ships.getRandomFighter ("ISO")
		fgname="Lenin'sRevenge"
		launch.launch_wave_around_unit (fgname,"ISO",type,"default",1,80,300,playa).SetTarget(playa)
		launch.launch_wave_around_unit (fgname,"ISO",type,"default",1,80,300,playa).SetTarget(playa)
		type = faction_ships.getRandomFighter ("ISO")
		launch.launch_wave_around_unit (fgname,"ISO",type,"default",1,80,300,playa).SetTarget(playa)
		launch.launch_wave_around_unit (fgname,"ISO",type,"default",1,80,300,playa).SetTarget(playa)
	elif (fixers.checkSaveValue (playernum,"iso_mission2",-1) or fixers.checkSaveValue (playernum,"iso_mission3",-1) or fixers.checkSaveValue (playernum,"iso_mission4",-1)):
		Base.Message ("You have failed the ISO.  I should have known not to entrust a self serving mercenary with the key plans of our organization. Go now... make money for yourself--I know you do not care for the future of those who actually earn their livings.")
	else:
		if (fixers.checkSaveValue (playernum,"iso_mission1",1) and fixers.checkSaveValue(playernum,"iso_mission2",0)):
			if (fixers.checkSaveValue (playernum,"iso_mission1_paid",0)):
				playa.addCredits(18000)
				fixers.setSaveValue(playernum,"iso_mission1_paid",1)
			Base.Message ("Thank you for your help in defending our starship.  We had no idea that the Confed was on to us there.  It is not safe so far away from the Defiance system...  We have a starship in urgent need of escort.  It is a small, speedy merchant vessel that hopefully will slip past confeds defenses.  We have programmed its flight computer to follow you through jump points and to match your insystem jumps.  Its final destination is the Adams system; however, be wary that such a small ship will have trouble navigating throug the black hole in Enigma sector, so I have suggested an alternate route that will take you through a few backwater systems to Adams.  Will you assist us?")#assign mis 2
Example #5
0
         and fixers.checkSaveValue(playernum, "pirate_mission2", 0)):
     Base.Message(
         "Thanks for the cargo that we needed, pal. We now need some cargo delivered to the #55fffftingvallir#000000 system. Can you do that without geting caught?"
     )  #assign mis 2
     fixers.payCheck(playernum, 'paidpiratemission', 0, 20000)
     AssignMission()
 elif (fixers.checkSaveValue(playernum, "pirate_mission2", 1)
       and fixers.checkSaveValue(playernum, "pirate_mission3", 0)):
     Base.Message(
         "Hey, pal. You got back here all right. Now I have a special mission for you that requires a tractor beam. This will require you to destroy a merchant transport in this system. You must have a tractor beam equipped to your ship...we want the ship to blow, but the cargo..."
     )  #assign mis 3:
     fixers.payCheck(playernum, 'paidpiratemission', 1, 20000)
     AssignMission()
 elif (fixers.checkSaveValue(playernum, "pirate_mission3", 1)
       and fixers.checkSaveValue(playernum, "pirate_mission4", 0)):
     fixers.setSaveValue(playernum, "pirate_mission3", 2)
     fixers.payCheck(playernum, 'paidpiratemission', 2, 25000)
     Base.Message(
         "It looks like you got some nice cargo from that guy. Go to the #55ffffrigel#000000 system immediately. There is something very important that must be done. Meet my friend who will tell you what to do."
     )
 elif ((fixers.checkSaveValue(playernum, "pirate_mission3", 2)
        or fixers.checkSaveValue(playernum, "pirate_mission3", 1))
       and VS.getSystemFile() == 'enigma_sector/rigel'
       and fixers.checkSaveValue(playernum, "pirate_mission4", 0)):
     Base.Message(
         "Our base is under attack! Defend it from the militia! They have heard about illegal contraband transferring and are not happy."
     )  #assign mis 4
     AssignMission()
 elif (fixers.checkSaveValue(playernum, "pirate_mission4", 1)):
     fixers.setSaveValue(playernum, "pirate_mission4", 2)
     Base.Message(
Example #6
0
import fixers
import Base
fixers.DestroyActiveButtons ()
playernum = VS.getPlayer().isPlayerStarship()
if (fixers.checkSaveValue(playernum,"iso_mission1",0) and VS.numActiveMissions()<=1):
	fixers.setSaveValue (playernum,"iso_mission1",0)
	#load mission 1
	VS.LoadMission ("defend/iso/defend_iso_mission1.mission")
elif (fixers.checkSaveValue(playernum,"iso_mission2",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission1",1)):
	fixers.setSaveValue (playernum,"iso_mission2",0)
	VS.LoadMission ("escort/iso/escort_iso_mission2.mission")
	#load mission 2
elif (fixers.checkSaveValue(playernum,"iso_mission3",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission2",1)):
	fixers.setSaveValue (playernum,"iso_mission3",0)
	VS.LoadMission ("cargo/iso/cargo_contraband_mission3.mission")
	#load mission 3
elif (fixers.checkSaveValue(playernum,"iso_mission4",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission3",1)):
	fixers.setSaveValue (playernum,"iso_mission4",0)
	VS.LoadMission ("defend/iso/defend_iso_mission4.mission")
	#load mission 4
else:
	Base.message ("Our records indicate that you are already completing a mission. Come back to me when you're done with that business first.")
import fixers
import Base
fixers.DestroyActiveButtons ()
playernum = VS.getPlayer().isPlayerStarship()
if (fixers.checkSaveValue(playernum,"iso_mission1",0) and VS.numActiveMissions()<=1):
    fixers.setSaveValue (playernum,"iso_mission1",0)
    #load mission 1
    VS.LoadMission ("defend/iso/defend_iso_mission1.mission")
elif (fixers.checkSaveValue(playernum,"iso_mission2",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission1",1)):
    fixers.setSaveValue (playernum,"iso_mission2",0)
    VS.LoadMission ("escort/iso/escort_iso_mission2.mission")
    #load mission 2
elif (fixers.checkSaveValue(playernum,"iso_mission3",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission2",1)):
    fixers.setSaveValue (playernum,"iso_mission3",0)
    VS.LoadMission ("cargo/iso/cargo_contraband_mission3.mission")
    #load mission 3
elif (fixers.checkSaveValue(playernum,"iso_mission4",0) and VS.numActiveMissions()<=1 and fixers.checkSaveValue (playernum,"iso_mission3",1)):
    fixers.setSaveValue (playernum,"iso_mission4",0)
    VS.LoadMission ("defend/iso/defend_iso_mission4.mission")
    #load mission 4
else:
    Base.message ("Our records indicate that you are already completing a mission. Come back to me when you're done with that business first.")
Example #8
0
import fixers
import Base
fixers.DestroyActiveButtons()
playernum = VS.getPlayer().isPlayerStarship()
if (fixers.checkSaveValue(playernum, "iso_evil2", 0)
        and VS.numActiveMissions() <= 1):
    fixers.setSaveValue(playernum, "iso_evil2", 0)
    #load mission 2
    VS.LoadMission("bounty/iso/attack_iso_freighter.mission")
elif (fixers.checkSaveValue(playernum, "iso_evil3", 0)
      and VS.numActiveMissions() <= 1):
    fixers.setSaveValue(playernum, "iso_evil3", 0)
    VS.LoadMission("bounty/iso/attack_iso_prisoners.mission")
    #load mission 2
elif (fixers.checkSaveValue(playernum, "iso_evil4", 0)
      and VS.numActiveMissions() <= 1):
    fixers.setSaveValue(playernum, "iso_evil4", 0)
    VS.LoadMission("defend/iso/attack_iso_force.mission")
    #load mission 3
else:
    Base.message(
        "Ahh but you are already completing a mission. Come back to me when you're done with that contract first."
    )