Effects

From Stellaris Wiki
Jump to: navigation, search

Version

Outliner top.png
This article may contain outdated information that is inaccurate for the current version of the game. It was last updated for 1.4.

Effects[edit]

Name Description Scopes Examples
abort_special_project Aborts a special research project for a country country
 abort_special_project = { 
 	type = CRYSTAL_CONSTRUCT_PROJECT 
 	location = capital_scope 
 }
add_anomaly adds a specified anomaly to planet planet
 add_anomaly = TUTORIAL_CAT
add_building_construction Adds a construction of specified building on tile (only for direct control). tile
 add_building_construction = "building_clinic"
add_colony_progress Add progress to a colony planet
add_deposit Adds a deposit to a tile or stellar object planet

tile

 add_deposit = d_mineral_deposit
add_energy Adds a sum of energy to a country country
 add_energy = -100
add_engineering Adds Engineering resources to a planet planet
 add_engineering = 1
add_engineering_research Adds stored Engineering research points to a county country
 option = {
 	name = EXCELLENT
 	add_engineering_research = 1000
 }
add_event_chain_counter adds amount to event chain counter. country
 add_event_chain_counter = { 
 	event_chain = "vultaum_chain" 
 	counter = "vultaum_artifacts" 
 	amount = 1 
 			}
add_experience Adds specified amount of experience to specified skill on scope leader leader
 leader = { add_experience = 200 }
add_influence Adds influence to a county country
 owner = {
 	add_minerals = 100
 	} #countryscope
add_minerals Adds Minerals to a planet, tile or country country planet
 owner = {
 	add_minerals = -100
 	} #countryscope
add_mission_progress Adds progress to a mission ship?

fleet

 FROM = {
 	observation_outpost = { add_mission_progress = -0.2 }
 	}
add_modifier Gives a specific modifier to a planet, country, fleet, pop or ship. country fleet planet pop ship
 add_modifier = {
     modifier = "weak_magnetic_field"
     days = -1 # -1 = never expires
 }
add_monthly_resource_mult Adds multiple amount of monthly income of resource to country country

+ add_monthly_resource_mult = { + resource = physics_research + value = 36 + min = 600 + max = 3000 + }

add_opinion_modifier Gives an opinion modifier to an empire. country
 event_target:FirstSleeper = { 
 	add_opinion_modifier = { who = root modifier = opinion_war_in_heaven_ally } 
 }
add_physics Adds Physics resources to a planet planet
add_physics_research Adds stored Physics research points to a county country
 option = {
 	name = EXCELLENT
 	add_physics_research = 1000
 }
add_research_option Gives a specific tech to an empire and makes it always available for research. country
 option = {
 	name = story.221.a
 	owner = {
 		add_research_option = tech_crystal_armor_2
 		add_tech_progress = {
 		tech = tech_crystal_armor_2
 		progress = 0.25
 		}
 	}
 }
add_resource Adds a resource to a planet or tile planet

tile

 add_resource = {
 	resource = food
 	amount = 1
 	replace = yes
 }
add_ship_design Adds a ship design to a country! country
 add_ship_design = last_created_design
add_society Adds Society resources to a planet planet
add_society_research Adds stored Society research points to a county country
 option = {
 	name = EXCELLENT
 	add_society_research = 1000
 }
add_support Adds to a pop factions Support level pop?
 immediate = {
 	every_owned_pop = {
 		limit = {
 			exists = pop_faction
 		}
 		pop_faction = {
 			add_support = 100
 		}
 	}
 }
add_tech_progress Gives a specific modifier to a planet. country
 add_tech_progress = {
 	tech = tech_mine_living_metal
 	progress = 0.25
 }
add_threat Adds threat country

planet

 add_threat = {
 	who = controller
 	amount = 10 # scales to pops
 } #eventid=crisis.202
add_trait Adds a trait to a leader leader
 leader = { add_trait = leader_trait_carefree }
add_war_demand Adds a war demand to a rebel country country
 add_war_demand = {
 	type = "total_defeat"
 	parameter:country = prev
	warscore_cost = 75
 	target = this
 	enemy = prev
 }
