Stop specific AIs from trading?

Pazyryk

Deity
Joined
Jun 13, 2008
Messages
3,584
Is there a way to control which AIs can trade with each other? I have a situation (other than war) where I stop the trade screen from coming up at all for the human (which stops trade). But I need to have a similar effect among AIs.
 
I am doing a mod to avoid city trade by AI, you have to modify CvDealAI.cpp or tell me what you want exactly. I am interested in removing the ability also for the player in the interface, looking into TradeLogic.lua, if you can help me with that I will appreciate it.

I basically want to remove the list of cities for the player and AI in the trade screen.

Edit: Easier than expected, still I am not good with LUA...

In TradeLogic.lua
Search for -- Pocket Cities
Set this to true to disable city trading for player, Controls.UsPocketCities:SetDisabled( true );
 
Back
Top Bottom