SBI_pasternak_PARL_UNITY_minus_15 = {
	add_to_variable = { SBI_PASTER_PARL_UNITY_Progress = -15 }
	custom_effect_tooltip = SBI_pasternak_PARL_UNITY_minus_15_tt
	clamp_variable = { var = SBI_PASTER_PARL_UNITY_Progress min = 0 max = 100 }
	round_variable = SBI_PASTER_PARL_UNITY_Progress
}
SBI_pasternak_PARL_UNITY_minus_5 = {
	add_to_variable = { SBI_PASTER_PARL_UNITY_Progress = -5 }
	custom_effect_tooltip = SBI_pasternak_PARL_UNITY_minus_5_tt
	clamp_variable = { var = SBI_PASTER_PARL_UNITY_Progress min = 0 max = 100 }
	round_variable = SBI_PASTER_PARL_UNITY_Progress
}
SBI_pasternak_PARL_UNITY_plus_15 = {
	add_to_variable = { SBI_PASTER_PARL_UNITY_Progress = 15 }
	custom_effect_tooltip = SBI_pasternak_PARL_UNITY_plus_15_tt
	clamp_variable = { var = SBI_PASTER_PARL_UNITY_Progress min = 0 max = 100 }
	round_variable = SBI_PASTER_PARL_UNITY_Progress
}
SBI_pasternak_PARL_UNITY_plus_5 = {
	add_to_variable = { SBI_PASTER_PARL_UNITY_Progress = 5 }
	custom_effect_tooltip = SBI_pasternak_PARL_UNITY_plus_5_tt
	clamp_variable = { var = SBI_PASTER_PARL_UNITY_Progress min = 0 max = 100 }
	round_variable = SBI_PASTER_PARL_UNITY_Progress
}
SBI_start_elections_plus_pasternak = {
	add_to_variable = { SBI_START_PASTER_SUPPORT_Progress = 5 }
	custom_effect_tooltip = SBI_START_PASTER_SUPPORT_Progress_tt
	clamp_variable = { var = SBI_START_PASTER_SUPPORT_Progress min = 0 max = 100 }
	round_variable = SBI_START_PASTER_SUPPORT_Progress
}
SBI_start_elections_plus_pokryshkin = {
	add_to_variable = { SBI_START_POKRYSH_SUPPORT_Progress = 5 }
	custom_effect_tooltip = SBI_START_POKRYSH_SUPPORT_Progress_tt
	clamp_variable = { var = SBI_START_PASTER_SUPPORT_Progress min = 0 max = 100 }
	round_variable = SBI_START_PASTER_SUPPORT_Progress
}



SBI_SUPPORT_OF_DECEMBRISTS_PLUS_1 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_0 = 1 }
	custom_effect_tooltip = SBI_SUPPORT_OF_DECEMBRISTS_PLUS_1_tt
}
SBI_SUPPORT_OF_DECEMBRISTS_PLUS_2 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_0 = 2 }
	custom_effect_tooltip = SBI_SUPPORT_OF_DECEMBRISTS_PLUS_2_tt
}
SBI_SUPPORT_OF_DECEMBRISTS_PLUS_3 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_0 = 3 }
	custom_effect_tooltip = SBI_SUPPORT_OF_DECEMBRISTS_PLUS_3_tt
}
SBI_SUPPORT_OF_DECEMBRISTS_MINUS_1 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_0 = -1 }
	custom_effect_tooltip = SBI_SUPPORT_OF_DECEMBRISTS_MINUS_1_tt
}
SBI_SUPPORT_OF_DECEMBRISTS_MINUS_2 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_0 = -2 }
	custom_effect_tooltip = SBI_SUPPORT_OF_DECEMBRISTS_MINUS_2_tt
}
SBI_SUPPORT_OF_DECEMBRISTS_MINUS_3 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_0 = -3 }
	custom_effect_tooltip = SBI_SUPPORT_OF_DECEMBRISTS_MINUS_3_tt
}

SBI_SUPPORT_OF_HUMANISTS_PLUS_1 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_1 = 1 }
	custom_effect_tooltip = SBI_SUPPORT_OF_HUMANISTS_PLUS_1_tt
}
SBI_SUPPORT_OF_HUMANISTS_PLUS_2 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_1 = 2 }
	custom_effect_tooltip = SBI_SUPPORT_OF_HUMANISTS_PLUS_2_tt
}
SBI_SUPPORT_OF_HUMANISTS_PLUS_3 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_1 = 3 }
	custom_effect_tooltip = SBI_SUPPORT_OF_HUMANISTS_PLUS_3_tt
}
SBI_SUPPORT_OF_HUMANISTS_MINUS_1 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_1 = -1 }
	custom_effect_tooltip = SBI_SUPPORT_OF_HUMANISTS_MINUS_1_tt
}
SBI_SUPPORT_OF_HUMANISTS_MINUS_2 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_1 = -2 }
	custom_effect_tooltip = SBI_SUPPORT_OF_HUMANISTS_MINUS_2_tt
}
SBI_SUPPORT_OF_HUMANISTS_MINUS_3 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_1 = -3 }
	custom_effect_tooltip = SBI_SUPPORT_OF_HUMANISTS_MINUS_3_tt
}