assign_leader Assigns a leader to either a fleet, army, or pop faction country fleet
 assign_leader = last_created_leader
 set_location = event_target:wrecker_asteroid
begin_event_chain begins an event chain. country
 begin_event_chain = {
 	event_chain = "vultaum_chain"
 	target = THIS
 }
break break execution of effects  ???
 if = {
 	limit = {
 		owner = {
 			has_completed_event_chain_counter = {
 				event_chain = "mineral_planet_chain"
 				counter = "systems_visited"
 			}
 		}
 	}
 	owner = {
 		end_event_chain = "mineral_planet_chain"
 		country_event = { id = story.320 }
 	}
 	break = yes
 }
cancel_terraformation Cancels terraformation on the planet planet
change_country_flag changes the flag of a country  ???
change_dominant_species Changes the dominant species of the current Country country
change_government Change government in Empire. country
change_pc Change planet class of planet. planet
 change_pc = pc_continental
build_pop Creates a buildable pop on the scoped tile/planet planet create_pop = { species = <target / key> ethos = <random / target / { ethic = <key> ethic = <key> }> }
change_planet_size Adds/Removes onto the size of the planet. planet
change_pop_species Changes the species of a pop. pop
change_variable Changes a variable value country fleet leader planet star
clear_deposits Removes all deposits from a tile
clear_fleet_actions Clears all fleet actions for fleet on the right side of = fleet
clear_global_event_target clear a global event target  ???
clear_global_event_targets clear all global event targets  ???
clear_orders Removes all orders from a fleet. fleet
clear_uncharted_space Clears US for country country
country_add_ethic Adds an ethic to a country country
country_remove_ethic Removes an ethic from a country country
create_ambient_object Creates a new ambient object of type <type> at location <location>  ???
create_army Creates a new army planet
create_army_transport Creates a new army in space fleet
create_cluster creates a cluster centered around the specified spatial object  ???
create_colony Creates a colony planet
create_colony = {
	owner = last_created_country
	species = owner_main_species
	ethos = owner
}
create_country Creates a new country  ???
create_fleet Creates a new fleet  ???
create_leader Creates a new leader country
create_military_fleet Creates a military fleet with the designs of a specified country.  ???
create_mining_station Creates a mining station planet
create_point_of_interest Creates point of interest country planet pop ship
create_pop Creates a new pop planet
create_pop_faction creates a pop faction country
create_rebels Creates a new rebel country planet
create_research_station Creates a research station planet
create_sector Creates a sector with a specific capital planet, of a specific type, and with optional additional systems within the scoped country country create_sector = { capital = <target> type = <string> add = <target> add = <target>}
create_ship Creates a new ship fleet
create_ship_design Creates a new ship design  ???
create_spaceport creates a spaceport around planet planet
create_species Creates a new species any??
create_species = {
	name = random
	class = random
	portrait = random
	traits = random
	homeworld = planet
}
create_wormhole_station Creates a wormhole station star
declare_war Declare A War. country
declare_white_peace_with Declare white peace with target country. country
destroy_ambient_object Destroys an ambient object  ???
destroy_colony Destroys the colony on the planet planet
destroy_country Removes a flag from a country country
destroy_fleet Destroys fleet on the right side of =  ???
dismantle Dismantles a station fleet
enable_faction_of_type forces a country to evaluate potential factions of a specific type right now. this would otherwise occur once a month country
enable_special_project Enables a special research project for a country  ???
end_event_chain ends an event chain. country
enslave_pop Enslave/Emancipate pop pop
establish_communications Establish communications between empires. country
establish_communications_no_message Establish communications between empires. country
establish_contact Country establishes contact with another country. country
exile_leader_as Exiles the scoped country/fleet/army/pop faction's leader and saves them with a custom name leader country fleet
fleet_event fires a Fleet event fleet
force_faction_evaluation forces a pop to evaluate factions pop
give_technology Gives a specific tech to an empire. country
kill_leader Kills leaders of specified types. kill_leader = { type = general type = scientist etc. } country fleet leader planet ship
kill_pop Kills pop pop
kill_pop_faction Deletes a pop faction
leave_alliance Leave any alliance/federation with country country
load_parameters Clears current parameters and loads new parameters from target  ???
modify_species Creates a new modified species leader planet country pop modify_species = { species = <target> add_trait = <key, optional> remove_trait = <key, optional> ideal_planet_class = <target> }
order_forced_return Orders a fleet to move back into safe territory. fleet
pop_add_ethic Adds an ethic to a pop pop
pop_event fires a Pop event pop
pop_faction_event fires a Pop faction event
pop_migration Sets the migration speed of a pop. pop
pop_remove_ethic Removes an ethic to a pop pop
prevent_anomaly Sets if this planet will generate new anomalies. planet
purge Starts/stops purging pops planet pop
queue_actions Add actions to fleet's action queue fleet
recruitable Sets recruitable tag on leader. leader
reduce_hp Reduces the hitpoints of a ship by the points given ship
reduce_hp_percent Reduces the hitpoints of a ship by the percentage given ship
remove_ambient_object_flag Removes a flag from a AmbientObject
remove_army Removes scope army.
remove_blocker Removes blocker from tile. (bool)
remove_building Removes building on tile.
remove_country_flag Removes a flag from a country country
remove_fleet_flag Removes a flag from a fleet fleet
remove_global_flag Removes a flag from a country  ???
remove_leader_flag Removes a flag from a leader leader
remove_modifier Removes a specific modifier from a planet. country planet pop
remove_opinion_modifier Removes an opinion modifier to an empire. Removes an opinion held by the current scope country towards the one specified in "who" country
 remove_opinion_modifier = {
     who = ROOT
     modifier = opinion_primitive_violation
 }
