<RetVar/IF><RefObj> get repair cost of ship <Var/Ship>

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24965
Joined: Sun, 2. Apr 06, 16:38
x4

<RetVar/IF><RefObj> get repair cost of ship <Var/Ship>

Post by X2-Illuminatus » Wed, 30. Mar 11, 11:50

[skip|else] if [not]|while [not]|<RetVar/IF><RefObj> get repair cost of ship <Var/Ship>


[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:

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24965
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 299091

Post by X2-Illuminatus » Mon, 2. May 11, 18:06

[skip|else] if [not]|while [not]|<RetVar/IF><RefObj> get repair cost of ship <Var/Ship>


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Nutze eine Variable, wenn der Befehl eine Information zurückgeben soll. Wenn eine Variable genutzt wird, wird sie die Reparaturkosten des <Var/Ship> am <RefObj> zurückgeben.
<RefObj> = Eine Schiffswerft.
<Var/Ship> = Das Schiff, welches repariert werden soll.


Gibt die Reparaturkosten des als <Var/Ship> ausgewählten Schiffes an der als <RefObj> ausgewählten Schiffswerft zurück.
Die Reparaturkosten sind abhängig von der Beziehung zwischen dem Besitzer von <RefObj> und dem Besitzer von <Var/Ship>. Je besser die Beziehung, umso niedrieger die Kosten.


Beispiel:

$cost = $shipyard -> get repair cost of ship [PLAYERSHIP]
write to player logbook $cost
return null

Angenommen die Variable $shipyard enthält eine Schiffswerft wird dieses Beispiel die Reparaturkosten des Spielerschiffs [PLAYERSHIP] an der Schiffswerft $shipyard ins Logbuch des Spielers schreiben.


Zu finden unter:

Locked

Return to “MSCI Reference”