Game.rooms.W81N49.memory.queue.push({role: 'autoattackmelee', routing: {targetRoom: 'W82N48'}})
Game.rooms.W81N49.memory.queue.push
is where the creeps is build.
role
: is the role the creep will be, you can change this to any available role.
targetRoom
: is the creeps target room.
Soon you can also use (somotaw/master)
startAutoSquad('roomFrom' , 'roomTo')
Sending a Reserver to reserve a rooms controller: (This will also trigger Remote Mining in the room)
Game.rooms.W81N49.memory.queue.push({role: 'reserver', routing: {targetRoom: 'W82N48', targetId: '5873bc0e11e3e4361b4d6fc3'}})
targetId
: Is in this case the ID of the controller in the target room.
Game.getObjectById('TheCreepsIdHere').claimController(Game.rooms.RoomNameHere.controller)
Game.getObjectById('TheCreepsIdHere').signController(Game.rooms.RoomNameHere.controller, "YourTextHere");
• Using the commands above you can also send sourcer, carry, defender etc. to certain rooms/targets.
Soon there will be Squad attacks the Commands for those are: (somotaw/master)
brain.startSquad('RoomFrom','RoomTo')
brain.startMeleeSquad('RoomFrom','RoomTo')