remove_planet_flag Removes a flag from a planet planet
remove_point_of_interest removed point of interest. country
remove_pop_faction_flag Removes a flag from a pop pop
remove_pop_flag Removes a flag from a pop pop
remove_relation_flag removes a relation flag. country
remove_sector Removes a sector. country
remove_ship_flag Removes a flag from a ship ship
remove_spaceport_module Removes a spaceport module from a spaceport. Argument is either a spaceport module slot number or a spaceport module tag fleet planet
remove_star_flag Removes a flag from a star star
remove_trait Removes a trait from a leader leader
repair_ship Restores a damaged ship to its full HP ship
save_event_target_as save an event target  ???
save_global_event_target_as save a global event target  ???
set_advisor_active activate or deactivate an advisor country
set_age Changes the age of the leader leader
set_aggro_range Sets aggro range on a fleet or a country country fleet
set_aggro_range_measure_from Sets where aggro range is measured from on a fleet or a country. valid targets: self, return_point country fleet
set_ambient_object_flag Sets a flag on a AmbientObject
set_blocker Sets a specified blocker on tile.
set_building Adds a construction of specified building on tile.
set_capital Sets planet to capital of a country planet
set_controller Sets the controller of a planet fleet planet
set_country_flag Sets a flag on a country country
set_country_type Changes country type country
set_disable_at_health Set the amount of health that a ship disables at ship
set_disabled Used to enable or disable a ship ship
set_event_locked Locks a fleet actively disabling it to do anything. Remember to unlock. fleet
set_faction_hostility Sets hostility stance of a faction country
set_federation_leader Sets a country to lead a federation country
set_fleet_flag Sets a flag on a fleet fleet
set_fleet_stance Sets the stance of scope fleet. valid stances are aggressive, passive and evasive fleet
set_formation_scale set formation scale on a fleet fleet
set_global_flag Sets a global flag  ???
set_graphical_culture Sets country graphical culture country
set_heir Change the country heir. country
set_leader Sets a leader from a previously exiled leader associated by a custom name country fleet
set_leader_flag Sets a flag on a leader leader
set_location Sets the location of a fleet. fleet
set_mission Sets the current mission of an observation station fleet
set_name changes the name of a scope target country fleet leader planet ship star
set_owner Sets the owner of a planet or fleet. fleet planet
set_planet_flag Sets a flag on a planet planet
set_planet_health Sets the current health of a planet planet
set_planet_max_health Sets the maximum health of a planet planet
set_policy Sets a policy to a specific value  ???
set_pop_faction Makes a pop join a faction pop
set_pop_faction_flag Sets a flag on a pop pop
set_pop_flag Sets a flag on a pop pop
set_primitive Sets primitive status for a country country
set_primitive_age Sets a primitive age on a country country
set_relation_flag sets a relation flag. country
set_ring Adds or removes the ring around a planet planet
set_ruined Sets the ruined status of a building
set_ship_flag Sets a flag on a ship ship
set_skill Sets skill levels to scope leader leader
set_spaceport_level Sets the level of the spaceport fleet planet
set_spaceport_module Sets a spaceport module at specified slot fleet planet
set_star_flag Sets a flag on a star star
set_subject_of sets the scope country's overlord to target country
 set_subject_of = {
 	  who = root
 	  subject_type = protectorate
 }