SBI_SUPPORT_OF_MODERNISTS_PLUS_1 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_2 = 1 }
	custom_effect_tooltip = SBI_SUPPORT_OF_MODERNISTS_PLUS_1_tt
}
SBI_SUPPORT_OF_MODERNISTS_PLUS_2 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_2 = 2 }
	custom_effect_tooltip = SBI_SUPPORT_OF_MODERNISTS_PLUS_2_tt
}
SBI_SUPPORT_OF_MODERNISTS_PLUS_3 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_2 = 3 }
	custom_effect_tooltip = SBI_SUPPORT_OF_MODERNISTS_PLUS_3_tt
}
SBI_SUPPORT_OF_MODERNISTS_MINUS_1 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_2 = -1 }
	custom_effect_tooltip = SBI_SUPPORT_OF_MODERNISTS_MINUS_1_tt
}
SBI_SUPPORT_OF_MODERNISTS_MINUS_2 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_2 = -2 }
	custom_effect_tooltip = SBI_SUPPORT_OF_MODERNISTS_MINUS_2_tt
}
SBI_SUPPORT_OF_MODERNISTS_MINUS_3 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_2 = -3 }
	custom_effect_tooltip = SBI_SUPPORT_OF_MODERNISTS_MINUS_3_tt
}

SBI_SUPPORT_OF_BASTILARDS_PLUS_1 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_3 = 1 }
	custom_effect_tooltip = SBI_SUPPORT_OF_BASTILARDS_PLUS_1_tt
}
SBI_SUPPORT_OF_BASTILARDS_PLUS_2 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_3 = 2 }
	custom_effect_tooltip = SBI_SUPPORT_OF_BASTILARDS_PLUS_2_tt
}
SBI_SUPPORT_OF_BASTILARDS_PLUS_3 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_3 = 3 }
	custom_effect_tooltip = SBI_SUPPORT_OF_BASTILARDS_PLUS_3_tt
}
SBI_SUPPORT_OF_BASTILARDS_MINUS_1 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_3 = -1 }
	custom_effect_tooltip = SBI_SUPPORT_OF_BASTILARDS_MINUS_1_tt
}
SBI_SUPPORT_OF_BASTILARDS_MINUS_2 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_3 = -2 }
	custom_effect_tooltip = SBI_SUPPORT_OF_BASTILARDS_MINUS_2_tt
}
SBI_SUPPORT_OF_BASTILARDS_MINUS_3 = {
	add_to_variable = { SBI_PARL_ELECTIONS_PARTY_3 = -3 }
	custom_effect_tooltip = SBI_SUPPORT_OF_BASTILARDS_MINUS_3_tt
}

SBI_PARLIAMENT_ELECTIONS_START = {
	custom_effect_tooltip = SBI_PARLIAMENT_ELECTIONS_START_tt
	set_country_flag = SBI_PARLIAMENT_ELECTIONS_START_FLAG
	hidden_effect = { activate_mission = SBI_PARLIAMENT_ELECTIONS_mission }
}

SBI_PARLIAMENT_ELECTIONS_OVER = {

	custom_effect_tooltip = SBI_event_end_D_tt
	custom_effect_tooltip = SBI_event_end_H_tt
	custom_effect_tooltip = SBI_event_end_M_tt
	custom_effect_tooltip = SBI_event_end_B_tt
	
	set_temp_variable = { temp_member = 1 }
	set_temp_variable = { parliament_seat_minus_check_member1 = var:parliament_seat_array^0 }
	multiply_temp_variable = { parliament_seat_minus_check_member1 = -1 }
	clamp_variable = { var = SBI_PARL_ELECTIONS_PARTY_0 min = var:parliament_seat_minus_check_member1 max = 200 }
	set_temp_variable = { temp_seats = var:SBI_PARL_ELECTIONS_PARTY_0 }
	modify_parliament_seat = yes
	
	set_temp_variable = { temp_member = 2 }
	set_temp_variable = { parliament_seat_minus_check_member2 = var:parliament_seat_array^1 }
	multiply_temp_variable = { parliament_seat_minus_check_member2 = -1 }
	clamp_variable = { var = SBI_PARL_ELECTIONS_PARTY_1 min = var:parliament_seat_minus_check_member2 max = 200 }
	set_temp_variable = { temp_seats = var:SBI_PARL_ELECTIONS_PARTY_1 }
	modify_parliament_seat = yes
	
	set_temp_variable = { temp_member = 3 }
	set_temp_variable = { parliament_seat_minus_check_member3 = var:parliament_seat_array^2 }
	multiply_temp_variable = { parliament_seat_minus_check_member3 = -1 }
	clamp_variable = { var = SBI_PARL_ELECTIONS_PARTY_2 min = var:parliament_seat_minus_check_member3 max = 200 }
	set_temp_variable = { temp_seats = var:SBI_PARL_ELECTIONS_PARTY_2 }
	modify_parliament_seat = yes
	
	set_temp_variable = { temp_member = 4 }
	set_temp_variable = { parliament_seat_minus_check_member4 = var:parliament_seat_array^3 }
	multiply_temp_variable = { parliament_seat_minus_check_member4 = -1 }
	clamp_variable = { var = SBI_PARL_ELECTIONS_PARTY_3 min = var:parliament_seat_minus_check_member4 max = 200 }
	set_temp_variable = { temp_seats = var:SBI_PARL_ELECTIONS_PARTY_3 }
	modify_parliament_seat = yes
	
	set_variable = { SBI_PARL_ELECTIONS_PARTY_0 = 0 }
	set_variable = { SBI_PARL_ELECTIONS_PARTY_1 = 0 }
	set_variable = { SBI_PARL_ELECTIONS_PARTY_2 = 0 }
	set_variable = { SBI_PARL_ELECTIONS_PARTY_3 = 0 }
	
	clr_country_flag = SBI_PARLIAMENT_ELECTIONS_START_FLAG
}