# Li Zicheng's rebellion and the Shun dynasty
country_event = {
id = ming_crisis.3
title = "ming_crisis.3.t"
desc = "ming_crisis.3.d"
picture = ANGRY_MOB_eventPicture
is_triggered_only = yes
fire_only_once = yes
major = yes
trigger = {
NOT = { exists = CSH }
num_of_owned_provinces_with = {
value = 10
region = north_china_region
controlled_by = REB
}
any_owned_province = {
OR = {
area = gansu_area
area = west_gansu_area
area = shaanxi_area
area = shanxi_area
area = hebei_area
area = south_hebei_area
area = liaoning_area
}
}
}
immediate = {
hidden_effect = {
every_owned_province = {
limit = {
OR = {
controlled_by = REB
controlled_by = ROOT
}
OR = {
area = gansu_area
area = west_gansu_area
area = shaanxi_area
area = shanxi_area
area = hebei_area
area = south_hebei_area
area = liaoning_area
}
OR = {
controlled_by = REB
controlled_by = ROOT
}
}
add_core = CSH
clear_rebels = yes
}
every_owned_province = { #get rid of bordergore from random Mongolian provinces
limit = {
region = mongolia_region
any_neighbor_province = {
is_core = CSH
}
OR = {
controlled_by = REB
controlled_by = ROOT
}
}
add_core = CSH
clear_rebels = yes
}
release = CSH
CSH = {
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.3.a
add_stability = -2
add_mandate = -10
CSH = {
define_ruler = {
name = "Zicheng"
dynasty = "Li"
}
add_yearly_manpower = 15
add_years_of_income = 15
}
if = {
limit = {
has_dlc = "Mandate of Heaven"
is_emperor_of_china = yes
}
CSH = {
declare_war_with_cb = {
who = root
casus_belli = cb_take_mandate
}
}
}
else = {
CSH = {
declare_war = root
}
}
}
option = {
name = ming_crisis.3.b
trigger = {
ai = no
}
add_stability = -2
add_mandate = -10
CSH = {
define_ruler = {
name = "Zicheng"
dynasty = "Li"
}
add_yearly_manpower = 15
add_years_of_income = 15
}
if = {
limit = {
has_dlc = "Mandate of Heaven"
is_emperor_of_china = yes
}
CSH = {
declare_war_with_cb = {
who = root
casus_belli = cb_take_mandate
}
}
}
else = {
CSH = {
declare_war = root
}
}
switch_tag = CSH
}
after = {
hidden_effect = {
CSH = {
if = {
limit = {
any_neighbor_country = {
tag = QNG
is_free_or_tributary_trigger = yes
NOT = { alliance_with = root }
}
}
QNG = {
country_event = { id = ming_crisis.9 days = 1 }
else_if = {
limit = {
any_neighbor_country = {
tag = MCH
is_free_or_tributary_trigger = yes
NOT = { alliance_with = root }
}
}
MCH = {
country_event = { id = ming_crisis.9 days = 1 }
else_if = {
limit = {
any_neighbor_country = {
has_reform = steppe_horde
total_own_and_non_tributary_subject_development = 300
is_subject = no
#NOT = { truce_with = ROOT }
NOT = { alliance_with = ROOT }
#NOT = { is_subject_of = ROOT }
}
}
random_neighbor_country = {
limit = {
has_reform = steppe_horde
total_own_and_non_tributary_subject_development = 300
is_subject = no
#NOT = { truce_with = ROOT }
NOT = { alliance_with = ROOT }
#NOT = { is_subject_of = ROOT }
}
country_event = { id = ming_crisis.9 days = 1 }
}
}
}
}
}
}
As the event text talks about not yet being emperor, it makes sense manchu and not qing can get it, as then you would just always avoid those northern provinces in the first warLoading…
eu4.paradoxwikis.com
The flavour text meant nothing in terms of gameplay. Sure, the Emperor of China is required to form Qing but historically Qing is proclaimed before they even conquer Beijing. Not to mention it is Qing that kill Shun historically.As the event text talks about not yet being emperor, it makes sense manchu and not qing can get it, as then you would just always avoid those northern provinces in the first war
# Manchu/Nomadic Intervention on Shun
country_event = {
id = ming_crisis.9
title = "ming_crisis.9.t"
desc = "ming_crisis.9.d"
picture = ANGRY_MOB_eventPicture
is_triggered_only = yes
major = yes
option = {
name = ming_crisis.9.A
liaoning_area = {
limit = {
owned_by = CSH
NOT = { is_claim = ROOT }
NOT = { is_core = ROOT }
}
add_claim = ROOT
}
hebei_area = {
limit = {
owned_by = CSH
NOT = { is_claim = ROOT }
NOT = { is_core = ROOT }
}
add_claim = ROOT
}
south_hebei_area = {
limit = {
owned_by = CSH
NOT = { is_claim = ROOT }
NOT = { is_core = ROOT }
}
add_claim = ROOT
}
shanxi_area = {
limit = {
owned_by = CSH
NOT = { is_claim = ROOT }
NOT = { is_core = ROOT }
}
add_claim = ROOT
}
if = {
limit = {
has_casus_belli = {
type = cb_unify_china
target = CSH
declare_war_with_cb = {
who = CSH
casus_belli = cb_unify_china
}
}
}
}
else_if = {
limit = {
has_casus_belli = {
type = cb_horde_vs_civ
target = CSH
}
}
declare_war_with_cb = {
who = CSH
casus_belli = cb_horde_vs_civ
}
}
else = {
declare_war_with_cb = {
who = CSH
casus_belli = cb_conquest
}
}
ai_chance = {
factor = 5
modifier = {
factor = 0.67
has_opinion = {
who = from
value = 10
}
}
modifier = {
factor = 0.5
has_opinion = {
who = from
value = 50
}
}
modifier = {
factor = 0.2
has_opinion = {
who = from
value = 100
}
}
modifier = {
factor = 0.5
is_at_war = yes
NOT = { war_score = 0 }
}
modifier = {
factor = 0
is_at_war = yes
NOT = { war_score = -15 }
}
modifier = {
factor = 0.2
is_in_large_debt = yes
}
}
}
option = {
name = ming_crisis.9.B
add_prestige = -20
ai_chance = {
factor = 1
modifier = {
factor = 0.01
OR = {
ai_attitude = {
who = from
attitude = attitude_hostile
}
is_rival = from
}
}
}
}
}
government = monarchy
add_government_reform = chinese_warlord
technology_group = chinese
religion = confucianism
primary_culture = xibei
capital = 700 # Xi'an
1627.1.1 = {
monarch = {
name = "Zicheng"
dynasty = "Li"
adm = 2
dip = 3
mil = 4
}
capital = 700 # Xi'an
}
1644.1.1 = { capital = 700 } # Xi'an
What does your code mean? Also qing wasnt so much unifying china as just conquering chinaI think in that case, then Qing should have been using Shun rebellion against Ming as an excuse to unify China. I guess the real life Qing did use that opportunity to unify China.
Code:# Manchu/Nomadic Intervention on Shun country_event = { id = ming_crisis.9 title = "ming_crisis.9.t" desc = "ming_crisis.9.d" picture = ANGRY_MOB_eventPicture is_triggered_only = yes major = yes option = { name = ming_crisis.9.A liaoning_area = { limit = { owned_by = CSH NOT = { is_claim = ROOT } NOT = { is_core = ROOT } } add_claim = ROOT } hebei_area = { limit = { owned_by = CSH NOT = { is_claim = ROOT } NOT = { is_core = ROOT } } add_claim = ROOT } south_hebei_area = { limit = { owned_by = CSH NOT = { is_claim = ROOT } NOT = { is_core = ROOT } } add_claim = ROOT } shanxi_area = { limit = { owned_by = CSH NOT = { is_claim = ROOT } NOT = { is_core = ROOT } } add_claim = ROOT } if = { limit = { has_casus_belli = { type = cb_unify_china target = CSH declare_war_with_cb = { who = CSH casus_belli = cb_unify_china } } } } else_if = { limit = { has_casus_belli = { type = cb_horde_vs_civ target = CSH } } declare_war_with_cb = { who = CSH casus_belli = cb_horde_vs_civ } } else = { declare_war_with_cb = { who = CSH casus_belli = cb_conquest } } ai_chance = { factor = 5 modifier = { factor = 0.67 has_opinion = { who = from value = 10 } } modifier = { factor = 0.5 has_opinion = { who = from value = 50 } } modifier = { factor = 0.2 has_opinion = { who = from value = 100 } } modifier = { factor = 0.5 is_at_war = yes NOT = { war_score = 0 } } modifier = { factor = 0 is_at_war = yes NOT = { war_score = -15 } } modifier = { factor = 0.2 is_in_large_debt = yes } } } option = { name = ming_crisis.9.B add_prestige = -20 ai_chance = { factor = 1 modifier = { factor = 0.01 OR = { ai_attitude = { who = from attitude = attitude_hostile } is_rival = from } } } } }
It meant that if the target country have the Unify China cb then it will use it against Shun. Coding never really make sense compare to the narrative.What does your code mean? Also qing wasnt so much unifying china as just conquering china
I think his codes mean that if Shun is in war with Emperor of China, Qing will declare war with cb "unify-china" to Shun. Which is what happened in the history. Qing claim they were revenging for Ming and subpressing an unlawful rebellion led by Li Zicheng.What does your code mean? Also qing wasnt so much unifying china as just conquering china