const link = Game.getObjectById("...");
const creep = Game.creeps.mycreep;
if(creep.withdraw(link, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) {
creep.moveTo(link);
}
KyberPrizrak
@KyberPrizrak
Posts made by KyberPrizrak
-
RE: How to take energy out of a link
-
Link "Report a problem" is broken!
1 ) In Steam client, press on button (in left menu) "Report a problem", which opens the link: https://support.screeps.com/hc/en-us/requests/new
But link is broken, ERR_SSL_VERSION_OR_CIPHER_MISMATCH.
2 ) In the game, open Shard3 W30N50, then click on the portal to Shard2, then click on any other room in minimap ("World map" in right menu) - a room from Shard3 will open, although it should be Shard2.
3 ) Why do my creeps (Shard1 W32N49) have a list of decorations from old owner of the room (in right menu)? It looks like this is a bug (I don't have any decorations).
4 ) Shard0 W60N70 portals to Shard0 W40N70, but this room is not available.
5 ) API Game.market.getHistory() - posible return empty object, but in documentation say: "Returns an array".
P.S. Can I use Russian language in this forum category (and "Feature Requests"), because my English is very bad?
-
RE: Handicap between beginner and expert
(RC1<RC2 || RL1<RL2).
I think this is a great idea, but you need to add disabling this functionality for experts:
(RC1<RC2 || RL1<RL2) && (RC1 < 4) && (RL1 < 8).