<RetVar/IF><RefObj> get relation to object <Var/Ship/Station>

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
Striker304
Posts: 915
Joined: Fri, 26. Mar 10, 21:15
x3tc

<RetVar/IF><RefObj> get relation to object <Var/Ship/Station>

Post by Striker304 » Mon, 13. Sep 10, 19:30

<RetVar/IF> = <RefObj> get relation to object <Var/Ship/Station>



[skip|else] if [not]|while [not] = Possible 'conditional' statements that can be used
<RetVar/IF> = The variable where the requested information is put
<RefObj> = The object whose relation you want to check
<Var/Ship/Station> = The object that the relation of <RefObj> shall to be checked

This command returns the relation of <RefObj> to <Var/Ship/Station>. A relation can be 'Friend', 'Neutral' or 'Enemy'.
Note that if the relation of <RefObj> to <Var/Ship/Station> e.g. is 'Friend', it doesn´t mean that the relation of <Var/Ship/Station> to <RefObj> is 'Friend', too.

Example:
$relation = Argon One get relation to object [PLAYERSHIP]

This would return the relation of 'Argon One' to the player ship.


Command Location:

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24950
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 286843

Post by X2-Illuminatus » Sat, 9. Oct 10, 21:06

<RetVar/IF> = <RefObj> get relation to object <Var/Ship/Station>



[skip|else] if [not]|while [not] = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Variable, in die der zurückgegebene Wert gespeichert wird.
<RefObj> = Das Objekt, dessen Beziehung du überprüfen möchtest.
<Var/Ship/Station> = Das Objekt, dessen Beziehung zu <RefObj> überprüft werden soll.

Dieser Befehl gibt die Beziehung von <RefObj> zu <Var/Ship/Station> zurück. Eine Beziehung kann 'Freund', 'Neutral' oder 'Feind' sein.
Beachte, dass wenn die Beziehung von <RefObj> zu <Var/Ship/Station> bspw. 'Freund' ist, dies nicht automatisch heißt, dass auch die Beziehung von <Var/Ship/Station> zu <RefObj> 'Freund' ist.

Beispiel:
$relation = Argon Eins get relation to object [PLAYERSHIP]

Dies gibt die Beziehung der Argon Eins zum Spielerschiff zurück.


Zu finden unter:

Locked

Return to “MSCI Reference”