Functions Documentation |
|
Name |
objAddBuyOrder |
Syntax |
(objAddBuyOrder obj criteria priceAdj) -> True/Nil |
Argument List |
obj: the targeted spaceobject
criteria: the itemCriteria string for the items to set a buy order for.
priceAdj: the adjusted price of whatever the object is going to pay for the item |
Returns |
Boolean: true or nil depending upon success |
Category |
spaceobject, economy
|
Description |
This function is used to add dynamic buy orders to objects (stations typically). The station will then purchase goods of the type specified in the criteria at the items price, adjusted by the specified price adjustment.
Used once, in &stManufacturingPlant; |
Example |
(objAddBuyOrder someStation "* +Illegal" 150)
Tell the station to buy illegal items at 150 precent |
Comment |
useful for creating a dynamic economy |