﻿add_namespace = remove_policy_events

country_event = {
	id = remove_policy_events.1
	title = remove_policy_events.EVTNAME1
	desc = remove_policy_events.EVTDESC1

	hidden = yes
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			meta_effect = {
				text = {
					if = {
						limit = {
							has_idea = eu4_like_policy_[POLICY]
						}
						remove_ideas = eu4_like_policy_[POLICY]
					}
					clear_variable = eu4_like_policy_[POLICY]_date
				}
				POLICY = "[?v]"
			}
			if = {
				limit = {
					is_in_array = { selected_policies_array = v }
				}
				remove_from_array = { selected_policies_array = v }
			}
		}
	}

	option = {
		name = remove_policy_events1.EVTOPT1

		ai_chance = { factor = 100 }
	}
}