<RetVar/IF><RefObj> has illegal ware onboard: race=<Var/Race>

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

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

<RetVar/IF><RefObj> has illegal ware onboard: race=<Var/Race>

Post by X2-Illuminatus » Thu, 31. Mar 11, 16:27

[skip|else] if [not]|while [not]|<RetVar/IF><RefObj> has illegal ware onboard: race=<Var/Race>


[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, the command will return 1 on success and null on failure.
<RefObj> = The object you want to check, if it has illegal wares onboard. Valid objects are ships and stations.
<Var/Race> = The race, which determines what wares are illegal.


This command will check, if the <RefObj> has wares onboard that are regarded illegal by the as <Var/Race> selected race.

Example:

$result = [PLAYERSHIP] -> has illegal ware onboard: race=Argon
if $result == 1
|write to player logbook: printf: fmt='%s has illegal ware(s) on board.', [PLAYERSHIP], null, null, null, null
else
|write to player logbook: printf: fmt='%s hasn't illegal ware(s) on board.', [PLAYERSHIP], null, null, null, null
end
return null

This will check if the [PLAYERSHIP] has wares onboard that are regarded as illegal by the Argon. An appropriate message will be written to the player logbook.


Note:

The wares that are regarded as illegal by the certain races are listed in this FAQ article.


Command Location:

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

[TiP][49] 299132

Post by X2-Illuminatus » Mon, 2. May 11, 18:54

[skip|else] if [not]|while [not]|<RetVar/IF><RefObj> has illegal ware onboard: race=<Var/Race>


[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 null im Fehlerfall enthalten.
<RefObj> = Das Objekt, von dem du wissen möchtest, ob es illegale Waren an Bord hat. Gültige Objekte sind Schiffe und Stationen.
<Var/Race> = Das Volk, das bestimmt, welche Waren illegal sind.


Dieser Befehl überprüft, ob das <RefObj> Waren an Bord hat, die vom als <Var/Race> ausgewählten Volk als illegal betrachtet werden.

Beispiel:

$result = [PLAYERSHIP] -> has illegal ware onboard: race=Argonen
if $result == 1
|write to player logbook: printf: fmt='%s hat illegale Ware(n) an Bord.', [PLAYERSHIP], null, null, null, null
else
|write to player logbook: printf: fmt='%s hat keine illegale Ware(n) an Bord.', [PLAYERSHIP], null, null, null, null
end
return null

Dies überprüft, ob das Spielerschiff [PLAYERSHIP] Waren an Bord hat, die von den Argonen als illegal betrachtet werden. Eine entsprechende Nachricht wird ins Spielerlogbuch geschrieben.


Beachte:

Die Waren, die von den verschiedenen Völkern als illegal betrachtet werden, sind in diesem FAQ-Artikel aufgelistet.


Zu finden unter:

Locked

Return to “MSCI Reference”