Łukasz Jakowski 13,390 Posted September 19, 2024 game/_FAQ/Governments_AI_BuildScore.txt #################### ## AI_BUILD_SCORE 0 == AI_BuildResearch 1 == AI_BuildGold 2 == AI_BuildLegacy 3 == AI_BuildTaxEfficiency 4 == AI_BuildProvinceMaintenance 5 == AI_BuildManpower 6 == AI_BuildDefensive 7 == AI_BuildRecruitArmyCost 8 == AI_BuildGrowthRate 9 == AI_BuildEconomy 10 == AI_BuildProductionEfficiency 11 == AI_BuildConstructionCost 12 == AI_BuildRest 13 == AI_BuildCapitalBuilding 14 == AI_BuildResource 15 == AI_ColonizationTribal ## Example use: AI_BUILD_SCORE: [ 70, 50, 40, 60, 40, 65, 60, 30, 40, 55, 50, 45, 30, 50, 40, 0], ## DON'T USE IT THIS WAY AI_BUILD_SCORE: [ 70, // AI_BuildResearch 50, // AI_BuildGold 40, // AI_BuildLegacy 60, // AI_BuildTaxEfficiency 40, // AI_BuildProvinceMaintenance 65, // AI_BuildManpower 60, // AI_BuildDefensive 30, // AI_BuildRecruitArmyCost 40, // AI_BuildGrowthRate 55, // AI_BuildEconomy 50, // AI_BuildProductionEfficiency 45, // AI_BuildConstructionCost 30, // AI_BuildRest 50, // AI_BuildCapitalBuilding 40, // AI_BuildResource 0 // AI_ColonizationTribal], ########################################################## AI_BUILD_INVEST_IN_ECONOMY: 25, AI_BUILD_INCREASE_TAX_EFFICIENCY: 40, AI_BUILD_INCREASE_MANPOWER: 52, AI_BUILD_INCREASE_GROWTH_RATE: 62, AI_BUILD_DEVELOP_INFRASTRUCTURE: 68, AI_BUILD_BUILDING: 100, ########################################################## int rand = randomInt(100); f(rand < AI_BUILD_INVEST_IN_ECONOMY) { AI_InvestInEconomy.investInEconomy(civID, 100); } else if(rand < AI_BUILD_INCREASE_TAX_EFFICIENCY) { AI_IncreaseTaxEfficiency.increaseTaxEfficiency(civID, 100); } else if(rand < AI_BUILD_INCREASE_MANPOWER) { AI_IncreaseManpower.increaseManpower(civID, 100); } else if(rand < AI_BUILD_INCREASE_GROWTH_RATE) { AI_GrowthRate.increaseGrowthRate(civID, 100); } else if(rand < AI_BUILD_DEVELOP_INFRASTRUCTURE) { AI_DevelopInfrastructure.developInfrastructure(civID, 100); } else if(rand < AI_BUILD_BUILDING) { AI_Build.build(civID); } Fire Quickly, Dule22, Outlawexperience and 4 others 7 Quote Share this post Link to post Share on other sites More sharing options...
eNeXPii 35 Posted September 19, 2024 So everything is moddable, glad you did it like that, but want to ask you can you do it as a single line from the text use as mod not the whole text document like other games i use to mod? Thank you for taking time to post all this... Unity and Outlawexperience 2 Quote Share this post Link to post Share on other sites More sharing options...
Wayne23lololh 1,645 Posted September 19, 2024 Fabulous news ! Outlawexperience 1 Quote Share this post Link to post Share on other sites More sharing options...
Rodak Polak 597 Posted October 25, 2024 On 9/19/2024 at 12:31 PM, Łukasz Jakowski said: AI_BUILD_SCORE: [ 70, 50, 40, 60, 40, 65, 60, 30, 40, 55, 50, 45, 30, 50, 40, 0], What's up with these numbers? Is this probability? If I change the number from 50 to something bigger, will the AI be more likely to do it? How do I make the AI focus on upgrading the capital, upgrading the school of generals and upgrading the supreme court first??? Where is the file where I can change this? Quote Share this post Link to post Share on other sites More sharing options...