钢铁雄心4通用事件代码修改指南 如何对通用事件进行修改
发布网友
发布时间:2022-04-24 18:42
我来回答
共1个回答
热心网友
时间:2023-10-06 10:23
《钢铁雄心4》中可以通过代码对事件进行修改。有兴趣的玩家不放来试试《钢铁雄心4》通用事件代码修改指南。
iamcom
一个个修改state太麻烦,本人尝试弄了个通用的修改事件
随便新建个文件,cheats.txt,放Hearts
of
Iron
IV\events\里
country_event
=
{
id
=
"political.90"
(id名似乎不好随便改,随便改控制台找不到代码,特地加了“”符号防止找不到代码)
title
=
"political.90.t"
desc
=
"political.90.d"
is_triggered_only
=
yes(唯一,只限于控制台调出事件)
(最大4个选项,再多会看不到)
option
=
{
name
=
"political.90.a"(所有核心领土交通防空和机场各加1,加到满为止)
every_owned_state
=
{
limit
=
{
is_core_of
=
THIS
free_building_slots
=
{
building
=
infrastructure
size
>
0
}
}
add_building_construction
=
{
type
=
infrastructure
level
=
1
instant_build
=
yes
}
}
every_owned_state
=
{
limit
=
{
is_core_of
=
THIS
free_building_slots
=
{
building
=
anti_air_building
size
>
0
}
}
add_building_construction
=
{
type
=
anti_air_building
level
=
1
instant_build
=
yes
}
}
every_owned_state
=
{
limit
=
{
is_core_of
=
THIS
free_building_slots
=
{
building
=
air_base
size
>
0
}
}
add_building_construction
=
{
type
=
air_base
level
=
1
instant_build
=
yes
}
}
}