EventChanged this version
The Coup of Country

The regime of Old Ruler has proven as dissatisfying as the populace of Country itself rejects the Ruler Title and seeks out Target Character, a promising general who has gained the popularity of the Nobility and Commoners alike.
Today, Target Character has struck as his army has initiated a coup against Old Ruler.
GoryeoCountrydynamic historical event.tagMongolianCulturetrigger
NoblesPop Typeoption 2A Court Coup has SucceededVariabletriggerDefinitionin_game/events/DHE/flavor_KOR.txt:945
946hide_portraits = yes
947type = country_event
948title = flavor_kor.15.title The Coup of Country
949desc = flavor_kor.15.desc The regime of Old Ruler has proven as dissatisfying as the populace of Country itself rejects the Ruler Title and seeks out Target Character, a promising general who has gained the popularity of the Nobility and Commoners alike.
Today, Target Character has struck as his army has initiated a coup against Old Ruler.
Today, Target Character has struck as his army has initiated a coup against Old Ruler.
950outcome = neutral
951fire_only_once = yes
952dynamic_historical_event = {
}
958trigger = {
959OR = {
960is_subject = no
}
968at_war = no
969custom_tooltip = {
970text = variable_tt_had_successful_coup A Court Coup has Succeeded
}
973government_power < 20
974stability < 10
975exists = ruler
}
978illustration_tags = {
97910 = armed
98010 = interior
}
983immediate = {
}
985capital = {
986save_scope_as = target_location
987if = {
988limit = {
989NOT = {
990dynasty_exists = yi_dynasty
}
}
993create_dynasty_from_location = yi_dynasty
}
}
996create_character = {
997first_name = name_seong_gye
998dynasty = dynasty:yi_dynasty
1000adm = 80
1001dip = 70
1002mil = 90
1003age = 30
1004script = yi_seong_gye
1005save_scope_as = target_character
}
1007create_rebel = {
1008category = pretender
1009name = joseon_pretender Yi's Pretender Army
1010save_scope_as = joseon_pretender_scope
}
1012ruler = {
1012save_scope_as = old_ruler
}
}