My code seems to be doing just that: if(Game.spawns['Spawn1'].spawning) { var spawningCreep = Game.creeps[Game.spawns['Spawn1'].spawning.name]; Game.spawns['Spawn1'].room.visual.text( '️' + spawningCreep.memory.role, Game.spawns['Spawn1'].pos.x + 1, Game.spawns['Spawn1'].pos.y, {align: 'left', opacity: 0.8}); } What's going wrong, then?
Posts made by KittyTack
-
RE: Any way to either rename a spawn or make creeps refer to a spawn by the ID isntead of the name?
-
Any way to either rename a spawn or make creeps refer to a spawn by the ID isntead of the name?
I'm just starting out, and here's the problem. I have a spawn named "Spawn1" (because I am using slightly modified tutorial code). Unfortunately, a room right next to mine also has an abandoned spawn named "Spawn1". This makes my creeps randomly abandon my spawn for the abandoned one, then do nothing or attempt to upgrade the controller (which I don't need because I am rushing to towers). How to implement either of the things I suggested in the title?