set_support Sets a pop factions Support level
set_timed_ambient_object_flag Sets a timed flag on a ambient object fleet
set_timed_country_flag Sets a timed flag on a country country
set_timed_fleet_flag Sets a timed flag on a fleet (Not used in vanilla, but confirmed working) fleet
set_timed_global_flag Sets a timed global flag  ???
set_timed_planet_flag Sets a timed flag on a planet planet
set_timed_pop_faction_flag Sets a timed flag on a pop faction pop
set_timed_pop_flag Sets a timed flag on a pop pop
set_timed_relation_flag Sets a timed relation flag country
set_timed_ship_flag Sets a timed flag on a ship ship
set_timed_star_flag Sets a timed flag on a star star
set_tutorial_level changes the tutorial level of a human of a country. country
set_variable Sets a variable value country fleet leader planet star
ship_event fires a Ship event ship
spawn_system spawns system with position relative to scope, parameters are system, min_distance(0), max_distance(100) planet ship star
start_colony Starts a colony planet
surveyed Sets a planet as surveyed by a specific country planet
switch Switches effect based on triggers  ???
unassign_leader Unassigns a leader from scope fleet leader planet ship
while repeats contained effects until limit fails or count is reached  ???

Dump Export[edit]

Effects, dumped from the effects_doc ingame command.

