defined_text = {
	name = GetRemovePolicyTooltip

	text = {
		trigger = {
			meta_trigger = {
				text = {
					set_temp_variable = { required_date_to_remove_policy = eu4_like_policy_[POLICY]_date }
				}
				POLICY = "[?v]"
			}
			meta_trigger = {
				text = {
					date > [DATE]
				}
				DATE = "[?required_date_to_remove_policy.GetDateStringNoHour]"
			}
		}
		localization_key = string_can_remove_policy_tt
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = string_can_remove_policy_tt_date_not_reached
	}
}

defined_text = {
	name = GetConfirmPolicyName

	text = {
		trigger = {
			set_temp_variable = { policy_out_of_context = confirm_policy }
			always = yes
		}
		localization_key = "[This.GetPolicyNameOtherContext]"
	}
}

defined_text = {
	name = GetConfirmPolicyEffects

	text = {
		trigger = {
			set_temp_variable = { policy_out_of_context = confirm_policy }
			always = yes
		}
		localization_key = "[This.GetPolicyEffectsOtherContext]"
	}
}

defined_text = {
	name = GetConfirmPolicyEstimatedRemoveDate

	text = {
		trigger = {
			set_temp_variable = { estimated_required_date_to_remove_policy = global.date }
			add_to_temp_variable = { estimated_required_date_to_remove_policy = 0.75 }
			always = yes
		}
		localization_key = "[?estimated_required_date_to_remove_policy.GetDateStringNoHourLong]"
	}
}

defined_text = {
	name = GetPolicyNameOtherContext

	text = {
		trigger = {
			check_variable = { policy_out_of_context = 1 }
		}
		localization_key = eu4_like_policy_1
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 2 }
		}
		localization_key = eu4_like_policy_2
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 3 }
		}
		localization_key = eu4_like_policy_3
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 4 }
		}
		localization_key = eu4_like_policy_4
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 5 }
		}
		localization_key = eu4_like_policy_5
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 6 }
		}
		localization_key = eu4_like_policy_6
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 7 }
		}
		localization_key = eu4_like_policy_7
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 8 }
		}
		localization_key = eu4_like_policy_8
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 9 }
		}
		localization_key = eu4_like_policy_9
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 10 }
		}
		localization_key = eu4_like_policy_10
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 11 }
		}
		localization_key = eu4_like_policy_11
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 12 }
		}
		localization_key = eu4_like_policy_12
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 13 }
		}
		localization_key = eu4_like_policy_13
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 14 }
		}
		localization_key = eu4_like_policy_14
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 15 }
		}
		localization_key = eu4_like_policy_15
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 16 }
		}
		localization_key = eu4_like_policy_16
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 17 }
		}
		localization_key = eu4_like_policy_17
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 18 }
		}
		localization_key = eu4_like_policy_18
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 19 }
		}
		localization_key = eu4_like_policy_19
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 20 }
		}
		localization_key = eu4_like_policy_20
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 21 }
		}
		localization_key = eu4_like_policy_21
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 22 }
		}
		localization_key = eu4_like_policy_22
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 23 }
		}
		localization_key = eu4_like_policy_23
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 24 }
		}
		localization_key = eu4_like_policy_24
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 25 }
		}
		localization_key = eu4_like_policy_25
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 26 }
		}
		localization_key = eu4_like_policy_26
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 27 }
		}
		localization_key = eu4_like_policy_27
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 28 }
		}
		localization_key = eu4_like_policy_28
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 29 }
		}
		localization_key = eu4_like_policy_29
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 30 }
		}
		localization_key = eu4_like_policy_30
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 31 }
		}
		localization_key = eu4_like_policy_31
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 32 }
		}
		localization_key = eu4_like_policy_32
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 33 }
		}
		localization_key = eu4_like_policy_33
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 34 }
		}
		localization_key = eu4_like_policy_34
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 35 }
		}
		localization_key = eu4_like_policy_35
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 36 }
		}
		localization_key = eu4_like_policy_36
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 37 }
		}
		localization_key = eu4_like_policy_37
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 38 }
		}
		localization_key = eu4_like_policy_38
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 39 }
		}
		localization_key = eu4_like_policy_39
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 40 }
		}
		localization_key = eu4_like_policy_40
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 41 }
		}
		localization_key = eu4_like_policy_41
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 42 }
		}
		localization_key = eu4_like_policy_42
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 43 }
		}
		localization_key = eu4_like_policy_43
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 44 }
		}
		localization_key = eu4_like_policy_44
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 45 }
		}
		localization_key = eu4_like_policy_45
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 46 }
		}
		localization_key = eu4_like_policy_46
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 47 }
		}
		localization_key = eu4_like_policy_47
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 48 }
		}
		localization_key = eu4_like_policy_48
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 49 }
		}
		localization_key = eu4_like_policy_49
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 50 }
		}
		localization_key = eu4_like_policy_50
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 51 }
		}
		localization_key = eu4_like_policy_51
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 52 }
		}
		localization_key = eu4_like_policy_52
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 53 }
		}
		localization_key = eu4_like_policy_53
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 54 }
		}
		localization_key = eu4_like_policy_54
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 55 }
		}
		localization_key = eu4_like_policy_55
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 56 }
		}
		localization_key = eu4_like_policy_56
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 57 }
		}
		localization_key = eu4_like_policy_57
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 58 }
		}
		localization_key = eu4_like_policy_58
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 59 }
		}
		localization_key = eu4_like_policy_59
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 60 }
		}
		localization_key = eu4_like_policy_60
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 61 }
		}
		localization_key = eu4_like_policy_61
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 62 }
		}
		localization_key = eu4_like_policy_62
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 63 }
		}
		localization_key = eu4_like_policy_63
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 64 }
		}
		localization_key = eu4_like_policy_64
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 65 }
		}
		localization_key = eu4_like_policy_65
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 66 }
		}
		localization_key = eu4_like_policy_66
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 67 }
		}
		localization_key = eu4_like_policy_67
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 68 }
		}
		localization_key = eu4_like_policy_68
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 69 }
		}
		localization_key = eu4_like_policy_69
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 70 }
		}
		localization_key = eu4_like_policy_70
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 71 }
		}
		localization_key = eu4_like_policy_71
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 72 }
		}
		localization_key = eu4_like_policy_72
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 73 }
		}
		localization_key = eu4_like_policy_73
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 74 }
		}
		localization_key = eu4_like_policy_74
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 75 }
		}
		localization_key = eu4_like_policy_75
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 76 }
		}
		localization_key = eu4_like_policy_76
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 77 }
		}
		localization_key = eu4_like_policy_77
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 78 }
		}
		localization_key = eu4_like_policy_78
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 79 }
		}
		localization_key = eu4_like_policy_79
	}

}

