Esempio n. 1
0
 def completeAccept(args):
     if VS.networked():
         if args[0]=="success" or args[0]=="notavailable":
             mission_lib.BriefLastMission(self.missionname,1,self.guild.textbox)
             mission_lib.RemoveLastMission(self.missionname)
     if args[0]=="toomany":
         self.guild.TooManyMissions()
Esempio n. 2
0
 def select(self):
     if not self.guild.CanTakeMoreMissions():
         self.guild.TooManyMissions()
     else:
         self.removeobjs()
         mission_lib.BriefLastMission(self.missionname, 0,
                                      self.guild.textbox,
                                      self.guild.briefingTemplate)
Esempio n. 3
0
 def select(self):
     if VS.numActiveMissions() > 3:
         Base.Message(
             'You are already doing too many missions. Finish those first, and then come back to the guild.'
         )
     else:
         self.removeobjs()
         mission_lib.BriefLastMission(self.missionname, 0,
                                      self.guild.textbox)
Esempio n. 4
0
 def accept(self):
     if VS.numActiveMissions() > 3:
         Base.Message(
             'You are already doing too many missions. Finish those first, and then come back to the guild.'
         )
     else:
         self.isactive = True
         self.removeobjs()
         mission_lib.SetLastMission(self.missionname)
         mission_lib.BriefLastMission(self.missionname, 1,
                                      self.guild.textbox)
         mission_lib.LoadLastMission()
Esempio n. 5
0
 def accept(self):
     if not self.guild.CanTakeMoreMissions():
         self.guild.TooManyMissions()
     else:
         self.isactive=True
         self.removeobjs()
         mission_lib.SetLastMission(self.missionname);
         def completeAccept(args):
             if VS.networked():
                 if args[0]=="success" or args[0]=="notavailable":
                     mission_lib.BriefLastMission(self.missionname,1,self.guild.textbox)
                     mission_lib.RemoveLastMission(self.missionname)
             if args[0]=="toomany":
                 self.guild.TooManyMissions()
         if not VS.networked():
             mission_lib.BriefLastMission(self.missionname,1,self.guild.textbox)
         custom.run("guilds",[self.guild.guild.name,"accept",self.missionname],completeAccept)
Esempio n. 6
0
import fixers
import mission_lib
import Base
import VS

fixers.DestroyActiveButtons()
if VS.numActiveMissions() > 1:
    Base.Message('You are already doing a mission. Finish that instead.')
else:
    fixers.CreateChoiceButtons(Base.GetCurRoom(), [
        fixers.Choice("bases/fixers/yes.spr", "bases/fixers/generic1b.py",
                      "Accept This Agreement"),
        fixers.Choice("bases/fixers/no.spr", "bases/fixers/no.py",
                      "Decline This Agreement")
    ])
    mission_lib.BriefLastMission(1, 0)
Esempio n. 7
0
import fixers
import mission_lib
import VS

fixers.DestroyActiveButtons ()
if VS.numActiveMissions()>1:
    Base.Message('You are already doing a mission. Finish that instead.')
else:
    mission_lib.BriefLastMission(0,1)
    mission_lib.LoadLastMission()
    #VS.LoadMission('internal_mission_lib.mission')