• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

allocater

Second Lieutenant
25 Badges
May 17, 2016
135
69
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sword of Islam
  • Stellaris: Federations
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Surviving Mars
  • Knights of Honor
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis III: Collection
  • Cities: Skylines
  • Ancient Space
So there are these scopes. But what do you call it if you are not in a scope?

For example in a planet_edict, you get error messages not referencing a scope:

Code:
planet_edict = {
   name = "scopetester"
   influence_cost = 1
   scopetestererror = 7
   add_minerals = 9
}

gives the error:

Code:
[14:06:18][persistent.cpp:34]: Error: "Unexpected token: scopetestererror, near line: 240
" in file: "common/edicts/test_edicts.txt" near line: 240
[14:06:18][persistent.cpp:34]: Error: "Unexpected token: add_minerals, near line: 241
" in file: "common/edicts/test_edicts.txt" near line: 241

Whereas if you do this in a scope (in this case sector-scope), you get:

Code:
every_sector = {
   scopetestererror = 3
   add_minerals = 4
}

Code:
[14:06:19][effect.cpp:314]: Invalid Scope type for effect add_minerals in events/test_events.txt line : 176
[14:06:20][effect_impl.cpp:411]: Error in scripted effect, cannot find: scopetestererror

The different error messages tell me, we are in two different environments. What do we call the first environment? Scope-less-Environment? Declaration-Mode, Definition-Context?