Difference between revisions of "Full List of Scopes"

From Europa Universalis 3 Wiki
Jump to navigation Jump to search
m (1 revision: Import from the EU3 wiki)
m (→‎See also: Fixing forum links)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Needwiki}}{{IN}}
+
{{HTTT}}
== Scopes ==
 
 
 
 
 
Originally taken from [http://forum.paradoxplaza.com/forum/showthread.php?t=361849].
 
 
 
 
 
 
Several commands can change scope. Whenever the scope is changed, every effect from then on will refer to the new country or province. Some effects accept a THIS as an argument, which refers to the country or province that received the event.
 
Several commands can change scope. Whenever the scope is changed, every effect from then on will refer to the new country or province. Some effects accept a THIS as an argument, which refers to the country or province that received the event.
  
 +
===Country Scope===
 +
{| class="wikitable"
 +
!'''Version'''
 +
!'''Name'''
 +
!'''Description'''
 +
!'''Syntax'''
 +
|-
 +
|{{g|EU3}}
 +
|ally
 +
|Changes the current scope to any allied country.
 +
|ally = { effects… }
 +
|-
 +
|{{g|EU3}}
 +
|any_country
 +
|Changes the current scope to any available countries.
 +
|any_country = { effects… }
 +
|-
 +
|{{g|EU3}}
 +
|random_country
 +
|Changes the current scope to any available country.
 +
|random_country = { effects… }
 +
|-
 +
|{{g|EU3}}
 +
|emperor
 +
|Changes the current scope to the [[Holy Roman Emperor]].
 +
|emperor = { effects… }
 +
|-
 +
|{{g|EU3}}
 +
|controller
 +
|Changes the current scope from the current province to the country that controls it.
 +
|controller = { effects… }
 +
|-
 +
|{{g|EU3}}
 +
|owner
 +
|Changes the current scope from the current province to the country that owns it.
 +
|owner = { effects… }
 +
|-
 +
|{{g|EU3}}
 +
|<nowiki>[country tag]</nowiki>
 +
|Changes the current scope to a specific country, chosen by its tag.
 +
|<nowiki>[TAG] = { effects… }</nowiki>
 +
|-
 +
|{{g|NA}}
 +
|FROM
 +
|Changes the current scope to the country that triggered the current event.
 +
|FROM = { effects… }
 +
|-
 +
|{{g|NA}}
 +
|revolution_target
 +
|Changes the current scope to a country that has been chosen as a revolution target.
 +
|revolution_target = { effects… }
 +
|-
 +
|{{g|NA}}
 +
|local_enemy
 +
|Changes the current scope from the current province to an enemy country with troops in it.
 +
|local_enemy = { effects… }
 +
|-
 +
|{{g|NA}}
 +
|any_neighbor_country
 +
|Changes the current scope to any available neighboring countries.
 +
|any_neighbor_country = { effects… }
 +
|-
 +
|{{g|NA}}
 +
|overlord
 +
|Changes the current scope either to the senior partner in a [[PU]] with the current country or to its overlord if it’s a [[vassal]].
 +
|overlord = { effects… }
 +
|-
 +
|{{g|IN}}
 +
|any_known_country
 +
|
 +
|
 +
|-
 +
|{{g|IN}}
 +
|crusade_target
 +
|Changes the current scope to the country currently targeted by a crusade.
 +
|crusade_target = { effects… }
 +
|-
 +
|{{g|IN}}
 +
|any_elector
 +
|Changes the current scope to any elector in the HRE.
 +
|
 +
|-
 +
|{{g|IN}}
 +
|rival_countries
 +
|Changes the current scope to any [[rival]] country.
 +
|rival_countries = { effects… }
 +
|-
 +
|{{g|IN}}
 +
|threat_countries
 +
|Changes the current scope to any country that is currently perceived as a [[threat]].
 +
|threat_countries = { effects… }
 +
|-
 +
|{{g|HTTT}}
 +
|any_sphere
 +
|True if any country in the [[SoI]] evaluates true
 +
|any_sphere = { triggers...}
 +
|-
 +
|{{g|HTTT}}
 +
|random_sphere
 +
|Performs the effects for a random country in the SoI
 +
| random_sphere = { effects...}
 +
|-
 +
|{{g|HTTT}}
 +
|league_leader
 +
|Changes the scope to the country's [[trade league]] leader.
 +
|league_leader = ( effects...)
 +
|-
 +
|{{g|HTTT}}
 +
|hre_majority
 +
|
 +
|
 +
|-
 +
|{{g|HTTT}}
 +
|any_core
 +
|Change the scope from a province to any countries that have a [[core]] on it.
 +
|any_core = { effects }
 +
|}
  
===COUNTRY SCOPE===
+
===Province Scope===
 
+
{| class="wikitable"
 
+
!'''Version'''
'''''EU3 1.3:'''''
+
!'''Name'''
 
+
!'''Description'''
 
+
!'''Syntax'''
'''ally'''
+
|-
 
+
|{{g|EU3}}
Changes the current scope to any allied country.
+
|capital_scope
 
+
|Changes the current scope from the current country to its [[capital]].
Scope:country
+
|capital_scope = { effects… }
 
+
|-
Syntax:ally = { effects… }
+
|{{g|EU3}}
 
+
|random_owned
 
+
|Changes the current scope from the current country to any owned province
'''any_country'''
+
|random_owned = { effects… }
 
+
|-
Changes the current scope to any available countries.
+
|{{g|EU3}}
 
+
|any_neighbor_province
Scope:country
+
|Changes the current scope to any neighboring province.
 
+
|any_neighbor_province = { effects… }
Syntax:any_country = { effects… }
+
|-
 
+
|{{g|EU3}}
 
+
|random_neighbor_province
'''random_country'''
+
|
 
+
|
Changes the current scope to any available country.
+
|-
 
+
|{{g|EU3}}
Scope:country
+
|<nowiki>[province ID]</nowiki>
 
+
|Changes the current scope to a specific province, chosen by its ID number.
Syntax:random_country = { effects… }
+
|:<nowiki>[ID] = { effects… }</nowiki>
 
+
|-
 
+
|{{g|NA}}
'''emperor'''
+
|any_owned
 
+
|Changes the current scope from the current country to any owned provinces, and affects them all.
Changes the current scope to the emperor.
+
|any_owned = { effects… }
 
+
|-
Scope:country
+
|{{g|NA}}
 
+
|random_center_of_trade
Syntax:emperor = { effects… }
+
|Changes the current scope from the current country to any province with a [[COT]] (only the ones that you own or any of them?).
 
+
|random_center_of_trade = { effects… }
 
+
|-
'''controller'''
+
|{{g|NA}}
 
+
|heretic
Changes the current scope from the current province to the country that controls it.
+
|Changes the current scope to a province with a [[religion]] different from the state religion.
 
+
|heretic = { effects… }
Scope:country
+
|-
 
+
|{{g|NA}}
Syntax:controller = { effects… }
+
|random_empty_neighbor_province
 
+
|Changes the current scope to any empty neighboring province.
 
+
|random_empty_neighbor_province = { effects… }
'''owner'''
+
|-
 
+
|{{g|IN}}
Changes the current scope from the current province to the country that owns it.
+
|<nowiki>[region name]</nowiki>
 
+
|Needs to be tested to make sure, but I guess it changes the scope to a province in the specified region.
Scope:country
+
|<nowiki>[region name] = { effects… }</nowiki>
 
+
|-
Syntax:owner = { effects… }
+
|{{g|IN}}
 
+
|any_owned_province
 
+
|Changes the current scope from the current country to any owned provinces, and checks them all.
'''<nowiki>[country tag]</nowiki>'''
+
|any_owned_province = { triggers… }
 
+
|-
Changes the current scope to a specific country, chosen by its tag.
+
|{{g|IN}}
 
+
|any_center_of_trade
Scope:country
+
|
 
+
|
Syntax:<nowiki>[TAG] = { effects… }</nowiki>
+
|-
 
+
|{{g|HTTT}}
 
+
|any_province
'''''Napoleon’s Ambition:'''''
+
|Changes the current scope from the current country to any owned provinces, and checks them all.
 
+
|any_province = { effects... }
 
+
|-
'''FROM'''
+
|{{g|HTTT}}
 
+
|any_core
Changes the current scope to the country that triggered the current event.
+
|Change the scope from a country to all of its core provinces (owned and unowned).
 
+
| any_core = { effects }
Scope:country
+
|}
 
 
Syntax:FROM = { effects… }
 
 
 
 
 
'''revolution_target'''
 
 
 
Changes the current scope to a country that has been chosen as a revolution target..
 
 
 
Scope:country
 
 
 
Syntax:revolution_target = { effects… }
 
 
 
 
 
'''local_enemy'''
 
 
 
Changes the current scope from the current province to an enemy country with troops in it.
 
 
 
Scope:country
 
 
 
Syntax:local_enemy = { effects… }
 
 
 
 
 
'''any_neighbor_country'''
 
 
 
Changes the current scope to any available neighboring countries.
 
 
 
Scope:country
 
 
 
Syntax:any_neighbor_country = { effects… }
 
 
 
 
 
'''overlord'''
 
 
 
Changes the current scope either to the senior partner in a PU with the current country or to its overlord if it’s a vassal.
 
 
 
Scope:country
 
 
 
Syntax:overlord = { effects… }
 
 
 
 
 
'''''In Nomine 3.0:'''''
 
 
 
 
 
'''any_known_country'''
 
 
 
 
 
'''crusade_target'''
 
 
 
Changes the current scope to the country currently targeted by a crusade.
 
 
 
Scope:country
 
 
 
Syntax:crusade_target = { effects… }
 
 
 
 
 
'''any_elector'''
 
 
 
Changes the current scope to any elector in the HRE.
 
 
 
Scope:country
 
 
 
Syntax:any_elector = { effects… }
 
 
 
 
 
'''''In Nomine 3.1:'''''
 
 
 
 
 
'''rival_countries'''
 
 
 
Changes the current scope to any rival country.
 
 
 
Scope:country
 
 
 
Syntax:rival_countries = { effects… }
 
 
 
 
 
'''threat_countries'''
 
 
 
Changes the current scope to any country that is currently perceived as a threat.
 
 
 
Scope:country
 
 
 
Syntax:threat_countries = { effects… }
 
 
 
 
 
'''''Heir to the Throne 4.0:'''''
 
 
 
 
 
'''any_sphere'''
 
 
 
True if any country in the SoI evaluates true
 
 
 
Scope: Country
 
 
 
Syntax: any_sphere = { triggers...}
 
 
 
 
 
'''random_sphere'''
 
 
 
Performs the effects for a random country in the SoI
 
 
 
Scope: Country
 
 
 
Syntax: random_sphere = { effects...}
 
 
 
 
 
'''league_leader'''
 
 
 
Changes the scope to the country's trade league leader.
 
 
 
Scope: Country
 
 
 
Syntax: league_leader = { effects...)
 
 
 
 
 
'''hre_majority'''
 
 
 
 
 
'''any_core'''
 
 
 
Change the scope from a province to any countries that have a core on it.
 
 
 
Scope : Country
 
 
 
Syntax : any_core = { effects }
 
 
 
===PROVINCE SCOPE===
 
 
 
 
 
'''''EU3 1.3:'''''
 
 
 
 
 
'''capital_scope'''
 
 
 
Changes the current scope from the current country to its capital.
 
 
 
Scope:province
 
 
 
Syntax:capital_scope = { effects… }
 
 
 
 
 
'''random_owned'''
 
 
 
Changes the current scope from the current country to any owned province.
 
 
 
Scope:province
 
 
 
Syntax:random_owned = { effects… }
 
 
 
 
 
'''any_neighbor_province'''
 
 
 
Changes the current scope to any neighboring province.
 
 
 
Scope:province
 
 
 
Syntax:any_neighbor_province = { effects… }
 
 
 
 
 
'''random_neighbor_province'''
 
 
 
 
 
'''<nowiki>[province ID]</nowiki>'''
 
 
 
Changes the current scope to a specific province, chosen by its ID number.
 
 
 
Scope:province
 
 
 
Syntax:<nowiki>[ID] = { effects… }</nowiki>
 
 
 
 
 
'''''Napoleon’s Ambition:'''''
 
 
 
 
 
'''any_owned'''
 
 
 
Changes the current scope from the current country to any owned provinces, and affects them all.
 
 
 
Scope:province
 
 
 
Syntax:any_owned = { effects… }
 
 
 
 
 
'''random_center_of_trade'''
 
 
 
Changes the current scope from the current country to any province with a COT (only the ones that you own or any of them?).
 
 
 
Scope:province
 
 
 
Syntax:random_center_of_trade = { effects… }
 
 
 
 
 
'''heretic'''
 
 
 
Changes the current scope to a province with a religion different from the state religion.
 
 
 
Scope:province
 
 
 
Syntax:heretic = { effects… }
 
 
 
 
 
'''random_empty_neighbor_province'''
 
 
 
Changes the current scope to any empty neighboring province.  'empty' might include ocean/sea/lake/wasteland provinces (bug fixed in HttT 4/29 beta patch).
 
 
 
Scope:province
 
 
 
Syntax:random_empty_neighbor_province = { effects… }
 
 
 
 
 
'''''In Nomine 3.0:'''''
 
 
 
 
 
'''<nowiki>[region name]</nowiki>'''
 
 
 
Needs to be tested to make sure, but I guess it changes the scope to a province in the specified region.
 
 
 
Scope:province
 
 
 
Syntax:<nowiki>[region name] = { effects… }</nowiki>
 
 
 
 
 
'''any_owned_province'''
 
 
 
Changes the current scope from the current country to any owned provinces, and checks them all.
 
 
 
Scope:province
 
 
 
Syntax:any_owned_province = { triggers… }
 
 
 
 
 
'''any_center_of_trade'''
 
 
 
 
 
'''''Heir to the Throne 4.0'''
 
 
 
 
 
'''any_province'''
 
 
 
Changes the current scope from the current country to any owned provinces, and checks them all.
 
 
 
Scope:province
 
 
 
Syntax:any_province = { effects... }
 
 
 
 
 
'''any_core'''
 
 
 
Change the scope from a country to all of its core provinces (owned and unowned).
 
 
 
Scope : province
 
 
 
Syntax : any_core = { effects }
 
  
 
==See also==
 
==See also==
* [[Structure of events]]
+
*[[Structure of events]]
 +
*[[forum:361849|Source]]
  
 
[[Category:Event scripting]]
 
[[Category:Event scripting]]

Latest revision as of 18:22, 30 March 2015

This article is accurate for the latest versions of EU3, Napoleon’s Ambition, In Nomine and Heir to the Throne 4.1b.
Please help update this page to include information on the DW expansion.

Several commands can change scope. Whenever the scope is changed, every effect from then on will refer to the new country or province. Some effects accept a THIS as an argument, which refers to the country or province that received the event.

Country Scope

Version Name Description Syntax
EU3.gif ally Changes the current scope to any allied country. ally = { effects… }
EU3.gif any_country Changes the current scope to any available countries. any_country = { effects… }
EU3.gif random_country Changes the current scope to any available country. random_country = { effects… }
EU3.gif emperor Changes the current scope to the Holy Roman Emperor. emperor = { effects… }
EU3.gif controller Changes the current scope from the current province to the country that controls it. controller = { effects… }
EU3.gif owner Changes the current scope from the current province to the country that owns it. owner = { effects… }
EU3.gif [country tag] Changes the current scope to a specific country, chosen by its tag. [TAG] = { effects… }
NA.gif FROM Changes the current scope to the country that triggered the current event. FROM = { effects… }
NA.gif revolution_target Changes the current scope to a country that has been chosen as a revolution target. revolution_target = { effects… }
NA.gif local_enemy Changes the current scope from the current province to an enemy country with troops in it. local_enemy = { effects… }
NA.gif any_neighbor_country Changes the current scope to any available neighboring countries. any_neighbor_country = { effects… }
NA.gif overlord Changes the current scope either to the senior partner in a PU with the current country or to its overlord if it’s a vassal. overlord = { effects… }
IN.gif any_known_country
IN.gif crusade_target Changes the current scope to the country currently targeted by a crusade. crusade_target = { effects… }
IN.gif any_elector Changes the current scope to any elector in the HRE.
IN.gif rival_countries Changes the current scope to any rival country. rival_countries = { effects… }
IN.gif threat_countries Changes the current scope to any country that is currently perceived as a threat. threat_countries = { effects… }
HTTT.png any_sphere True if any country in the SoI evaluates true any_sphere = { triggers...}
HTTT.png random_sphere Performs the effects for a random country in the SoI random_sphere = { effects...}
HTTT.png league_leader Changes the scope to the country's trade league leader. league_leader = ( effects...)
HTTT.png hre_majority
HTTT.png any_core Change the scope from a province to any countries that have a core on it. any_core = { effects }

Province Scope

Version Name Description Syntax
EU3.gif capital_scope Changes the current scope from the current country to its capital. capital_scope = { effects… }
EU3.gif random_owned Changes the current scope from the current country to any owned province random_owned = { effects… }
EU3.gif any_neighbor_province Changes the current scope to any neighboring province. any_neighbor_province = { effects… }
EU3.gif random_neighbor_province
EU3.gif [province ID] Changes the current scope to a specific province, chosen by its ID number. :[ID] = { effects… }
NA.gif any_owned Changes the current scope from the current country to any owned provinces, and affects them all. any_owned = { effects… }
NA.gif random_center_of_trade Changes the current scope from the current country to any province with a COT (only the ones that you own or any of them?). random_center_of_trade = { effects… }
NA.gif heretic Changes the current scope to a province with a religion different from the state religion. heretic = { effects… }
NA.gif random_empty_neighbor_province Changes the current scope to any empty neighboring province. random_empty_neighbor_province = { effects… }
IN.gif [region name] Needs to be tested to make sure, but I guess it changes the scope to a province in the specified region. [region name] = { effects… }
IN.gif any_owned_province Changes the current scope from the current country to any owned provinces, and checks them all. any_owned_province = { triggers… }
IN.gif any_center_of_trade
HTTT.png any_province Changes the current scope from the current country to any owned provinces, and checks them all. any_province = { effects... }
HTTT.png any_core Change the scope from a country to all of its core provinces (owned and unowned). any_core = { effects }

See also