# Global Revolutions

#META#1- The Liberal Revolution (Trigger: 1845+,lack of specified Political Reforms, ?Monarchy?)
#					A) The Revolts are spreading [POPs 4-6=Con+5,Mil+7/POP 9= Mil+5] 

# The Liberal Revolution
event = { 
	id = 25000
	random = no
	invention = yes
	
	trigger = {
		civilized = yes
		OR = {
			NOT = { constitution = { type = democracy } }
			NOT = { reform = { type = trade_unions level = all } }
			NOT = { reform = { type = voting_rights level = suffrage } }		
			NOT = { reform = { type = political_parties level = all } }
			NOT = { reform = { type = press_rights level = free_press } }
		}
		literacy = 0.003
		NOT = { local_flag = { name = LIBERAL_REVOLUTION value = 1 } }
	}

	date = { day = 21 month = february year = 1845 }
	offset = 25
	deathdate = { day = 30 month = december year = 1910 }
	
	name = "EVT_25000_NAME"
	desc = "EVT_25000_DESC"
	
	
	action_a = {
		name = "ACTIONNAME25000A" # The Revolts are spreading
		command = { type = pop_consciousness which = liberal value = 5  }
		command = { type = pop_militancy which = liberal value = 3  }
		command = { type = local_setflag which = LIBERAL_REVOLUTION  value = 2 }
		command = { type = plurality value = 20 }

	}
}

#META#2- The End of the Liberal Revolution (Trigger: 1850+,META#1, No revolting units)
#						A) Order is upheld [POPs 4-6=Con-5,Mil-7/POP 9= Mil-5]

# The End of the Liberal Revolution
event = { 
	id = 25001
	random = no
	invention = yes
	
	trigger = {
		NOT = { local_flag = { name = LIBERAL_REVOLUTION_OVER value = 1 } }
		local_flag = { name = LIBERAL_REVOLUTION value = 1 }
	}
	
	name = "EVT_25001_NAME"
	desc = "EVT_25001_DESC"
	
	date = { day = 21 month = february year = 1850 }
	offset = 25
	deathdate = { day = 30 month = december year = 1913 }
	
	action_a = {
		name = "ACTIONNAME25001A" # Order is upheld
		command = { type = pop_consciousness which = anarcho_liberal value = -3  }
		command = { type = pop_militancy which = anarcho_liberal  value = -4  }
		command = { type = plurality value = -20 }
		command = { type = local_setflag which = LIBERAL_REVOLUTION_OVER  value = 2 }
	}
}


#META#3- The Socialist Revolution (Trigger: 1905+,lack of specified Social Reforms, ?Monarchy?)
#						A) The Revolts are spreading [POPs 7-9 =Con+5,Mil+7/POP 6= Mil+5] 

# The Socialist Revolution
event = { 
	id = 25002
	random = no
	invention = yes
	
	trigger = {
		NOT = { government = { type = socialist } }
		NOT = { government = { type = communist } }
		NOT = { constitution = { type = proletarian_dictatorship } }
		NOT = { reform = { type = trade_unions level = all } }
		NOT = { reform = { type = voting_rights level = suffrage } }
		
		NOT = { 
			reform = { type = political_parties level = right_to_ban }
			reform = { type = press_rights level = free_press }
		}
		NOT = { local_flag = { name = SOCIALIST_REVOLUTION value = 1 } }

	}
	
	date = { day = 21 month = february year = 1890 }
	offset = 25
	deathdate = { day = 30 month = december year = 1920 }

	name = "EVT_25002_NAME"
	desc = "EVT_25002_DESC"
	
	
	action_a = {
		name = "ACTIONNAME25000A" # The Revolts are spreading
		command = { type = pop_consciousness which = soldiers value = 5  }
		command = { type = pop_consciousness which = farmers value = 5 }
		command = { type = pop_consciousness which = labourers value = 5  }
		command = { type = pop_militancy which = soldiers value = 3  }
		command = { type = pop_militancy which = farmers value = 3 }
		command = { type = pop_militancy which = labourers value = 3  }
		command = { type = pop_militancy which = craftsmen value = 2  }
		command = { type = local_setflag which = SOCIALIST_REVOLUTION  value = 2 }
		command = { type = plurality value = 35 }
	}
}
						
#META#4- The End of the Liberal Revolution (Trigger: 1920+,META#3, No revolting units)
#						A) Order is upheld [POPs 7-9=Con-5,Mil-7/POP 6= Mil-5]
						
# The End of the Socialist Revolution
event = { 
	id = 25003
	random = no
	invention = yes
	
	trigger = {
		NOT = { local_flag = { name = SOCIALIST_REVOLUTION_OVER value = 1 } }
		local_flag = { name = SOCIALIST_REVOLUTION value = 1 }
	}
	
	name = "EVT_25003_NAME"
	desc = "EVT_25003_DESC"
	
	date = { day = 1 month = january year = 1919 }
	offset = 30
	deathdate = { day = 30 month = december year = 1920 }
	
	action_a = {
		name = "ACTIONNAME25001A" # Order is upheld
		command = { type = pop_consciousness which = soldiers value = -3  }
		command = { type = pop_consciousness which = farmers value = -3 }
		command = { type = pop_consciousness which = labourers value = -3  }
		command = { type = pop_militancy which = soldiers value = -4  }
		command = { type = pop_militancy which = farmers value = -4 }
		command = { type = pop_militancy which = labourers value = -4  }
		command = { type = pop_militancy which = craftsmen value = -3  }
		command = { type = local_setflag which = SOCIALIST_REVOLUTION_OVER  value = 2 }
	}
}


#The Great Drepression

event = { 
	id = 25004
	random = no
	invention = yes
	
	trigger = {
		NOT = { local_flag = { name = Great_Depression value = 1 } }
	}
	
	name = "EVT_25004_NAME"
	desc = "EVT_25004_DESC"
	
	date = { day = 1 month = january year = 1929 }
	offset = 15
	deathdate = { day = 30 month = december year = 1932 }
	
	action_a = {
		name = "ACTIONNAME25004A" # We're Screwed
		command = { type = pop_change_income value = -0.5 }
		command = { type = local_setflag which = Great_Depression  value = 1 }
	}
}

#The End of the Great Depression

event = { 
	id = 25005
	random = no
	invention = yes
	
	trigger = {
		NOT = { local_flag = { name = Great_Depression_OVER value = 1 } }
		local_flag = { name = Great_Depression value = 1 }
	}
	
	name = "EVT_25005_NAME"
	desc = "EVT_25005_DESC"
	
	date = { day = 1 month = january year = 1933 }
	offset = 15
	deathdate = { day = 30 month = december year = 1935 }
	
	action_a = {
		name = "ACTIONNAME25005A" # Thank God it's over
		command = { type = pop_change_income value = 0.5 }
		command = { type = local_setflag which = Great_Depression_OVER  value = 1 }
	}
}
