[Stellaris][群星]Mod制作指南
附录
1. 触发器文档
导出自版本1.0.3
text - shows custom text
Supported Scopes: ???
Supported targets:
custom_tooltip - shows a custom tooltip for the effects within
Supported Scopes: ???
Supported targets:
if - a conditional trigger
Supported Scopes: ???
Supported targets:
and - all inside trigger must be true
Supported Scopes: ???
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
or - at least one entry inside trigger must be true
Supported Scopes: ???
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
not - negates content of trigger
Supported Scopes: ???
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
happiness - Compares pop happiness
Supported Scopes: pop
Supported targets:
has_ring - Checks if a planet has a ring or not (bool)
Supported Scopes: planet
Supported targets: none
hidden_trigger - hides the tooltip for the effects within
Supported Scopes: ???
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
has_owner - checks if a planet is colonized
Supported Scopes: planet
Supported targets: none
any_owned_planet - switches Scope to and goes through each owned planet
Supported Scopes: country
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
any_controlled_planet - switches scope to and goes through each controlled planets
Supported Scopes: country
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
is_ai - checks if a country is AI controlled
Supported Scopes: country
Supported targets:
always - either always false or true
Supported Scopes: ???
Supported targets:
has_trait - checks if an empire’s dominant species, pop, or leader has a certain Trait
Supported Scopes: country pop
Supported targets:
has_ethic - checks if an empire’s dominant species has a certain Ethic
Supported Scopes: country pop
Supported targets:
is_moon - checks if a planet is a moon
Supported Scopes: planet
Supported targets: none
opinion - Checks this country’s opinion value of target country
Supported Scopes: country
Supported targets: ???
any_pop - switches scope to and goes through each pop unit on the planet or all pops of the scope species
Supported Scopes: planet
Supported targets: none THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
is_owned_by - checks if a planet or galactic object is owned by target empire
Supported Scopes: planet
Supported targets: none THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
is_same_species - checks if a pop or empire is of the same species as another pop or empire
Supported Scopes: country pop
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
any_war_defender - switches scope to and goes through each defender in the war against a specified enemy
Supported Scopes: country
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
any_war_attacker - switches scope to and goes through each attacker in the war against a specified enemy
Supported Scopes: country
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
ideal_planet_class - Checks the ideal planet class of a target country
Supported Scopes: country
Supported targets:
is_same_empire - checks if an empire is the same as another
Supported Scopes: country
Supported targets: THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
is_planet_class - checks if a planet is of a certain class
Supported Scopes: planet
Supported targets: none THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
has_strategic_resource - checks if a planet has a specific strategic resource
Supported Scopes: planet
Supported targets: none THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
is_star_class - checks if a planet star is of a certain class
Supported Scopes: planet
Supported targets: none THIS ROOT PREV PREVPREV PREVPREVPREV PREVPREVPREVPREV FROM FROMFROM OWNER CONTROLLER CAPITAL RANDOM
distance - Compares the min/max distance to a target with a value
Supported Scopes: planet ship pop fleet
Supported targets: none
has_technology - checks if a country has a technology of atleast a specific level
Supported Scopes: country
Supported targets:
has_planet_modifier - checks if a planet has a planet modifier
Supported Scopes: planet
Supported targets: none
has_planet_flag - checks if a planet has a specified flag
Supported Scopes: planet
Supported targets: none
has_country_flag - checks if a country has a specified flag
Supported Scopes: country
Supported targets:
has_fleet_flag - Checks if a fleet has a specified flag
Supported Scopes: fleet
Supported targets:
has_ship_flag - checks if a planet