EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RetVar/IF><RefObj> is core sector
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)

MEDAL

Joined: 02 Apr 2006
Posts: 19841 on topic

Thank you for registering your game
PostPosted: Thu, 4. Aug 11, 18:29    Post subject: <RetVar/IF><RefObj> is core sector Reply with quote Print

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> is core sector


[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.


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:

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


Command Location:


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

MEDAL

Joined: 02 Apr 2006
Posts: 19841 on topic

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

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> is core sector


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Nutze eine Variable, wenn der Befehl eine Information zurückgeben soll. Wenn eine Variable genutzt wird, wird sie '1' im Erfolgs- und '0' im Fehlerfall enthalten.
<RefObj> = Eine Variable, die einen Sektor enthält.


Überprüft, ob der als <RefObj> ausgewählte Sektor ein Kernsektor ist.

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.


Verwandte Befehle:

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


Zu finden unter:


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 Mon, 24. Apr 17, 01:32

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.34266 seconds, sql queries = 16