Skip to main content

Questions tagged [screeps]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
84 views

What would cause a room to disappear in the game Screeps?

I spawned in room E62N94 on Shard 0 a few hours prior to posting this question. When I logged back in later the same day to check on my creeps, I found my room and most of the rest of the sector awash ...
Lumberjack's user avatar
0 votes
1 answer
60 views

Can an invader spawn on an edge that leads to an owned room

Invaders randomly attack rooms that have a player in them. They seem to spawn on the edge of a room. Can such an invader spawn on an exit that leads to another room where I own the controller?
Sumurai8's user avatar
  • 4,603
2 votes
1 answer
298 views

Is picking up energy instant?

Is it instant to pick up any amount of energy from dropped enemy creeps? If it isn't I doubt how efficient it would be to not only program my creeps to pick it up but cost efficient having a creep ...
Aequitas's user avatar
  • 17.8k
6 votes
1 answer
617 views

How Do I Detect Swamps in Screeps

In screeps, I can see swamps using my browser window. However, I can find no way for my script to detect if the terrain is a swamp except for having my creeps walk around marking swamps they encounter ...
TheNumberOne's user avatar
3 votes
2 answers
237 views

My program works in simulation but fails in game mode

I've set up my code so that my main module consists of only the following: var main = require('main2'); main(); This works in simulation's survival training mode, where main is a function. However,...
David Locke's user avatar
3 votes
1 answer
283 views

Simulation and Survival mode not equal?

I created a script in Simulation mode which runs great. Then when I want to execute it in survival mode it doesn't work anymore. It seems to have problems with the Memory hash in survival mode.
Sjoerd's user avatar
  • 31
3 votes
1 answer
1k views

Are any Actions of Screeps mutually exclusive to eachother?

I have designed a guard screep with ATTACK, RANGED_ATTACK, HEAL, and MOVE. My script executes each of these actions at valid targets (heal the guard next to me, while attacking the hostile creep in ...
Tim Keller's user avatar
5 votes
2 answers
1k views

Can a creep commit suicide?

I am programming a script for my guards, if the guard can't move, make the guard commit suicide, so my system can spawn a new one again. But how do I do that? It's not listed in the docs. I am ...
joppiesaus's user avatar