name = ",rN!k0000&bN"  # First Barbary War
war_goal = {
  type = superiority_insult_mutual
  casus_belli = cb_insult
}
1801.5.1 = {
  add_attacker = MOR
  add_attacker = TRP
  add_attacker = ALG
  add_defender = USA
}
1803.10.1 = {
  battle = {
    name = "0000"  # Tripoli
    location = 1313
    attacker = {
      commander = "000000"  # Hassan Bey
      heavy_ship = 8
      losses = 2
      country = TRP
    }
    defender = {
      commander = "0000000000"  # Edward Preble
      heavy_ship = 7
      losses = 2
      country = USA
    }
    result = no
  }
}
1805.4.27 = {
  battle = {
    name = "000"  # Derne
    location = 1313
    attacker = {
      commander = "000000"  # Hassan Bey
      infantry = 700
      losses = 25
      country = TRP
    }
    defender = {
      commander = "0000000000"  # William Eaton
      infantry = 4000
      losses = 3
      country = USA
    }
    result = no
  }
}
1805.6.4 = {
  rem_attacker = MOR
  rem_attacker = TRP
  rem_attacker = ALG
  rem_defender = USA
}