[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = If the command is to 'return' information.
<RefObj> = The 'Object' that the command is to be run on. 'Valid' objects can be a 'Ship or Station'.
Gets the amount of credits available to a ship or station. This can be player owned or NPC. NPC stations have a credit balance of 2,000,000,000 cr that is regularly topped up by the game engine.
It should return the amount of money by:
1. If it is a station, return the stations money.
2. If it is a ship, that has a homebase, return the homebases money.
3. If it is a ship, with no homebase, return the race's money (i.e. the player account).
"Valid" npc ships or stations return the standard 2,000,000,000 amount, home based or not.
'Invalid' objects, asteroids, gates etc return '0' not 'null'
Example:
$station.credits = $station get money
This will return they amount of credits available to the selected station, $station, as an integer.
Command Location:
- »» Trade Commands
- »» for Ships and Stations
<RetVar/IF><RefObj> get money
- »» for Ships and Stations