# General:
defined_text = {
	name = GetRefundedPoliticalPowerPerIdea

	text = {
		trigger = {
			set_temp_variable = { halfed_idea_cost_temp = idea_cost_var }
			divide_temp_variable = { halfed_idea_cost_temp = 2 }
			round_temp_variable = halfed_idea_cost_temp
			always = yes
		}
		localization_key = string_refunded_pp_from_removing_idea_group
	}
}

defined_text = {
	name = GetIdeaGroupUnlockedAtText

	text = {
		trigger = {
			specific_idea_group_slot_is_unlocked = yes
		}
		localization_key = string_free_idea_slot
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = string_idea_slot_locked
	}
}

defined_text = {
	name = GetIdeaGroupUnlockDate

	text = {
		trigger = {
			has_global_flag = eu4_like_ideas_test_flag
		}
		localization_key = "[GetDateText]"
	}
	text = {
		trigger = {
			set_temp_variable = { idea_group_slot = i }
			add_to_temp_variable = { idea_group_slot = 1 }
			meta_trigger = {
				text = {
					set_temp_variable = { idea_group_unlock_date_temp = global.unlock_date_for_idea_group_[SLOT] }
				}
				SLOT = "[?idea_group_slot]"
			}
		}
		localization_key = string_idea_slot_unlock_date_relative
	}
}

defined_text = {
	name = GetNextIdeasProgressTooltip

	text = {
		trigger = {
			NOT = { has_political_power < idea_cost_var }
		}
		localization_key = string_enacting_idea_cost_modifier
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = string_cannot_enact_idea
	}
}

defined_text = {
	name = GetIdeaGroupNotSelectableTooltip

	text = {
		trigger = {
			NOT = { can_select_any_idea_group = yes }
		}
		localization_key = string_cannot_select_idea_group_because_no_free_slot
	}
	text = {
		trigger = {
			NOT = { has_global_flag = eu4_like_ideas_test_flag }
			NOT = { has_global_flag = eu4_like_ideas_limit_for_idea_groups_from_same_type_disabled }
			set_temp_variable = { num_of_selected_adm = 0 }
			all_of = {
				array = global.adm_idea_groups
				value = value_temp
				index = index_temp
				set_temp_variable = { idea_group_out_of_context = value_temp }
				if = {
					limit = {
						has_selected_idea_group = yes
					}
					add_to_temp_variable = { num_of_selected_adm = 1 }
				}
			}
			set_temp_variable = { num_of_selected_dip = 0 }
			all_of = {
				array = global.dip_idea_groups
				value = value_temp
				index = index_temp
				set_temp_variable = { idea_group_out_of_context = value_temp }
				if = {
					limit = {
						has_selected_idea_group = yes
					}
					add_to_temp_variable = { num_of_selected_dip = 1 }
				}
			}
			set_temp_variable = { num_of_selected_mil = 0 }
			all_of = {
				array = global.mil_idea_groups
				value = value_temp
				index = index_temp
				set_temp_variable = { idea_group_out_of_context = value_temp }
				if = {
					limit = {
						has_selected_idea_group = yes
					}
					add_to_temp_variable = { num_of_selected_mil = 1 }
				}
			}
			set_temp_variable = { total_num_of_selected_ideas = num_of_selected_adm }
			add_to_temp_variable = { total_num_of_selected_ideas = num_of_selected_dip }
			add_to_temp_variable = { total_num_of_selected_ideas = num_of_selected_mil }
			divide_temp_variable = { total_num_of_selected_ideas = 2 }
			NOT = {
				OR = {
					AND = {
						is_in_array = { global.adm_idea_groups = v }
						OR = {
							check_variable = { num_of_selected_adm = 0 }
							check_variable = { var = total_num_of_selected_ideas value = num_of_selected_adm compare = greater_than_or_equals }
						}
					}
					AND = {
						is_in_array = { global.dip_idea_groups = v }
						OR = {
							check_variable = { num_of_selected_dip = 0 }
							check_variable = { var = total_num_of_selected_ideas value = num_of_selected_dip compare = greater_than_or_equals }
						}
					}
					AND = {
						is_in_array = { global.mil_idea_groups = v }
						OR = {
							check_variable = { num_of_selected_mil = 0 }
							check_variable = { var = total_num_of_selected_ideas value = num_of_selected_mil compare = greater_than_or_equals }
						}
					}
				}
			}
		}
		localization_key = string_cannot_select_idea_group_because_too_many_of_category
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = string_can_select_idea_group
	}
}

