Pangaea
Rock N Roller
- Joined
- Sep 17, 2010
- Messages
- 6,390
Flavor is used to impact research decisions. In the CvPlayerAI::AI_bestTech function (which is used to pick path of research), there's a huge list of factors that can increase or decrease the perceived value of any given choice - it values techs that enable units more, techs that enable map trading, etc. etc.... about 80 such factors.* Typically, values range between 0 (useless junk) and ~2000 (an incredibly, absurdly great tech for the AI's current situation, in it's often-unwise opinion). It adds the leader flavor * tech flavor * 20 (that'll range from 0 to 2000 or so), and adds a 0-2000 point random factor. So roughly speaking... 1/3 of tech choice is random, 1/3 is personality and tech flavors, and the remaining 1/3 is its judgment of what the game calls for.
*AFAIK, the AI doesn't check this function when considering a tech trade though... they'd pay equally for two different 500-beaker techs, even if they'd never research one and would highly prioritize the other. So flavor shouldn't impact tech trade values.
Thanks for clearing that up. Still some personality in tech choice then, it appears, but not as much as I thought/hoped. The coders have put a lot of emphasis on random factors everywhere, possibly too much, to the detriment of the game.
In tech trades, do the AI value the techs equally with the same ratio towards the human no matter diplomacy (assuming they are willing to tech trade) and difficulty level?
During a monarch game I did the math as there was a trade where the AI demanded gold. Think it worked out to about 0.90. So assuming it was a 1000 tech, the AI was willing to give me a 900 tech - on the assumption that 1 = 1
Actually, I assume this will scale on difficulty; seem to recall possibly Seraiel saying it was 0.7 at Deity. But will it scale on level of relationship (pleased etc) with the AI in question? Or will it be the same as long as they are willing to trade with you?