[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, the command will return 1 on success and 0 on failure.
<RefObj> = The object, which you want to check, if it is boardable.
This command will check, if the <RefObj> can be boarded by marines.
Example:
$ship = get player tracking aim
$board = $ship -> is boardable
if $board == 1
|write to player logbook: printf: fmt='%s is boardable', $ship, null, null, null, null
else
|write to player logbook: printf: fmt='%s is not boardable', $ship, null, null, null, null
end
return null
This will get the player's currently selected target and check, if it can be boarded by marines. In case of succes or failure it will write an appropriate message into the player's logbook.
Note:
In an unmodified game ships of the classes TM, TL, M1, M2, M6 and M7 can be boarded by marines.
Command Location:
- »» Trade Commands
- »» Passengers
<RetVar/IF><RefObj> is boardable
- »» Passengers