Event
Pretender Challenges the Throne

Struggles over the succession have become commonplace in Country. On this occasion a Prince named Target Character has gathered an army and begun his/her march to the capital to overthrow the Ruler Title.
Definitionin_game/events/disaster/decline_of_majapahit.txt:276
277hide_portraits = yes
278type = country_event
279category = disaster_event
280title = decline_of_majapahit.5.title Pretender Challenges the Throne
281desc = decline_of_majapahit.5.desc Struggles over the succession have become commonplace in Country. On this occasion a Prince named Target Character has gathered an army and begun his/her march to the capital to overthrow the Ruler Title.
282outcome = neutral
283image = "gfx/interface/illustrations/disaster/death_of_hayan_wuruk.dds"
286trigger = {
287ruler_or_heir_if_regent ?= {
288has_dynasty = yes
}
290NOT = {
291any_rebel = {
292rebel_category = pretender
}
}
}
297immediate = {
299random_character = {
300limit = {
302has_dynasty = yes
303root.ruler_or_heir_if_regent ?= {
304dynasty = PREV.dynasty
}
306NOT = {
306is_parent_of = ROOT.ruler
}
307NOT = {
307is_child_of = ROOT.ruler
}
}
309save_scope_as = target_character
}
312if = {
313limit = {
314NOT = {
314exists = scope:target_character
}
}
316create_character = {
318dynasty = root.ruler_or_heir_if_regent.dynasty
319min_age = 20
320culture = root.culture
321religion = root.religion
322save_scope_as = target_character
}
}
326create_rebel = {
327category = pretender
328name = majapahit_pretender_rebels Pretender Rebellion
329save_scope_as = target_rebels
}
332scope:target_character = {
333change_character_allegiance = scope:target_rebels
}
}