@ [START|[skip|else] if [not]|while [not]| <RetVar> = (Integer)Returns the actual number of goods bought. Conditional operators only fail when the resulting number of units bought is 0
<RefObj> = (Ship)the Ship buying the goods
<Var/Number> = (Integer)the number of goods to try and buy
<Var/Ware> = (WareType)the ware to be bought
Orders the<RefObj>ship to try and buy<Var/Number>of<Var/Ware>and returning the exact number bought.
You can NOT use this command to transfer wares from a carrier to a docked ship, use the load*TODO LINK* command for this instead. The ship's environment, must be a station.
This command is bound by the same rules as buying manually:
- Wares are bought from the station you are docked at
Dock must have ware in stock
Must have required notoriety (Unsure if non player races require this)
Must have enough credits (non-player owned ships have unlimited credits, if a ship has a homebase, it will use the homebase's credits, otherwise it will use the race's credits i.e. The player's personal accounts)
Cargo hold must be large enough to take ware size (T/S/M/L/XL etc.)
Must have enough free cargo volume
Related Links
- <RetVar/IF><RefObj> buy <Var/Number> units of <Var/Ware> to a max. price of <Var/Number> Cr
- <RetVar/IF><RefObj> sell <Var/Number> units of <Var/Ware>
- <RetVar/IF><RefObj> load <Var/Number> units of <Var/Ware>
- <RetVar/IF><RefObj> unload <Var/Number> units of <Var/Ware>
- »» Trade Commands
- »» for Ships
<RetVar/IF><RefObj> buy <Var/Number> units of <Var/Ware>
- »» for Ships