So i want to check if a neighbor system is_inside_nebula because i want my Home system spawn inside or close to a nebula.
I did this:
On game start it has no errors, so the syntax seems ok.
But when i start a new game i get this:
I have no idea what is wrong
Btw "planet" seems to be the only scope that works in this case, without getting a "wrong scope" or "cannot find" error
I did this:
Code:
neighbor_system = {
distance = { min = 1 max = 50 }
trigger = {
planet = {
is_inside_nebula = yes
}
}
initializer = "neighbor_nosferatu_first_colony"
}
On game start it has no errors, so the syntax seems ok.
But when i start a new game i get this:
Code:
[11:16:02][trigger_impl.cpp:577]: Script Error: Invalid context switch[planet], file: common/solar_system_initializers/nosferatu_prescripted_species_systems.txt line: 247, Scope:
type=galactic_object
id=92
random={ 553860158 553860158 }
root={
type=galactic_object
id=512
random={ 582900867 582900867 }
}
from={
type=galactic_object
id=512
random={ 582900867 582900867 }
}
prev={
type=galactic_object
id=1
random={ 1794204805 1794204805 }
root={
type=galactic_object
id=512
random={ 582900867 582900867 }
}
from={
type=galactic_object
id=512
random={ 582900867 582900867 }
}
prev={
type=galactic_object
id=512
random={ 582900867 582900867 }
}
}
I have no idea what is wrong
Btw "planet" seems to be the only scope that works in this case, without getting a "wrong scope" or "cannot find" error