﻿###########################
# OMNIPARISM Events
###########################

add_namespace = omnipar


# accepts эвент от цели для root о согласии
country_event = {
	id = omnipar.1
	title = omnipar.1.t
	desc = omnipar.1.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = omnipar.1.a	
		ai_chance = { factor = 100 }
		add_popularity = {
			ideology = communism
			popularity = 0.05
		}
		if = {
			limit = {
				has_idea = agitatia_omnikov_natidea
			}
			remove_ideas = agitatia_omnikov_natidea			
		}
		add_timed_idea = {
				idea = agitatia_omnikov_natidea
				days = 100
		}
	}
	option = {
		name = omnipar.1.b
		ai_chance = { factor = 3 }
		add_stability = -0.02
		add_popularity = {
			ideology = communism
			popularity = -0.05
		}
		if = {
			limit = {
				NOT = {
					has_idea = zapretit_agitatsiu_omnikov
				}
			}
			add_timed_idea = {
				idea = zapretit_agitatsiu_omnikov
				days = 250
			}
		}	
		
	}
}



####  эвент для цели приглос в альянс
country_event = {
	id = omnipar.2
	title = omnipar.2.t
	desc = omnipar.2.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept
		name = omnipar.2.a
		ai_chance = { factor = 100 }
		effect_tooltip = {
			FROM = {
				add_to_faction = ROOT	
			}
		}
		FROM = {
			country_event = { id = omnipar.4 }
		}		
	}
	option = { # Refuse
		name = omnipar.2.b
		ai_chance = { factor = 3 }
		FROM = {
			country_event = { id = omnipar.3 }
		}
	}
}

# declines  эвент от цели для root об отказе
country_event = {
	id = omnipar.3
	title = omnipar.3.t
	desc = omnipar.3.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = omnipar.3.a
	}
}

# accepts эвент от цели для root о согласии
country_event = {
	id = omnipar.4
	title = omnipar.4.t
	desc = omnipar.4.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = omnipar.4.a
		add_to_faction = FROM				
	}
}