defined_text = {
	name = GetNumOfIdeas

	text = {
		trigger = {
			calculate_total_num_of_ideas_trigger = yes
			always = yes
		}
		localization_key = "[?num_of_ideas_temp]"
	}
}


defined_text = {
	name = GetUnlockedIdeaGroupsTooltip

	text = {
		trigger = {
			check_variable = { selected_idea_groups^0 > 0 }
			clear_temp_array = selected_idea_groups_temp
			all_of = {
				array = selected_idea_groups
				value = value_temp
				index = index_temp
				if = {
					limit = {
						check_variable = { value_temp > 0 }
					}
					add_to_temp_array = { selected_idea_groups_temp = value_temp }
				}
			}
			set_temp_variable = { temp = -1 }
		}
		localization_key = "[This.GetUnlockedIdeaGroupsTooltipEntry]"
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = string_no_selected_idea_group
	}
}

defined_text = {
	name = GetUnlockedIdeaGroupsTooltipEntry

	text = {
		trigger = {
			add_to_temp_variable = { temp = 1 }
			set_temp_variable = { temp_temp = temp }
			add_to_temp_variable = { temp_temp = 1 }
			check_variable = { selected_idea_groups_temp^num = temp_temp }
			set_temp_variable = { v = selected_idea_groups^temp }
		}
		localization_key = string_selected_idea_group_last_entry
	}
	text = {
		trigger = {
			check_variable = { selected_idea_groups_temp^num > temp_temp }
			set_temp_variable = { v = selected_idea_groups^temp }
		}
		localization_key = string_selected_idea_group
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetIfNationalIdeaCompleted1

	text = {
		trigger = {
			check_variable = { completed_national_ideas > 0 }
		}
		localization_key = string_completed_national_idea_1
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetIfNationalIdeaCompleted2

	text = {
		trigger = {
			check_variable = { completed_national_ideas > 1 }
		}
		localization_key = string_completed_national_idea_2
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetIfNationalIdeaCompleted3

	text = {
		trigger = {
			check_variable = { completed_national_ideas > 2 }
		}
		localization_key = string_completed_national_idea_3
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetIfNationalIdeaCompleted4

	text = {
		trigger = {
			check_variable = { completed_national_ideas > 3 }
		}
		localization_key = string_completed_national_idea_4
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetIfNationalIdeaCompleted5

	text = {
		trigger = {
			check_variable = { completed_national_ideas > 4 }
		}
		localization_key = string_completed_national_idea_5
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetIfNationalIdeaCompleted6

	text = {
		trigger = {
			check_variable = { completed_national_ideas > 5 }
		}
		localization_key = string_completed_national_idea_6
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

defined_text = {
	name = GetIfNationalIdeaCompleted7

	text = {
		trigger = {
			check_variable = { completed_national_ideas > 6 }
		}
		localization_key = string_completed_national_idea_7
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = ""
	}
}

# National Ideas:
defined_text = {
	name = GetNationalIdeasName

	text = {
		trigger = {
			always = yes
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeasNameOtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeasNameOtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "NATIONAL_IDEAS_GROUP_[?national_ideas_id_other_context]"
	}
}

defined_text = {
	name = GetNationalIdeasProgressTooltip

	text = {
		trigger = {
			check_variable = { completed_national_ideas < 7 }
		}
		localization_key = string_national_ideas_not_completed
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = string_national_ideas_completed
	}
}

## National Idea 0 (Traditions)
defined_text = {
	name = GetNationalIdeaName0

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName0OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName0OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_0"
	}
}

defined_text = {
	name = GetNationalIdeaBonus0

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus0OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus0OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_0_bonus"
	}
}

defined_text = {
	name = GetNationalIdeaBonus0Short1

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_0_bonus_short_1"
	}
}

defined_text = {
	name = GetNationalIdeaBonus0Short2

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_0_bonus_short_2"
	}
}

defined_text = {
	name = GetNationalIdeaFirstPicture0

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_0_picture_1"
	}
}

defined_text = {
	name = GetNationalIdeaSecondPicture0

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_0_picture_2"
	}
}

## National Idea 1:
defined_text = {
	name = GetNationalIdeaName1

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName1OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName1OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_1"
	}
}

defined_text = {
	name = GetNationalIdeaDesc1

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_1_desc"
	}
}

defined_text = {
	name = GetNationalIdeaBonus1

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus1OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus1OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_1_bonus"
	}
}

