[WIP] <RetVar/IF><RefObj> buy <Var/Number> units of <Var/Ware>

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Post Reply
User avatar
Posts: 2011
Joined: Wed, 29. Jun 05, 01:45

[WIP] <RetVar/IF><RefObj> buy <Var/Number> units of <Var/Ware>

Post by s9ilent » Fri, 8. Oct 10, 13:30

@ [START|[skip|else] if [not]|while [not]| <RetVar> = <RefObj>buy<Var/Number>units of<Var/Ware>

@ [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 Command Location:

Post Reply

Return to “MSCI Reference”