Skip to content
Krglok edited this page Jul 2, 2015 · 5 revisions

There are several Managers in the plugin. They control the npc and their activitys. They are a little like an AI but in most cases simplified. They follow the rules and give commands to each other or an npc. The managers have a internal delayloop and execute only 1 action per second. So the server load are minimized. This is very important for the build manager and the trade manager.

  • SettleManager , control is the watchdog of the settlement
  • BuildManager , control and realize the automatic building
  • TradeManager , control the buy and selll activities of the settlement
  • CraftManager , control the production preferences
  • MapManager , control the automatic position handling. At the moment of the regiment.

All these Manager have a visual representation, the Elder NPC. Without the managers the settlement can not survive in the world. The npc will starve and die. So the Managers are immortal at the moment to guarantee the settlement can survive. The rules of the managers are hardcoded at this time.

  • SettleManager
  • Supply the settlers
  • convert request from manager to command
  • BuildManager
  • check required material in warehouse
  • check position
  • clean buildingarea
  • set block according to buildplan
  • TradeManager
  • check the required item list and check the market for sellorders
  • check overstock in warehose and generate sell orders in the market
  • Handle transport orders
  • Handle route orders from settlement
  • CraftManager
  • check production and match them with available workers
  • use priority list for match workers and buildings
  • set outage items in the requested item list
  • MapManager
  • Handle the position list for regiments
  • check for new positions for regiments

Clone this wiki locally