<RetVar/IF><RetObj> is in active sector

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

User avatar
EmperorJon
Posts: 9378
Joined: Mon, 29. Dec 08, 20:58
x3tc

<RetVar/IF><RetObj> is in active sector

Post by EmperorJon »

<RetVar/IF><RetObj> is in active sector

[skip|else] if [not]|while [not]| = The possible 'conditional' statements that can be used with this command.
<RetVar> = variable where the requested information is put.
<RefObj> = The object to check if it's in the active sector.

Active sector is the current 'In Sector' sector, where the Playership is.



Example:

IF [PLAYERSHIP] -> is in active sector

Will always be a true return.

Example 2:

IF $Enemy -> is in active sector
send incoming message 'Enemy in your sector!' to player: display it=[TRUE]

Will send them a message if $Enemy is in the sector.


Command Location:
Alex Vanderbilt
Winner X3 Sektorquest
Posts: 2127
Joined: Thu, 4. May 06, 12:07
x3tc

[TiP][49] 286481

Post by Alex Vanderbilt »

<RetVar/IF><RetObj> is in active sector

[skip|else] if [not]|while [not]| = Eine mögliche Bedingung, die mit diesem Kommando verwendet werden kann.
<RetVar> = Variable, wo die angeforderten Informationen ausgegeben werden sollen.
<RetObj> = Das zu überprüfende Objekt, ob es sich im aktiven Sektor befindet oder nicht.

Der aktive Sektor (Auch "In Sektor" bezeichnet) ist der, worin sich das Spielerschiff gerade befindet.

Beispiel 1:

IF [PLAYERSHIP] -> is in active sector

Wird immer "Wahr" ausgeben.

Beispiel 2:

IF $Enemy -> is in active sector
send incoming message 'Enemy in your sector!' to player: display it=[TRUE]

Hier wird eine Nachricht gesendet, wenn $Enemy im aktiven Sektor ist.


Zu finden unter:

Return to “MSCI Reference”