需要做一个on_game_start 的on_action 触发开局破碎
(资料图)
方法流程:
1.在 game/common/on_action目录下(如果是在mod目录修改,则是common/on_action)新建一个文件命名为xxx_on_actions.txt,编码格式为UTF-8 with BOM
2.直接贴代码:
on_game_start = {
on_actions = {
shattered_world_effects
}
}
shattered_world_effects = {
effect = {
every_ruler = {
if = {
limit = {
primary_title.tier >= tier_duchy
}
save_temporary_scope_as = lord
every_held_title = {
limit = {
tier >= tier_duchy
}
scope:lord = {
destroy_title = prev
}
}
}
every_sub_realm_county = {
limit = {
holder = prev
NOT = { this = prev.capital_county }
}
create_character = {
gender = male
location = prev.location
culture = this.culture
faith = this.faith
save_scope_as = successor
}
create_title_and_vassal_change = {
type = granted
save_scope_as = change
add_claim_on_loss = no
}
this = {
change_title_holder = {
holder = scope:successor
change = scope:change
government_base = prev
}
}
resolve_title_and_vassal_change = scope:change
}
}
}
}
关键词: