钢铁雄心3吧 关注:108,657贴子:2,330,138
  • 1回复贴,共1

无法修改AI科研和造兵规律,求指点

只看楼主收藏回复

用的复兴之澜3.0,修改了hoi3\tfh\mod\the billows of revival\script\country\下的chi.lua文件的内容,民国的科研和造兵完全没变,该怎样改呢???


IP属地:四川来自Android客户端1楼2013-07-27 20:55回复
    -- Tech weights
    -- 1.0 = 100% the total needs to equal 1.0
    function P.TechWeights(voTechnologyData)
    local laTechWeights = {
    0.20, -- landBasedWeight
    0.15, -- landDoctrinesWeight
    0.10, -- airBasedWeight
    0.10, -- airDoctrinesWeight
    0.10, -- navalBasedWeight
    0.10, -- navalDoctrinesWeight
    0.10, -- industrialWeight
    0.05, -- secretWeaponsWeight
    0.10}; -- otherWeight
    return laTechWeights
    end -- Techs that are used in the main file to be ignored
    -- techname|level (level must be 1-9 a 0 means ignore all levels
    -- use as the first tech name the word "all" and it will cause the AI to ignore all the techs
    function P.LandTechs(voTechnologyData)
    local ignoreTech = {
    {"super_heavy_tank_brigade", 0},
    {"super_heavy_tank_gun", 0},
    {"super_heavy_tank_engine", 0},
    {"super_heavy_tank_armour", 0},
    {"super_heavy_tank_reliability", 0}};
    local preferTech = {
    "infantry_activation",
    "smallarms_technology",
    "infantry_support",
    "infantry_guns",
    "infantry_at",
    "lighttank_brigade",
    "lighttank_gun",
    "lighttank_engine",
    "lighttank_armour",
    "lighttank_reliability",
    "tank_brigade",
    "tank_gun",
    "tank_engine",
    "tank_armour",
    "tank_reliability",
    "art_barrell_ammo",
    "art_carriage_sights"};
    return ignoreTech, preferTech
    end function P.LandDoctrinesTechs(voTechnologyData)
    local ignoreTech = {
    {"special_forces", 3}};
    local preferTech = {
    "infantry_warfare",
    "mass_assault",
    "peoples_army"};
    return ignoreTech, preferTech
    end function P.AirTechs(voTechnologyData)
    local ignoreTech = {
    {"rocket_interceptor_tech", 1}};
    return ignoreTech, nil
    end function P.AirDoctrineTechs(voTechnologyData)
    local ignoreTech = {
    {"logistical_strike_tactics", 10}}; return ignoreTech, nil
    end
    function P.NavalTechs(voTechnologyData)
    local ignoreTech = {
    {"lightcruiser_engine", 10}}; return ignoreTech, nil
    end
    function P.NavalDoctrineTechs(voTechnologyData)
    local ignoreTech = {
    {"naval_underway_repleshment", 10}}; return ignoreTech, nil
    end function P.IndustrialTechs(voTechnologyData)
    local ignoreTech = {
    {"heavy_aa_guns", 2}}; local preferTech = {
    "agriculture",
    "industral_production",
    "industral_efficiency",
    "supply_production",
    "education"};
    return ignoreTech, preferTech
    end
    function P.SecretWeaponTechs(voTechnologyData)
    local ignoreTech = {
    {"strategicrocket_structure", 2}};
    return ignoreTech, nil
    end function P.OtherTechs(voTechnologyData)
    local ignoreTech = {
    {"jetengine_research", 20}}; local preferTech = {
    {"chemical_engineering_research"},
    {"nuclear_physics_research"},
    {"mechanicalengineering_research"},
    {"automotive_research"},
    {"electornicegineering_research"},
    {"artillery_research"},
    {"mobile_research"},
    {"militia_research"},
    {"infantry_research"}};
    return ignoreTech, preferTech
    end -- END OF TECH RESEARCH OVERIDES


    IP属地:四川2楼2013-07-27 20:56
    回复