OK guys thanks for everyones help
I figured out that I have to use Game.market.deal to be able to sell pixels without a starting fund
OK guys thanks for everyones help
I figured out that I have to use Game.market.deal to be able to sell pixels without a starting fund
Thank you for your help but when I tried to sell some of my utrium it returned -6 and I realised that I needed some credits to sell my utrium on the market because it charges a fee.
And i dont have any credits at all.
Any way around this??
Thanks
Yes but I dont have those minerals either. I only have Utrium
Hello everyone, I have just reached level 8 an built a nuker. My nuker is filled with energy however I don't know how I can get ghodium for it. I was wondering if the market is the only place to get ghodium or if I can access it from elsewhere.
Any would be appreciated, Thanks
Hi all, I am very new to coding and I'm encountering some issues. What I would like to do is have a creep (role.withdrawer), that goes to my containers and harvests energy from.
Then I would like it to use that energy to upgrader the controller.
If anyone can send me the code for this task it would be really helpful. Thanks!
Hi everyone, I am really new to screeps so this might sound like a basic issue. My problem is that my Harvesters fill the Spawn with energy and then they only fill 1 extension when there are 4 extensions left empty.
I was wondering how to fix that issue.
My code: var roleHarvester = {
/** @param {Creep} creep **/
run: function(creep) {
if(creep.store.getFreeCapacity() > 0) {
var sources = creep.room.find(FIND_SOURCES);
if(creep.harvest(sources[0]) == ERR_NOT_IN_RANGE) {
creep.moveTo(sources[0], {visualizePathStyle: {stroke: '#ffaa00'}});
}
}
else {
var targets = creep.room.find(FIND_STRUCTURES, {
filter: (structure) => {
return (structure.structureType == STRUCTURE_EXTENSION || structure.structureType == STRUCTURE_SPAWN) &&
structure.store.getFreeCapacity(RESOURCE_ENERGY) > 0;
}
});
if(targets.length > 0) {
if(creep.transfer(targets[0], RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) {
creep.moveTo(targets[0], {visualizePathStyle: {stroke: '#ffffff'}});
}
}
}
}
};
module.exports = roleHarvester;