﻿je_hawaii = { #JE for hawaii to stave off annxation
	icon = "gfx/interface/icons/event_icons/event_trade.dds"

	group = je_group_internal_affairs

	complete = {
		GDP >= 250000
	}

	on_complete = {
		trigger_event = {
			id = hawaii_events.2
		}
	}

	on_timeout = {
		if = {
			limit = {
				any_country = {
					has_variable = hawaii_interest
				}
			}
			trigger_event = {
				id = hawaii_events.3
			}
		}
	}

	timeout = 3650

	should_be_pinned_by_default = yes
}

je_hawaiian_interest = { #JE for GPs so that they can see the situation is ongoing
	icon = "gfx/interface/icons/event_icons/event_trade.dds"

	group = je_group_foreign_affairs

	is_shown_when_inactive = {
		has_global_variable = gp_hawaii_interest
		country_rank = rank_value:great_power
	}

	possible = {
		hidden_trigger = {
			has_variable = hawaii_interest
		}
		custom_tooltip = influence_hawaii_tt
		country_rank = rank_value:great_power
	}
	
	complete = {
		custom_tooltip = {
			text = je_hawaiian_interest_tt
			OR = {
				NOT = {
					exists = c:HAW
				}
				c:HAW ?= {
					is_subject_of = ROOT
				}
			}
		}
	}
	
	invalid = {
		hidden_trigger = {
			NOT = { has_global_variable = gp_hawaii_interest }
		}
		custom_tooltip = invalid_influence_hawaii_tt
	}
	should_be_pinned_by_default = yes
	
	timeout = 3650
}
