Screeps api
#SCREEPS API HOW TO#
We learn how to spawn a creep, tell our harvester creep to gather energy, and then.
#SCREEPS API FULL#
When a road is built and has less then full hits it can be repaired with a creep with WORK and CARRY components with energy by using the. A road tile takes 300 points to build, which means 60 ticks to build with a single WORK body part and costs of 300 energy.
#SCREEPS API ANDROID#
Screeps Monitor is an Android app that provides players. These clients are maintained by the community and are used to generate many of the services and programs on this page. The Screeps API is not official and may change at any time. To transfer energy between links simply call: screeps-kotlin-types is a set of Kotlin declarations to cover the Screeps API. Returns: Number Error Codes Example Usage Remotely transfer energy to another link at any location in the same room, suffering the aforementioned energy loss and cooldown timer. Can also be accessed via the game Constants Methods transferEnergy(target, ) Returns: Number - Total amount of energy the link can contain For Links, the only current valid return is 800. Returns: Number - Amount of energy currently within the link energ圜apacity Returns: Number - Number of game ticks until next transfer is possible energy Placed near Storages and Controllers, Links can allow recently gathered energy to be used immediately, and links near the edges of rooms allow long-distance haulers to drop energy off in a room (or collect it) without having to navigate through the center of the room and any creeps or structures that may complicate pathfinding in that area. Placed near Sources links allow miners to store energy without needing to maintain a can or hauler creep. Furthermore, links suffer a cooldown of 1 tick per unit of distance to the target as determined by (targetLink).ĭespite the cost of transmission and initial cost of construction, links are still extremely commonly used. This is relevant because it means that links cannot send one unit of energy, as that unit will be consumed as part of the energy loss. They cannot function cross-room, and suffer a loss of Math.ceil(amount * 0.03) energy per transfer (~3%). A link is a structure that allows to transmit energy through other links in room without the use of a creep.