- UID
- 290177
- 阅读权限
- 30
- 注册时间
- 2017-3-13
- 最后登录
- 2024-10-19
- 在线时间
- 51 小时
- 性别
- 保密
男爵
- 耕战
- 10
- 鹰币
- 60
- 天龙币
- 0
- 回帖
- 47
|
发表于 2017-10-19 21:52:52
|
显示全部楼层
在你的帝国3游戏安装目录下找到AI3文件,鼠标右键用记事本打开,在查找那里输入rule turtleUp并搜索,往下拉找到/* setUnitPickerPreference(),找到void setUnitPickerPreference(int upID = -1)
{
// Add the main unit lines
if (upID < 0)
return;
// Check for commanded unit preferences.
if ( (gUnitPickSource == cOpportunitySourceTrigger) || (gUnitPickSource == cOpportunitySourceAllyRequest) )
{ // We have an ally or trigger command, so bias everything for that one unit
if (cvPrimaryArmyUnit < 0)
return; // This should never happen, it should be set when the unitPickSource is set.
kbUnitPickResetAll(gLandUnitPicker);
kbUnitPickSetPreferenceFactor(gLandUnitPicker, cUnitTypeAbstractInfantry, 0.2); // Range 0.0 to 1.0
kbUnitPickSetPreferenceFactor(gLandUnitPicker, cUnitTypeAbstractArtillery, 0.2 );
kbUnitPickSetPreferenceFactor(gLandUnitPicker, cUnitTypeAbstractCavalry, 0.2);
kbUnitPickSetPreferenceFactor(gLandUnitPicker, cUnitTypeAbstractNativeWarrior, 0.2);
kbUnitPickSetPreferenceFactor(gLandUnitPicker, cUnitTypeCoureur, 0.0); // Avoid coureurs, they mess up econ/mil calcs. 这里的0.2就是AI选择单位的概率,再往下就是具体的国家AI选择步兵,骑兵,炮兵的具体分配比例,你可以自行修改数值。 你想要纯步兵的AI,只需要把步兵的0.2改成1,其它的改成0即可。(能查找到的步兵都改成0.2,步兵的英文是Infantry) |
|