Stellaris Script Reference Wikia

Overview
Modding Stellaris requires knowledge of various effects, triggers, scopes and modifiers. Having to memorize these can be quite difficult. This wiki is here to serve as a reference point for those who need to use such things.

Effects
Effects are used in functions such as Events, where the modder wants to cause something to occur ingame.
 * Global Effects
 * Event Effects
 * Country Effects
 * System Effects
 * Planet Effects
 * Army Effects
 * Ship Effects
 * Fleet Effects
 * Leader Effects
 * Tile Effects
 * Pop Effects
 * Pop Faction Effects
 * Ambient Object Effects

Triggers
Triggers are used to check before executing blocks of effects. These are commonly used in Events, as well as many of the files found in the common folder.
 * Global Triggers
 * War Triggers
 * Alliance Triggers
 * Sector Triggers
 * Country Triggers
 * System Triggers
 * Planet Triggers
 * Army Triggers
 * Fleet Triggers
 * Ship Triggers
 * Leader Triggers
 * Tile Triggers
 * Pop Triggers

Scopes
Scopes are what both triggers and effects are contained in. Imagine a country. When an effect would affect a country, we say that effect is fired on the country scope. Understanding the importance of scopes is key to understanding how to use effects and triggers.
 * Understanding Scopes
 * Global Scopes
 * Cluster Scopes
 * System Scopes
 * Country Scopes
 * Planet Scopes
 * Fleet Scopes
 * Leader Scopes
 * Tile Scopes
 * War Scopes

Modifiers
Modifiers are variables that control parts of Stellaris' gameplay. These are created internally, and as such you cannot create your own modifier. Modifiers are placed within files such as 00_static_modifiers.txt where they are then referred by effects such as add_modifier, which is used to apply modifiers to scopes.

Localisation
Although localisation is fairly straight forward, there are various syntaxical nuances that are important to know of.