Navigation

    forum

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

    Topics created by pheonix

    • Unsolved Does findExitTo work with room names?
      Help • • pheonix

      2
      2
      Posts
      3176
      Views

      According to https://docs.screeps.com/api/#Room.findExitTo, findExitTo can accept either a string (room name) or a Room object. I don't know why you need the spawn ID for this, but you can get spawns like this: let spawn = room.find(FIND_MY_SPAWNS)[0];
    • Solved Double spawning with two spawns?
      Help • • pheonix

      2
      2
      Posts
      4108
      Views

      I assume your talking about https://screeps.com/a/#!/room/shard3/E43N11 Its hard to tell from such a small snipit, you may find you get a bit more dynamic help on Slack in #help. Its probably going to come down to how you are tracking the number of builders. If your just Filtering for 'living' creeps and going off that count for both spawns without adding the new creep into the roles then yes, it'll be off. Have to account for it with your code, either by 'adding' the new creep to the list your using, or changing up how you spawn.
    • Unsolved Servers on the website?
      Help • • pheonix

      3
      3
      Posts
      4234
      Views

      Ah ok.
    • Solved Trying to get energy out of everything but spawns, extensions, and towers
      Help • • pheonix

      5
      5
      Posts
      7598
      Views

      Also, it might be worth pointing out that && has a higher precedence than ||, which means that: A || B || C && D // equivalent to: A || B || (C && D) // NOT: (A || B || C) && D If you want to do all the ORs and then the AND, you'll need to add some brackets.