While playing screeps I can't figure out how to attack an enemy. Here's what I tried.  I created my attacker creep:  Game.spawns.Spawn1.createCreep(['attack','move'],'Attacker1');   Then when the first enemy came on t...
Is it possible to delete created creeps? Either through a script or through the GUI?  I could not easily find a way to do this, but it seems like a simple functionality so I imagine it exists, or someone has thought about it or something....
I'm trying to figure out how to get every creep with a specific memory or role like harvester in a variable... I can't seem to figure it out.  I already tried:  module.exports = function(){      for(var i in Game.creeps){         if(i.memory...
In the Programming Game Screeps I spawn creeps by using:  if(transporters.length < 0 && harvesters.length > 2) { var newName = Game.spawns['SpawnZone'].createCreep([WORK,CARRY,MOVE], undefined, {role: 'transporter'}); co...
Where can I find a list of the constants for the Game object like Game.HOSTILE_CREEPS, Game.MOVE and Game.ATTACK?  I cannot find it on http://screeps.com/docs/...
I'd like to iterate found structures but I don't know what way is the best for this.  I've tried this one:  for (var ext in creep.room.find(FIND_MY_STRUCTURES, {filter: { structureType: STRUCTURE_EXTENSION }})){     console.log(ext.energy...
So I have this creep role called storer that is supposed to go fetch energy from containers and bring it to the storage. However, currently, it finds the container closest by Path and with an energy level greater to a certain threshold so that it doe...
The memory seems to still be reading and writing correctly, but the memory tab always shows the initial state, as though there were no creeps or spawns in the room. It wasn't like this a couple days ago. What do I do? The problem exists in Firef...
I have the following code from the tutorial, except in simulation mode it isn't working..   if(creep.memory.role == 'builder') {      if(creep.energy === 0) {         creep.moveTo(Game.spawns.Spawn1);         Game.spawns.Spawn1.transferEn...
So i have been trying this to automatically spawn Creeps in percentage to total living creeps. however when i run this, it just keeps on spawning harvesters, completely ignoring the conditions even though console.log returns the expected results ....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.