Name Desc Scopes Target
tooltip just a tooltip country planet pop ship  ??? none
hidden_effect Effect not shown in tooltips  ???
custom_tooltip just a tooltip  ???
if a conditional effect  ???
country_event fires a Country event country
planet_event fires a Planet event planet none
random a random effect  ???
random_list a random effect  ???
every_owned_planet switches Scope to and goes through all owned planets country
random_owned_planet picks a random owned planet country
every_controlled_planet switches Scope to and goes through all controlled planets country
random_controlled_planet picks a random controlled planet country
create_ship_design Creates a new ship design  ???
change_government Change government in Empire. country
ship_event fires a Ship event ship
add_minerals Adds Minerals to a planet, tile or country country planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
add_society Adds Society resources to a planet planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
pop_event fires a Pop event pop
every_war_defender switches Scope to and goes through all defenders in a war with a specified enemy country
set_owner Sets the owner of a planet or fleet. fleet planet none
every_war_attacker switches Scope to and goes through all attackers in a war with a specified enemy country
random_war_defender switches Scope to and picks a random defender in a war with a specified enemy  ???
random_war_attacker switches Scope to and picks a random attacker in a war with a specified enemy  ???
give_technology Gives a specific tech to an empire. country
enable_special_project Enables a special research project for a country  ???
set_country_flag Sets a flag on a country country
set_planet_flag Sets a flag on a planet planet none
set_fleet_flag Sets a flag on a fleet fleet
set_ship_flag Sets a flag on a ship ship
remove_country_flag Removes a flag from a country country
remove_planet_flag Removes a flag from a planet planet none
remove_fleet_flag Removes a flag from a fleet fleet
remove_ship_flag Removes a flag from a ship ship
every_owned_ship switches Scope to and goes through all owned ships country
random_owned_ship picks a random owned ship country fleet
create_species Creates a new species  ???
create_country Creates a new country  ???
create_fleet Creates a new fleet  ???
create_army Creates a new army planet none
set_location Sets the location of a fleet. fleet
create_ship Creates a new ship fleet
set_primitive Sets primitive status for a country country capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
create_pop Creates a new pop planet none
create_colony Creates a colony planet none
set_capital Sets planet to capital of a country planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
change_pc Change planet class of planet. planet none
random_country Picks a random country  ??? this
random_pop Picks a random pop planet none
kill_pop Kills pop pop capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
enslave_pop Enslave/Emancipate pop pop capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
destroy_colony Destroys the colony on the planet planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
every_system_planet switches Scope to planet and goes through all planets in the system star
surveyed Sets a planet as surveyed by a specific country planet none
set_ring Adds or removes the ring around a planet planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
create_mining_station Creates a mining station planet none
create_research_station Creates a research station planet none
set_pop_flag Sets a flag on a pop pop
remove_pop_flag Removes a flag from a pop pop
every_owned_pop switches scope to pop and goes through all pops on planet or in country country planet none
set_name changes the name of a scope target country fleet leader planet ship star none
random_planet Executes on a random planet  ???
create_leader Creates a new leader country
fleet_event fires a Fleet event fleet
reduce_hp Reduces the hitpoints of a ship by the points given ship
reduce_hp_percent Reduces the hitpoints of a ship by the percentage given ship
repair_ship Restores a damaged ship to its full HP ship capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
destroy_country Removes a flag from a country country capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_variable Sets a variable value country fleet leader planet star none
remove_global_flag Removes a flag from a country  ???
set_global_flag Sets a global flag  ???
change_variable Changes a variable value country fleet leader planet star none
random_planet_within_border Picks a random planet within country border country
every_pop fires a Pop event  ???
every_country fires a Country event  ???
every_ship fires a Ship event  ???
every_planet Executes on every planet  ???
pop_add_ethic Adds an ethic to a pop pop
pop_remove_ethic Removes an ethic to a pop pop
pop_migration Sets the migration speed of a pop. pop
change_pop_species Changes the species of a pop. pop
create_rebels Creates a new rebel country planet none
cancel_terraformation Cancels terraformation on the planet planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_event_locked Locks a fleet actively disabling it to do anything. Remember to unlock. fleet capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
clear_orders Removes all orders from a fleet. fleet capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
order_forced_return Orders a fleet to move back into safe territory. fleet capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
declare_war Declare A War. country
set_star_flag Sets a flag on a star star
remove_star_flag Removes a flag from a star star
set_primitive_age Sets a primitive age on a country country
spawn_system spawns system with position relative to scope, parameters are system, min_distance(0), max_distance(100) planet ship star none
any_spaceport Picks any spaceport country planet none
any_research_station Picks any research station country planet none
any_mining_station Picks any mining station country planet none
random_research_station Picks a random research station planet none this
dismantle Dismantles a station fleet capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
random_mining_station Picks a random mining station planet none this
random_spaceport Picks a random spaceport planet none this
random_system Picks a random system  ??? this
random_system_within_border Picks a random system within border country this
random_army Picks a random army planet none
random_army_within_country Executes on a random army belonging to country country
set_advisor_active activate or deactivate an advisor country capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
save_event_target_as save an event target  ???
save_global_event_target_as save a global event target  ???
clear_global_event_target clear a global event target  ???
clear_global_event_targets clear all global event targets  ??? capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
break break execution of effects  ??? capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_tutorial_level changes the tutorial level of a human of a country. country
begin_event_chain begins an event chain.  ???
end_event_chain ends an event chain. country
queue_actions Add actions to fleet's action queue fleet
while repeats contained effects until limit fails or count is reached  ???
clear_fleet_actions Clears all fleet actions for fleet on the right side of = fleet
destroy_fleet Destroys fleet on the right side of =  ???
create_ambient_object Creates a new ambient object of type <type> at location <location>  ???
destroy_ambient_object Destroys an ambient object  ???
add_trait Adds a trait to a leader leader
remove_trait Removes a trait from a leader leader
modify_species Creates a new modified species country planet pop ship none
establish_contact Country establishes contact with another country. country
set_faction_hostility Sets hostility stance of a faction country
random_system_planet picks a random planet within system star
set_disable_at_health Set the amount of health that a ship disables at ship
set_building Adds a construction of specified building on tile.
remove_building Removes building on tile. capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
change_planet_size Adds/Removes onto the size of the planet. planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_blocker Sets a specified blocker on tile.
remove_blocker Removes blocker from tile. (bool) capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
every_tile Executes on every tile on planet planet none
random_tile Executes on a random tile on planet planet none
every_neighboring_tile Executes on every neighboring tile on planet
random_neighboring_tile Executes on a random neighboring tile on planet
set_disabled Used to enable or disable a ship ship capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
create_point_of_interest Creates point of interest country planet pop ship none
remove_point_of_interest removed point of interest. country
set_relation_flag sets a relation flag. country
remove_relation_flag removes a relation flag. country
random_moon Executes on all moons planet none
every_moon Executes on all moons planet none
every_system_in_cluster switches scope and goes through all systems in a cluster  ???
create_cluster creates a cluster centered around the specified spatial object  ???
kill_leader Kills leaders of specified types. kill_leader = { type = general type = scientist etc. } country fleet leader planet ship none
assign_leader Assigns a leader to either a fleet, army, or pop faction country fleet
country_add_ethic Adds an ethic to a country country
country_remove_ethic Removes an ethic from a country country
set_timed_country_flag Sets a timed flag on a country country
set_timed_fleet_flag Sets a timed flag on a fleet (Not used in vanilla, but confirmed working) fleet
set_timed_global_flag Sets a timed global flag  ???
set_timed_planet_flag Sets a timed flag on a planet planet none
set_timed_pop_flag Sets a timed flag on a pop pop
set_timed_relation_flag Sets a timed relation flag country
set_timed_ship_flag Sets a timed flag on a ship ship
set_timed_star_flag Sets a timed flag on a star star
remove_army Removes scope army. capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
prevent_anomaly Sets if this planet will generate new anomalies. planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
every_planet_within_border Executes on every planet within country border country
every_planet_army Picks every army planet none
every_army_within_country Executes on all armies belonging to country country
observation_outpost_owner Picks the observation station owner planet none this
observation_outpost Picks the observation station country planet none
clear_deposits Removes all deposits from a tile
every_rim_system Executes on every system on the galactic rim  ???
random_rim_system Executes on a random system on the galactic rim  ???
purge Starts/stops purging pops planet pop capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_planet_max_health Sets the maximum health of a planet planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_planet_health Sets the current health of a planet planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
remove_modifier Removes a specific modifier from a planet. country planet pop none
set_country_type Changes country type country
create_army_transport Creates a new army in space fleet
set_spaceport_module Sets a spaceport module at specified slot fleet planet none
create_spaceport creates a spaceport around planet planet none
set_spaceport_level Sets the level of the spaceport fleet planet capital controller from fromfrom leader none owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
switch Switches effect based on triggers  ???
set_age Changes the age of the leader leader capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
create_wormhole_station Creates a wormhole station star
set_pop_faction Makes a pop join a faction pop
create_pop_faction creates a pop faction country
set_support Sets a pop factions Support level capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_graphical_culture Sets country graphical culture country
set_formation_scale set formation scale on a fleet fleet
set_controller Sets the controller of a planet fleet planet none
force_faction_evaluation forces a pop to evaluate factions pop
enable_faction_of_type forces a country to evaluate potential factions of a specific type right now. this would otherwise occur once a month country
clear_uncharted_space Clears US for country country
every_owned_leader switches Scope to and goes through all owned leader country
random_owned_leader picks a random owned leader country
establish_communications Establish communications between empires. country
pop_faction_event fires a Pop faction event
set_leader_flag Sets a flag on a leader leader
remove_leader_flag Removes a flag from a leader leader
load_parameters Clears current parameters and loads new parameters from target  ??? prevprev
set_heir Change the country heir. country
set_pop_faction_flag Sets a flag on a pop pop
remove_pop_faction_flag Removes a flag from a pop pop
set_timed_pop_faction_flag Sets a timed flag on a pop faction pop
declare_white_peace_with Declare white peace with target country. country
leave_alliance Leave any alliance/federation with country country capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
create_sector Creates a sector country
random_owned_pop Picks a random pop country planet none
set_policy Sets a policy to a specific value  ???
recruitable Sets recruitable tag on leader. leader capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
closest_system switches scope to closest system that passes limit  ???
random_sector Executes on a random sector in the country country
every_sector Executes on every sector in the country country
random_owned_fleet switches Scope to and goes through random owned fleet country
random_ambient_object executes effects on every ambient object that passes limit  ???
random_system_ambient_object executes effects on every ambient object in system that passes limit star
every_ambient_object executes effects on every ambient object that passes limit  ???
every_system_ambient_object executes effects on every ambient object in system that passes limit star
set_ambient_object_flag Sets a flag on a AmbientObject
set_timed_ambient_object_flag Sets a timed flag on a ambient object fleet
remove_ambient_object_flag Removes a flag from a AmbientObject
every_fleet_in_system switches scope to and goes through all fleets in the system star
random_fleet_in_system switches scope to a random fleet in system star
set_aggro_range Sets aggro range on a fleet or a country country fleet capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_fleet_stance Sets the stance of scope fleet. valid stances are aggressive, passive and evasive fleet
set_aggro_range_measure_from Sets where aggro range is measured from on a fleet or a country. valid targets: self, return_point country fleet
set_ruined Sets the ruined status of a building capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
random_neighbor_country Picks a random neighbor country  ??? this
establish_communications_no_message Establish communications between empires. country
set_subject_of sets the scope country's overlord to target country
unassign_leader Unassigns a leader from scope fleet leader planet ship none
exile_leader_as Exiles a leader and saves him associated to a custom name country fleet capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
set_leader Sets a leader from a previously exiled leader associated by a custom name country fleet capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
add_skill Adds amount of skill levels to scope leader leader
set_skill Sets skill levels to scope leader leader
every_neighbor_system Executes on every neighboring system star
random_neighbor_system Executes on a random neighboring system star
set_federation_leader Sets a country to lead a federation country
start_colony Starts a colony planet none
remove_opinion_modifier Removes an opinion modifier to an empire. country
add_war_demand Adds a war demand to a rebel country country
change_country_flag changes the flag of a country  ???
every_pop_faction Executes on every pop faction of country country
random_pop_faction Executes on a random pop faction of country country
kill_pop_faction Deletes a pop faction capital controller from fromfrom leader owner prev prevprev prevprevprev prevprevprevprev random root solar_system this
add_threat Adds threat country planet none
remove_sector Removes a sector. country prevprevprevprev
set_mission Sets the current mission of an observation station fleet
remove_spaceport_module Removes a spaceport module from a spaceport. Argument is either a spaceport module slot number or a spaceport module tag fleet planet none
change_dominant_species Changes the dominant species of the current Country country
create_military_fleet Creates a military fleet with the designs of a specified country.  ???


References[edit]


Modding
Static modding DefinesStatic modifiersMapSpeciesTraitsEthosGovernmentsEmpiresPoliciesEdictsTechnologyBuildingsShipsFleetsEventsCrisisAnomaliesAgenda
Dynamic modding EffectsConditionsScopesModifiersGameplayDecisionsObjectivesAI
Media/localisation Maya exporterGraphicsPortraitsFlagsEvent picturesEvent soundsInterfaceIconsMusicLocalisation
Other Console commandsSave-game editingSteam Workshop