Great Xi is supposed in Sichuan area in Xinan region but somehow in 1.34 it is in South China region. Not to mention the tag exists but no events for it to pop up.
I think the Yunan Protectorate event should also include the Great Xi rebellion by Zhang Xianzhong.
The code should look like below:
Also why the country file place the capital and culture of Xi in the wrong place. It should look something like this:
I think the Yunan Protectorate event should also include the Great Xi rebellion by Zhang Xianzhong.
The code should look like below:
Code:
# Yunnan Protectorate
country_event = {
id = ming_crisis.4
title = "ming_crisis.4.t"
desc = "ming_crisis.4.d"
picture = BAD_WITH_MONARCH_eventPicture
is_triggered_only = yes
fire_only_once = yes
major = yes
trigger = {
NOT = { exists = CDL }
NOT = { exists = CXI }
num_of_owned_provinces_with = {
value = 10
region = xinan_region
controlled_by = REB
}
any_owned_province = {
OR = {
area = chuanbei_area
area = sichuan_area
area = yun_gui_area
area = chuannan_area
area = yun_gui_borderland_area
}
}
}
immediate = {
hidden_effect = {
if {
limit = {
NOT = {
exists = CDL
}
}
hidden_effect = {
every_owned_province = {
limit = {
OR = {
controlled_by = REB
controlled_by = ROOT
}
OR = {
area = yun_gui_area
area = chuannan_area
area = yun_gui_borderland_area
}
OR = {
controlled_by = REB
controlled_by = ROOT
}
NOT = { is_core = CDL }
}
add_core = CDL
clear_rebels = yes
}
release = CDL
CDL = {
capital_scope = {
build_to_forcelimit = {
infantry = 0.6
cavalry = 0.3
artillery = 0.1
}
}
change_government = monarchy
add_government_reform = chinese_warlord
adopt_reform_progress = ROOT
}
}
}
if {
limit = {
NOT = {
exists = CXI
}
}
hidden_effect = {
every_owned_province = {
limit = {
OR = {
controlled_by = REB
controlled_by = ROOT
}
OR = {
area = chuanbei_area
area = sichuan_area
}
OR = {
controlled_by = REB
controlled_by = ROOT
}
NOT = { is_core = CXI }
}
add_core = CXI
clear_rebels = yes
}
release = CDL
CXI = {
capital_scope = {
build_to_forcelimit = {
infantry = 0.6
cavalry = 0.3
artillery = 0.1
}
}
change_government = monarchy
add_government_reform = chinese_warlord
adopt_reform_progress = ROOT
}
}
}
if = {
limit = {
any_country = {
NOT = { is_neighbor_of = ROOT }
is_subject_of_type = tributary_state
is_subject_of = ROOT
}
}
every_country = {
limit = {
NOT = { is_neighbor_of = ROOT }
is_subject_of_type = tributary_state
is_subject_of = ROOT
}
country_event = {
id = ming_crisis.10
}
}
}
}
}
option = {
name = ming_crisis.4.a
ai_chance = { factor = 1 }
add_mandate = -10
CDL = { add_liberty_desire = 100 }
CXI = {
define_ruler = {
name = "Xianzhong"
dynasty = "Zhang"
}
add_yearly_manpower = 15
add_years_of_income = 15
}
if = {
limit = {
has_dlc = "Mandate of Heaven"
is_emperor_of_china = yes
}
CXI = {
declare_war_with_cb = {
who = root
casus_belli = cb_take_mandate
}
}
}
else = {
CXI = {
declare_war = root
}
}
option = {
name = ming_crisis.4.b
ai_chance = { factor = 0 }
add_mandate = 15
CDL = {
declare_war_with_cb = {
who = root
casus_belli = cb_independence_war
}
}
CXI = {
define_ruler = {
name = "Xianzhong"
dynasty = "Zhang"
}
add_yearly_manpower = 15
add_years_of_income = 15
}
if = {
limit = {
has_dlc = "Mandate of Heaven"
is_emperor_of_china = yes
}
CXI = {
declare_war_with_cb = {
who = root
casus_belli = cb_take_mandate
}
}
}
else = {
CXI = {
declare_war = root
}
}
option = {
name = ming_crisis.4.c
trigger = { ai = no }
add_mandate = 15
switch_tag = CDL
CDL = {
declare_war_with_cb = {
who = root
casus_belli = cb_independence_war
}
}
CXI = {
define_ruler = {
name = "Xianzhong"
dynasty = "Zhang"
}
add_yearly_manpower = 15
add_years_of_income = 15
}
if = {
limit = {
has_dlc = "Mandate of Heaven"
is_emperor_of_china = yes
}
CXI = {
declare_war_with_cb = {
who = root
casus_belli = cb_take_mandate
}
}
}
else = {
CXI = {
declare_war = root
}
}
option = {
name = ming_crisis.4.d
trigger = { ai = no }
add_mandate = 10
CDL = { add_liberty_desire = 100 }
CXI = {
define_ruler = {
name = "Xianzhong"
dynasty = "Zhang"
}
add_yearly_manpower = 15
add_years_of_income = 15
}
if = {
limit = {
has_dlc = "Mandate of Heaven"
is_emperor_of_china = yes
}
CXI = {
declare_war_with_cb = {
who = root
casus_belli = cb_take_mandate
}
}
}
else = {
CXI = {
declare_war = root
}
switch_tag = CXI
}
}
Also why the country file place the capital and culture of Xi in the wrong place. It should look something like this:
Code:
government = monarchy
add_government_reform = chinese_warlord
technology_group = chinese
religion = confucianism
primary_culture = Sichuanese
capital = 679 # Chengdu
1630.1.1 = {
monarch = {
name = "Xianzhong"
dynasty = "Zhang"
adm = 1
dip = 1
mil = 3
}
capital = 679 # Chengdu
}
1644.8.9 = { capital = 679 } # Sichuan
Last edited:
- 2
- 1