### BRG Globalplan GUI scripted triggers ###

BRG_Check_GP_Active = {
	OR = {
		check_variable = {BRG_GP_Kondor_Status_Var = 2}
		check_variable = {BRG_GP_Wolf_Status_Var = 2}
		check_variable = {BRG_GP_Adler_Status_Var = 2}
		check_variable = {BRG_GP_Lowe_Status_Var = 2}
		check_variable = {BRG_GP_Bar_Status_Var = 2}
		check_variable = {BRG_GP_Sonne_Status_Var = 2}
		check_variable = {BRG_GP_Drache_Status_Var = 2}
		check_variable = {BRG_GP_Puma_Status_Var = 2}
	}
}

BRG_GP_Kondor_active = {
	BRG = {
		check_variable = {BRG_GP_Kondor_Status_Var = 2}
	}
}
BRG_GP_Wolf_active = {
	BRG = {
		check_variable = {BRG_GP_Wolf_Status_Var = 2}
	}
}
BRG_GP_Adler_active = {
	BRG = {
		check_variable = {BRG_GP_Adler_Status_Var = 2}
	}
}
BRG_GP_Bar_active = {
	BRG = {
		check_variable = {BRG_GP_Bar_Status_Var = 2}
	}
}
BRG_GP_Sonne_active = {
	BRG = {
		check_variable = {BRG_GP_Sonne_Status_Var = 2}
	}
}
BRG_GP_Drache_active = {
	BRG = {
		check_variable = {BRG_GP_Drache_Status_Var = 2}
	}
}
BRG_GP_Puma_active = {
	BRG = {
		check_variable = {BRG_GP_Puma_Status_Var = 2}
	}
}

BRG_GPs_On_Cooldown = {
	custom_trigger_tooltip = {
		tooltip = BRG_GP_Cooldown_Trigger_tt
		has_country_flag = BRG_GPs_locked_flag
	}
}

BRG_GP_Kondor_Unlocked = {
	has_equipment = { infantry_equipment > 449 }
	has_equipment = { support_equipment > 49 }
	has_political_power > 99
	check_variable = { BRG_supplies > BRG_gp_activation_cost }
}

BRG_GP_Wolf_Unlocked = {

	has_equipment = { infantry_equipment > 449 }
	has_equipment = { support_equipment > 49 }
	has_political_power > 99
	check_variable = { BRG_supplies > BRG_gp_activation_cost }

}

BRG_GP_Lowe_Unlocked = {

}

BRG_GP_Bar_Unlocked = {
	has_equipment = { infantry_equipment > 449 }
	has_equipment = { support_equipment > 49 }
	has_political_power > 99
	check_variable = { BRG_supplies > BRG_gp_activation_cost }
}

BRG_GP_Drache_Unlocked = {

}

BRG_GP_Sonne_Unlocked = {

}

BRG_GP_Adler_Unlocked = {

}

BRG_GP_Puma_Unlocked = {
	has_equipment = { infantry_equipment > 449 }
	has_equipment = { support_equipment > 49 }
	has_political_power > 99
	check_variable = { BRG_supplies > BRG_gp_activation_cost }
}
