Exemplo n.º 1
0
def newNews():
    if (vsrandom.randrange(0,2)!=0):
        return
    newsitem = vsrandom.randrange (0,len(news))
    newsitem = news[newsitem]
    player = VS.getMissionOwner()
    for conditional in newsitem[1]:
        debug.info("conditioning")
        if (not conditional):
            return
    universe.setFirstSaveData(player,newsitem[0],1)
    Director.pushSaveString(player,"dynamic_news",'#'+newsitem[2])
Exemplo n.º 2
0
def newNews():
    if vsrandom.randrange(0, 2) != 0:
        return
    newsitem = vsrandom.randrange(0, len(news))
    newsitem = news[newsitem]
    player = VS.getMissionOwner()
    for conditional in newsitem[1]:
        print "conditioning"
        if not conditional:
            return
    universe.setFirstSaveData(player, newsitem[0], 1)
    import Director

    Director.pushSaveString(player, "dynamic_news", "#" + newsitem[2])
Exemplo n.º 3
0
def newNews():
  print "Adding news"
  if (vsrandom.randrange(0,2)!=0):
      return
  newsitem = vsrandom.randrange (0,len(news))
  newsitem = news[newsitem]
  player = VS.getMissionOwner()
  for conditional in newsitem[1]:
      print 'conditioning'
      if (not conditional):
          return
  universe.setFirstSaveData(player,newsitem[0],1)
  import Director
  newsfooter = "\\\\\This story was first broadcast on: "
  newsfooter += stardate.formatStarDate("confed",VS.getStarTime())
  newsfooter += "\\GNN - Galactic News Network"
  Director.pushSaveString(player,"dynamic_news",'#'+newsitem[2]+newsfooter)
Exemplo n.º 4
0
def newNews():
    print("Adding news")
    if (vsrandom.randrange(0, 2) != 0):
        return
    newsitem = vsrandom.randrange(0, len(news))
    newsitem = news[newsitem]
    player = VS.getMissionOwner()
    for conditional in newsitem[1]:
        print('conditioning')
        if (not conditional):
            return
    universe.setFirstSaveData(player, newsitem[0], 1)
    import Director
    newsfooter = "\\\\\This story was first broadcast on: "
    newsfooter += stardate.formatStarDate("confed", VS.getStarTime())
    newsfooter += "\\GNN - Galactic News Network"
    Director.pushSaveString(player, "dynamic_news",
                            '#' + newsitem[2] + newsfooter)