on_actions = {
	# country
	on_new_term_election = {
		random_events = {
			100 = election.2
			100 = election.3
			100 = election.4
			100 = election.5
			100 = election.6
			100 = election.7
			100 = election.8
			100 = election.9
			100 = election.10
			100 = election.11
			100 = election.12
			100 = election.13
			100 = election.14
			100 = election.15
			100 = election.16
			100 = election.17
			100 = election.18
			100 = election.19
			100 = election.20
			100 = election.21
			100 = election.22
			100 = election.23
			100 = election.24
			100 = election.25
			100 = election.26
			100 = election.27
			100 = election.28
			100 = election.29
			100 = election.30
			100 = election.31
			100 = election.32
			100 = election.33
			100 = election.34
			100 = election.35
			100 = election.36
			100 = election.37
			100 = election.38
			100 = election.39
			100 = election.40
			100 = election.41
			100 = election.42
			100 = election.43
			100 = election.44
			100 = election.45
			100 = election.46
			100 = election.47
			100 = election.48
			100 = election.49
			100 = election.50
			100 = election.51
			100 = election.52
			100 = election.53
			100 = election.54
			100 = election.55
			100 = election.56
			100 = election.57
			100 = election.58
			100 = election.59
			100 = election.60
			100 = election.61
			100 = election.62
			100 = election.63
			100 = election.64
			100 = election.65
			100 = election.66
			100 = election.67
			100 = election.68
			100 = election.69
			100 = election.70
			100 = election.71
			100 = election.72
			100 = election.73
			100 = election.74
			100 = election.75
			100 = election.76
			100 = election.77
			100 = election.78
			100 = election.79
			100 = election.80
			100 = election.81
			100 = election.82
			100 = election.83
			100 = election.84
			100 = election.85
			100 = election.86
			100 = election.87
			100 = election.88
			100 = election.89
			100 = election.90
			100 = election.91
			100 = election.92
			100 = election.93
			100 = election.94
			100 = election.95
			100 = election.96
			100 = election.97
			100 = election.98
			100 = election.99
			100 = election.100
			100 = election.101
			100 = election.102
			100 = election.103
			100 = election.104
			100 = election.105
			100 = election.106
			100 = election.107
			100 = election.108
			100 = election.109
			100 = election.110
			100 = election.111
			100 = election.112
			100 = election.113
			100 = election.114
			100 = election.115
			100 = election.116
			100 = election.117
			100 = election.118
			100 = election.119
			100 = election.120
			100 = election.121
			100 = election.122
			100 = election.123
			100 = election.124
			100 = election.125
			100 = election.126
			100 = election.127
			100 = election.128
			100 = election.129
			100 = election.130
			100 = election.131
			100 = election.132
			100 = election.133
			100 = election.134
			100 = election.135
			100 = election.136
			100 = election.137
			100 = election.138
			100 = election.139
			100 = election.140
			100 = election.141
			100 = election.142
			100 = election.143
			100 = election.144
			100 = election.145
			100 = election.146
			100 = election.147
			100 = election.148
			100 = election.149
			100 = election.150
			100 = election.151
			100 = election.152
			100 = election.153
			100 = election.154
			100 = election.155
			100 = election.156
			100 = election.157
			100 = election.158
			100 = election.159
			100 = election.160
			100 = election.161
			100 = election.162
			100 = election.163
			100 = election.164
			100 = election.165
			100 = election.166
			100 = election.167
			100 = election.168
			100 = election.169
			100 = election.170
			100 = election.171
			100 = election.172
			100 = election.173
			100 = election.174
			100 = election.175
			100 = election.176
			100 = election.177
			100 = election.178
			100 = election.179
			100 = election.180
			100 = election.181
			100 = election.182
			100 = election.183
			100 = election.184
			100 = election.185
			100 = election.186
			100 = election.187
			100 = election.188
			100 = election.189
			100 = election.190
			100 = election.191
			100 = election.192
			100 = election.193
			100 = election.194
			100 = election.195
			100 = election.196
			100 = election.197
			100 = election.198
			100 = election.199
			100 = election.200
			100 = election.201
			100 = election.202
			100 = election.203
			100 = election.204
			100 = election.205
			100 = election.206
			100 = election.207
			100 = election.208
			100 = election.209
			100 = election.210
			100 = election.211
			100 = election.212
			100 = election.213
			100 = election.214
			100 = election.215
			100 = election.216
			100 = election.217
			100 = election.218
			100 = election.219
			100 = election.220
			100 = election.221
			100 = election.222
			100 = election.223
			100 = election.224
			100 = election.225
			100 = election.226
			100 = election.227
			100 = election.228
			100 = election.229
			100 = election.230
			100 = election.231
			100 = election.232
			100 = election.233
			100 = election.234
			100 = election.235
			100 = election.236
			100 = election.237
			100 = election.238
			100 = election.239
			100 = election.240
			100 = election.241
			100 = election.242
			100 = election.243
			100 = election.244
			100 = election.245
			100 = election.246
			100 = election.247
			100 = election.248
			100 = election.249
			100 = election.250
			100 = election.251
			100 = election.252
			100 = election.253
			100 = election.254
			100 = election.255
			100 = election.256
			100 = election.257
			100 = election.258
			100 = election.259
			100 = election.260
			100 = election.261
			100 = election.262
			100 = election.263
			100 = election.264
			100 = election.265
			100 = election.266
			100 = election.267
			100 = election.268
			100 = election.269
			100 = election.270
			100 = election.271
			100 = election.272
			100 = election.273
			100 = election.274
			100 = election.275
			100 = election.276
			100 = election.277
			100 = election.278
			100 = election.279
			100 = election.280
			100 = election.281
			100 = election.282
			100 = election.283
			100 = election.284
			100 = election.285
			100 = election.286
			100 = election.287
			100 = election.288
		}
	}
	on_government_change = {
		effect = {
			if = {
				limit = { has_government = absolutist }
				if = {
					limit = { has_idea = absolutist_partisans_recruiting }
					remove_ideas = absolutist_partisans_recruiting
				}
				if = {
					limit = { has_idea = absolutist_revolutionaries }
					remove_ideas = absolutist_revolutionaries
				}
				if = {
					limit = { has_idea = absolutist_defeated }
					remove_ideas = absolutist_defeated
				}
			}
			if = {
				limit = { has_government = communism }
				if = {
					limit = { has_idea = communism_partisans_recruiting }
					remove_ideas = communism_partisans_recruiting
				}
				if = {
					limit = { has_idea = communism_revolutionaries }
					remove_ideas = communism_revolutionaries
				}
				if = {
					limit = { has_idea = communism_defeated }
					remove_ideas = communism_defeated
				}
			}
			if = {
				limit = { has_government = fascism }
				if = {
					limit = { has_idea = fascism_partisans_recruiting }
					remove_ideas = fascism_partisans_recruiting
				}
				if = {
					limit = { has_idea = fascism_revolutionaries }
					remove_ideas = fascism_revolutionaries
				}
				if = {
					limit = { has_idea = fascism_defeated }
					remove_ideas = fascism_defeated
				}
			}
			if = {
				limit = { has_government = radical }
				if = {
					limit = { has_idea = radical_partisans_recruiting }
					remove_ideas = radical_partisans_recruiting
				}
				if = {
					limit = { has_idea = radical_revolutionaries }
					remove_ideas = radical_revolutionaries
				}
				if = {
					limit = { has_idea = radical_defeated }
					remove_ideas = radical_defeated
				}
			}
			if = {
				limit = { has_government = democratic }
				set_politics = {
					elections_allowed = yes
				}
				if = {
					limit = { has_idea = democratic_opposition_voicing_protests }
					remove_ideas = democratic_opposition_voicing_protests
				}
				if = {
					limit = { has_idea = democratic_revolutionaries }
					remove_ideas = democratic_revolutionaries
				}
				if = {
					limit = { has_idea = reign_of_terror }
					remove_ideas = reign_of_terror
				}
			}
		}
	}
	on_coup_succeeded = {
		effect = {
			#Turn elections on for democracies created from coup
			random_other_country = {
				limit = {
					has_government = democratic
					original_tag = ROOT
				}
				set_politics = {
					ruling_party = democratic
					elections_allowed = yes
				}
			}
		}
	}
	on_justifying_wargoal_pulse = {
		random_events = {
			100 = war_justification.17
			100 = war_justification.18
			100 = war_justification.19
			100 = war_justification.20
			100 = war_justification.21
			100 = war_justification.22
			100 = war_justification.23
			100 = war_justification.24
			100 = war_justification.25
			100 = war_justification.26
			100 = war_justification.27
			100 = war_justification.28
			100 = war_justification.29
			100 = war_justification.30
			100 = war_justification.31
			100 = war_justification.32
			100 = war_justification.33
			100 = war_justification.34
			100 = war_justification.35
			100 = war_justification.36
			100 = war_justification.37
			100 = war_justification.38
			100 = war_justification.39
			100 = war_justification.40
			100 = war_justification.41
			100 = war_justification.42
			100 = war_justification.43
			100 = war_justification.44
			100 = war_justification.45
			100 = war_justification.46
			100 = war_justification.47
			100 = war_justification.48
			100 = war_justification.49
			100 = war_justification.50
			100 = war_justification.51
			100 = war_justification.52
			100 = war_justification.53
			100 = war_justification.54
			100 = war_justification.55
			100 = war_justification.56
			17000 = 0
		}
	}
	on_startup = {
		effect = {
			set_province_name = { id = 587 name = "Köln"} #Cologne
			set_province_name = { id = 957 name = "Vladivostok"} #Haishenwai
			set_province_name = { id = 1025 name = "Kokura"} #Fukuoka
			set_province_name = { id = 1047 name = "Guangzhou"} #Canton
			set_province_name = { id = 1182 name = "Tokyo"} #Edo
			set_province_name = { id = 1440 name = "San Juan"} #Puerto Rico
			set_province_name = { id = 1843 name = "Miami"} #Tampa
			set_province_name = { id = 3151 name = "Leningrad"} #Saint Petersburg
			set_province_name = { id = 3152 name = "Tallinn"} #Reval
			set_province_name = { id = 3529 name = "Stalingrad"} #Tsaritsyn
			set_province_name = { id = 4180 name = "Honolulu"} #Hawaii
			set_province_name = { id = 4268 name = "Nouméa"} #New Caledonia
			set_province_name = { id = 4333 name = "Astana"} #Qaraganda
			set_province_name = { id = 4709 name = "Ürümqi"} #Díhuà
			set_province_name = { id = 4801 name = "Ulaanbaatar"} #Urga
			set_province_name = { id = 6115 name = "Oslo"} #Christiania
			set_province_name = { id = 7371 name = "Kuching"} #Brunei
			set_province_name = { id = 11437 name = "Dnipropetrovsk"} #Ekaterinoslav
			set_province_name = { id = 12674 name = "Reykjavik"} #Iceland
		}
	}
}
