WarriorsLib.TradeGood
WarriorsLib.TradeGood(buildingID, goodtype, amount, player)
WarriorsLib.TradeGood(buildingID, goodtype, amount, player)
Specifies what goods and how many a market or harbor shall transport. Use WarriorsLib.SetTradingRoute to establish the destination building for the trade.
return value
Since Version 1.5.0: success [0, 1]
Before: none
b1 = Buildings.GetFirstBuilding(1, Buildings.MARKETPLACE)
b2 = Buildings.GetFirstBuilding(3, Buildings.MARKETPLACE)
WarriorsLib.SetTradingRoute(b2, b1, 3)
WarriorsLib.TradeGood(b2, Goods.GOLDBAR, 100, 3)
Last updated