Help with coding



  • I've been trying this for a while but basically I want to add to my Upgraders and other codes to say

    If miner isn't on container, go to flag

    If miner is on container, get energy from container.

    I've been trying to set it up and look for help in so many places but I keep turning up with code that comes out as undefined or not working as it is intended. Anyone that can help?



  • I'd suggest joining slack and heading to the #help channel, lots of people there who can assist and its a bit more dynamic.

    https://chat.screeps.com/



  • I don't know if you have any doubts about the overall design or the specific api usage.

    We can provide more help if you post your completed code.