Navigation

    forum

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

    datafreak_ZA

    @datafreak_ZA

    1
    Posts
    906
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    datafreak_ZA Follow

    Posts made by datafreak_ZA

    • RE: How i can control second room?

      Your question is very broad. 

      Loop through all creeps in the game and you don't need to worry about rooms.

       

      for(var name in Game.creeps) {
      var creep = Game.creeps[name];
      //run creep role code
      }

       

      If your question is regarding a second spawn , the above still applies.

      You may however want to let creeps store their home / source room in memory when spawning.

      var roomName = creep.room.name;
      creep.memory.sourceRoom = roomName;
      posted in Help
      datafreak_ZA