namespace = stz_tech

country_event = {
	id = stz_tech.0
	hide_window = yes
#	is_triggered_only = yes #Ben_D: This shouldn't be included with a trigger block

	trigger = {
		NOR = {
			has_country_flag = stz_can_research_viridisium
			has_technology = stz_tech_viridisium_synthesizing
			has_tech_option = stz_tech_viridisium_synthesizing
		}
		has_technology = stz_tech_caerulenite_manufacturing
	}

	mean_time_to_happen = { #Ben_D: Added
		days = 1
	}

	fire_only_once = yes #Ben_D: Added

	immediate = {
		country_event = {
			id = stz_tech.1
			days = 3600
			random = 5400
		}
	}
}

country_event = {
	id = stz_tech.1
	hide_window = yes
	is_triggered_only = yes

#	trigger = { #Ben_D: Since this is fired by the 1st event, this trigger block is not necessary
#		has_technology = stz_tech_caerulenite_manufacturing
#	}

	fire_only_once = yes #Ben_D: Added

	immediate = {
		set_country_flag = stz_can_research_viridisium
	}
}