
Action
Push for Serfs
The peasant rabble that have risen up against our authority must be crushed with utmost brutality by their local masters. We cannot allow our grip on power to wane, lest we risk falling victim to mob rule!
Peasants' WarDisasterselect trigger
Serfdom vs Free SubjectsSocietal ValueallowDefinitionin_game/common/generic_actions/peasants_war_actions.txt:1
2type = disaster
4allow = {
5scope:actor = {
}
}
11automation_tick = never
12automation_tick_frequency = 12
13price = price:peasants_war_actions_price
15cooldown = {
16type = pw_push_for_serfdom
17years = 1
}
20select_trigger = {
21looking_for_a = disaster
22name = "choose_disaster" Choose the Disaster:
23target_flag = recipient
24column = {
25data = name
}
}
33effect = {
34scope:actor = {
35change_societal_value = {
}
40add_estate_satisfaction = {
}
}
}
47ai_will_do = {
48add = 5
49add = {
50value = "scope:actor.estate_power(estate_type:nobles_estate)"
51multiply = 10
}
53add = {
54value = "scope:actor.estate_power(estate_type:peasants_estate)"
55multiply = -10
}
57add = {
58value = scope:actor.modifier:global_nobles_estate_power
59multiply = 10
}
61add = {
62value = scope:actor.modifier:global_peasants_estate_power
63multiply = -10
}
65if = {
69subtract = scope:actor.societal_value:serfdom_vs_free_subjects
}
71else_if = {
75add = {
76value = scope:actor.societal_value:serfdom_vs_free_subjects
77multiply = -1
}
}
80if = {
81limit = {
81scope:actor.modifier:monthly_towards_serfdom > 0
}
82add = {
83value = scope:actor.modifier:monthly_towards_serfdom
84multiply = 100
}
}
87if = {
88limit = {
88scope:actor.modifier:monthly_towards_free_subjects > 0
}
89subtract = {
90value = scope:actor.modifier:monthly_towards_free_subjects
91multiply = 100
}
}
94if = {
95limit = {
95scope:actor.government_power < 50
}
96subtract = -30
}
98if = {
99limit = {
99scope:actor.stability > 20
}
100add = scope:actor.stability
}
102else = {
103add = {
104value = scope:actor.stability
105multiply = -10
}
}
}