Common Documentation
39 items
These scripts are used to direct AI to create equipment variants and upgrade existing equipment in order to satisfy specific role needs. Equipment type and equipment module specifications determine what is necessary and desirable for filling particular roles, and priority triggers provide additional hooks to encourage the AI in different directions.
The game's documentation of common/ai_faction_theaters.
This system replaces how the AI executes missions. The previous system relied on pre-defined priorities between missions, and rather obtuse logic for how task forces would be gathered and assigned to the missions. This new system aims to make the AI decision-making process more flexible, understandable and scriptable.
Script the amount of ships for a specific taskforce and its possible available missions (Currently only limited to 1)
The game's documentation of common/ai_strategy.
The AI template system has historically been confusing to use with a lot of unexpected behaviors. It has recently (2023-10) undergone a period of bugfixing and revamping to make it work better and in a more understandable way. Due to this, some of the old parameters are being deprecated or renamed and will sooner or later be cleaned up.
Historical characters are listed within the characters root property.
Collections are groups of scopable objects of the same type.
Decisions are made available to countries that fulfill the right conditions. Some triggers are only checked once per day, once per frame or once per game.
Folders are the top-level categorization of doctrines, e.g. land, air and naval, but you can also create a custom folder with any name. Each Grand Doctrine belongs to one folder.
Doctrine tracks are made available to the player after they have selected a Grand Doctrine.
The game's documentation of common/doctrines.
The purpose of this database is to be able to group various equipment types into categories while optionally providing a reasonably short description.
The game's documentation of common/factions.
Focus inlay windows are generic inlay components that can be added to the focus tree. Currently, they support showing information and adding buttons with on click effects.
Grand doctrines are at the root of each doctrine Folder. The player can choose any available grand doctrine for that folder and activate it by paying an XP cost. Activating a grand doctrine gives immediate effects, like unit stat bonuses or unlocking tactics. Also, activating a grand doctrine makes available its corresponding Subdoctrine Tracks. For each track, the grand doctrine has a Milestone which is additional reward for completing that track.
The game's documentation of common/intelligence_agency_upgrades.
Scripted map modes can be used to add new map modes to game_map_mode_factions
This database contains numbers that influence how much each trait bonus affects the desire of the AI to pick traits with that bonus.
MIOs are replacement for design companies. They give research bonuses, but most importantly they give bonuses to equipments (quality and production).
For each MIO, the player is able to attach 1 policy to get extra bonuses. 1 policy is similar to 1 trait. The bonuses only applies to the equipment variant or production line the MIO is assigned to.
The game's documentation of common/on_actions.
Every phase needs a <unique id>, which is phase_test in this case
There can only ever be one token that one country can acquire against another. They are not stackable.
The game's documentation of common/operations.
This affects AI behavior but not the cost.
The game's documentation of common/peace_conference/cost_modifiers.
The game's documentation of common/raids.
When adding new resources or changing the order, remember to update this define: NAI::MIN_FACTORIES_TO_WANT_TO_IMPORT This define prevents the AI from considering importing certain resources if it has less than N factories available for trade.
This database lists the traits that can be used in the scientist role of characters.
Constants are a way to define simple and complex script values that are reusable in different files in the scripts. Only entries that are documented to support these script constant can utilize it.
Scripted guis can be used for adding moddable guis to the game
The game's documentation of common/special_projects.
Special projects are about researching projects in Facilities to get equipment and other bonuses. Special projects are divided in several Specializations. Each Specialization has a tree of researchable projects. One entry in this DB is one node in those trees.
A prototype reward is a reward that can be acquired when doing prototypes in a special project. The prototype reward database defines generic rewards that can be used from the Projects definition (a project can also have inline prototype rewards).
Specialization is the category a Special Project is part of. By extension, It is also the category of Facilities where Special Project are researched.
Create a strategic location that contains province buildings extra max level value
Subdoctrines are at the root of each doctrine Track. The player can choose any available subdoctrine for that track and activate it by paying an XP cost. Activating a subdoctrine gives immediate effects, like unit stat bonuses or unlocking tactics. Also, activating a subdoctrine starts the automatic activation of a sequence of Rewards.
The game's documentation of common/units/equipment.