Thu May 29, 2003 5:51 pm by Phoenix-IT
Quote from the tutorial:
"[BaseGood
base = my01_01_base
MarketGood = commodity_boron, 0, -1, 0, 0, 1, 5.500000
MarketGood = commodity_gold, 0, -1, 0, 0, 1, 1.120000
MarketGood = commodity_toxic_waste, 0, -1, 150, 500, 0, 55
MarketGood = commodity_scrap_metal, 0, -1, 150, 500, 0, 11
MarketGood = commodity_oxygen, 0, -1, 0, 0, 1, 0.600000
MarketGood = commodity_water, 0, -1, 0, 0, 1, 0.600000
MarketGood = commodity_food, 0, -1, 0, 0, 1, 0.724100
MarketGood = commodity_mox_fuel, 0, -1, 0, 0, 1, 0.400000
MarketGood = commodity_H_fuel, 0, -1, 0, 0, 1, 1.140000
MarketGood = commodity_basic_alloys, 0, -1, 0, 0, 1, 1.800000
MarketGood = commodity_super_alloys, 0, -1, 0, 0, 1, 2
MarketGood = commodity_high_temp_alloys, 0, -1, 0, 0, 1, 10
MarketGood = commodity_superconductors, 0, -1, 0, 0, 1, 6
MarketGood = commodity_optical_chips, 0, -1, 0, 0, 1, 4.500000
MarketGood = commodity_construction_machinery, 0, -1, 0, 0, 1, 3.400000
MarketGood = commodity_pharm, 0, -1, 0, 0, 1, 0.526300
MarketGood = commodity_ship_hull_panels, 0, -1, 0, 0, 1, 2
MarketGood = commodity_polymers, 0, -1, 0, 0, 1, 4
MarketGood = commodity_optronics, 0, -1, 0, 0, 1, 5.666700
MarketGood = commodity_engine_components, 0, -1, 0, 0, 1, 5.333300
I'll have a guess here and say the values mean Lvl required to buy item, reputation -1 = hostile, 0 = neutral, 1 = friendly required to buy item. The third and forth numbers say the base produces this item and probably indicates the amount available. The others I do know about but the figure with decimal point in it is a price modifier. 0.5 is sells at half price, 1.5 sells at 1.5 times the base price of that item."
The last digit in the setting *IS* a modifier to the base price of the item. The second to last digit indicates whether or not the base pays full price or 1/3 price when buying the item from the player. The commodities are set to a 1, so when you sell them back you get the "list" price. The ship equipment is set to a 0, so the base only pays 1/3 the purchase price when the player sells the item. It appears that equipment and commodities are handled by the same subroutine. The ship settings are a different story, I haven't quite figured that out yet.
Hope this helps,
Phoenix