defined_text = {
	name = GetNationalIdeaPicture1

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_1_picture"
	}
}

## National Idea 2:
defined_text = {
	name = GetNationalIdeaName2

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName2OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName2OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_2"
	}
}

defined_text = {
	name = GetNationalIdeaDesc2

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_2_desc"
	}
}

defined_text = {
	name = GetNationalIdeaBonus2

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus2OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus2OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_2_bonus"
	}
}

defined_text = {
	name = GetNationalIdeaPicture2

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_2_picture"
	}
}

## National Idea 3:
defined_text = {
	name = GetNationalIdeaName3

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName3OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName3OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_3"
	}
}

defined_text = {
	name = GetNationalIdeaDesc3

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_3_desc"
	}
}

defined_text = {
	name = GetNationalIdeaBonus3

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus3OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus3OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_3_bonus"
	}
}

defined_text = {
	name = GetNationalIdeaPicture3

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_3_picture"
	}
}

## National Idea 4:
defined_text = {
	name = GetNationalIdeaName4

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName4OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName4OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_4"
	}
}

defined_text = {
	name = GetNationalIdeaDesc4

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_4_desc"
	}
}

defined_text = {
	name = GetNationalIdeaBonus4

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus4OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus4OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_4_bonus"
	}
}

defined_text = {
	name = GetNationalIdeaPicture4

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_4_picture"
	}
}

## National Idea 5:
defined_text = {
	name = GetNationalIdeaName5

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName5OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName5OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_5"
	}
}

defined_text = {
	name = GetNationalIdeaDesc5

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_5_desc"
	}
}

defined_text = {
	name = GetNationalIdeaBonus5

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus5OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus5OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_5_bonus"
	}
}

defined_text = {
	name = GetNationalIdeaPicture5

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_5_picture"
	}
}

## National Idea 6:
defined_text = {
	name = GetNationalIdeaName6

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName6OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName6OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_6"
	}
}

defined_text = {
	name = GetNationalIdeaDesc6

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_6_desc"
	}
}

defined_text = {
	name = GetNationalIdeaBonus6

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus6OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus6OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_6_bonus"
	}
}

defined_text = {
	name = GetNationalIdeaPicture6

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_6_picture"
	}
}

## National Idea 7:
defined_text = {
	name = GetNationalIdeaName7

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName7OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName7OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_7"
	}
}

defined_text = {
	name = GetNationalIdeaDesc7

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_7_desc"
	}
}

defined_text = {
	name = GetNationalIdeaBonus7

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus7OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus7OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_7_bonus"
	}
}

defined_text = {
	name = GetNationalIdeaPicture7

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_7_picture"
	}
}

## National Idea 8 (Ambitions):
defined_text = {
	name = GetNationalIdeaName8

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaName8OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaName8OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_8"
	}
}

defined_text = {
	name = GetNationalIdeaBonus8

	text = {
		trigger = {
			set_temp_variable = { national_ideas_id_other_context = national_ideas_id }
		}
		localization_key = "[This.GetNationalIdeaBonus8OtherContext]"
	}
}

defined_text = {
	name = GetNationalIdeaBonus8OtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id_other_context]_8_bonus"
	}
}

defined_text = {
	name = GetAmbitionsBonusShort

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_8_bonus_short"
	}
}

defined_text = {
	name = GetNationalIdeaPicture8

	text = {
		trigger = {
			always = yes
		}
		localization_key = "national_ideas_[?national_ideas_id]_8_picture"
	}
}

defined_text = {
	name = GetIfNationalAmbitionsUnlocked

	text = {
		trigger = {
			meta_trigger = {
				text = {
					has_idea = national_ideas_[GROUP]_8
				}
				GROUP = "[?national_ideas_id]"
			}
		}
		localization_key = string_has_unlocked_national_ambitions
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = string_has_not_unlocked_national_ambitions
	}
}

# Idea Groups:
defined_text = {
	name = GetIdeaGroupNameOtherContext

	text = {
		trigger = {
			always = yes
		}
		localization_key = "IDEA_GROUP_[?idea_group_out_of_context]"
	}
}

defined_text = {
	name = GetIdeaGroupName

	text = {
		trigger = {
			set_temp_variable = { idea_group_out_of_context = v }
			always = yes
		}
		localization_key = "[This.GetIdeaGroupNameOtherContext]"
	}
}

