Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Necromunger
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Necromunger

    @Necromunger

    2
    Posts
    1135
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Necromunger Follow

    Posts made by Necromunger

    • Open world - Spawner will not create creeps
      var bodyExtractor = [Game.CARRY, Game.MOVE, Game.WORK, Game.WORK, Game.WORK];
      
      Game.spawns.Spawn1.createCreep(bodyExtractor, null, {role: "harvester", set: "extractor"});
      

      I have had this working for weeks, and on open world all of my stuff is braindead.

      posted in Help
      Necromunger
    • Small snippet to clear the memory of dead creeps.

      This code has been going around since the dawn of Screeps I think originating on the website StackOverflow.

      for(var i in Memory.creeps) {
          if(!Game.creeps[i]) {
              delete Memory.creeps[i];
          }
      }
      

      It simply removes creeps from memory that are no longer living. I usually place this somewhere where it can run every tick.

      posted in General Discussion
      Necromunger