namespace = ck2plus_setup

country_event = {
	id = ck2plus_setup.0
	title = "EVTNAME.CK2PLUS.SETUP.1"
	desc = "EVTDESC.CK2PLUS.SETUP.1"
	picture = BIG_BOOK_eventPicture
	
	is_triggered_only = yes # triggered by on_startup
	
	fire_only_once = yes
	
	trigger = {
		NOT = { has_global_flag = ck2plus_ti_set }
		ai = no
	}
	
	immediate = { 
		set_global_flag = ck2plus_ti_set # Only fire once
		hidden_effect = { set_government_ranks_effect = yes } # Assign proper government rank
	}
	
	option = {
		name = "CK2PLUS.SETUP.1.EVTOPTA" # CK2 TI
		
		hidden_effect = { 
			every_country = {
				if = {
					limit = { converted_provinces_capital_scope_trigger = yes }
					reveal_full_ck2_ti_effect = yes  # Reveal the map as it was in CK2
				}
			}
		}
	}
	option = {
		name = "CK2PLUS.SETUP.1.EVTOPTC" # Default TI
	}
}