defined_text = {
	name = GetIdeaGroupIcon

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_picture"
	}
}

defined_text = {
	name = GetIdeaGroupResourceIcon

	text = {
		trigger = {
			is_in_array = { global.adm_idea_groups = v }
		}
		localization_key = "GFX_icon_category_administrative"
	}
	text = {
		trigger = {
			is_in_array = { global.dip_idea_groups = v }
		}
		localization_key = "GFX_icon_category_diplomatic"
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = "GFX_icon_category_military"
	}
}

defined_text = {
	name = GetNumOfUnlockedIdeasFromGroup

	text = {
		trigger = {
			meta_trigger = {
				text = {
					set_temp_variable = { num_of_completed_ideas_of_specific_group = completed_ideas_of_group_[GROUP] }
				}
				GROUP = "[?v]"
			}
			always = yes
		}
		localization_key = "[?num_of_completed_ideas_of_specific_group]"
	}
}

# Ideas:
## Idea 1:
defined_text = {
	name = GetIdeaName1

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_1"
	}
}

defined_text = {
	name = GetIdeaDesc1

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_1_desc"
	}
}

defined_text = {
	name = GetIdeaBonus1

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_1_bonus"
	}
}

defined_text = {
	name = GetIdeaPicture1

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_1_picture"
	}
}

## Idea 2:
defined_text = {
	name = GetIdeaName2

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_2"
	}
}

defined_text = {
	name = GetIdeaDesc2

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_2_desc"
	}
}

defined_text = {
	name = GetIdeaBonus2

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_2_bonus"
	}
}

defined_text = {
	name = GetIdeaPicture2

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_2_picture"
	}
}

## Idea 3:
defined_text = {
	name = GetIdeaName3

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_3"
	}
}

defined_text = {
	name = GetIdeaDesc3

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_3_desc"
	}
}

defined_text = {
	name = GetIdeaBonus3

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_3_bonus"
	}
}

defined_text = {
	name = GetIdeaPicture3

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_3_picture"
	}
}

## Idea 4:
defined_text = {
	name = GetIdeaName4

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_4"
	}
}

defined_text = {
	name = GetIdeaDesc4

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_4_desc"
	}
}

defined_text = {
	name = GetIdeaBonus4

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_4_bonus"
	}
}

defined_text = {
	name = GetIdeaPicture4

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_4_picture"
	}
}

## Idea 5:
defined_text = {
	name = GetIdeaName5

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_5"
	}
}

defined_text = {
	name = GetIdeaDesc5

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_5_desc"
	}
}

defined_text = {
	name = GetIdeaBonus5

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_5_bonus"
	}
}

defined_text = {
	name = GetIdeaPicture5

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_5_picture"
	}
}

## Idea 6:
defined_text = {
	name = GetIdeaName6

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_6"
	}
}

defined_text = {
	name = GetIdeaDesc6

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_6_desc"
	}
}

defined_text = {
	name = GetIdeaBonus6

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_6_bonus"
	}
}

defined_text = {
	name = GetIdeaPicture6

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_6_picture"
	}
}

## Idea 7:
defined_text = {
	name = GetIdeaName7

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_7"
	}
}

defined_text = {
	name = GetIdeaDesc7

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_7_desc"
	}
}

defined_text = {
	name = GetIdeaBonus7

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_7_bonus"
	}
}

defined_text = {
	name = GetIdeaPicture7

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_7_picture"
	}
}

## Bonus:
defined_text = {
	name = GetIdeaName8

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_8"
	}
}

defined_text = {
	name = GetIdeaDesc8

	text = {
		trigger = {
			always = yes
		}
		localization_key = idea_group_bonus_desc
	}
}

defined_text = {
	name = GetIdeaBonus8

	text = {
		trigger = {
			always = yes
		}
		localization_key = "idea_group_[?v]_8_bonus"
	}
}

# GUI:
defined_text = {
	name = GetEu4StyleIdeasSelectableIdeaGroupEntryWindow

	text = {
		trigger = {
			set_temp_variable = { idea_group_out_of_context = v }
			has_selected_idea_group = yes
		}
		localization_key = "selectable_idea_groups_entry_empty"
	}
	text = {
		trigger = {
			always = yes
		}
		localization_key = "selectable_idea_groups_entry"
	}
}