EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RetVar> = <RefObj> get universe y index
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: Mon, 1. Aug 11, 20:07    Post subject: <RetVar> = <RefObj> get universe y index Reply with quote Print

<RetVar> = <RefObj> get universe y index


<RetVar> = A variable where the requested information is stored.
<RefObj> = A variable containing a sector.


Returns the y-coordinate of the sector in the universe map.

The sectors on the universe map are arranged in a coordinate system. The point of origin is Kingdom End with the coordinates x = 0, y = 0, short form: (0|0). Starting from Kingdom End the x-coordinates go rightwards and the y-coordinates downwards. So each sector has own coordinates.


Example:

$x = $sector -> get universe x index
$y = $sector -> get universe y index
$name = get sector from universe index: x=$x, y=$y
write to player logbook $name
return null

Assuming the variable $sector contains a sector, this will find out its x- and y-coordinate and based on that the name of the sector. Afterwards the name will be written to the logbook.


Related Commands:

<RetVar/IF> get sector from universe index: x=<Var/Number>, y=<Var/Number>
<RetVar> = <RefObj> get universe x index


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: Sun, 2. Oct 11, 23:27    Post subject: [TiP][49] 305154 Reply with quote Print

<RetVar> = <RefObj> get universe y index


<RetVar> = Eine Variable, in der die geforderte Information gespeichert wird.
<RefObj> = Eine Variable, die einen Sektor enthält.


Gibt die Y-Koordinate des gewählten Sektors in der Universumskarte zurück.

Die Sektoren in der Universumkarte sind in einem Koordinatensystem angeordnet, dessen Ursprung in Königstal mit den Koordinaten x = 0, y = 0 Kurzform (0|0) liegt. Ausgehend von Königstal gehen die x-Koordinaten nach rechts und die y-Koordinaten nach unten. Somit hat jeder Sektor seine eigenen Koordinaten.


Beispiel:

$x = $sector -> get universe x index
$y = $sector -> get universe y index
$name = get sector from universe index: x=$x, y=$y
write to player logbook $name
return null

Vorausgesetzt die Variable $sector enthält einen Sektor, wird dieses Beispiel seine x- und y-Koordinate und davon ausgehend seinen Namen herausfinden. Anschließend wird der Name ins Logbuch geschrieben.


Verwandte Befehle:

<RetVar/IF> get sector from universe index: x=<Var/Number>, y=<Var/Number>
<RetVar> = <RefObj> get universe x index


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 Wed, 20. Sep 17, 16: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.23121 seconds, sql queries = 16