Event
Target Rebel

A group of Nobility headed by Target Character has decided to band together in a konfederacja in favor of defending their historical privileges from the alleged excesses of the Ruler Title. Unless we meet the demands of the Target Rebel, it is very likely we will have to face an armed rebellion against us.
NobilityEstateimmediate, trigger
Poland-LithuaniaFormable Countrytrigger
NoblesPop Typeimmediateflavor_plc_15_cooldownVariabletriggerDefinitionin_game/events/DHE/flavor_plc.txt:977
978type = country_event
979title = flavor_plc.15.title Target Rebel
980desc = flavor_plc.15.desc A group of Nobility headed by Target Character has decided to band together in a konfederacja in favor of defending their historical privileges from the alleged excesses of the Ruler Title. Unless we meet the demands of the Target Rebel, it is very likely we will have to face an armed rebellion against us.
981outcome = neutral
983trigger = {
986any_character = {
988has_dynasty = yes
990trigger_if = {
991limit = {
992ROOT.ruler = {
992has_dynasty = yes
}
}
994dynasty = ROOT.ruler.dynasty
}
}
}
999illustration_tags = {
100010 = armed
100110 = exterior
}
1004immediate = {
}
1013random_character = {
1014limit = {
1016has_dynasty = yes
1018trigger_if = {
1019limit = {
1020ROOT.ruler = {
1020has_dynasty = yes
}
}
1022dynasty = ROOT.ruler.dynasty
}
}
1025save_scope_as = target_character
}
1028create_rebel = {
1029category = estate
1031name = plc_confederation_rebelname Confederation
1032save_scope_as = target_rebel
}
1035scope:target_character = {
1036change_character_allegiance = scope:target_rebel
}
1039if = {
1040limit = {
1041num_possible_estate_privileges:nobles_estate > 0
}
1044estate(estate_type:nobles_estate) = {
1045random_possible_privilege = {
1046save_scope_as = target_privilege
}
}
}
1052set_local_variable = {
1053name = amount_of_rebelling_provinces
1054value = {
0.15
0.33
}
}
1057change_local_variable = {
1058name = amount_of_rebelling_provinces
1059multiply = num_provinces
}
1062set_local_variable = {
1063name = amount_of_gold_to_nobles
1064value = {
1065value = monthly_income_trade_and_tax
1066multiply = 24
1067multiply = "estate_power(estate_type:nobles_estate)"
}
}
1071ordered_province = {
1072max = local_var:amount_of_rebelling_provinces
1073every_location_in_province = {
1074every_pop = {
1079change_pop_allegiance = scope:target_rebel
}
}
}
}