
- #SCREEPS HOW TO#
- #SCREEPS CODE#
Make new paths in memory for new usecases.
If boosted is true, the city will attempt to make the creep boosted
SpawnRole(role, city, boosted) spawn any role from specified city. If boosted is true, the city will attempt to make the breaker boosted SpawnBreaker(city, boosted) spawn a breaker from specified city. If boosted is true, the city will attempt to make the quad boosted SpawnQuad(city, boosted) spawn a quad from specified city. DeployQuad(targetRoom) deploy a quad to target room (must be a roomName).
You do not need to interact with their respective flags ( -powerMine, -deposit, -harass) for them to operate successfully. These include the Power Miner, Deposit Miner, and Harasser. There are some automated roles that currently run off of flagging mechanisms. The plan flag will be replaced with construction sites for core buildings in the room after the room has been claimed.
The closest room (greater than rcl 4) will create claimers to claim the room and spawnBuilders to build the spawn & get the room started.
Wait ~500 ticks for the claim flag to be recognized and processed. How a new city develops after flags are placed You're done! Everything after this point is automated. The plan flag will be placed in the top left corner of your base, so carefully find a 13 by 13 area in the room and place the flag in the top left corner of that area. Place a plan flag in the room as well. Find an empty room within 10-15 squares of a current room (must be greater than rcl 4). #SCREEPS HOW TO#
New City How to build a new city (not the first spawn) So in the example above, the flag would referred to as -break. For flags that require a city name, we will use a '-' to convey that. A city's name will always be the room name with a '0' added to the end. If a flag requires a city name to be part of its name, this specifies the city that will send the creeps.įor example: a flag named E11N140break will send a breaker from E11N140.
quadRally - send a quad to a room to destroy and creeps. break - send a breaker to a room to destroy structures. plan - create a layout for a structures in a new room. The PlaceFlag function can be used from the console to flag a target with a flag.įor example: PlaceFlag("claim", 25, 25, "E9N32") Spawn Builder - build initial buildings in a new city. Power Miner - mine power in nearby highway rooms. Power Creep - boost other creeps/resources/structures in a room. Mineral Miner - mine mineral source in the room. Deposit Miner - mine deposits in nearby highway rooms. Robber - takes resources from enemy rooms. Harasser - Ranged attacking unit for cheap damage to enemy remote miners and protecting highways. Defender - Defend against enemy invaders. tasks include lab work, factory, terminal management etc. load extensions, spawns, towers, factory, labs, and nuker Transporter - redistribute energy in base. Runner - bring energy from miners to base. mine energy sources in the room or neighboring rooms Builder - build buildings from constructions sites, repair roads/walls. New rooms will be claimed automatically (private server only). All structures and roads are placed automatically. Cities mine commodities and will attempt to create high level products with available factories and sell them. Cities use labs to make max power boosts for military and upgraders from minerals. Cities will use market to trade for minerals and sell excess resources for credits. Use the PlaceFlag() function from the console. TLDR flag other rooms to "claim" (claim room), "plan" (build base at flag location), "break" (break buildings). The spawn should have 6 open squares on each side (13 by 13 square with spawn in the middle).Ĭlaiming and Attacking (see "New City" section below and "Attacking" section below) Name it 0, for example, if the room is called E12N14, the spawn should be E12N140. Place your spawn in a large open area. This can be done using npm run push if you have a screeps.yml file ( ) npm run roll # combine project into a single file to upload to screeps.
#SCREEPS CODE#
npm run coverage # get code coverage report. Use the following sequence of steps to build and run the code: