On Action
on_civil_war_start
root = original country which gets targeted by the civil war, scope:target = rebel country which declares the war, scope:war = the civil war, scope:rebel is the rebel
NaplesCountryeffect
The English Civil WarDisastereffect
Horde Civil WarDisastereffect
Revolution!Disastereffectfuture_republic_of_naplesVariableeffectli_zicheng_rebellionVariableeffectpretender_rebel_characterVariableeffectrevolution_rebel_varVariableeffectDefinitionin_game/common/on_action/_hardcoded.txt:992
993effect = {
999if = {
1000limit = {
1001scope:rebel = {
1001rebel_name_key = jacquerie_revolt
}
}
1003scope:target = {
1004create_character = {}
1016add_reform = government_reform:peasant_republic_reform
1018set_new_ruler = scope:target_character
1023every_estate_privilege = {
1024scope:target = {
1025revoke_estate_privilege = PREV
}
}
}
}
1030if = {
1031limit = {
1034scope:target = {
1035OR = {
1036has_ruler = no
1037NOT = {
1037ruler = root.var:pretender_rebel_character
}
}
}
}
1042save_scope_as = pretender_ruler
1043move_country = scope:target
}
1045scope:target = {
1045set_new_ruler = scope:pretender_ruler
}
}
1048if = {
}
1058if = {
1059limit = {
1060scope:rebel = {
1060rebel_name_key = parliamentarist_rebels
}
}
}
1065if = {
1066limit = {
1069country_exists = scope:target
1070scope:target = {
1071OR = {
1072has_ruler = no
1073NOT = {
1073ruler = root.var:pretender_rebel_character
}
}
}
}
1078save_scope_as = pretender_ruler
1079move_country = scope:target
}
1081scope:target = {
1081set_new_ruler = scope:pretender_ruler
}
}
1083if = {
1084limit = {
1087this = root
1089scope:rebel = root.var:future_republic_of_naples
}
}
}
1098if = {
1099limit = {
}
}
}