##################################
#####Vijayanagar Major Events#####
# By Henrik 'Doomdark' Fåhraeus  #
##################################

#Mysore Revolts
event = {
	id = 4446
	trigger = {
		owned = {
			province = 570 # Mysore
			data = -1
		}
	}
	random = no
	country = VIJ
	name = "EVENTNAME4446"
	desc = "EVENTHIST4446"
	style = 2
	
	date = { day = 1 month = january year = 1559 }
	offset = 0
	deathdate = { day = 1 month = january year = 1565 }
	
	action_a = { # Try to surpress revolt
		name = "ACTIONNAME4446A"
		command = { type = revolt which = 570 }
		command = { type = revolt which = 570 }
		command = { type = revolt which = 570 }
		command = { type = stability value = -5 }
	}
	action_b = { # Make Concessions
		name = "ACTIONNAME4446B"
		command = { type = stability value = -1 }
		command = { type = vp value = -100 }
		command = { type = treasury value = -200 }
	}
}

# The Fall of the City of Victory
event = {
        id = 3823
        random = no
        country = VIJ
        name = "EVENTNAME3823"
        desc = "EVENTHIST3823"
        style = 2

        trigger = {
                  NOT = { stability = 1 }
			atwar = yes
		NOT = { control = { province = 567 data = -1 } }
                  }
        
        date = { day = 1 month = january year = 1560 }

        offset = 30
	  deathdate = { day = 1 month = january year = 1595 }

        action_a = { # Cut our losses and regroup
                name = "ACTIONNAME3823A"
                command = { type = stability value = 3 }
                command = { type = revoltrisk which = 60 value = 10 }
                command = { type = domestic which = centralization value = -3 }
                command = { type = capital which = 575 } # Madurai
                command = { type = revolt which = 566 } # Hyderabad
                command = { type = revolt which = 566 } # Hyderabad
                command = { type = revolt which = 566 } # Hyderabad
                command = { type = revolt which = 570 } # Mysore
                command = { type = revolt which = 570 } # Mysore
                command = { type = revolt which = 570 } # Mysore
                command = { type = secedeprovince which = MOG value = 545 } #Bundelkhand
        command = { type = secedeprovince which = MOG value = 546 } #Malwa
        command = { type = secedeprovince which = MOG value = 547 } #Gujarat
        command = { type = secedeprovince which = MOG value = 552 } #Gondwana
        command = { type = secedeprovince which = MOG value = 553 } #Raipur
        command = { type = secedeprovince which = BGL value = 560 } #Odisa
        command = { type = secedeprovince which = BGL value = 561 } #Berhampur
        command = { type = secedeprovince which = BGL value = 562 } #Sambalpur
        command = { type = secedeprovince which = HYD value = 548 } #Bombay
        command = { type = secedeprovince which = HYD value = 549 } #Goa
        command = { type = secedeprovince which = HYD value = 550 } #Maharashtra
        command = { type = secedeprovince which = HYD value = 551 } #Khandesh
        command = { type = secedeprovince which = HYD value = 563 } #Bastar
        command = { type = secedeprovince which = HYD value = 564 } #Palakimedi
        command = { type = casusbelli which = HYD value = 60 } #5 years CB on HYD
                command = { type = secedeprovince which = MYS value = 569 } #Kerala
                command = { type = secedeprovince which = MYS value = 570 } #Mysore
                command = { type = secedeprovince which = MYS value = 572 } #Pondicherry
                command = { type = secedeprovince which = MYS value = 573 } #Cochin
                command = { type = secedeprovince which = MYS value = 574 } #Trivandrum
                command = { type = secedeprovince which = MYS value = 567 } #Bangladore
                command = { type = secedeprovince which = MYS value = 576 } #Colombo
                command = { type = secedeprovince which = MYS value = 577 } #Jaffna
                command = { type = casusbelli which = MYS value = 60 } #5 years CB on MYS
        }
        action_b = { # Protect the whole nation!
                name = "ACTIONNAME3823B"
                command = { type = stability value = -8 }
                command = { type = treasury value = -400 }
                command = { type = infra value = -1000 }
                command = { type = trade value = -1000 }
                command = { type = relation which = HYD value = -400 }
                command = { type = relation which = MYS value = -400 }
                command = { type = revoltrisk which = 60 value = 10 }
                command = { type = revolt which = 566 } # Hyderabad
                command = { type = revolt which = 566 } # Hyderabad
                command = { type = revolt which = 566 } # Hyderabad
                command = { type = revolt which = 570 } # Mysore
                command = { type = revolt which = 570 } # Mysore
                command = { type = revolt which = 570 } # Mysore
                command = { type = revolt which = 546 } # Malwa
                command = { type = revolt which = 546 }
                command = { type = revolt which = 547 } # Gujarat
                command = { type = revolt which = 547 }
        }
}

#Army Reinforcement#
event = {

	id = 30340
	random = no
	country = VIJ
	trigger = { atwar = yes }
	name = "EVENTNAME30340"
	desc = "EVENTHIST30340"
	style = 1

	date = { day = 1 month = january year = 1429 }
	offset = 900
	deathdate = { day = 1 month = january year = 1444 }

	action_a ={
		name = "ACTIONNAME30340A"					
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = stability value = -2 }
		command = { type = cav which = -2 value = 6000 }
		command = { type = revoltrisk which = 48 value = 3 }
		}
	action_b = {
		name = "ACTIONNAME30340B"
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = stability value = 1 }
		}
}

#Krishna Deva Raya policies#
event = {

	id = 30341
	random = no
	country = VIJ
	name = "EVENTNAME30341"
	desc = "EVENTHIST30341"
	style = 2

	date = { day = 1 month = january year = 1510 }
	offset = 900
	deathdate = { day = 1 month = january year = 1528 }

	action_a ={
		name = "ACTIONNAME30341A"					
		command = { type = provincetax which = -1 value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = stability value = 1 }
		command = { type = infra value = 500 }
		command = { type = trade value = 500 }
		command = { type = treasury value = -100 }
		}
}

#Succession crisis of 1535#
event = {

	id = 30342
	random = no
	country = VIJ
	name = "EVENTNAME30342"
	desc = "EVENTHIST30342"
	style = 2

	date = { day = 1 month = january year = 1535 }
	offset = 90
      deathdate = { day = 1 month = january year = 1536 }

	action_a ={
		name = "ACTIONNAME30342A"					
		command = { type = stability value = -2 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revoltrisk which = 36 value = 3 }
		}
	action_b = {
		name = "ACTIONNAME30342B"
		command = { type = revoltrisk which = 36 value = 6 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = stability value = -4 }
		command = { type = sleepmonarch which = 05433 } 
		command = { type = sleepmonarch which = 05434 } 
		command = { type = sleepmonarch which = 05452 } 
		command = { type = sleepmonarch which = 05435 } 
		command = { type = wakemonarch which = 05453 } 
		command = { type = wakeleader which = 16233 } 
		command = { type = cav which = -1 value = 3000 } 
		}
}

