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:
gives the error:
Whereas if you do this in a scope (in this case sector-scope), you get:
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?
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?