[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:
- »» Trade Commands
- »» Passengers
<RetVar/IF><RefObj> get marine overall skill
- »» Passengers