#####################################################
# Canal Events
#
# scripted by Johan Andersson
#
# id range = 45300-
# 
#####################################################
event = { 
	id = 45300
	random = yes
	show = yes # so that selection is shown in history, even its random.

	picture = panama

	trigger = {
		is_gp = yes
		NOT = { flag = { type = PANAMA_CHANNEL value = 1 } }
		year = 1885
	}

	name = "EVT_45300_NAME" # The Panama Canal
	desc = "EVT_45300_DESC" # 


	action_a = {
        	name = "ACTIONNAME45300A"
        	command = { type = prestige value = 200 }
        	command = { type = treasury value = -100000 }
        	command = { type = setflag which = PANAMA_CHANNEL value = 5 }
        	command = { type = canal where = 1723 }
	}

	action_b = {
        	name = "ACTIONNAME45300B"
        	command = { type = prestige value = -100 }
	}
}





event = { 
	id = 45301
	random = yes
	show = yes # so that selection is shown in history, even its random.
	trigger = {
		is_gp = yes
		continent = europe 
		NOT = { flag = { type = SUEZ_CHANNEL value = 1 } }
		year = 1860
	}

	name = "EVT_45301_NAME" # The Suez Canal
	desc = "EVT_45301_DESC" # 


	action_a = {
        	name = "ACTIONNAME45300A"
        	command = { type = prestige value = 100 }
        	command = { type = treasury value = -50000 }
        	command = { type = setflag which = SUEZ_CHANNEL value = 5 }
        	command = { type = canal where = 1002 }
	}

	action_b = {
        	name = "ACTIONNAME45300B"
        	command = { type = prestige value = -50 }
	}
}


