Navigation

    forum

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

    Topics created by Musiccoding123

    • Count the number of screeps in room with a certain role?
      Help • • Musiccoding123

      4
      4
      Posts
      10702
      Views

      lil late, but its a good question, that I myself had..so for those looking, another option to countBy I tend to use many variations of .sum like: var x = _.sum(Game.creeps, (c) => c.memory.role == 'builder'); or other combos like var x = _.sum(Game.creeps, (c) => c.memory.role == 'heavyworker' && c.memory.workingRoom == "E58N24" && c.memory.position == 1&& c.memory.upgradeMe==false && c.memory.recycleMe==false);  ...or whatever else you might have defined in the memory
    • Novice Area. Move a creep to the next room
      Help • • Musiccoding123

      2
      2
      Posts
      3340
      Views

      You should be able to add flags manually, and have creeps go there with the normal creep.goTo function.