EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RefObj> set sector to core security <Var/Boolean>
Post new topic This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic
Author Message
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 20260 on topic

Thank you for registering your game
PostPosted: Thu, 4. Aug 11, 18:35    Post subject: <RefObj> set sector to core security <Var/Boolean> Reply with quote Print

<RefObj> set sector to core security <Var/Boolean>


<RefObj> = A variable containing a sector.
<Var/Boolean> = A TRUE or FALSE value or its representing number 1 or 0.


This set's the sector security class of the as <RefObj> selected sector to core if <Var/Boolean> = [TRUE] or to border if <Var/Boolean> = [FALSE].

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.


Example:

$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]
|||end
||end
||inc $y =
|end
|inc $x =
end
return null

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.


Related Commands:

<RetVar/IF><RefObj> is core sector


Command Location:


Back to top
View user's profile Send private message Visit poster's website
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 20260 on topic

Thank you for registering your game
PostPosted: Mon, 3. Oct 11, 22:31    Post subject: [TiP][49] 305331 Reply with quote Print

<RefObj> set sector to core security <Var/Boolean>


<RefObj> = Eine Variable, die einen Sektor enthält.
<Var/Boolean> = Ein TRUE (wahr) oder FALSE (falsch) Wert oder seine entsprechende Ziffer 1 oder 0.


Dies ändert die Sicherheitszone des als <RefObj> ausgewählten Sektors zum Kernsektor, wenn <Var/Boolean> = [TRUE] oder zum Grenzsektor wenn <Var/Boolean> = [FALSE].

Die Sicherheitszone eines Sektors bestimmt den Rang, den der Spieler benötigt, um diesen Sektor zu betreten und an Stationen anzudocken. Um Kernsektoren zu betreten, benötigt der Spieler einen höheren Rang als für Grenzsektoren. Alle Völkersektoren sind entweder Kern- oder Grenzsektoren. Unbekannte Sektoren gehören keiner Sicherheitszone an.


Beispiel:

$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]
|||end
||end
||inc $y =
|end
|inc $x =
end
return null

Dies überprüft jeden Sektor im Universum und ändert die Sicherheitszone eines Sektors zum Kernsektor, für den Fall, dass es ein Grenzsektor ist.


Related Commands:

<RetVar/IF><RefObj> is core sector


Command Location:


Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic This topic is locked: you cannot edit posts or make replies.
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Wed, 20. Sep 17, 16:36

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.34649 seconds, sql queries = 16