[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:
- »» Trade Commands
<RetVar/IF> get player money