<RetVar/IF> get player money

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

<RetVar/IF> get player money

Post by mark_a_condren » Mon, 4. Oct 10, 16:57

[skip|else] if [not]|while [not]| <RetVar/IF> get player money


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Command return, with an 'if' statement used it will be TRUE (1) if condition passes or FALSE (0) if it fails, the only possible way this type of return would be FALSE is if the player had '0' credits in the players account. Otherwise, if you use a Variable it will be the current credits in the players account as an integer.


Pretty straight forward command, right? However there are still some things that need to be known.
This command only returns the amount of credits in the players 'General' account, it does not include any credits being help in station accounts.
All general transactions that the player makes that they use credits to pay for come from this account.
Likewise, all general transactions that they player makes that they receive payment in credits are deposited into this account.

It should also be noted, this account has a limit to the amount of credits it can hold. This limit is a numerical restriction of the game engine, and it can not be ignored. This limit is 2,000,000,000.


Example:

$player.credits get player money

$player.credits would be the current credits available to the player in their account.


Command Location:

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

[TiP][49] 288130

Post by X2-Illuminatus » Mon, 9. May 11, 19:05

[skip|else] if [not]|while [not]| <RetVar/IF> get player money


[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 1 im Erfolgs- und 0 im Fehlerfall enthalten. Die einzige Möglichkeit, die zum Fehlerfall führen würde, ist, dass auf dem Spielerkonto kein Geld vorhanden ist. Andernfalls, wenn eine Variable genutzt wird, wird sie die Anzahl an Credits enthalten, die sich zurzeit auf dem Spielerkonto befinden.

Dieser Befehl gibt die aktuelle Anzahl an Credits auf dem Spielerkonto zurück. Er berücksichtigt nicht die Credits, die sich auf Stationskonten befinden.
Alle Credits, die vom Spieler für allgemeine Transaktionen verwendet werden, kommen vom Spielerkonto. Dementsprechend gehen auch alle Credits, die der Spieler für allgemeine Transaktionen oder als Bezahlung erhält, auf das Spielerkonto.

Es sollte zudem beachtet werden, dass das Spielerkonto ein Creditlimit von 2 Milliarden (2.000.000.000) hat. Dieses Limit ist eine numerische Beschränkung der Spielengine und kann nicht ignoriert werden.


Beispiel:

$player.credits get player money

Die Variable $player.credits enthält nach Ausführung dieses Beispiels die aktuelle Anzahl an Credits auf dem Spielerkonto.


Zu finden unter:

Locked

Return to “MSCI Reference”