﻿add_namespace = scs
country_event = {
    id = scs.1
    title = scs.1.t
    desc = scs.1.d
    picture = GFX_event_appleloosa
    fire_only_once = yes
	is_triggered_only = yes

    option = {
	ai_chance = { factor = 10 }
    name = scs.1.a
    add_popularity = { ideology = democratic popularity = 0.3 }
    add_popularity = { ideology = communism popularity = 0.05 }
      set_politics = { ruling_party = democratic elections_allowed = no }
			hidden_effect = {
				set_country_flag = SCS_braeburn_wins
			}
        }
        option = {
      	ai_chance = { factor = 60 }
          name = scs.1.b
            add_popularity = { ideology = neutrality popularity = 0.2 }
      			hidden_effect = {
      				set_country_flag = SCS_silverstar_wins
      			}
              }
	option = {
	ai_chance = { factor = 30 }
    name = scs.1.c
    add_popularity = { ideology = fascism popularity = 0.3 }
    set_politics = { ruling_party = fascism elections_allowed = no }
			hidden_effect = {
				set_country_flag = SCS_beuford_wins
			}
        }
    }

    country_event = {
    	id = scs.2
    	title = scs.2.t
    	desc = scs.2.d
    	picture = GFX_event_appleloosa
        is_triggered_only = yes
        fire_only_once = yes
    	option = {
    		name = scs.2.a
        add_political_power = 50
        load_oob = "SCS_CW_volunteers"
      }
      }

      country_event = {
      	id = scs.3
      	title = scs.3.t
      	desc = scs.3.d
      	picture = GFX_event_appleloosa
          is_triggered_only = yes
          fire_only_once = yes
      	option = {
      		name = scs.3.a
          load_oob = "SCS_CW_navy"
        }
        }

country_event = {
	id = scs.4
	title = scs.4.t
	desc = scs.4.d
	picture = GFX_event_appleloosa
    is_triggered_only = yes
    fire_only_once = yes
	option = {
		name = scs.4.a
    add_political_power = 150
    add_national_unity = 0.15
	}
  }

  country_event = {
    id = scs.5
    title = scs.5.t
    desc = scs.5.d
    picture = GFX_event_appleloosa
      is_triggered_only = yes
      fire_only_once = yes
    option = {
      name = scs.5.a
      add_equipment_to_stockpile = { type = fighter_equipment_0 amount = 30 producer = SCS }
    }
    }

  #buffalo annexation
  country_event = {
    id = scs.6
    title = scs.6.t
  	desc = scs.6.d
  	picture = GFX_event_appleloosa
      is_triggered_only = yes
      fire_only_once = yes
  	option = {
  		name = scs.6.a #welp
      SCS = {
        change_tag_from = BUF
        annex_country = { target = BUF }
      }
      ai_chance = {
        factor = 25
        modifier = {
          SCS = { has_country_flag = SCS_braeburn_wins }
          factor = 6
        }
      }
  	}
    option = {
  		name = scs.6.b #fuck no
      add_political_power = 150
      add_national_unity = 0.15
      SCS = { country_event = { id = scs.7 days = 7 }}
      ai_chance = {
        factor = 75
      }
  	}
  }

  country_event = {
    id = scs.7
    title = scs.7.t
  	desc = scs.7.d
  	picture = GFX_event_appleloosa
      is_triggered_only = yes
      fire_only_once = yes
  	option = {
  		name = scs.7.a #welp
      add_political_power = -250
      add_popularity = { ideology = fascism popularity = 0.10 }
      ai_chance = {
        factor = 50
      }
  	}
    option = {
      trigger = {
        NOT = {has_country_flag = SCS_braeburn_wins }
      }
  		name = scs.7.b #to war
      add_political_power = -150
      add_popularity = { ideology = fascism popularity = 0.05 }
      create_wargoal = { type = annex_everything target = BUF }
      ai_chance = {
        factor = 50
      }
  	}
  }

  country_event = {
    id = scs.8
    title = scs.8.t
  	desc = scs.8.d
  	picture = GFX_event_appleloosa
      is_triggered_only = yes
      fire_only_once = yes
      trigger = {
        OR = {
        has_global_flag = equestrian_com_civil_war
        has_global_flag = equestrian_civil_war
        }
      }
  	option = {
  		name = scs.8.a
      add_political_power = -200
      add_popularity = { ideology = fascism popularity = 0.05 }
      declare_war_on = { target = BUF type = annex_everything }
      ai_chance = {
        factor = 60
        modifier = {
          factor = 0.3
          BUF = {
            is_guaranteed_by = EQS
          }
          EQS = { NOT = { has_war = yes }}
        }
        modifier = {
          factor = 0
          has_war = yes
        }
      }
  	}
    option = {
  		name = scs.8.b
      ai_chance = {
        factor = 60
      }
  	}
  }
