-
Notifications
You must be signed in to change notification settings - Fork 82
/
Template event.txt
317 lines (243 loc) · 11.4 KB
/
Template event.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
### This is a template event for contributors to add historical and ahistorical events to the mod ###
Please follow the format, it makes it much easier to vet your contributions later. Extra stuff not in the template can be added but beware of how it would interact with unexpected situations.
#Fate of the National Indigenous Congress
country_event = {
id = 80018012
title = "Fate of the National Indigenous Congress" #Insert title of event
desc = EVTDESC80018012 #Localisation to be inserted in a separate file
picture = "BOL_1947_fate_of_the_NIC" #Follow naming format
fire_only_once = yes #MANDATORY for all events that are not generic
### Full list of scopes at https://vic2.paradoxwikis.com/List_of_scopes ###
trigger = {
### Full list of conditions at https://vic2.paradoxwikis.com/List_of_conditions ###
tag = BOL #MANDATORY
year = 1947 #The year the historical event occurred
NOT = { has_global_flag = 1950_start_date_flag } #Does not fire for the 1950 start date
NOT = { year = 1990 } #Does not fire for the 1992 start date
government = presidential_dictatorship #Gov type restriction
war = no #MANDATORY for all peacetime only events
is_vassal = no #MANDATORY unless the event does not change ruling parties or gov type.
election = no #Optional
ruling_party_ideology = conservative #Optional
money = 100000 #Option check for money
education = public_education #Optional
owns = 1055 #Check if a province is owned
any_owned_province = { is_core = THIS is_state_capital = yes } #Check if the following type of province is met
#Checking status of another country
CUB = {
exists = yes #MANDATORY
government = proletarian_dictatorship
is_vassal = no
war = no
OR = { ruling_party_ideology = communist ruling_party_ideology = communist_social }
}
#Checking for the status in a province anywhere in the world
749 = { has_province_modifier = vatican_city }
#Check for country modifier
has_country_modifier = united_nations_ga_member
#How to check that the Cold War is still ongoing
has_global_flag = blocsenabled
has_country_flag = national_indigenous_congress #Option - check for flags applied by prior events
#Cold War ongoing #If this event is cold war specific
has_global_flag = blocsenabled
}
mean_time_to_happen = {
months = 6 #Ideally it should be the month the event occurred IRL
modifier = {
factor = 0 #This makes the event fire immediately
AND = { war = yes election = yes } #Must have an AND when checking for 2 or more conditions
}
modifier = {
factor = 5 #This makes the MTTH 30 months instead
average_militancy = 5 #Checks for average militancy of entire country
}
}
### Full list of effects at https://vic2.paradoxwikis.com/List_of_effects ###
option = { #(1) Arrange options in order of the highest ai_chance. (2) Each option must have a pro and a cons
name = "We don't need to make concessions with them any longer."
badboy = 1
money = 100000 #Must have a check to make sure the country actually enough money so this won't insta bankrupt the AI
set_global_flag = BOL_does_this_flag #global flags must not be generically named like 'set_global_flag = science'
set_country_flag = 1947_fate_of_the_NIC #Country flags must not be generically named like 'set_country_flag = science'
clr_country_flag = national_indigenous_congress #Note that country flags remain even after a country is annexed
clr_global_flag = BOL_does_this_flag
political_reform = minorities_oppression #Remember to create a check in triggered to make sure the reform has not already been enacted
social_reform = unlimited_education
primary_culture = australian #How to add/remove primary cultures
add_accepted_culture = quechua #How to add/remove accepted cultures
remove_accepted_culture = quechua
remove_accepted_culture = aimara
add_country_modifier = { name = revolution_chaos duration = 3650 } #Country modifiers for historical events should not be indefinite.
any_owned = { #Province modifiers for historical events should not be indefinite.
limit = {
is_core = THIS
is_capital = no
}
add_province_modifier = { name = nationalist_agitation duration = 3650 }
}
any_pop = {
limit = {
type = farmers
OR = {
culture = quechua
culture = aimara
}
}
ideology = {
value = socialist
factor = 0.3 #Don't use -0.X as it can cause a crash
}
scaled_consciousness = {
ideology = socialist
factor = 3
}
scaled_militancy = {
factor = 5
ideology = socialist
}
}
random_country = { #If relations with another country is affected, it must be done via this method.
limit = {
tag = USA
government = democracy
is_vassal = no #MANDATORY check
war = no
ruling_party_ideology = liberal
}
relation = { who = THIS value = -100 }
diplomatic_influence = { who = THIS value = -50 }
}
any_country = { #If relations with other countries are affected, it must be done via this method.
limit = {
exists = yes #MANDATORY because any_country does not check if the country exists, unlike random_country
OR = { tag = USA tag = FRA tag = ENG }
government = democracy
is_vassal = no #MANDATORY check
ruling_party_ideology = liberal
}
relation = { who = THIS value = -100 }
leave_alliance = THIS
}
ai_chance = {
factor = 0.9 #Historical options must have a minimum of 80% ai_chance.
modifier = {
factor = 0 #AI will not choose this option if the condition is met
OR = { war_policy = jingoism war_policy = pro_militancy }
}
modifier = {
factor = 0.5 #AI have a lower chance of taking this option if these conditions are met
PEU = { exists = yes war_with = THIS }
}
}
}
option = {
name = "We should continue to fulfill their demands."
prestige = 50 #Use prestige_factor = 0.01 if you wish to increase prestige by 1% of the country's current prestige
money = -10000 #Note - Cannot reduce or increase the country's treasury by more than 2m due to hardcoded limitations
political_reform = minorities_equal_rights
######################
government = democracy #If you wish to change the gov type to a Republic
country_event = 800054
ruling_party_ideology = big_tent #Note ruling party restrictions for the various gov types
######################
random_owned = { #Way to release an independent country from this country
limit = { owner = { is_possible_vassal = GEO } }
owner = {
release = GEO #release_vassal if you want to release the country as a vassal
GEO = { #Set gov type of released nation
government = proletarian_dictatorship
country_event = 800052 #democracies use 800054, communist dictatorships use 800052, all other dictatorships use 800050
ruling_party_ideology = communist
create_alliance = THIS
}
THIS = { #This is needed because owner = { } does not actually check for THIS for the purposes of affecting relations
relation = { who = GEO value = 200 }
diplomatic_influence = { who = GEO value = 200 }
}
}
}
#How to trigger a war
overlord = { release_vassal = THIS } #If the country already exists as a vassal
war = { #Must check that both the attacking and defending parties are not puppets as that would auto peace
target = PEU
attacker_goal = { casus_belli = acquire_any_state state_province_id = 1211 }
defender_goal = { casus_belli = humiliate }
call_ally = yes/no
}
any_pop = { #Various ways to interact with pops in THIS
limit = {
OR = { strata = poor strata = middle strata = rich }
OR = {
culture = quechua
culture = aimara
has_pop_religion = catholic
location = { is_core = BOL }
}
}
ideology = {
value = socialist
factor = 0.1
}
militancy = 2 #How to increase militancy without scaling it to ideology support
consciousness = 2
}
capitalists = { money = 500 } #How to give money to pops
###################### #Way to change Republic system
clr_country_flag = presidential_system_republic
clr_country_flag = semi_presidential_system_republic
clr_country_flag = parliamentary_system_republic
set_country_flag = parliamentary_system_republic
######################
#Creating a IF effect (Remember that each line is executed sequentially so the check must be arranged correctly)
random_owned = { limit = { owner = { has_country_modifier = low_government_corruption } } owner = { remove_country_modifier = low_government_corruption add_country_modifier = { name = minimal_government_corruption duration = -1 } } }
random_owned = { limit = { owner = { has_country_modifier = medium_government_corruption } } owner = { remove_country_modifier = medium_government_corruption add_country_modifier = { name = low_government_corruption duration = -1 } } }
random_owned = { limit = { owner = { has_country_modifier = large_government_corruption } } owner = { remove_country_modifier = large_government_corruption add_country_modifier = { name = medium_government_corruption duration = -1 } } }
random_owned = { limit = { owner = { has_country_modifier = massive_government_corruption } } owner = { remove_country_modifier = massive_government_corruption add_country_modifier = { name = large_government_corruption duration = -1 } } }
ai_chance = { factor = 0.1 }
}
}
#### TRIGGERED EVENT ####
#Yugoslavia demands Bolivia
country_event = {
id = 8020304 #Event ID cannot be more than 9 digits
title = "Yugoslavia demands Bolivia"
desc = EVTDESC8020304 #Localisation to be inserted in a separate file
picture = "BOL_YUG_1947_demand_annexation" #Follow naming format
is_triggered_only = yes # YUG
option = {
name = "Bolivia remains independent!"
relation = { who = FROM value = -200 }
FROM = { diplomatic_influence = { who = THIS value = -200 } }
war = { #Must check that both the attacking and defending parties are not puppets as that would auto peace
target = FROM
attacker_goal = { casus_belli = conquest }
defender_goal = { casus_belli = status_quo }
call_ally = yes/no
}
ai_chance = { factor = 0.9 }
}
option = {
name = "Yugoslavia shall give Bolivia some land instead!"
######
inherit = BOL #Generally, a country can only inherit the target if the target is not a vassal and not at war
######
random_owned = {
limit = {
average_militancy = 9
is_core = YUG
is_capital = no #Remember never to cede the capital province as it will permanently change the capital of the country.
}
secede_province = FROM
}
any_owned = {
limit = {
is_core = YUG
is_capital = no #Remember never to cede the capital province as it will permanently change the capital of the country.
}
secede_province = FROM
}
#How to change tag of THIS
change_tag = BKF #Remember to check that BKF doesn't already exists or it will do a tag switcheroo so the current BKF becomes YUG and YUG becomes BKF
ai_chance = { factor = 0.1 }
}
}