Skip to content

Description & General Principle

Karl the Pagan edited this page Mar 13, 2017 · 11 revisions

Every creep is determinated and limited by its body parts, as they can't be changed once a creep has been build. This defines the general creep type.

Each creep type needs two aspects to take care of: Setup (prebuild) and Behaviour (postbuild).

While the behaviour of each creep type may be completely different, each single action a creep does can be described regardless of its type or behaviour and different creep types may also do the same actions (e.g. move to a flag in a different room or be idle and wait one loop - of course this doesn't work with all creep types & all actions). In other words: Behaviour defines which Action has to be done, respecting the current situation, and is tailored to the creeps body.

Setup coordinates which and how many body parts a creep has and how many creeps (of that type) may be build.

Behaviour defines which Action the creep should do in the current loop and how this decision is made.

Action describes a certain order or immediate goal that a single creep is currently working at. In Screeps terms an Action is a combination of Intents.

Task is a part of the OCS engine that reacts to flags and changes in the game state in order to control structures or to override Actions on a limited basis.

Strategy is a means of parameterizing Actions primarily based on the assigned Task and Behaviour.

Next Page: Creep Types