#########################################################################
# 1881 specific events, scripted by Marcus Edström
#########################################################################



#########################################################################
# Perdicaris Alive or Raisuli Dead
#########################################################################
event = {
 id = 28000
 random = no
 country = USA

 trigger = { exists = MOR}

 name = "EVT_28000_NAME"
 desc = "EVT_28000_DESC"
 style = 0

 date = { day = 2 month = february year = 1904 }

 action_a = {
  name = "ACTIONNAME28000A" # We should send a naval squadron to protect our interests.
  command = { type=sleepevent which = 28002}
 }
 action_b = {
  name = "ACTIONNAME28000B" # Let our representatives in Morocco work it out.
  command = { type=sleepevent which = 28001 }
 }
}






#########################################################################
# Perdicaris Returned
#########################################################################
event = {
 id = 28001
 random = no
 country = USA

 trigger = { event = 28000 }

 name = "EVT_28001_NAME"
 desc = "EVT_28001_DESC"
 style = 0

 date = { day = 4 month = february year = 1904 }
 offset = 5
 deathdate = { day = 4 month = february year = 1924 }


 action_a = {
  name = "OK" # OK
  command = { type = prestige value = 15 }
  command = { type = relation which = FRA value = -25 }
  command = { type = relation which = ENG value = -25 }
  command = { type = relation which = GER value = -25 }

 }
}




#########################################################################
# Safe Return of Perdicaris
#########################################################################
event = {
 id = 28002
 random = no
 country = USA

 trigger = { event = 2800 }

 name = "EVT_28002_NAME"
 desc = "EVT_28001_DESC"
 style = 0

 date = { day = 4 month = february year = 1904 }
 offset = 5
 deathdate = { day = 4 month = february year = 1924 }


 action_a = {
  name = "OK" # OK
  command = { type = prestige value = -10 }

 }
}



#########################################################################
# The Greeley Expedition
#########################################################################
event = {
 id = 28003
 random = no
 country = USA

 name = "EVT_28003_NAME"
 desc = "EVT_28003_DESC"
 style = 0

 date = { day = 18 month = january year = 1884 }


 action_a = {
  name = "ACTIONNAME28003A" # Hoorah for Greeley!
  command = { type = prestige value = 10 }

 }
}




#########################################################################
# Churchill Escapes
#########################################################################
event = {
 id = 28004
 random = no
 country = ENG

 trigger = { war = { country= ENG country = TRN} }

 name = "EVT_28004_NAME"
 desc = "EVT_28004_DESC"
 style = 0

 date = { day = 21 month = december year = 1899 }

 action_a = {
  name = "ACTIONNAME36914A" # Hoorah!
  command = { type = prestige value = 25 }

 }
}




#########################################################################
# Mahdist Uprising
#########################################################################
event = {
	id = 28005
	random = no

	province = 1869
	trigger = {
		random = 4
		OR = {
			AND = {
				NOT = { religion = { type = sunni } }
				NOT = { religion = { type = shiite } }
			}
			event = 28013
		}
	}

	name = "EVT_28005_NAME"
	desc = "EVT_28005_DESC"
	style = 0

	date = { day = 1 month = march year = 1881 }
	offset = 30
	deathdate = { day = 30 month = september year = 1887 }

	action_a = {
		name = "ACTIONNAME12512A" # Crush the rebellion!
		command = { type = revolt which = arabic value = dragoon  where = 1869 }
		command = { type = revolt which = arabic value = irregular where = 1869 }
		command = { type = revolt which = arabic value = irregular where = 1869 }
		command = { type = revolt which = arabic value = irregular where = 1835 }
		command = { type = revolt which = arabic value = irregular where = 1835 }
		command = { type = revolt which = arabic value = irregular where = 1868 }
		command = { type = revolt which = arabic value = irregular where = 1868 }
		command = { type = revolt which = arabic value = irregular where = 1873 }
		command = { type = pop_militancy which = sunni value = 5  }
	}
}


#########################################################################
# European-Egyptian Tensions Rise
#########################################################################
event = {
 id = 28011
 random = no
 country = EGY


 name = "EVT_28011_NAME"
 desc = "EVT_28011_DESC"
 style = 0

 date = { day = 10 month = march year = 1882 }
 offset = 31
 deathdate = { day = 30 month = may year = 1882 }

 action_a = {
  name = "ACTIONNAME28011A" # Arghh!
  command = { type = prestige value = -25 }
  command = { type = pop_militancy which = sunni value = 2 }
  command = { type = relation which = ENG value = -100 }
  command = { type = relation which = FRA value = -100 }
 }
}




#########################################################################
# Ultimatum to Arabi Pasha
#########################################################################
event = {
	id = 28012
	random = no
	country = ENG

	trigger = {
		exists = EGY
		NOT = {
			peace_treaty = { country = ENG country = EGY }
		}
	}

	name = "EVT_28012_NAME"
	desc = "EVT_28012_DESC"
	style = 0

	date = { day = 11 month = june year = 1882 }
	offset = 31
	deathdate = { day = 30 month = december year = 1860 }

	action_a = {
		name = "ACTIONNAME28012A" # Issue an Ultimatum
		command = { type = trigger which = 28013 }
	}
	action_b = {
		name = "ACTIONNAME28012B" # Let the Matter fall
		command = { type = sleepevent which = 28013 }
	}
}



#########################################################################
# On the Brink of War
#########################################################################
event = {
 id = 28013
 random = no
 country = EGY


 name = "EVT_28013_NAME"
 desc = "EVT_28013_DESC"


 action_a = {
  name = "ACTIONNAME28013A" # Continue to fortify Alexandria
  command = { type = trigger which = 28014 }
 }
 action_b = {
  name = "ACTIONNAME28013B" # Surrender Alexandria to the British
  command = { type = trigger which = 28015 }
  command = { type = secedestate which = ENG value = 1363  }
  command = { type = pop_militancy which = 33 value = 10  }
  command = { type = pop_consciousness which = 33 value = 10 }
 }
}


#########################################################################
# War with the Egyptians!
#########################################################################
event = {
	id = 28014
	random = no
	country = ENG

	name = "EVT_28014_NAME"
	desc = "EVT_28014_DESC"
	style = 0

	action_a = {
		name = "OK" # OK
		command = { type = war which = EGY }

	}
}


#########################################################################
# Alexandria is ours.
#########################################################################
event = {
 id = 28015
 random = no
 country = ENG


 name = "EVT_28015_NAME"
 desc = "EVT_28015_DESC"
 style = 0


 action_a = {
  name = "OK" # OK
   command = { type = prestige value = 20 }
 }

}





 