defined_text = {
	name = GetPolicyEffectsOtherContext

	text = {
		trigger = {
			check_variable = { policy_out_of_context = 1 }
		}
		localization_key = eu4_like_policy_1_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 2 }
		}
		localization_key = eu4_like_policy_2_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 3 }
		}
		localization_key = eu4_like_policy_3_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 4 }
		}
		localization_key = eu4_like_policy_4_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 5 }
		}
		localization_key = eu4_like_policy_5_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 6 }
		}
		localization_key = eu4_like_policy_6_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 7 }
		}
		localization_key = eu4_like_policy_7_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 8 }
		}
		localization_key = eu4_like_policy_8_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 9 }
		}
		localization_key = eu4_like_policy_9_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 10 }
		}
		localization_key = eu4_like_policy_10_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 11 }
		}
		localization_key = eu4_like_policy_11_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 12 }
		}
		localization_key = eu4_like_policy_12_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 13 }
		}
		localization_key = eu4_like_policy_13_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 14 }
		}
		localization_key = eu4_like_policy_14_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 15 }
		}
		localization_key = eu4_like_policy_15_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 16 }
		}
		localization_key = eu4_like_policy_16_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 17 }
		}
		localization_key = eu4_like_policy_17_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 18 }
		}
		localization_key = eu4_like_policy_18_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 19 }
		}
		localization_key = eu4_like_policy_19_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 20 }
		}
		localization_key = eu4_like_policy_20_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 21 }
		}
		localization_key = eu4_like_policy_21_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 22 }
		}
		localization_key = eu4_like_policy_22_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 23 }
		}
		localization_key = eu4_like_policy_23_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 24 }
		}
		localization_key = eu4_like_policy_24_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 25 }
		}
		localization_key = eu4_like_policy_25_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 26 }
		}
		localization_key = eu4_like_policy_26_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 27 }
		}
		localization_key = eu4_like_policy_27_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 28 }
		}
		localization_key = eu4_like_policy_28_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 29 }
		}
		localization_key = eu4_like_policy_29_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 30 }
		}
		localization_key = eu4_like_policy_30_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 31 }
		}
		localization_key = eu4_like_policy_31_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 32 }
		}
		localization_key = eu4_like_policy_32_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 33 }
		}
		localization_key = eu4_like_policy_33_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 34 }
		}
		localization_key = eu4_like_policy_34_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 35 }
		}
		localization_key = eu4_like_policy_35_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 36 }
		}
		localization_key = eu4_like_policy_36_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 37 }
		}
		localization_key = eu4_like_policy_37_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 38 }
		}
		localization_key = eu4_like_policy_38_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 39 }
		}
		localization_key = eu4_like_policy_39_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 40 }
		}
		localization_key = eu4_like_policy_40_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 41 }
		}
		localization_key = eu4_like_policy_41_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 42 }
		}
		localization_key = eu4_like_policy_42_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 43 }
		}
		localization_key = eu4_like_policy_43_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 44 }
		}
		localization_key = eu4_like_policy_44_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 45 }
		}
		localization_key = eu4_like_policy_45_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 46 }
		}
		localization_key = eu4_like_policy_46_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 47 }
		}
		localization_key = eu4_like_policy_47_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 48 }
		}
		localization_key = eu4_like_policy_48_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 49 }
		}
		localization_key = eu4_like_policy_49_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 50 }
		}
		localization_key = eu4_like_policy_50_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 51 }
		}
		localization_key = eu4_like_policy_51_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 52 }
		}
		localization_key = eu4_like_policy_52_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 53 }
		}
		localization_key = eu4_like_policy_53_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 54 }
		}
		localization_key = eu4_like_policy_54_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 55 }
		}
		localization_key = eu4_like_policy_55_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 56 }
		}
		localization_key = eu4_like_policy_56_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 57 }
		}
		localization_key = eu4_like_policy_57_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 58 }
		}
		localization_key = eu4_like_policy_58_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 59 }
		}
		localization_key = eu4_like_policy_59_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 60 }
		}
		localization_key = eu4_like_policy_60_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 61 }
		}
		localization_key = eu4_like_policy_61_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 62 }
		}
		localization_key = eu4_like_policy_62_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 63 }
		}
		localization_key = eu4_like_policy_63_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 64 }
		}
		localization_key = eu4_like_policy_64_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 65 }
		}
		localization_key = eu4_like_policy_65_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 66 }
		}
		localization_key = eu4_like_policy_66_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 67 }
		}
		localization_key = eu4_like_policy_67_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 68 }
		}
		localization_key = eu4_like_policy_68_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 69 }
		}
		localization_key = eu4_like_policy_69_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 70 }
		}
		localization_key = eu4_like_policy_70_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 71 }
		}
		localization_key = eu4_like_policy_71_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 72 }
		}
		localization_key = eu4_like_policy_72_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 73 }
		}
		localization_key = eu4_like_policy_73_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 74 }
		}
		localization_key = eu4_like_policy_74_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 75 }
		}
		localization_key = eu4_like_policy_75_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 76 }
		}
		localization_key = eu4_like_policy_76_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 77 }
		}
		localization_key = eu4_like_policy_77_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 78 }
		}
		localization_key = eu4_like_policy_78_effects
	}
	text = {
		trigger = {
			check_variable = { policy_out_of_context = 79 }
		}
		localization_key = eu4_like_policy_79_effects
	}

}

defined_text = {
	name = GetPolicyName

	text = {
        trigger = {
            set_temp_variable = { policy_out_of_context = v }
			always = yes
        }
        localization_key = "[This.GetPolicyNameOtherContext]"
    }
}

defined_text = {
	name = GetPolicyEffects

	text = {
        trigger = {
            set_temp_variable = { policy_out_of_context = v }
			always = yes
        }
        localization_key = "[This.GetPolicyEffectsOtherContext]"
    }
}

