[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 null on failure.
<RefObj> = The object you want to check, if it has illegal wares onboard. Valid objects are ships and stations.
<Var/Race> = The race, which determines what wares are illegal.
This command will check, if the <RefObj> has wares onboard that are regarded illegal by the as <Var/Race> selected race.
Example:
$result = [PLAYERSHIP] -> has illegal ware onboard: race=Argon
if $result == 1
|write to player logbook: printf: fmt='%s has illegal ware(s) on board.', [PLAYERSHIP], null, null, null, null
else
|write to player logbook: printf: fmt='%s hasn't illegal ware(s) on board.', [PLAYERSHIP], null, null, null, null
end
return null
This will check if the [PLAYERSHIP] has wares onboard that are regarded as illegal by the Argon. An appropriate message will be written to the player logbook.
Note:
The wares that are regarded as illegal by the certain races are listed in this FAQ article.
Command Location:
- »» Trade Commands
- »» for Ships
<RetVar/IF><RefObj> has illegal ware onboard: race=<Var/Race>
- »» for Ships