Questions tagged [screeps]

Screeps is a JavaScript based, programmable web browser MMO RTS.

Screeps is a JavaScript based, programmable web browser massively multiplayer online real-time strategy game.

139 questions
-1
votes
1 answer

Why is it returning all creeps instead of just the ones with the role "upgrader"?

let foundUpgraderCreeps = spawner.room.find(FIND_MY_CREEPS, { fitler: (creep) => { return creep.memory.role === 'upgrader'; }}); For whatever reason this here is returning all the creeps in the room, I have a creep with the role and…
-1
votes
1 answer

Struggling to find syntax error in my screeps code for repairing roads (unexpected token else)

Below is my script for my builder creeps. The creeps are able to build just fine, but my script throws an error on the repair section I wrote. The entire building script is pasted below: var roleBuilder = { /** @param {Creep} creep **/ run:…
-2
votes
1 answer

screeps autospawner giving 'not defined' errors

I am trying to make a modular auto-spawner system where i just need to import the file to start spawning creeps of that role. But what happens is that i get this error every tick. ReferenceError: spawnInfo is not defined at…
Taitep
  • 1
  • 3
-4
votes
1 answer

Is there any way to automate construction?

Is there currently a way to automate construction in the game? If there is not a way, are we allowed to use external scripts to do this for us in the multiplayer version?
Malleus
  • 21
1 2 3
9
10