defined_text = {
	name = GetPolicyPicture

	text = {
		trigger = {
			check_variable = { v = 1 }
		}
		localization_key = "GFX_opinion_gain_monthly_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 2 }
		}
		localization_key = "GFX_min_export"
	}
	text = {
		trigger = {
			check_variable = { v = 3 }
		}
		localization_key = "GFX_idea_cost_modifier"
	}
	text = {
		trigger = {
			check_variable = { v = 4 }
		}
		localization_key = "GFX_infantry_build_cost_ic"
	}
	text = {
		trigger = {
			check_variable = { v = 5 }
		}
		localization_key = "GFX_trade_laws_cost_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 6 }
		}
		localization_key = "GFX_conscription"
	}
	text = {
		trigger = {
			check_variable = { v = 7 }
		}
		localization_key = "GFX_armor_soft_attack"
	}
	text = {
		trigger = {
			check_variable = { v = 8 }
		}
		localization_key = "GFX_military_leader_cost_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 9 }
		}
		localization_key = "GFX_resistance_growth"
	}
	text = {
		trigger = {
			check_variable = { v = 10 }
		}
		localization_key = "GFX_land_reinforce_rate"
	}
	text = {
		trigger = {
			check_variable = { v = 11 }
		}
		localization_key = "GFX_consumer_goods_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 12 }
		}
		localization_key = "GFX_subjects_autonomy_gain"
	}
	text = {
		trigger = {
			check_variable = { v = 13 }
		}
		localization_key = "GFX_local_resources_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 14 }
		}
		localization_key = "GFX_fuel_gain_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 15 }
		}
		localization_key = "GFX_license_production_speed"
	}
	text = {
		trigger = {
			check_variable = { v = 16 }
		}
		localization_key = "GFX_navy_capital_ship_attack_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 17 }
		}
		localization_key = "GFX_convoy_raiding_efficiency_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 18 }
		}
		localization_key = "GFX_army_org_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 19 }
		}
		localization_key = "GFX_army_bonus_air_superiority_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 20 }
		}
		localization_key = "GFX_conscription_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 21 }
		}
		localization_key = "GFX_experience_gain_army_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 22 }
		}
		localization_key = "GFX_guarantee_cost"
	}
	text = {
		trigger = {
			check_variable = { v = 23 }
		}
		localization_key = "GFX_production_speed_bunker_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 24 }
		}
		localization_key = "GFX_legitimacy_daily"
	}
	text = {
		trigger = {
			check_variable = { v = 25 }
		}
		localization_key = "GFX_max_command_power"
	}
	text = {
		trigger = {
			check_variable = { v = 26 }
		}
		localization_key = "GFX_army_speed_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 27 }
		}
		localization_key = "GFX_conscription"
	}
	text = {
		trigger = {
			check_variable = { v = 28 }
		}
		localization_key = "GFX_intelligence_agency_defense"
	}
	text = {
		trigger = {
			check_variable = { v = 29 }
		}
		localization_key = "GFX_convoy_escort_efficiency"
	}
	text = {
		trigger = {
			check_variable = { v = 30 }
		}
		localization_key = "GFX_min_export"
	}
	text = {
		trigger = {
			check_variable = { v = 31 }
		}
		localization_key = "GFX_trade_laws_cost_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 32 }
		}
		localization_key = "GFX_can_boost_other_ideologies"
	}
	text = {
		trigger = {
			check_variable = { v = 33 }
		}
		localization_key = "GFX_subject_ideology_drift"
	}
	text = {
		trigger = {
			check_variable = { v = 34 }
		}
		localization_key = "GFX_gains_leaders_of_annexed_countries"
	}
	text = {
		trigger = {
			check_variable = { v = 35 }
		}
		localization_key = "GFX_navy_max_range_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 36 }
		}
		localization_key = "GFX_naval_torpedo_screen_penetration_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 37 }
		}
		localization_key = "GFX_justify_war_goal_time"
	}
	text = {
		trigger = {
			check_variable = { v = 38 }
		}
		localization_key = "GFX_naval_coordination"
	}
	text = {
		trigger = {
			check_variable = { v = 39 }
		}
		localization_key = "GFX_spotting_chance"
	}
	text = {
		trigger = {
			check_variable = { v = 40 }
		}
		localization_key = "GFX_submarine_sub_visibility"
	}
	text = {
		trigger = {
			check_variable = { v = 41 }
		}
		localization_key = "GFX_experience_gain_air_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 42 }
		}
		localization_key = "GFX_experience_loss_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 43 }
		}
		localization_key = "GFX_conscription_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 44 }
		}
		localization_key = "GFX_air_strategic_bomber_bombing_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 45 }
		}
		localization_key = "GFX_industry_air_damage_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 46 }
		}
		localization_key = "GFX_neutrality_drift"
	}
	text = {
		trigger = {
			check_variable = { v = 47 }
		}
		localization_key = "GFX_justify_war_goal_time"
	}
	text = {
		trigger = {
			check_variable = { v = 48 }
		}
		localization_key = "GFX_naval_strike_targetting_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 49 }
		}
		localization_key = "GFX_air_cas_present_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 50 }
		}
		localization_key = "GFX_army_armor_attack_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 51 }
		}
		localization_key = "GFX_intel_network_gain_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 52 }
		}
		localization_key = "GFX_research_bonus_armor"
	}
	text = {
		trigger = {
			check_variable = { v = 53 }
		}
		localization_key = "GFX_sortie_efficiency"
	}
	text = {
		trigger = {
			check_variable = { v = 54 }
		}
		localization_key = "GFX_air_strategic_bomber_bombing_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 55 }
		}
		localization_key = "GFX_air_close_air_support_org_damage_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 56 }
		}
		localization_key = "GFX_carrier_naval_speed"
	}
	text = {
		trigger = {
			check_variable = { v = 57 }
		}
		localization_key = "GFX_research_bonus_nuclear"
	}
	text = {
		trigger = {
			check_variable = { v = 58 }
		}
		localization_key = "GFX_stability_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 59 }
		}
		localization_key = "GFX_non_core_manpower"
	}
	text = {
		trigger = {
			check_variable = { v = 60 }
		}
		localization_key = "GFX_command_power_gain_mult"
	}
	text = {
		trigger = {
			check_variable = { v = 61 }
		}
		localization_key = "GFX_carrier_armor_value"
	}
	text = {
		trigger = {
			check_variable = { v = 62 }
		}
		localization_key = "GFX_carrier_naval_speed"
	}
	text = {
		trigger = {
			check_variable = { v = 63 }
		}
		localization_key = "GFX_army_armor_speed_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 64 }
		}
		localization_key = "GFX_armor_ap_attack"
	}
	text = {
		trigger = {
			check_variable = { v = 65 }
		}
		localization_key = "GFX_democratic_drift"
	}
	text = {
		trigger = {
			check_variable = { v = 66 }
		}
		localization_key = "GFX_political_advisor_cost_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 67 }
		}
		localization_key = "GFX_monthly_most_popular_ideology_drift"
	}
	text = {
		trigger = {
			check_variable = { v = 68 }
		}
		localization_key = "GFX_trade_laws_cost_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 69 }
		}
		localization_key = "GFX_stability_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 70 }
		}
		localization_key = "GFX_max_surrender_limit_offset"
	}
	text = {
		trigger = {
			check_variable = { v = 71 }
		}
		localization_key = "GFX_resistance_growth_on_our_occupied_states"
	}
	text = {
		trigger = {
			check_variable = { v = 72 }
		}
		localization_key = "GFX_resistance_damage_to_garrison_on_our_occupied_states"
	}
	text = {
		trigger = {
			check_variable = { v = 73 }
		}
		localization_key = "GFX_boost_ideology_mission_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 74 }
		}
		localization_key = "GFX_boost_resistance_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 75 }
		}
		localization_key = "GFX_resistance_growth"
	}
	text = {
		trigger = {
			check_variable = { v = 76 }
		}
		localization_key = "GFX_resistance_damage_to_garrison"
	}
	text = {
		trigger = {
			check_variable = { v = 77 }
		}
		localization_key = "GFX_required_garrison_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 78 }
		}
		localization_key = "GFX_enemy_operative_detection_chance_factor"
	}
	text = {
		trigger = {
			check_variable = { v = 79 }
		}
		localization_key = "GFX_compliance_growth"
	}

	text = {
		trigger = {
			always = yes
		}
		localization_key = "GFX_stability_factor"
	}
}

defined_text = {
	name = GetPossiblePolicyFromIdeaGroup1

	text = {
		trigger = {
			OR = {
				AND = {
					check_variable = { v = 1 }
					set_temp_variable = { policy_out_of_context = 2 }
				}
				AND = {
					check_variable = { v = 2 }
					set_temp_variable = { policy_out_of_context = 2 }
				}
				AND = {
					check_variable = { v = 3 }
					set_temp_variable = { policy_out_of_context = 3 }
				}
				AND = {
					check_variable = { v = 4 }
					set_temp_variable = { policy_out_of_context = 9 }
				}
				AND = {
					check_variable = { v = 5 }
					set_temp_variable = { policy_out_of_context = 1 }
				}
				AND = {
					check_variable = { v = 6 }
					set_temp_variable = { policy_out_of_context = 7 }
				}
				AND = {
					check_variable = { v = 7 }
					set_temp_variable = { policy_out_of_context = 5 }
				}
				AND = {
					check_variable = { v = 8 }
					set_temp_variable = { policy_out_of_context = 1 }
				}
				AND = {
					check_variable = { v = 9 }
					set_temp_variable = { policy_out_of_context = 22 }
				}
				AND = {
					check_variable = { v = 10 }
					set_temp_variable = { policy_out_of_context = 3 }
				}
				AND = {
					check_variable = { v = 11 }
					set_temp_variable = { policy_out_of_context = 16 }
				}
				AND = {
					check_variable = { v = 12 }
					set_temp_variable = { policy_out_of_context = 17 }
				}
				AND = {
					check_variable = { v = 13 }
					set_temp_variable = { policy_out_of_context = 8 }
				}
				AND = {
					check_variable = { v = 14 }
					set_temp_variable = { policy_out_of_context = 18 }
				}
				AND = {
					check_variable = { v = 15 }
					set_temp_variable = { policy_out_of_context = 4 }
				}
				AND = {
					check_variable = { v = 16 }
					set_temp_variable = { policy_out_of_context = 7 }
				}
				AND = {
					check_variable = { v = 17 }
					set_temp_variable = { policy_out_of_context = 6 }
				}
				AND = {
					check_variable = { v = 18 }
					set_temp_variable = { policy_out_of_context = 19 }
				}
				AND = {
					check_variable = { v = 19 }
					set_temp_variable = { policy_out_of_context = 46 }
				}
				AND = {
					check_variable = { v = 20 }
					set_temp_variable = { policy_out_of_context = 48 }
				}
				AND = {
					check_variable = { v = 21 }
					set_temp_variable = { policy_out_of_context = 49 }
				}
				AND = {
					check_variable = { v = 22 }
					set_temp_variable = { policy_out_of_context = 46 }
				}
				AND = {
					check_variable = { v = 23 }
					set_temp_variable = { policy_out_of_context = 47 }
				}
				AND = {
					check_variable = { v = 24 }
					set_temp_variable = { policy_out_of_context = 48 }
				}
				AND = {
					check_variable = { v = 25 }
					set_temp_variable = { policy_out_of_context = 65 }
				}
				AND = {
					check_variable = { v = 26 }
					set_temp_variable = { policy_out_of_context = 70 }
				}
				AND = {
					check_variable = { v = 27 }
					set_temp_variable = { policy_out_of_context = 75 }
				}

			}
		}
		localization_key = string_possible_policy_for_idea_group
	}
}

