Exemple #1
0
def AssignMission():
    fixers.DestroyActiveButtons()
    fixers.CreateChoiceButtons(Base.GetCurRoom(), [
        fixers.Choice("bases/fixers/yes.spr", "bases/fixers/iso_mission.py",
                      "Accept This Agreement"),
        fixers.Choice("bases/fixers/no.spr", "bases/fixers/iso_decline.py",
                      "Decline This Agreement")
    ])
Exemple #2
0
def JoinGuild(guildname):
    guilds[guildname].Join()
    fixers.DestroyActiveButtons()
    debug.info("Create it " + guildname)
    if guildname in guildrooms:
        debug.info("Create it " + str(guildrooms[guildname]))
        for guildroom in guildrooms[guildname]:
            debug.info("drawing")
            guildroom.drawobjs()
Exemple #3
0
def JoinGuild(guildname):
    guilds[guildname].RequestJoin()
    fixers.DestroyActiveButtons()
    print 'Creahte it ' + guildname
    if guildname in guildrooms:
        print 'Create it ' + str(guildrooms[guildname])
        for guildroom in guildrooms[guildname]:
            print "drawing"
            CreateJoinedGuild(guildname, guildroom)
def exploremission(part, filename, sysfile, creditnum):
    fixers.DestroyActiveButtons()
    if part == 1:
        plyr = VS.getPlayer().isPlayerStarship()
        if quest.findQuest(plyr, (sysfile + "_nav"), 1) or quest.findQuest(
                plyr, (sysfile + "_nav"), 2):
            part = 3
    if part == 1:
        fixers.CreateChoiceButtons(Base.GetCurRoom(), [
            fixers.Choice("bases/fixers/yes.spr", filename,
                          "Accept This Mission"),
            fixers.Choice("bases/fixers/no.spr", "bases/fixers/no.py",
                          "Decline This Mission")
        ])
        Base.Message(
            """Hi. Our researchers have found a new signal similar to that of a jump point coming from an area in the
#55ffff%s#000000 system. This mission will require that you own a jump drive.
We hope that you will accept this mission. You will earn %.2f credits when you explore the area."""
            % (sysfile.split('/')[-1], creditnum))
    elif part == 2:
        Base.Message(
            """Excellent! Go to the unknown energy source that we have uploaded to your ship computer
as a navpoint in #55ffff%s#000000. Once next to the energy source, jump
into the energy source and get close to all of the planets in the connecting system."""
            % sysfile.split('/')[-1])
        Base.EnqueueMessage(
            """You will earn %.2f credits when this is completed""" %
            creditnum)
        plyr = VS.getPlayer().isPlayerStarship()
        if Director.getSaveDataLength(plyr, (sysfile + "_nav")) == 0:
            Director.pushSaveData(plyr, (sysfile + "_nav"), 1)
        else:
            Director.putSaveData(plyr, (sysfile + "_nav"), 0, 1)
    else:
        Base.Message(
            """Go to the unknown energy source that we have uploaded to your ship computer
as a navpoint in #55ffff%s#000000. Once next to the energy source, jump
into the energy source and get close to all of the planets in the connecting system."""
            % sysfile.split('/')[-1])
Exemple #5
0
                      "Accept This Agreement"),
        fixers.Choice("bases/fixers/no.spr",
                      "bases/fixers/iso_antagonist_decline.py",
                      "Decline This Agreement")
    ])


playa = VS.getPlayer()
playernum = playa.isPlayerStarship()
#only want this var if you agreed to the quest at some point--so we want it to return fasle if len is 0
if (not Director.getSaveDataLength(playernum, "iso_mission1")):
    Base.Message(
        "Good day, stranger.  I do not know you, and I do not wish to know you. However, in the face of our mutual situation, perhaps you could come to an agreement with Rowenna of the ISO.  Talk to her. But before you leave, talk to me. I may have an offer that you simply cannot refuse."
    )
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,