-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhmo_high_tyranny.txt
161 lines (136 loc) · 2.58 KB
/
hmo_high_tyranny.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
namespace = high_tyranny
# adds high tyranny modifier
high_tyranny.1 = {
type = country_event
hidden = yes
trigger = {
is_ai = no
tyranny > 50
}
immediate = {
if = {
limit = {
has_country_modifier = high_tyranny
}
remove_country_modifier = high_tyranny
}
set_variable = {
name = excess_tyranny
value = tyranny
}
change_variable = {
name = excess_tyranny
add = -50
}
while = {
count = var:excess_tyranny
add_country_modifier = {
name = high_tyranny
mode = add
duration = -1
}
}
remove_variable = excess_tyranny
}
}
#removes high tyranny modifier
high_tyranny.2 = {
type = country_event
hidden = yes
trigger = {
tyranny <= 50
has_country_modifier = high_tyranny
}
immediate = {
remove_country_modifier = high_tyranny
}
}
# triggers low tyranny modifier event
high_tyranny.3 = {
type = country_event
hidden = yes
trigger = {
tyranny < 10
NOT = {
has_country_modifier = low_tyranny
has_variable = trending_low_tyranny
}
}
immediate = {
set_variable = {
name = trending_low_tyranny
days = 400 # this will eventually expire if the window is missed
}
trigger_event = {
id = high_tyranny.4
days = 365
}
}
}
# adds low tyranny modifier and pops up event
high_tyranny.4 = {
type = country_event
title = "high_tyranny.4.t"
desc = "high_tyranny.4.desc"
left_portrait = current_ruler
picture = senate_debate
trigger = {
tyranny < 10
has_variable = trending_low_tyranny
NOT = {
has_country_modifier = low_tyranny
}
}
option = {
name = "high_tyranny.4.a"
add_country_modifier = {
name = low_tyranny
duration = -1
}
hidden_effect = {
remove_variable = trending_low_tyranny
}
}
}
# triggers remove low tyranny modifier
high_tyranny.5 = {
type = country_event
hidden = yes
trigger = {
tyranny >= 10
has_country_modifier = low_tyranny
NOT = {
has_variable = trending_high_tyranny
}
}
immediate = {
set_variable = {
name = trending_high_tyranny
days = 400 # this will eventually expire if the window is missed
}
trigger_event = {
id = high_tyranny.6
days = 365
}
}
}
# removes low tyranny modifier and pops up event
high_tyranny.6 = {
type = country_event
title = "high_tyranny.6.t"
desc = "high_tyranny.6.desc"
left_portrait = current_ruler
picture = senate_debate
trigger = {
tyranny >= 10
has_country_modifier = low_tyranny
has_variable = trending_high_tyranny
}
option = {
name = "high_tyranny.6.a"
remove_country_modifier = low_tyranny
hidden_effect = {
remove_variable = trending_high_tyranny
}
}
}