defined_text = {
	name = GetPossiblePolicyFromIdeaGroup2

	text = {
		trigger = {
			OR = {
				AND = {
					check_variable = { v = 1 }
					set_temp_variable = { policy_out_of_context = 8 }
				}
				AND = {
					check_variable = { v = 2 }
					set_temp_variable = { policy_out_of_context = 4 }
				}
				AND = {
					check_variable = { v = 3 }
					set_temp_variable = { policy_out_of_context = 16 }
				}
				AND = {
					check_variable = { v = 4 }
					set_temp_variable = { policy_out_of_context = 10 }
				}
				AND = {
					check_variable = { v = 5 }
					set_temp_variable = { policy_out_of_context = 5 }
				}
				AND = {
					check_variable = { v = 6 }
					set_temp_variable = { policy_out_of_context = 25 }
				}
				AND = {
					check_variable = { v = 7 }
					set_temp_variable = { policy_out_of_context = 14 }
				}
				AND = {
					check_variable = { v = 8 }
					set_temp_variable = { policy_out_of_context = 15 }
				}
				AND = {
					check_variable = { v = 9 }
					set_temp_variable = { policy_out_of_context = 32 }
				}
				AND = {
					check_variable = { v = 10 }
					set_temp_variable = { policy_out_of_context = 12 }
				}
				AND = {
					check_variable = { v = 11 }
					set_temp_variable = { policy_out_of_context = 29 }
				}
				AND = {
					check_variable = { v = 12 }
					set_temp_variable = { policy_out_of_context = 28 }
				}
				AND = {
					check_variable = { v = 13 }
					set_temp_variable = { policy_out_of_context = 21 }
				}
				AND = {
					check_variable = { v = 14 }
					set_temp_variable = { policy_out_of_context = 26 }
				}
				AND = {
					check_variable = { v = 15 }
					set_temp_variable = { policy_out_of_context = 6 }
				}
				AND = {
					check_variable = { v = 16 }
					set_temp_variable = { policy_out_of_context = 11 }
				}
				AND = {
					check_variable = { v = 17 }
					set_temp_variable = { policy_out_of_context = 10 }
				}
				AND = {
					check_variable = { v = 18 }
					set_temp_variable = { policy_out_of_context = 39 }
				}
				AND = {
					check_variable = { v = 19 }
					set_temp_variable = { policy_out_of_context = 47 }
				}
				AND = {
					check_variable = { v = 20 }
					set_temp_variable = { policy_out_of_context = 53 }
				}
				AND = {
					check_variable = { v = 21 }
					set_temp_variable = { policy_out_of_context = 50 }
				}
				AND = {
					check_variable = { v = 22 }
					set_temp_variable = { policy_out_of_context = 50 }
				}
				AND = {
					check_variable = { v = 23 }
					set_temp_variable = { policy_out_of_context = 51 }
				}
				AND = {
					check_variable = { v = 24 }
					set_temp_variable = { policy_out_of_context = 49 }
				}
				AND = {
					check_variable = { v = 25 }
					set_temp_variable = { policy_out_of_context = 66 }
				}
				AND = {
					check_variable = { v = 26 }
					set_temp_variable = { policy_out_of_context = 71 }
				}
				AND = {
					check_variable = { v = 27 }
					set_temp_variable = { policy_out_of_context = 76 }
				}

			}
		}
		localization_key = string_possible_policy_for_idea_group
	}
}

defined_text = {
	name = GetPossiblePolicyFromIdeaGroup3

	text = {
		trigger = {
			OR = {
				AND = {
					check_variable = { v = 1 }
					set_temp_variable = { policy_out_of_context = 9 }
				}
				AND = {
					check_variable = { v = 2 }
					set_temp_variable = { policy_out_of_context = 13 }
				}
				AND = {
					check_variable = { v = 3 }
					set_temp_variable = { policy_out_of_context = 17 }
				}
				AND = {
					check_variable = { v = 4 }
					set_temp_variable = { policy_out_of_context = 13 }
				}
				AND = {
					check_variable = { v = 5 }
					set_temp_variable = { policy_out_of_context = 22 }
				}
				AND = {
					check_variable = { v = 6 }
					set_temp_variable = { policy_out_of_context = 26 }
				}
				AND = {
					check_variable = { v = 7 }
					set_temp_variable = { policy_out_of_context = 29 }
				}
				AND = {
					check_variable = { v = 8 }
					set_temp_variable = { policy_out_of_context = 32 }
				}
				AND = {
					check_variable = { v = 9 }
					set_temp_variable = { policy_out_of_context = 35 }
				}
				AND = {
					check_variable = { v = 10 }
					set_temp_variable = { policy_out_of_context = 24 }
				}
				AND = {
					check_variable = { v = 11 }
					set_temp_variable = { policy_out_of_context = 35 }
				}
				AND = {
					check_variable = { v = 12 }
					set_temp_variable = { policy_out_of_context = 36 }
				}
				AND = {
					check_variable = { v = 13 }
					set_temp_variable = { policy_out_of_context = 25 }
				}
				AND = {
					check_variable = { v = 14 }
					set_temp_variable = { policy_out_of_context = 30 }
				}
				AND = {
					check_variable = { v = 15 }
					set_temp_variable = { policy_out_of_context = 20 }
				}
				AND = {
					check_variable = { v = 16 }
					set_temp_variable = { policy_out_of_context = 37 }
				}
				AND = {
					check_variable = { v = 17 }
					set_temp_variable = { policy_out_of_context = 23 }
				}
				AND = {
					check_variable = { v = 18 }
					set_temp_variable = { policy_out_of_context = 41 }
				}
				AND = {
					check_variable = { v = 19 }
					set_temp_variable = { policy_out_of_context = 58 }
				}
				AND = {
					check_variable = { v = 20 }
					set_temp_variable = { policy_out_of_context = 56 }
				}
				AND = {
					check_variable = { v = 21 }
					set_temp_variable = { policy_out_of_context = 52 }
				}
				AND = {
					check_variable = { v = 22 }
					set_temp_variable = { policy_out_of_context = 51 }
				}
				AND = {
					check_variable = { v = 23 }
					set_temp_variable = { policy_out_of_context = 52 }
				}
				AND = {
					check_variable = { v = 24 }
					set_temp_variable = { policy_out_of_context = 54 }
				}
				AND = {
					check_variable = { v = 25 }
					set_temp_variable = { policy_out_of_context = 67 }
				}
				AND = {
					check_variable = { v = 26 }
					set_temp_variable = { policy_out_of_context = 72 }
				}
				AND = {
					check_variable = { v = 27 }
					set_temp_variable = { policy_out_of_context = 77 }
				}

			}
		}
		localization_key = string_possible_policy_for_idea_group
	}
}

