[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 know the maximum number of marines you can use to board it.
This command returns the number of marines, you can use to board the <RefObj> with the <RetVar/IF><RefObj> add marine <Var/Passenger> to attack group on ship-command. If an object cannot be boarded the command will return 0.
Example:
$aim = get player tracking aim
$number = $aim -> get number of marines can board
if $number > 0
|$message = sprintf: fmt='%s can be boarded with %s marines', $aim, $number, null, null, null
|display subtitle text: text=$message duration=5000 ms
else
|$message2 = sprintf: fmt='%s cannot be boarded', $aim, null, null, null, null
|display subtitle text: text=$message2 duration=5000 ms
end
return null
This gets the player's target, checks how many marines can be used to board it and displays an appropriate message as subtitle to the player.
Related Commands:
<RetVar/IF><RefObj> add marine <Var/Passenger> to attack group on ship
Command Location:
- »» Trade Commands
- »» Passengers
<RetVar/IF><RefObj> get number of marines can board
- »» Passengers