[Lua] Detecting trade routes

Neirai

the Forgiven
Joined
Aug 5, 2013
Messages
1,046
Location
Canada
I've been looking around the modiki trying to figure out what functions govern the detection and use of trade routes.

I'm trying to add a bonus to my civ based on trade routes with minor civs.
 
You have to iterate over pPlayer:GetTradeRoutes() and check the values for each trade route - see SetData() and DisplayData() in TradeRouteOverview.lua
 
Thanks, whoward69 :)
 
Top Bottom