[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 the repair costs of the <Var/Ship> at the <RefObj>.
<RefObj> = A shipyard.
<Var/Ship> = The ship, which needs to be repaired.
Returns the repair costs of the as <Var/Ship> selected ship at the as <RefObj> selected shipyard.
The repair costs are dependent on the relation between the owner of the <RefObj> and the owner of the <Var/Ship>. The better the relation the lower the repair costs.
Example:
$cost = $shipyard -> get repair cost of ship [PLAYERSHIP]
write to player logbook $cost
return null
Assuming the variable $shipyard contains a shipyard, this example will write the repair costs of the [PLAYERSHIP] at the $shipyard to the player logbook.
Command Location:
- »» Trade Commands
- »» for Stations
<RetVar/IF><RefObj> get repair costs of ship <Var/Ship>
- »» for Stations