Market
The fishing market system allows players to sell their caught fish at dynamic prices that respond to supply and demand.
General Configuration
enabledrequiredboolean
true
false
, the merchant NPC won't spawn, and players won't be able to sell fish through the market system. Merchant Configuration
The merchant
section defines the NPC who handles fish sales:
merchant.modelrequiredstring
'a_m_m_farmer_01'
merchant.coordsrequiredvec4
merchant.scenariorequiredstring
'WORLD_HUMAN_CLIPBOARD'
Merchant Blip Configuration
The merchant.blip
section controls how the merchant appears on the map:
merchant.blip.enabledrequiredboolean
true
merchant.blip.spriterequirednumber
68
merchant.blip.displayrequirednumber
4
merchant.blip.scalerequirednumber
0.7
merchant.blip.colourrequirednumber
3
merchant.blip.labelrequiredstring
'Fish Market'
Currency Configuration
currencyrequiredstring
'money'
Stock Configuration
The stocks
section defines how the market's fish stock levels work:
stocks.initialrequirednumber
100
stocks.minimumrequirednumber
0
stocks.maximumrequirednumber
500
stocks.targetLevelrequirednumber
250
Stock Recovery Rate
stocks.recoveryRate.minrequirednumber
1
stocks.recoveryRate.maxrequirednumber
3
Price Configuration
The prices
section controls how fish prices are affected by sales:
prices.salesImpact.divisorrequirednumber
20
prices.salesImpact.maxEffectrequirednumber
0.7
prices.salesRecoveryrequirednumber
3
Update Configuration
updateIntervalrequirednumber
1
How the Market Works
Price Calculation
The market uses a formula that takes into account stock levels and recent sales:
Supply and Demand
- Higher stock levels result in lower prices
- Lower stock levels result in higher prices
- Stock gradually returns to
targetLevel
over time - Demand is calculated based on current stock levels
Sales Impact
- Recent sales temporarily lower prices
- Selling large quantities (>50) triggers additional price reductions
- Fish with narrow price ranges get special temporary reductions
- Sales impact gradually diminishes according to
salesRecovery
setting
Price Trends
- The system tracks price movement (up, down, or stable)
- Trend information is displayed in the market menu