[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 as an integer .
<RefObj> = The marine you want to know his buying price.
This command returns the as <RefObj> selected marine's buying price. A marines buying price is direct proportional to its overall skill (arithmetic average of the four other skills). So a high buying price means he has a high overall skill.
Example:
$marines.arr = [PLAYERSHIP] -> get marines array
$size.marines.arr = size of array $marines.arr
while $size.marines.arr
|dec $size.marines.arr =
|$marine = $marines.arr[$size.marines.arr]
|$buyprice = $marine -> get marine buy price
|write to player logbook: printf: fmt='marine %s costs %s Cr', $marine, $buyprice, null, null, null
end
return null
This will get each marine's buying price onboard the [PLAYERSHIP] and write it with his name to the logbook.
Command Location:
- »» Trade Commands
- »» Passengers
<RetVar/IF><RefObj> get marine buy price
- »» Passengers