<RetVar/IF><RefObj> get marine overall skill

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> get marine overall skill

Post by X2-Illuminatus » Sat, 5. Feb 11, 16:07

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get marine overall skill


[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.
<RefObj> = The marine you want to get the overall skill of.

Returns the overall skill of the as <RefObj> selected marine. The overall skill the arithmetic average of the four other skills (fighting, mechanical, hacking and engineering) the marine has.


Example:

$i = 0
$marines.arr = [PLAYERSHIP] -> get marines array
$size.marine = size of array $marines.arr
while $i < $size.marine
|$marine = $marines.arr[$i]
|$marine.overall.skill = $marine -> get marine overall skill
|write to player logbook: printf: fmt='Marine Name: %s, overall skill: %s', $marine, $marine.overall.skill, null, null, null
|inc $i =
end
return null

This will get the marines onboard the [PLAYERSHIP]. Afterwards it gets each marine's overall skill and write it with his name to the logbook.

Note:

In the vanilla game the valid return range is between 0 to 100 inclusive.


Related Commands:

<RetVar/IF><RefObj> get marine fighting skill
<RetVar/IF><RefObj> get marine mechanical skill
<RetVar/IF><RefObj> get marine hacking skill
<RetVar/IF><RefObj> get marine engineering skill


Command Location:
Last edited by X2-Illuminatus on Tue, 22. Feb 11, 13:42, edited 1 time in total.

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

[TiP][49] 296306

Post by Alex Vanderbilt » Sun, 6. Feb 11, 12:07

[skip|else] if [not]|while [not]| <RetVar/IF><RefObj> get marine overall skill

[skip|else] if [not]|while [not]| = Mögliche Bedingung, die mit diesem Kommando verwendet werden kann.
<RetVar/IF> = Die Variable, in der die angeforderten Informationen gespeichert werden.
<RefObj> = Der Marineinfanterist, von dem die insgesamten Fähigkeiten abgefragt werden sollen.

Das Kommando gibt die insgesamten Fähigkeiten des als <RefObj> ausgewählten Marineinfanteristen zurück. Die insgesamten Fähigkeiten sind der errechnete Durchschnitt aus den anderen 4 Fähigkeiten (Kampf, Hacken, Mechanik und Ingenieurwesen) eines Marineinfanteristen.


Beispiel:

$i = 0
$marines.arr = [PLAYERSHIP] -> get marines array
$size.marine = size of array $marines.arr
while $i < $size.marine
|$marine = $marines.arr[$i]
|$marine.overall.skill = $marine -> get marine overall skill
|write to player logbook: printf: fmt='Marine Name: %s, overall skill: %s', $marine, $marine.overall.skill, null, null, null
|inc $i =
end
return null

Mit diesen Zeilen werden die Marineinfanteristen an Bord des [PLAYERSHIP] erfasst. Nach der Erfassung werden die ingesamten Fähigkeiten jedes einzelnen Marineinfanteristen abgefragt und danach mit dem jeweiligen Namen in das Spielerlogbuch geschrieben.

Hinweis:

Im Standardspiel ohne Modifikationen reicht die Skala von 0 bis einschließlich 100.


Verwandte Kommandos:

<RetVar/IF><RefObj> get marine fighting skill
<RetVar/IF><RefObj> get marine mechanical skill
<RetVar/IF><RefObj> get marine hacking skill
<RetVar/IF><RefObj> get marine engineering skill


Zu finden unter:

Locked

Return to “MSCI Reference”