钢铁雄心4吧 关注:398,980贴子:7,214,514
  • 9回复贴,共1

解决赛里斯地区缺铁问题的代码

只看楼主收藏回复

找到游戏文件 Steam->steamapps->Hearts of Iron IV->common->decisions->resource_prospecting
拉到最下面,找到最后一个} 也就是靠近最左面一个 删除
然后空一行 留给最美的你自己 :)
把以下代码复制黏贴进去
develop_sichuan_steel_deposits = { #test
icon = steel
allowed = {
NOT = {
tag = JAP
}
highlight_states = {
highlight_state_targets = {
state = 463
}
}
available = {
has_tech = excavation1
num_of_civilian_factories_available_for_projects > 2
owns_state = 605
controls_state = 605
}
visible = {
owns_state = 605
controls_state = 605
has_tech = excavation1
605 = {
NOT = {
has_state_flag = {
flag = sichuan_steel_developed
value = 10
}
}
}
}
cost = 25
days_remove = CHI_sichuan_steel_duration?30
modifier = {
civilian_factory_use = 3
}
ai_will_do = {
base = 0
modifier = {
factor = 0
original_tag = CHI
}
modifier = {
factor = 0
OR = {
AND = { #Ultimatum decisions are available and we should prio them
original_tag = SOV
SOV_we_want_to_send_ultimatums = yes
}
AND = { #Too low MP we need to save PP for the laws
has_manpower < 10000
NOT = { has_idea = scraping_the_barrel }
}
has_political_power < 200
}
}
modifier = { #Running out of the stuff, need more!
factor = 10
has_resources_in_country = {
resource = steel
amount < 1
}
}
}
remove_effect = {
custom_effect_tooltip = repeatable_decision_tt
add_to_variable = { var = CHI_sichuan_steel_duration value = 10 }
605 = {
if = {
limit = {
NOT = {
has_state_flag = sichuan_steel_developed
}
}
set_state_flag = {
flag = sichuan_steel_developed
value = 1
}
}
else = {
modify_state_flag = {
flag = sichuan_steel_developed
value = 1
}
}
}
605 = {
add_resource = {
type = steel
amount = 12
}
}
}
complete_effect = {
if = {
limit = {
check_variable = { var = CHI_sichuan_steel_duration value = 30 compare = less_than }
}
set_variable = { var = CHI_sichuan_steel_duration value = 30 }
}
}
}
最后加一行 在最靠左的第一个字符输入{
保存文档即可
或者可以使用 百度云 直接下载后 覆盖
链接:https://pan.baidu.com/s/1a-HJaCsHrCdLmtTd28fpyQ
提取码:6666
(最后说一下,我不是西里斯。我没正经学过代码。这个是我自己手搓的。)


IP属地:江苏1楼2024-03-20 15:12回复
    6


    IP属地:上海来自Android客户端2楼2024-03-20 15:41
    回复
      塞利斯缺铁的问题不是九国公约吗我每次都是把两广打成傀儡然后一民工买80铁解决的


      IP属地:广东来自iPhone客户端3楼2024-03-20 15:46
      收起回复
        如果地球ol也能这样修改游戏文件该多好


        IP属地:湖北来自Android客户端4楼2024-03-20 16:00
        收起回复