[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 object you want to get the maximum number of marines it can store.
This command will return the maximum number of marines that can be stored on the <RefObj>, assuming it has no marines on board.
Examples:
$ship = get player tracking aim
$number = $ship -> get maximum number of marines
write to player logbook: printf: fmt='%s can store %s marines', $ship, $number, null, null, null
return null
This will get the player's currently selected target and check, how many marines can be stored on it.
-----------------------------------
$ship = get player tracking aim
$number = $ship -> get maximum number of marines
$space = $ship -> free space for marines
$number.marines = $number - $space
write to player logbook: printf: fmt='%s has %s marines on board', $ship, $number.marines, null, null, null
return null
This will get the marines, who are onboard the player's target and write the result to the player's logbook.
Related Commands:
<RetVar/IF><RefObj> free space for marines
<RetVar/IF><RefObj> get number of marines can board
Command Location:
- »» Trade Commands
- »» Passengers
<RetVar/IF><RefObj> get maximum number of marines
- »» Passengers