Scopes

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.

Scopes allow to select entities in order to check for conditions or apply commands.

Scopes always have a bracketed block on the right side:

<scope_name> = {
	#Stuff to execute in the scope.
}

But not all bracketed blocks are scopes: some are function blocks (option, trigger, mean_time_to_happen,...), operators (AND), flow control statements (if, limit), or clause for complex conditions or commands (create_country, ...).

There are 13 basic types of scopes: country, sector, system (aka star,galactic_object), planet, ambient_object, fleet, ship, pop, pop_faction, leader, war, army, tile. (needs confirmation)

List of Scopes[edit]

Scope Used in vanilla Description Trigger Effect From scope
any_attacker Scopes to the attacker and all co-belligerents in this war. X War
any_bordering_country Scopes to all countries whose borders are near this system. X System
any_controlled_planet Scopes to all planets owned or occupied by this country. X Country
any_country Scopes to all countries in the galaxy. X Any
any_defender Scopes to the defender and all co-belligerents in this war. X War
any_moon Scopes to all of this planet's moons. X Planet
any_neighbor_country Scopes to all countries bordering this one. X Country
any_neighbor_system Scopes to all systems near this one. X System
any_neighboring_tile Scopes to all tiles adjacent to this one. X Tile
any_owned_fleet Scopes to all fleets belonging to this country. X Country
any_owned_leader Scopes to all of this country's leaders. X Country
any_owned_planet Scopes to all planets owned by this country. X Country
any_owned_pop Scopes to all pops belonging to this country. X Country
any_owned_ship Scopes to all ships and stations belonging to this country. X Country
any_planet Scopes to all planets in this system (unlike random_ and every_planet, which search all planets in the galaxy). X System
any_planet_within_border Scopes to all planets within this country's borders. X Country
any_pop Scopes to all pops on this planet. X Planet
any_sector Scopes to of this country's sectors. X Country
any_ship Scopes to all ships in this fleet. X Fleet
any_ship_in_system Scopes to ships in this system. X System
any_system Scopes to all systems in the galaxy. X Any
any_system_within_border Scopes to any system within the current country's borders. X Country
any_tile Scopes to all tiles on this planet. X Planet
any_war Scopes to all wars involving this country. X Country
best_tile_for_pop Scopes to the best tile for a pop on this planet. X Planet
capital_scope Scopes to the capital planet of this country. Country
closest_system Scopes to the closest system to this planet/system/fleet Planet/System/Fleet
every_country Scopes to all countries in the galaxy. X Any
every_fleet_in_system Scopes to every fleet in this system. X System
every_neighboring_tile Scopes to all tiles adjacent to this one. X Tile
every_owned_fleet Scopes to all fleets owned by this country. X Country
every_owned_planet Scopes to all planets owned by this country. X Country
every_owned_leader Scopes to all leaders owned by this country. X Country
every_owned_pop Scopes to all pops belonging to this country. X Country
every_pop Executes enclosed effects for every pop in the game that meet the limit criteria. X Any
every_owned_ship Scopes to all ships owned by this country. X Country
every_planet Scopes to all planets in the galaxy. X Any
every_planet_within_border Scopes to all planets within country borders. X Country
every_spaceport Scopes to all spaceports in the galaxy. X Planet
every_planet_army Scopes to all armies on this planet. Doesn't work if you do remove_army = yes, that stops the loop. Use while={limit={has_army=yes}}random_army={remove_army=yes}} instead for deleting all armies on a planet. X Planet
every_pop_faction Scopes to all factions in this country. X Country
every_system_ambient_object Scopes to all ambient objects in this system. X System
every_system_planet Scopes to all planets in this system. X System
every_tile Scopes to all tiles on this planet. X Planet
fleet Scopes to the fleet this ship belongs to. Ship
last_created_ambient_object Scopes to the last created ambient_object. X Any
last_created_country Scopes to the last created country. X Any
last_created_fleet Scopes to the last created fleet. X Any
last_created_leader Scopes to the last created leader. X Any
last_created_pop Scopes to the last created pop. X Any
last_created_species Scopes to the last created species. X Any
leader Scopes to the leader of this ship/planet/country. X Ship/Planet/Country
orbit Scopes to the planet this fleet is orbiting. (does not work for ship!) Fleet
orbital_deposit_tile Scopes to the orbital tile of this planet. Planet
owner Scopes to the owner country of this ship or Pop. Ship, Pop
owner_species Scopes to the owner species of this country. X Country
overlord Scopes to the country's overlord, if it has one. Country
random_army Scopes to a random army. X Any
random_country Scopes to a random country. X Any
random_moon Scopes to a random moon orbiting this planet. X Planet
random_neighbor_country Scopes to a random country bordering this one. X Country
random_neighboring_tile Scopes to a random tile adjacent to this one. X Tile
random_owned_fleet Scopes to a random fleet belonging to this country. X Country
random_owned_leader Scopes to a random leader belonging to this country. X Country
random_owned_planet Scopes to a random planet owned by this country. X Country
random_owned_pop Scopes to a random pop belonging to this country. X Country
random_owned_ship Scopes to a random ship or station belonging to this country. X Country
random_fleet_in_system Scopes to a random fleet or station belonging to this system. X Country
random_planet Scopes to a random planet anywhere in the galaxy. X Any
random_pop Scopes to a random pop on this planet. X Planet
random_pop_faction Scopes to a random faction in this country. X Country
random_rim_system Scopes to a random system on the outer rim of the galaxy. X Any
random_sector Scopes to a random country sector. X Country
random_system Scopes to a random system anywhere in the galaxy. X Any
random_system_within_border Scopes to a random system within the countries borders. X Country
random_system_ambient_object Scopes to a random ambient object in this system. X System
random_system_planet Scopes to a random planet in this system. X System
random_tile Scopes to a random tile on this planet. X Planet
solar_system Scopes to system this country/ship/planet is in. Country/Ship/Planet
space_owner Scopes to owning country of this system. System
pop_faction Scopes to the faction of this pop pop
planet Scopes to the planet of a pop pop
home_planet Scopes to the home planet of species (Will use primary species if used on planet) country, species
observation_outpost_owner Scopes to the owner of the observation outpost of a planet planet
observation_outpost Scopes to the observation outpost of a planet planet

References[edit]


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