﻿add_namespace = olenia

country_event = {
         id = olenia.1
         title = olenia.1.t
         desc = olenia.1.d
         picture = report_event_technical
 
         is_triggered_only = yes

         option = {      # Accept
            name = olenia.1.a
            CHN = { 
                country_event = { days = 1 id=changelings.4 }
                }
            ai_chance = { factor = 0 }
            }
         option = {      # Deny
            name = olenia.1.b
            add_political_power = 50
            add_national_unity = 0.02
            CHN = { 
                country_event = { days = 1 id=changelings.5 }
                }
            ai_chance = { factor = 100 }
         }
}
country_event = {
         id = olenia.2
         title = olenia.2.t
         desc = olenia.2.d
         picture = report_event_technical
 
         is_triggered_only = yes

         option = {      # Accept
            name = olenia.2.a
            add_political_power = 50
            add_national_unity = -0.05
            CHN = { 
                country_event = { days = 1 id=changelings.6 }
                }
            ai_chance = { factor = 0 }
            }
         option = {      # Deny
            name = olenia.2.b
            add_political_power = -50
            add_national_unity = 0.05
            set_country_flag = puppet_chain
            news_event = { days = 5 id = news.19 }
            CHN = { 
                country_event = { days = 1 id=changelings.7 }
                }
            ai_chance = { factor = 100 }
         }
}
country_event = {
         id = olenia.3
         title = olenia.3.t
         desc = olenia.3.d
         picture = report_event_technical
 
         trigger = {
         tag = OLE
         has_war_with = CHN
         surrender_progress > 0.01
         has_country_flag = puppet_chain
         }

         fire_only_once = yes

         mean_time_to_happen = { days = 1 }

         option = {      # We still have a chance to surrender peacefully
            name = olenia.3.a
            ai_chance = { factor = 100 }
            CHN = { country_event = { days = 1 id=changelings.8}
               }
            }
          option = {      # Let them puppet us
            name = olenia.3.b
            ai_chance = { factor = 0 }
            CHN = { country_event = { days = 1 id=changelings.9}
               }
            }
         option = {      # THERE'S NO SURRENDER, THERE'S NO RETREAT
            name = olenia.3.c
            ai_chance = { factor = 0 }
            add_political_power = 200
            add_national_unity = 0.1
         }
}
country_event = {
         id = olenia.4
         title = olenia.4.t
         desc = olenia.4.d
         picture = report_event_technical
 
         trigger = {
         tag = OLE
         has_war_with = CHN
         surrender_progress > 0.25
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes

         option = {      # We have a chance to surrender peacefully
            name = olenia.4.a
            ai_chance = { factor = 100 }
            CHN = { country_event = { days = 1 id=changelings.8}
               }
            }
          option = {      # Let them puppet us
            name = olenia.4.b
            ai_chance = { factor = 0 }
            CHN = { country_event = { days = 1 id=changelings.9}
               }
            }
         option = {      # THERE'S NO SURRENDER, THERE'S NO RETREAT
            name = olenia.4.c
            ai_chance = { factor = 0 }
            add_political_power = 200
            add_national_unity = 0.1
         }
}

#country_event = {
 #        id = olenia.5
 #        title = olenia.5.t
 #        desc = olenia.5.d
 #        picture = report_event_technical
 #
 #        trigger = {
  #       tag = OLE
  #       date > 1007.1.1
  #       date < 1007.1.5
 #        }
 #        mean_time_to_happen = { days = 1 }
 #        fire_only_once = yes
 #
  ##       option = {      # We have a chance to surrender peacefully
  #          name = olenia.5.a
 # #          set_country_flag = development_kek
  #          ai_chance = { factor = 0 }
  #             }
  #        option = {      # Let them puppet us
 #           name = olenia.5.b
 #           ai_chance = { factor = 100 }
  #             }
  # }

   ##############
   
country_event = {
         id = olenia.6
         title = olenia.6.t
         desc = olenia.6.d.political.movements.against.king
         picture = report_event_technical
		   is_triggered_only = yes
 
         trigger = {
         tag = OLE
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes

         option = {      # Aggressive intervention
            name = olenia.6.a.crush.them.unlock.national.focus.change.public.thought
			add_political_power = 50
			add_manpower = -30000
			add_national_unity = -0.05
            ai_chance = { factor = 60 }
			set_country_flag = OLE_aggression
               }
          option = {      # Do nothing
            name = olenia.6.b.dont.use.force
			add_political_power = -50
			add_timed_idea = { idea = OLE_raising_dissent days = 90 }
            ai_chance = { factor = 40 }
               }
   }

############

country_event = {	#We embraced harmony!
         id = olenia.11
         title = olenia.11.t
         desc = olenia.11.d.we.embraced.harmony
         picture = report_event_technical
		  is_triggered_only = yes
         trigger = {
         tag = OLE
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes
		 
        option = {     
			name = olenia.11.a
			add_national_unity = 0.30
               }
}

##########

country_event = {
         id = olenia.7
         title = olenia.7.t
         desc = olenia.7.d.revolteers
         picture = report_event_technical
		  is_triggered_only = yes
 
         trigger = {
         tag = OLE
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes

         option = {      # 
            name = olenia.7.a.dont.use.force
			add_national_unity = -0.03
               }
		option = {      # 
            name = olenia.7.b.suppress.them
			add_manpower = -8000
               }
   }

##########

country_event = {	#We refused harmony
         id = olenia.12
         title = olenia.12.t
         desc = olenia.12.d.we.refused.harmony
         picture = report_event_technical
		  is_triggered_only = yes
         trigger = {
         tag = OLE
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes
		 
        option = {      
			name = olenia.12.a.towards.fascism
			add_popularity = { ideology = fascism popularity = 0.25 }
               }
		option = {
			name = olenia.12.b.towards.communism
			add_popularity = { ideology = communism popularity = 0.25 }
			}
}

country_event = {	#change government
         id = olenia.13
         title = olenia.13.t
         desc = olenia.13.d.finally.harmony.in.olenia
		  is_triggered_only = yes
         picture = report_event_technical
         trigger = {
         tag = OLE
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes
		 
        option = {      
			name = olenia.13.a.good
			add_political_power = 50
        ##create_country_leader = {
        ##    name = "Queen Velvet"
        ##    picture = "Council.tga"
        ##   expire = "1965.1.1"
        ##    ideology = liberalism
        ##   traits = { Exiled }
        ##}

		set_politics = {
			ruling_party = democratic
			elections_allowed = no
						}
            add_popularity = {
							ideology = democratic
							popularity = 0.15
						}
		set_country_flag = OLE_soft_way 
		}
}

country_event = {	#Total Tyranny
         id = olenia.14
         title = olenia.14.t
         desc = olenia.14.d.purge.corrupted
         picture = report_event_technical
		  is_triggered_only = yes
         trigger = {
         tag = OLE
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes
		 
        option = { #no time for pity
			name = olenia.14.a.purge.the.country
			add_political_power = -20
			add_manpower = -15000
			add_popularity = { ideology = neutrality popularity = 0.20 }
			remove_ideas = OLE_fighting_corruption
               }
			   
		option = { #careful
			name = olenia.14.b.no.violence
			add_political_power = 50
			add_popularity = { ideology = democratic popularity = 0.10 }
			}
}

country_event = {
		id = olenia.15
		title = olenia.15.t.elections
         desc = olenia.15.d.elections
         picture = report_event_technical
		  is_triggered_only = yes
         trigger = {
         tag = OLE
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes
		 
        option = { #elections
			name = olenia.15.deers.have.spoken
			hold_elections = OLE
			set_country_flag = OLE_soft_way
               }
}

country_event = {
		id = olenia.16
		title = olenia.16.t
         desc = olenia.16.d.johan.wants.governement.back.or.he.will.use.violence
         picture = report_event_technical
		  is_triggered_only = yes
         trigger = {
		 NOT = { ruling_party = neutrality }
         tag = OLE
         }
         mean_time_to_happen = { days = 30 }
         fire_only_once = yes
		 
        option = { #accept Johan again
		name = olenia.16.a.accept.johan.again
			set_politics = {
			ruling_party = neutrality
			elections_allowed = no
						}
            add_popularity = {
							ideology = neutrality
							popularity = 0.30
						}
               }
		option = { #fight
		name = olenia.16.b.refuse.johan.ultimatum
            add_popularity = {
							ideology = neutrality
							popularity = -0.10
						}
					start_civil_war = {
						ruling_party = democratic
						ideology = neutrality
						size = 0.7
						capital = 189
						states = { 209 210 189 }
			}
			random_other_country = {
				limit = {
					original_tag = OLE
					has_government = neutrality
				}
				##load_oob = "OLE_Civil_War"
				set_equipment_fraction = 0.5
				set_national_unity = 0.5
				add_popularity = {
					ideology = neutrality
					popularity = 0.35
					}
				}
               }
}

country_event = {
		id = olenia.17
		title = olenia.17.t
         desc = olenia.17.d
         picture = report_event_technical
		  is_triggered_only = yes
         trigger = {
         tag = OLE
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes
		 hidden = yes
		 
        option = { 
			name = olenia.17.hidden
			EQS = { country_event = { days = 1 id = olenia.18 }
               }
			}
	}

country_event = {
		id = olenia.18
		title = olenia.18.t
         desc = olenia.18.d.olenia.asks.guarantee
         picture = report_event_technical
		  is_triggered_only = yes
         trigger = {
         tag = EQS
         }
         mean_time_to_happen = { days = 1 }
         fire_only_once = yes
		 
        option = { 
			name = olenia.18.guarantee.olenia.indipendence
			give_guarantee = OLE
			ai_chance = { factor = 90 }
			OLE = {
			country_event = { id = olenia.20 days = 1 }
			}
               }
			   
		option = { 
			name = olenia.18.let.them.alone
			OLE = {
			add_opinion_modifier = { target = EQS modifier = refused_help }
			country_event = { id = olenia.19 days = 1 }
			}
			ai_chance = { factor = 10 }
               }
}

country_event = {
		id = olenia.19
		title = olenia.19.t
         desc = olenia.19.d.equestria.refused
         picture = report_event_technical
		  is_triggered_only = yes
         trigger = {
         tag = OLE
         }
         fire_only_once = yes
		 
        option = { 
			name = olenia.19.traitors
			add_opinion_modifier = { target = EQS modifier = refused_help }
               }
}

country_event = {
		id = olenia.20
		title = olenia.20.t
         desc = olenia.20.d.equestria.accepted
         picture = report_event_technical
		 is_triggered_only = yes
         trigger = {
         tag = OLE
         }
         fire_only_once = yes
		 
        option = { 
			name = olenia.20.great
			add_political_power = 40
               }
}