Navigation

    forum

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

    Topics created by ArisingSun

    • HOW do i tranfer energy from a creep to all extensions
      Help • • ArisingSun

      2
      2
      Posts
      4815
      Views

      You need to find structures which need energy. Something like the code below. structures = creep.room.find(FIND_MY_STRUCTURES, { filter: function (object) { return object.energy < object.energyCapacity;; } }); if (ERR_NOT_IN_RANGE === creep.transferEnergy(structures[0])) { creep.moveTo(structures[0]); }
    • HELP! Extension not extracting!
      Help • • ArisingSun

      5
      5
      Posts
      6554
      Views

      (SOLUTION) MY controller level is 2 so that only leaves me with about 5 extensions. but custom lets me spawn as many as i want! So the game is only letting me use the 5 that are allowed and the rest are ignored! WOW i love figuring things out on my own!
    • Renaming creeps
      Help • • ArisingSun

      7
      7
      Posts
      12754
      Views

      for(var name in Game.creeps){ var creep = Game.creeps[name]; if (creep.memory.role == 'harvester') { ... } else if (creep.memory.role == 'builder') { ... } ... }