player loses police licence for 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: 21900
Joined: Sun, 2. Apr 06, 16:38
x4

player loses police licence for race <Var/Race>

Post by X2-Illuminatus » Thu, 28. Jul 11, 18:28

player loses police licence for race <Var/Race>


<Var/Race> = A race or a variable containing it.


This command removes the police licence for the as <Var/Race> selected race from the player inventory.


Example:

$size= size of array $races.arr
while $size
|dec $size=
|$race=$races.arr[$size]
|if player has police license for race $race
||player loses police licence for race $race
|end
end
return null

Assuming the array $races.arr contains races, this will remove the police licences for that races from the player inventory.


Related Commands:

<RetVar/IF> player has police licence for race <Var/Race>


Command Location:

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

[TiP][49] 304920

Post by X2-Illuminatus » Sat, 1. Oct 11, 15:06

player loses police licence for race <Var/Race>


<Var/Race> = Ein Volk oder eine Variable, die eins enthält.


Dieser Befehl entfernt die Polizeilizenz des als <Var/Race> ausgewählten Volkes vom Spielerinventar.


Beispiel:

$size= size of array $races.arr
while $size
|dec $size=
|$race=$races.arr[$size]
|if player has police license for race $race
||player loses police licence for race $race
|end
end
return null

Vorausgesetzt das Array $races.arr enthält Völker, wird dieses Beispiel die Polizeilizenzen dieser Völker vom Spielerinventar entfernen.


Verwandte Befehle:

<RetVar/IF> player has police licence for race <Var/Race>


Zu finden unter:

Locked

Return to “MSCI Reference”