|
|
 |
View previous topic :: View next topic |
 |
|
|
|
|
Author |
Message |
|
|
|
|
|
X2-Illuminatus Moderator (Deutsch)

 
Joined: 02 Apr 2006 Posts: 14893 on topic

 |
Posted: Sat, 5. Feb 11, 15:39 Post subject: <RetVar/IF><RefObj> get passenger array |
|
|
[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get passenger array
[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = The variable where the requested information is stored. This will be an array.
<RefObj> = The object that the command is to be run on. Valid objects can be a ships.
Returns the passengers onboard the selected <RefObj> as an array.
Example:
Let's say you have two passengers onboard your ship.
$passenger.arr = [PLAYERSHIP] -> get passenger array
write to player logbook $passenger.arr
return null
This will write the names of the passengers onboard the [PLAYERSHIP] to the logbook in the format: Array ( Hayla Marval, Scot Marval )
Related Commands:
<RetVar/IF><RefObj> get marines array
Command Location:
Last edited by X2-Illuminatus on Tue, 22. Feb 11, 14:49; edited 1 time in total |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Alex Vanderbilt Winner X3 Sektorquest


Joined: 04 May 2006 Posts: 2103 on topic

|
Posted: Sun, 6. Feb 11, 12:26 Post subject: [TiP][49] 296292 |
|
|
[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get passenger array
[skip|else] if [not]|while [not]| = Mögliche Bedingung, die mit diesem Kommando verwendet werden kann.
<RetVar/IF> = Die Variable, in der die Informationen gespeichert werden. Die Variable stellt ein Array dar.
<RefObj> = Das Objekt, auf dem das Kommando ausgeführt werden soll. Zulässige Objekte sind Schiffe.
Gibt die Passagiere an Bord eines <RefObj> als Array aus.
Beispiel:
Als Beispiel werden 2 Passagiere an Bord eines Schiffes angenommen:
$passenger.arr = [PLAYERSHIP] -> get passenger array
write to player logbook $passenger.arr
return null
Das Kommando schreibt die Passagiere an Bord des [PLAYERSHIP] in das Logbuch des Spielers. Die Nachricht ist wie folgt formatiert: Array ( Hayla Marval, Scot Marval )
Verwandte Kommandos:
<RetVar/IF><RefObj> get marines array
Zu finden unter:
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
|
|
 |
|
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
|
 |
|
|
|
|
|