[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, it will contain either '1' in case of success or '0' in case of failure.
<RefObj> = A variable containing a sector.
Checks, if the as <RefObj> selected sector is a core sector.
The sector security class determines the rank the player needs to enter that sector and to dock to stations in it. The player need a higher rank to enter core than border sectors. All race sectors are either core or border sectors. Unknown sectors have no security class.
$max.x = get max sectors in x direction
$max.y = get max sectors in y direction
$x = 0
while $x < $max.x
|$y = 0
|while $y < $max.y
||$sector = get sector from universe index: x=$x, y=$y
||if $sector -> exists
|||if not $sector -> is core sector
||||$sector -> set sector to core security [TRUE]
||inc $y =
|inc $x =
This will check every sector in the universe. If a sector is not a core (= border) sector the sector security class will be changed to core.
<RefObj> set sector to core security <Var/Boolean>
- »» Universe and Sector Commands
<RetVar/IF><RefObj> is core sector