<RefObj> = The station, which uses <Var/Ware>.
<Var/Ware> = The ware you want to set its price.
<Var/Number> = The number of Credits you want to set the price of <Var/Ware>.
This sets the price of the as <Var/Ware> selected ware used by the as <RefObj> selected station to <Var/Number> Credits. This command only works on player own stations.
Example:
$ware = Energy Cells
$station.array = get station array: of race Player class/type=null
$size = size of array $station.array
while $size
|dec $size =
|$station = $station.array[$size]
|if $station -> uses ware $ware as primary resource
||$station -> set price of ware $ware to 19 Cr
|end
end
return null
This gets all player own stations. I case they're using Energy Cells as primary resource, it will set the price of Energy Cells to 19 Credits.
Related Commands:
<RetVar/IF><RefObj> get price of ware <Var/Ware>
<RetVar/IF><RefObj> get average price of ware <Var/Ware>
Command Location:
- »» Trade Commands
- »» for Stations
<RefObj> set price of ware <Var/Ware> to <Var/Number> Cr
- »» for Stations