defined_text = {
	name = GetPossiblePolicyFromIdeaGroup4

	text = {
		trigger = {
			OR = {
				AND = {
					check_variable = { v = 1 }
					set_temp_variable = { policy_out_of_context = 11 }
				}
				AND = {
					check_variable = { v = 2 }
					set_temp_variable = { policy_out_of_context = 14 }
				}
				AND = {
					check_variable = { v = 3 }
					set_temp_variable = { policy_out_of_context = 18 }
				}
				AND = {
					check_variable = { v = 4 }
					set_temp_variable = { policy_out_of_context = 20 }
				}
				AND = {
					check_variable = { v = 5 }
					set_temp_variable = { policy_out_of_context = 23 }
				}
				AND = {
					check_variable = { v = 6 }
					set_temp_variable = { policy_out_of_context = 27 }
				}
				AND = {
					check_variable = { v = 7 }
					set_temp_variable = { policy_out_of_context = 30 }
				}
				AND = {
					check_variable = { v = 8 }
					set_temp_variable = { policy_out_of_context = 33 }
				}
				AND = {
					check_variable = { v = 9 }
					set_temp_variable = { policy_out_of_context = 36 }
				}
				AND = {
					check_variable = { v = 10 }
					set_temp_variable = { policy_out_of_context = 31 }
				}
				AND = {
					check_variable = { v = 11 }
					set_temp_variable = { policy_out_of_context = 38 }
				}
				AND = {
					check_variable = { v = 12 }
					set_temp_variable = { policy_out_of_context = 38 }
				}
				AND = {
					check_variable = { v = 13 }
					set_temp_variable = { policy_out_of_context = 34 }
				}
				AND = {
					check_variable = { v = 14 }
					set_temp_variable = { policy_out_of_context = 40 }
				}
				AND = {
					check_variable = { v = 15 }
					set_temp_variable = { policy_out_of_context = 27 }
				}
				AND = {
					check_variable = { v = 16 }
					set_temp_variable = { policy_out_of_context = 43 }
				}
				AND = {
					check_variable = { v = 17 }
					set_temp_variable = { policy_out_of_context = 42 }
				}
				AND = {
					check_variable = { v = 18 }
					set_temp_variable = { policy_out_of_context = 44 }
				}
				AND = {
					check_variable = { v = 19 }
					set_temp_variable = { policy_out_of_context = 59 }
				}
				AND = {
					check_variable = { v = 20 }
					set_temp_variable = { policy_out_of_context = 61 }
				}
				AND = {
					check_variable = { v = 21 }
					set_temp_variable = { policy_out_of_context = 63 }
				}
				AND = {
					check_variable = { v = 22 }
					set_temp_variable = { policy_out_of_context = 55 }
				}
				AND = {
					check_variable = { v = 23 }
					set_temp_variable = { policy_out_of_context = 53 }
				}
				AND = {
					check_variable = { v = 24 }
					set_temp_variable = { policy_out_of_context = 55 }
				}
				AND = {
					check_variable = { v = 25 }
					set_temp_variable = { policy_out_of_context = 68 }
				}
				AND = {
					check_variable = { v = 26 }
					set_temp_variable = { policy_out_of_context = 74 }
				}
				AND = {
					check_variable = { v = 27 }
					set_temp_variable = { policy_out_of_context = 78 }
				}

			}
		}
		localization_key = string_possible_policy_for_idea_group
	}
}

defined_text = {
	name = GetPossiblePolicyFromIdeaGroup5

	text = {
		trigger = {
			OR = {
				AND = {
					check_variable = { v = 1 }
					set_temp_variable = { policy_out_of_context = 12 }
				}
				AND = {
					check_variable = { v = 2 }
					set_temp_variable = { policy_out_of_context = 15 }
				}
				AND = {
					check_variable = { v = 3 }
					set_temp_variable = { policy_out_of_context = 19 }
				}
				AND = {
					check_variable = { v = 4 }
					set_temp_variable = { policy_out_of_context = 21 }
				}
				AND = {
					check_variable = { v = 5 }
					set_temp_variable = { policy_out_of_context = 24 }
				}
				AND = {
					check_variable = { v = 6 }
					set_temp_variable = { policy_out_of_context = 28 }
				}
				AND = {
					check_variable = { v = 7 }
					set_temp_variable = { policy_out_of_context = 31 }
				}
				AND = {
					check_variable = { v = 8 }
					set_temp_variable = { policy_out_of_context = 34 }
				}
				AND = {
					check_variable = { v = 9 }
					set_temp_variable = { policy_out_of_context = 37 }
				}
				AND = {
					check_variable = { v = 10 }
					set_temp_variable = { policy_out_of_context = 33 }
				}
				AND = {
					check_variable = { v = 11 }
					set_temp_variable = { policy_out_of_context = 39 }
				}
				AND = {
					check_variable = { v = 12 }
					set_temp_variable = { policy_out_of_context = 40 }
				}
				AND = {
					check_variable = { v = 13 }
					set_temp_variable = { policy_out_of_context = 41 }
				}
				AND = {
					check_variable = { v = 14 }
					set_temp_variable = { policy_out_of_context = 42 }
				}
				AND = {
					check_variable = { v = 15 }
					set_temp_variable = { policy_out_of_context = 43 }
				}
				AND = {
					check_variable = { v = 16 }
					set_temp_variable = { policy_out_of_context = 44 }
				}
				AND = {
					check_variable = { v = 17 }
					set_temp_variable = { policy_out_of_context = 45 }
				}
				AND = {
					check_variable = { v = 18 }
					set_temp_variable = { policy_out_of_context = 45 }
				}
				AND = {
					check_variable = { v = 19 }
					set_temp_variable = { policy_out_of_context = 60 }
				}
				AND = {
					check_variable = { v = 20 }
					set_temp_variable = { policy_out_of_context = 62 }
				}
				AND = {
					check_variable = { v = 21 }
					set_temp_variable = { policy_out_of_context = 64 }
				}
				AND = {
					check_variable = { v = 22 }
					set_temp_variable = { policy_out_of_context = 56 }
				}
				AND = {
					check_variable = { v = 23 }
					set_temp_variable = { policy_out_of_context = 54 }
				}
				AND = {
					check_variable = { v = 24 }
					set_temp_variable = { policy_out_of_context = 57 }
				}
				AND = {
					check_variable = { v = 25 }
					set_temp_variable = { policy_out_of_context = 69 }
				}
				AND = {
					check_variable = { v = 26 }
					set_temp_variable = { policy_out_of_context = 74 }
				}
				AND = {
					check_variable = { v = 27 }
					set_temp_variable = { policy_out_of_context = 79 }
				}

			}
		}
		localization_key = string_possible_policy_for_idea_group
	}
}

