# Gets the loc to be displayed based on what the current v (value) of the element in the array is (the value corresponds to the party id set in the scripted effect).
defined_text = {
	name = GetParliamentPartyName
	text = {
		trigger = {
			check_variable = { v = 1 }
		}
		localization_key = party_1_text
	}
	text = {
		trigger = {
			check_variable = { v = 2 }
		}
		localization_key = party_2_text
	}
	text = {
		trigger = {
			check_variable = { v = 3 }
		}
		localization_key = party_3_text
	}
	text = {
		trigger = {
			check_variable = { v = 4 }
		}
		localization_key = party_4_text
	}
	text = {
		localization_key = "Error"
	}
}

# Since index starts as 0, i can get the current seat number by jut adding it by one and then displaying it.
defined_text = {
	name = GetParliamentSeatName
	text = {
		trigger = {
			set_temp_variable = { temp_seat = parliament_main_index }
			add_to_temp_variable = { temp_seat = 1 }
			check_variable = { temp_seat > 0 }
		}
		localization_key = parliament_seat_text
	}
}

defined_text = {
	name = SBI_start_elections_favor_TT
	text = {
		trigger = {
			check_variable = { SBI_START_PASTER_SUPPORT_Progress > SBI_START_POKRYSH_SUPPORT_Progress }
		}
		localization_key = SBI_start_elections_favor_paster
	}
	text = {
		trigger = {
			check_variable = { SBI_START_PASTER_SUPPORT_Progress < SBI_START_POKRYSH_SUPPORT_Progress }
		}
		localization_key = SBI_start_elections_favor_pokr
	}
	text = {
		trigger = {
			check_variable = { SBI_START_PASTER_SUPPORT_Progress = SBI_START_POKRYSH_SUPPORT_Progress }
		}
		localization_key = SBI_start_elections_favor_paster_2
	}
}

defined_text = {
	name = SBI_PASS_BILL_success_TT
	text = {
		trigger = {
			check_variable = { PassBill_SBI_Progress < 101 }
		}
		localization_key = SBI_PASS_BILL_success_NOT_TT
	}
	text = {
		trigger = {
			check_variable = { PassBill_SBI_Progress > 100 }
		}
		localization_key = SBI_PASS_BILL_success_YES_TT
	}
}

defined_text = {
	name = SBI_CURRENT_PASSBILL_text
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 0 }
		}
		localization_key = SBI_HEALTHCARE_PASSBILL_text
	}
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 1 }
		}
		localization_key = SBI_SMALLBISNESS_PASSBILL_text
	}
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 2 }
		}
		localization_key = SBI_INVESTBANK_PASSBILL_text
	}
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 3 }
		}
		localization_key = SBI_ANTICORRUPT_PASSBILL_text
	}
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 4 }
		}
		localization_key = SBI_ELECTIONREFORM_PASSBILL_text
	}
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 5 }
		}
		localization_key = SBI_EXPANDEDUCATION_PASSBILL_text
	}
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 6 }
		}
		localization_key = SBI_PROCUREMENT_PASSBILL_text
	}
	
	
	
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 10 }
		}
		localization_key = SBI_MOBILISATION_PASSBILL_text
	}
	
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 11 }
		}
		localization_key = SBI_DEPORTATION_PASSBILL_text
	}
	
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 12 }
		}
		localization_key = SBI_REINTEGRATION_PASSBILL_text
	}
	
	text = {
		trigger = {
			check_variable = { SBI_CURRENT_PASSBILL = 13 }
		}
		localization_key = SBI_NATIONAL_GUARD_PASSBILL_text
	}
}