Logo Platform
logo amplifiers simplified

Modding Diplomacy / Trade values?

Reply
Copied to clipboard!
4 years ago
Jun 15, 2020, 4:44:18 PM

Hello,

I'm trying to figure out how to make trades with AI more equitable, such that you don't need to give them 2-5x as much to get 1 thing back of otherwise equal value.


I found the following in AIParameters[DiplomaticTerm_Research].xml


<!-- The interpreter context simulation object is the empire who analyse the term -->

<!-- Available hooks:
* $(TechnologyRemainingTurn) = number of turns it would take us (the AI, 'MyEmpire') to research this technology (or to finish researching it).
* $(TechnologyEvaluationScore) = how much we (the AI, 'MyEmpire') want this technology.
* $(TechnologyEra) = the era this technology appears on.
-->

<AIParameterDatatableElement Name="TechnologyDeal">
<AIParameter Name="DiplomacyTechnologyReceiver" Value="(((0 - 3) * $(DoesNotWantTech)) + 1) * (3 * ((0.2*$(TechnologyEra)) + (1 min (0.8*$(TechnologyEvaluationScore)))) * (1 max ($(TechnologyRemainingTurn) / 8)))*(1 max (($(TechnologyEra) - 5) * 2))"/>
<AIParameter Name="DiplomacyTechnologyProvider" Value="(2 * (0 - 1) * ((0.8*$(TechnologyEra)) + (1 min (0.2*$(TechnologyEvaluationScore)))))*(1 max (($(TechnologyEra) - 5) * 10))"/>
<AIParameter Name="DiplomacyTechnologyProvider" Value="(0 - 100) * $Link(Provider|Path|#Multiplayer,#StingyAITrue)" />
    </AIParameterDatatableElement>


Which values should I be modifying in which direction to achieve the following:

Make AI value its own techs a bit less and Make AI value Player techs a bit more

I realise that it goes a bit both ways in that sometimes the player wants a tech from the AI, other times the player is trying to sell a Tech to the AI

Ultimately I'd like to equalise the values more


Thanks in advance (same for resources and cities I guess)

Updated 4 years ago.
0Send private message
?

Click here to login

Reply
Comment