defined_text = {
	name = GetPossiblePolicyFromIdeaGroup6

	text = {
		trigger = {
			OR = {
				AND = {
					check_variable = { v = 1 }
					set_temp_variable = { policy_out_of_context = 69 }
				}
				AND = {
					check_variable = { v = 2 }
					set_temp_variable = { policy_out_of_context = 63 }
				}
				AND = {
					check_variable = { v = 3 }
					set_temp_variable = { policy_out_of_context = 57 }
				}
				AND = {
					check_variable = { v = 4 }
					set_temp_variable = { policy_out_of_context = 76 }
				}
				AND = {
					check_variable = { v = 5 }
					set_temp_variable = { policy_out_of_context = 65 }
				}
				AND = {
					check_variable = { v = 6 }
					set_temp_variable = { policy_out_of_context = 64 }
				}
				AND = {
					check_variable = { v = 8 }
					set_temp_variable = { policy_out_of_context = 68 }
				}
				AND = {
					check_variable = { v = 9 }
					set_temp_variable = { policy_out_of_context = 62 }
				}
				AND = {
					check_variable = { v = 10 }
					set_temp_variable = { policy_out_of_context = 59 }
				}
				AND = {
					check_variable = { v = 11 }
					set_temp_variable = { policy_out_of_context = 61 }
				}
				AND = {
					check_variable = { v = 13 }
					set_temp_variable = { policy_out_of_context = 60 }
				}
				AND = {
					check_variable = { v = 16 }
					set_temp_variable = { policy_out_of_context = 77 }
				}
				AND = {
					check_variable = { v = 17 }
					set_temp_variable = { policy_out_of_context = 58 }
				}
				AND = {
					check_variable = { v = 22 }
					set_temp_variable = { policy_out_of_context = 66 }
				}
				AND = {
					check_variable = { v = 23 }
					set_temp_variable = { policy_out_of_context = 73 }
				}
			}
		}
		localization_key = string_possible_policy_for_idea_group
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetPossiblePolicyFromIdeaGroup7

	text = {
		trigger = {
			OR = {
				AND = {
					check_variable = { v = 1 }
					set_temp_variable = { policy_out_of_context = 79 }
				}
				AND = {
					check_variable = { v = 5 }
					set_temp_variable = { policy_out_of_context = 70 }
				}
				AND = {
					check_variable = { v = 6 }
					set_temp_variable = { policy_out_of_context = 75 }
				}
				AND = {
					check_variable = { v = 9 }
					set_temp_variable = { policy_out_of_context = 74 }
				}
				AND = {
					check_variable = { v = 10 }
					set_temp_variable = { policy_out_of_context = 67 }
				}
				AND = {
					check_variable = { v = 17 }
					set_temp_variable = { policy_out_of_context = 71 }
				}
				AND = {
					check_variable = { v = 23 }
					set_temp_variable = { policy_out_of_context = 78 }
				}
			}
		}
		localization_key = string_possible_policy_for_idea_group
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetPossiblePolicyFromIdeaGroup8

	text = {
		trigger = {
			OR = {
				AND = {
					check_variable = { v = 10 }
					set_temp_variable = { policy_out_of_context = 72 }
				}
			}
		}
		localization_key = string_possible_policy_for_idea_group
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetRequiredIdeaGroupForPolicy

	text = {
		trigger = {
			set_temp_variable = { idea_group_out_of_context = 0 }
			OR = {
				AND = {
					check_variable = { policy_out_of_context = 1 }
					OR = {
						AND = {
							check_variable = { v = 5 }
							set_temp_variable = { idea_group_out_of_context = 8 }
						}
						AND = {
							check_variable = { v = 8 }
							set_temp_variable = { idea_group_out_of_context = 5 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 2 }
					OR = {
						AND = {
							check_variable = { v = 1 }
							set_temp_variable = { idea_group_out_of_context = 2 }
						}
						AND = {
							check_variable = { v = 2 }
							set_temp_variable = { idea_group_out_of_context = 1 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 3 }
					OR = {
						AND = {
							check_variable = { v = 3 }
							set_temp_variable = { idea_group_out_of_context = 10 }
						}
						AND = {
							check_variable = { v = 10 }
							set_temp_variable = { idea_group_out_of_context = 3 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 4 }
					OR = {
						AND = {
							check_variable = { v = 2 }
							set_temp_variable = { idea_group_out_of_context = 15 }
						}
						AND = {
							check_variable = { v = 15 }
							set_temp_variable = { idea_group_out_of_context = 2 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 5 }
					OR = {
						AND = {
							check_variable = { v = 5 }
							set_temp_variable = { idea_group_out_of_context = 7 }
						}
						AND = {
							check_variable = { v = 7 }
							set_temp_variable = { idea_group_out_of_context = 5 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 6 }
					OR = {
						AND = {
							check_variable = { v = 15 }
							set_temp_variable = { idea_group_out_of_context = 17 }
						}
						AND = {
							check_variable = { v = 17 }
							set_temp_variable = { idea_group_out_of_context = 15 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 7 }
					OR = {
						AND = {
							check_variable = { v = 6 }
							set_temp_variable = { idea_group_out_of_context = 16 }
						}
						AND = {
							check_variable = { v = 16 }
							set_temp_variable = { idea_group_out_of_context = 6 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 8 }
					OR = {
						AND = {
							check_variable = { v = 1 }
							set_temp_variable = { idea_group_out_of_context = 13 }
						}
						AND = {
							check_variable = { v = 13 }
							set_temp_variable = { idea_group_out_of_context = 1 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 9 }
					OR = {
						AND = {
							check_variable = { v = 1 }
							set_temp_variable = { idea_group_out_of_context = 4 }
						}
						AND = {
							check_variable = { v = 4 }
							set_temp_variable = { idea_group_out_of_context = 1 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 10 }
					OR = {
						AND = {
							check_variable = { v = 4 }
							set_temp_variable = { idea_group_out_of_context = 17 }
						}
						AND = {
							check_variable = { v = 17 }
							set_temp_variable = { idea_group_out_of_context = 4 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 11 }
					OR = {
						AND = {
							check_variable = { v = 1 }
							set_temp_variable = { idea_group_out_of_context = 16 }
						}
						AND = {
							check_variable = { v = 16 }
							set_temp_variable = { idea_group_out_of_context = 1 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 12 }
					OR = {
						AND = {
							check_variable = { v = 1 }
							set_temp_variable = { idea_group_out_of_context = 10 }
						}
						AND = {
							check_variable = { v = 10 }
							set_temp_variable = { idea_group_out_of_context = 1 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 13 }
					OR = {
						AND = {
							check_variable = { v = 2 }
							set_temp_variable = { idea_group_out_of_context = 4 }
						}
						AND = {
							check_variable = { v = 4 }
							set_temp_variable = { idea_group_out_of_context = 2 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 14 }
					OR = {
						AND = {
							check_variable = { v = 2 }
							set_temp_variable = { idea_group_out_of_context = 7 }
						}
						AND = {
							check_variable = { v = 7 }
							set_temp_variable = { idea_group_out_of_context = 2 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 15 }
					OR = {
						AND = {
							check_variable = { v = 2 }
							set_temp_variable = { idea_group_out_of_context = 8 }
						}
						AND = {
							check_variable = { v = 8 }
							set_temp_variable = { idea_group_out_of_context = 2 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 16 }
					OR = {
						AND = {
							check_variable = { v = 3 }
							set_temp_variable = { idea_group_out_of_context = 11 }
						}
						AND = {
							check_variable = { v = 11 }
							set_temp_variable = { idea_group_out_of_context = 3 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 17 }
					OR = {
						AND = {
							check_variable = { v = 3 }
							set_temp_variable = { idea_group_out_of_context = 12 }
						}
						AND = {
							check_variable = { v = 12 }
							set_temp_variable = { idea_group_out_of_context = 3 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 18 }
					OR = {
						AND = {
							check_variable = { v = 3 }
							set_temp_variable = { idea_group_out_of_context = 14 }
						}
						AND = {
							check_variable = { v = 14 }
							set_temp_variable = { idea_group_out_of_context = 3 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 19 }
					OR = {
						AND = {
							check_variable = { v = 3 }
							set_temp_variable = { idea_group_out_of_context = 18 }
						}
						AND = {
							check_variable = { v = 18 }
							set_temp_variable = { idea_group_out_of_context = 3 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 20 }
					OR = {
						AND = {
							check_variable = { v = 4 }
							set_temp_variable = { idea_group_out_of_context = 15 }
						}
						AND = {
							check_variable = { v = 15 }
							set_temp_variable = { idea_group_out_of_context = 4 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 21 }
					OR = {
						AND = {
							check_variable = { v = 4 }
							set_temp_variable = { idea_group_out_of_context = 13 }
						}
						AND = {
							check_variable = { v = 13 }
							set_temp_variable = { idea_group_out_of_context = 4 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 22 }
					OR = {
						AND = {
							check_variable = { v = 5 }
							set_temp_variable = { idea_group_out_of_context = 9 }
						}
						AND = {
							check_variable = { v = 9 }
							set_temp_variable = { idea_group_out_of_context = 5 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 23 }
					OR = {
						AND = {
							check_variable = { v = 5 }
							set_temp_variable = { idea_group_out_of_context = 17 }
						}
						AND = {
							check_variable = { v = 17 }
							set_temp_variable = { idea_group_out_of_context = 5 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 24 }
					OR = {
						AND = {
							check_variable = { v = 5 }
							set_temp_variable = { idea_group_out_of_context = 10 }
						}
						AND = {
							check_variable = { v = 10 }
							set_temp_variable = { idea_group_out_of_context = 5 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 25 }
					OR = {
						AND = {
							check_variable = { v = 6 }
							set_temp_variable = { idea_group_out_of_context = 13 }
						}
						AND = {
							check_variable = { v = 13 }
							set_temp_variable = { idea_group_out_of_context = 6 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 26 }
					OR = {
						AND = {
							check_variable = { v = 6 }
							set_temp_variable = { idea_group_out_of_context = 14 }
						}
						AND = {
							check_variable = { v = 14 }
							set_temp_variable = { idea_group_out_of_context = 6 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 27 }
					OR = {
						AND = {
							check_variable = { v = 6 }
							set_temp_variable = { idea_group_out_of_context = 15 }
						}
						AND = {
							check_variable = { v = 15 }
							set_temp_variable = { idea_group_out_of_context = 6 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 28 }
					OR = {
						AND = {
							check_variable = { v = 6 }
							set_temp_variable = { idea_group_out_of_context = 12 }
						}
						AND = {
							check_variable = { v = 12 }
							set_temp_variable = { idea_group_out_of_context = 6 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 29 }
					OR = {
						AND = {
							check_variable = { v = 7 }
							set_temp_variable = { idea_group_out_of_context = 11 }
						}
						AND = {
							check_variable = { v = 11 }
							set_temp_variable = { idea_group_out_of_context = 7 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 30 }
					OR = {
						AND = {
							check_variable = { v = 7 }
							set_temp_variable = { idea_group_out_of_context = 14 }
						}
						AND = {
							check_variable = { v = 14 }
							set_temp_variable = { idea_group_out_of_context = 7 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 31 }
					OR = {
						AND = {
							check_variable = { v = 7 }
							set_temp_variable = { idea_group_out_of_context = 10 }
						}
						AND = {
							check_variable = { v = 10 }
							set_temp_variable = { idea_group_out_of_context = 7 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 32 }
					OR = {
						AND = {
							check_variable = { v = 8 }
							set_temp_variable = { idea_group_out_of_context = 9 }
						}
						AND = {
							check_variable = { v = 9 }
							set_temp_variable = { idea_group_out_of_context = 8 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 33 }
					OR = {
						AND = {
							check_variable = { v = 8 }
							set_temp_variable = { idea_group_out_of_context = 10 }
						}
						AND = {
							check_variable = { v = 10 }
							set_temp_variable = { idea_group_out_of_context = 8 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 34 }
					OR = {
						AND = {
							check_variable = { v = 8 }
							set_temp_variable = { idea_group_out_of_context = 13 }
						}
						AND = {
							check_variable = { v = 13 }
							set_temp_variable = { idea_group_out_of_context = 8 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 35 }
					OR = {
						AND = {
							check_variable = { v = 9 }
							set_temp_variable = { idea_group_out_of_context = 11 }
						}
						AND = {
							check_variable = { v = 11 }
							set_temp_variable = { idea_group_out_of_context = 9 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 36 }
					OR = {
						AND = {
							check_variable = { v = 9 }
							set_temp_variable = { idea_group_out_of_context = 12 }
						}
						AND = {
							check_variable = { v = 12 }
							set_temp_variable = { idea_group_out_of_context = 9 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 37 }
					OR = {
						AND = {
							check_variable = { v = 9 }
							set_temp_variable = { idea_group_out_of_context = 16 }
						}
						AND = {
							check_variable = { v = 16 }
							set_temp_variable = { idea_group_out_of_context = 9 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 38 }
					OR = {
						AND = {
							check_variable = { v = 11 }
							set_temp_variable = { idea_group_out_of_context = 12 }
						}
						AND = {
							check_variable = { v = 12 }
							set_temp_variable = { idea_group_out_of_context = 11 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 39 }
					OR = {
						AND = {
							check_variable = { v = 11 }
							set_temp_variable = { idea_group_out_of_context = 18 }
						}
						AND = {
							check_variable = { v = 18 }
							set_temp_variable = { idea_group_out_of_context = 11 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 40 }
					OR = {
						AND = {
							check_variable = { v = 12 }
							set_temp_variable = { idea_group_out_of_context = 14 }
						}
						AND = {
							check_variable = { v = 14 }
							set_temp_variable = { idea_group_out_of_context = 12 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 41 }
					OR = {
						AND = {
							check_variable = { v = 13 }
							set_temp_variable = { idea_group_out_of_context = 18 }
						}
						AND = {
							check_variable = { v = 18 }
							set_temp_variable = { idea_group_out_of_context = 13 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 42 }
					OR = {
						AND = {
							check_variable = { v = 14 }
							set_temp_variable = { idea_group_out_of_context = 17 }
						}
						AND = {
							check_variable = { v = 17 }
							set_temp_variable = { idea_group_out_of_context = 14 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 43 }
					OR = {
						AND = {
							check_variable = { v = 15 }
							set_temp_variable = { idea_group_out_of_context = 16 }
						}
						AND = {
							check_variable = { v = 16 }
							set_temp_variable = { idea_group_out_of_context = 15 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 44 }
					OR = {
						AND = {
							check_variable = { v = 16 }
							set_temp_variable = { idea_group_out_of_context = 18 }
						}
						AND = {
							check_variable = { v = 18 }
							set_temp_variable = { idea_group_out_of_context = 16 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 45 }
					OR = {
						AND = {
							check_variable = { v = 17 }
							set_temp_variable = { idea_group_out_of_context = 18 }
						}
						AND = {
							check_variable = { v = 18 }
							set_temp_variable = { idea_group_out_of_context = 17 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 46 }
					OR = {
						AND = {
							check_variable = { v = 19 }
							set_temp_variable = { idea_group_out_of_context = 22 }
						}
						AND = {
							check_variable = { v = 22 }
							set_temp_variable = { idea_group_out_of_context = 19 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 47 }
					OR = {
						AND = {
							check_variable = { v = 19 }
							set_temp_variable = { idea_group_out_of_context = 23 }
						}
						AND = {
							check_variable = { v = 23 }
							set_temp_variable = { idea_group_out_of_context = 19 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 48 }
					OR = {
						AND = {
							check_variable = { v = 20 }
							set_temp_variable = { idea_group_out_of_context = 24 }
						}
						AND = {
							check_variable = { v = 24 }
							set_temp_variable = { idea_group_out_of_context = 20 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 49 }
					OR = {
						AND = {
							check_variable = { v = 21 }
							set_temp_variable = { idea_group_out_of_context = 24 }
						}
						AND = {
							check_variable = { v = 24 }
							set_temp_variable = { idea_group_out_of_context = 21 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 50 }
					OR = {
						AND = {
							check_variable = { v = 22 }
							set_temp_variable = { idea_group_out_of_context = 21 }
						}
						AND = {
							check_variable = { v = 21 }
							set_temp_variable = { idea_group_out_of_context = 22 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 51 }
					OR = {
						AND = {
							check_variable = { v = 22 }
							set_temp_variable = { idea_group_out_of_context = 23 }
						}
						AND = {
							check_variable = { v = 23 }
							set_temp_variable = { idea_group_out_of_context = 22 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 52 }
					OR = {
						AND = {
							check_variable = { v = 21 }
							set_temp_variable = { idea_group_out_of_context = 23 }
						}
						AND = {
							check_variable = { v = 23 }
							set_temp_variable = { idea_group_out_of_context = 21 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 53 }
					OR = {
						AND = {
							check_variable = { v = 20 }
							set_temp_variable = { idea_group_out_of_context = 23 }
						}
						AND = {
							check_variable = { v = 23 }
							set_temp_variable = { idea_group_out_of_context = 20 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 54 }
					OR = {
						AND = {
							check_variable = { v = 24 }
							set_temp_variable = { idea_group_out_of_context = 23 }
						}
						AND = {
							check_variable = { v = 23 }
							set_temp_variable = { idea_group_out_of_context = 24 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 55 }
					OR = {
						AND = {
							check_variable = { v = 24 }
							set_temp_variable = { idea_group_out_of_context = 22 }
						}
						AND = {
							check_variable = { v = 22 }
							set_temp_variable = { idea_group_out_of_context = 24 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 56 }
					OR = {
						AND = {
							check_variable = { v = 20 }
							set_temp_variable = { idea_group_out_of_context = 22 }
						}
						AND = {
							check_variable = { v = 22 }
							set_temp_variable = { idea_group_out_of_context = 20 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 57 }
					OR = {
						AND = {
							check_variable = { v = 24 }
							set_temp_variable = { idea_group_out_of_context = 3 }
						}
						AND = {
							check_variable = { v = 3 }
							set_temp_variable = { idea_group_out_of_context = 24 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 58 }
					OR = {
						AND = {
							check_variable = { v = 19 }
							set_temp_variable = { idea_group_out_of_context = 17 }
						}
						AND = {
							check_variable = { v = 17 }
							set_temp_variable = { idea_group_out_of_context = 19 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 59 }
					OR = {
						AND = {
							check_variable = { v = 19 }
							set_temp_variable = { idea_group_out_of_context = 10 }
						}
						AND = {
							check_variable = { v = 10 }
							set_temp_variable = { idea_group_out_of_context = 19 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 60 }
					OR = {
						AND = {
							check_variable = { v = 19 }
							set_temp_variable = { idea_group_out_of_context = 13 }
						}
						AND = {
							check_variable = { v = 13 }
							set_temp_variable = { idea_group_out_of_context = 19 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 61 }
					OR = {
						AND = {
							check_variable = { v = 20 }
							set_temp_variable = { idea_group_out_of_context = 11 }
						}
						AND = {
							check_variable = { v = 11 }
							set_temp_variable = { idea_group_out_of_context = 20 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 62 }
					OR = {
						AND = {
							check_variable = { v = 20 }
							set_temp_variable = { idea_group_out_of_context = 9 }
						}
						AND = {
							check_variable = { v = 9 }
							set_temp_variable = { idea_group_out_of_context = 20 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 63 }
					OR = {
						AND = {
							check_variable = { v = 21 }
							set_temp_variable = { idea_group_out_of_context = 2 }
						}
						AND = {
							check_variable = { v = 2 }
							set_temp_variable = { idea_group_out_of_context = 21 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 64 }
					OR = {
						AND = {
							check_variable = { v = 21 }
							set_temp_variable = { idea_group_out_of_context = 6 }
						}
						AND = {
							check_variable = { v = 6 }
							set_temp_variable = { idea_group_out_of_context = 21 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 65 }
					OR = {
						AND = {
							check_variable = { v = 25 }
							set_temp_variable = { idea_group_out_of_context = 5 }
						}
						AND = {
							check_variable = { v = 5 }
							set_temp_variable = { idea_group_out_of_context = 25 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 66 }
					OR = {
						AND = {
							check_variable = { v = 25 }
							set_temp_variable = { idea_group_out_of_context = 22 }
						}
						AND = {
							check_variable = { v = 22 }
							set_temp_variable = { idea_group_out_of_context = 25 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 67 }
					OR = {
						AND = {
							check_variable = { v = 25 }
							set_temp_variable = { idea_group_out_of_context = 10 }
						}
						AND = {
							check_variable = { v = 10 }
							set_temp_variable = { idea_group_out_of_context = 25 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 68 }
					OR = {
						AND = {
							check_variable = { v = 25 }
							set_temp_variable = { idea_group_out_of_context = 8 }
						}
						AND = {
							check_variable = { v = 8 }
							set_temp_variable = { idea_group_out_of_context = 25 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 69 }
					OR = {
						AND = {
							check_variable = { v = 25 }
							set_temp_variable = { idea_group_out_of_context = 1 }
						}
						AND = {
							check_variable = { v = 1 }
							set_temp_variable = { idea_group_out_of_context = 25 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 70 }
					OR = {
						AND = {
							check_variable = { v = 26 }
							set_temp_variable = { idea_group_out_of_context = 5 }
						}
						AND = {
							check_variable = { v = 5 }
							set_temp_variable = { idea_group_out_of_context = 26 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 71 }
					OR = {
						AND = {
							check_variable = { v = 26 }
							set_temp_variable = { idea_group_out_of_context = 17 }
						}
						AND = {
							check_variable = { v = 17 }
							set_temp_variable = { idea_group_out_of_context = 26 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 72 }
					OR = {
						AND = {
							check_variable = { v = 26 }
							set_temp_variable = { idea_group_out_of_context = 10 }
						}
						AND = {
							check_variable = { v = 10 }
							set_temp_variable = { idea_group_out_of_context = 26 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 73 }
					OR = {
						AND = {
							check_variable = { v = 26 }
							set_temp_variable = { idea_group_out_of_context = 23 }
						}
						AND = {
							check_variable = { v = 23 }
							set_temp_variable = { idea_group_out_of_context = 26 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 74 }
					OR = {
						AND = {
							check_variable = { v = 26 }
							set_temp_variable = { idea_group_out_of_context = 9 }
						}
						AND = {
							check_variable = { v = 9 }
							set_temp_variable = { idea_group_out_of_context = 26 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 75 }
					OR = {
						AND = {
							check_variable = { v = 27 }
							set_temp_variable = { idea_group_out_of_context = 6 }
						}
						AND = {
							check_variable = { v = 6 }
							set_temp_variable = { idea_group_out_of_context = 27 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 76 }
					OR = {
						AND = {
							check_variable = { v = 27 }
							set_temp_variable = { idea_group_out_of_context = 4 }
						}
						AND = {
							check_variable = { v = 4 }
							set_temp_variable = { idea_group_out_of_context = 27 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 77 }
					OR = {
						AND = {
							check_variable = { v = 27 }
							set_temp_variable = { idea_group_out_of_context = 16 }
						}
						AND = {
							check_variable = { v = 16 }
							set_temp_variable = { idea_group_out_of_context = 27 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 78 }
					OR = {
						AND = {
							check_variable = { v = 27 }
							set_temp_variable = { idea_group_out_of_context = 23 }
						}
						AND = {
							check_variable = { v = 23 }
							set_temp_variable = { idea_group_out_of_context = 27 }
						}
					}
				}
				AND = {
					check_variable = { policy_out_of_context = 79 }
					OR = {
						AND = {
							check_variable = { v = 27 }
							set_temp_variable = { idea_group_out_of_context = 1 }
						}
						AND = {
							check_variable = { v = 1 }
							set_temp_variable = { idea_group_out_of_context = 27 }
						}
					}
				}

			}
		}
		localization_key = string_required_idea_group_for_policy
	}
}

defined_text = {
	name = GetIdeaGroupColorForPolicyTooltip

	text = {
		trigger = {
			has_selected_idea_group = yes
		}
		localization_key = string_required_idea_group_for_policy_colored
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = string_required_idea_group_for_policy_not_colored
	}
}