#(1615-1710) Dutch sailors reach Indonesia
event = {
	id = 338193
	trigger = {
		OR = {
			religion = hindu
			religion = eastern_sunni
			religion = pagan
			religion = buddhist
		}
		countrysize = 2
		NOT = { countrysize = 15 } #big country will not be intimidated
		continent = Asia
		event = 186052 #HOL: Dutch sailors reach Indonesia
		exists = HOL
	}
	random = no
	province = 702 #Jakarta
	name = "EVENTNAME186052" #Dutch sailors reach Indonesia
	desc = "EVENTHIST186052"
	#-#Verenigde Oost-Indische Compagnie (Dutch East India Company or VOC) was founded, with the goal of sharing the costs of the exploration of the East Indies and ultimately re-establishing the spice trade, a vital source of income to the new Republic of the Seven United Provinces. The first expeditions were successful in bypassing Portuguese dominion of the Cape of Good Hope and the Indian Ocean in general. The Dutch also managed to break the Portuguese monopoly of the spice trade. As the Dutch fleets grew in size, so did their interference with Portuguese trade, and the first skirmishes took place. By 1619, the Dutch conquered Jayakarta which they rename Batavia and make it their EastIndies capital. For the next twenty years the two cities of Goa and Batavia would fight each other relentlessly, since they stood as the capital of the Portuguese India State (or the Indian Vice-Royalty) and the Dutch EastIndia Company's base of operations.

	date = { day = 1 month = january year = 1615 }
	offset = 100
	deathdate = { day = 1 month = january year = 1710 }

	action_a = {
		name = "ACTIONNAME338193A" #Another bunch of foreigners lust after our land
		command = { type = vp value = -1 }
	}
}
#(1615-1720) Dutch offer
event = {
	id = 338194
	trigger = {
		event = 186053 #HOL: Capture of Jakarta
		exists = HOL
	}
	random = no
	province = 702 #Jakarta
	name = "EVENTNAME338194" #Dutch offer
	desc = "EVENTHIST338194"
	#-#The Dutch commander offers us weapons in exchange for land around the city of Jakarta to build their trade and military establishment.

	date = { day = 1 month = january year = 1615 }
	offset = 100
	deathdate = { day = 1 month = january year = 1720 }

	action_a = {
		name = "ACTIONNAME338194A" #Accept the offer
		command = { type = cityname which = 702 value = "Batavia" }
		command = { type = cedeprovince which = HOL value = 702 } #Jakarta
		command = { type = relation which = HOL value = 50 }
		command = { type = treasury value = 50 }
		command = { type = land value = 1000 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trigger which = 186054 } #HOL: The infidel yield to our demands
	}
	action_b = {
		name = "ACTIONNAME338194B" #Refuse the offer and face the consequences
		command = { type = treasury value = 50 }
		command = { type = relation which = HOL value = -200 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = casusbelli which = HOL value = 10 }
		command = { type = war which = HOL }
		command = { type = trigger which = 186055 } #HOL: The infidel refuses our offer
	}
}


#(1630-1700) The Sale of Tondaimandalam
event = {
	id = 338013 #triggered by ENG_164600 A
	trigger = {
		continent = Asia
	}
	random = no
	province = 571 #Madras
	name = "EVENTNAME338013" #The Sale of Tondaimandalam
	desc = "EVENTHIST338013"
	#-#In 1640, the British offered to buy a stretch of land in the Tondaimandalam region, so that they could form a trading post on the Bay of Bengal. To a nation strapped for cash, this opportunity would prove too good to pass up.

	action_a = {
		name = "ACTIONNAME338013A" #Sell it to them
		command = { type = cityname which = 571 value = "Madras" }
		command = { type = treasury value = 200 }
		command = { type = trigger which = 164601 } #ENG: The Founding of Madras
		command = { type = relation which = ENG value = 100 }
		command = { type = cedeprovince which = ENG value = 571 } #Madras
		command = { type = removecore_national which = 571 } #Madras
	}
	action_b = {
		name = "ACTIONNAME338013B" #We do not want them as neighbors!
		command = { type = relation which = ENG value = -100 }
		command = { type = trigger which = 164602 } #ENG: Our Offer Was Rejected
	}
}

#(1693-1750) British Traders near the Ganges
event = {
	id = 338012
	trigger = {
		exists = ENG
		continent = Asia
		OR = {
			owned = { province = 571 data = ENG } #Madras
			event = 164600 #ENG: An Opportunity in India
		}
		NOT = {
			owned = { province = 557 data = ENG } #Ganges
		}
	}
	random = no
	province = 557 #Ganges
	name = "EVENTNAME338012" #British Traders near the Ganges
	desc = "EVENTHIST338012"
	#-#In August of 1690, Job Charnok, an agent of the East India Company settled in Calcutta. A few years later, the EIC would approach to purchase three outlying villages to being a settlement.

	date = { day = 1 month = january year = 1693 }
	offset = 30
	deathdate = { day = 1 month = january year = 1750 }

	action_a = {
		name = "ACTIONNAME338012A" #Allow them to settle in the region for a tribute
		command = { type = cityname which = 557 value = "Calcutta" }
		command = { type = relation which = ENG value = 25 }
		command = { type = cedeprovince which = ENG value = 557 } #Ganges
		command = { type = trigger which = 164603 } #ENG: Trade in Calcutta
	}
	action_b = {
		name = "ACTIONNAME338012B" #We do not want them as neighbors!
		command = { type = relation which = ENG value = -200 }
		command = { type = trigger which = 164604 } #ENG: Trade in Calcutta
	}
}

#(1700-1820) Telugu in Hyderabad
event = {
	id = 338294
	trigger = {
		OR = {
			owned = { province = 563 data = -1 } #Bastar
			owned = { province = 564 data = -1 } #Yanam
			owned = { province = 565 data = -1 } #Palakimedi
			AND = {
				owned = { province = 571 data = -1 } #Madras
				event = 338295 #ProvinceSpec*571: Telugu in Madras
			}
		}
	}
	random = no
	province = 566 #Hyderabad
	name = "EVENTNAME338294" #Telugu in Hyderabad
	desc = "EVENTHIST338294"
	#-#During the course of the 18th century, the rise of various states and small population migrations led to the Telugu language becoming predominant in the eastern portion of Central India.

	date = { day = 0 month = january year = 1700 }
	offset = 3000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338294A" #Telugu becomes influential in this province
		command = { type = populationpercent which = 566 value = 5 }
		command = { type = provinceculture which = 566 value = telugu } #Hyderabad
	}
}

#(1700-1820) Telugu in Madras
event = {
	id = 338295
	trigger = {
		OR = {
			owned = { province = 563 data = -1 } #Bastar
			owned = { province = 564 data = -1 } #Yanam
			owned = { province = 565 data = -1 } #Palakimedi
			AND = {
				owned = { province = 566 data = -1 } #Madras
				event = 338294 #ProvinceSpec*566: Telugu in Hyderabad
			}
		}
	}
	random = no
	province = 571 #Madras
	name = "EVENTNAME338295" #Telugu in Madras
	desc = "EVENTHIST338294"
	#-#During the course of the 18th century, the rise of various states and small population migrations led to the Telugu language becoming predominant in the eastern portion of Central India.

	date = { day = 0 month = january year = 1700 }
	offset = 3000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338294A" #Telugu becomes influential in this province
		command = { type = populationpercent which = 571 value = 5 }
		command = { type = provinceculture which = 571 value = telugu } #Madras
	}
}

#(1510-1660) Submission of Goa for Muslim and Buddhist countries
event = {
	id = 338005
	trigger = {
		OR = {
			religion = eastern_sunni
			religion = eastern_shia
			religion = buddhist
		}
		OR = {
			discovered = 434 #Oporto
			discovered = 441 #Tago
			discovered = 442 #Algarve
		}
		event = 18038 #POR: The gates of India
		exists = POR
	}
	random = no
	province = 549
	name = "EVENTNAME338005" #Portuguese demand Goa
	desc = "EVENTHIST338005"
	#-#The commander of the Portuguese navy demands Goa as the military base for their fleet. Should we give in to their demands, or refuse them and face consequences?\n \n If we refuse and Portuguese take control of Goa by force, they may keep it for long...

	date = { day = 1 month = february year = 1510 }
	offset = 250
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME338005A" #Defy the Portuguese
		command = { type = war which = POR }
		command = { type = stability value = 1 }
		command = { type = relation which = POR value = -100 }
		command = { type = trigger which = 18041 } #POR: The infidel refuses our offer
	}
	action_b = {
		name = "ACTIONNAME338005B" #Agree to vassalship
		command = { type = cityname which = 549 value = "Goa" }
		command = { type = cedeprovince which = POR value = 549 } #Goa
		command = { type = stability value = -2 }
		command = { type = treasury value = -100 }
		command = { type = trigger which = 18040 } #POR: The infidel yield to our demands
	}
}
#(1510-1660) Submission of Goa for Hindu countries
event = {
	id = 338006
	trigger = {
		event = 18062
		control = { province = 549 data = -1 }
		religion = hindu
		exists = POR
	}
	random = no
	province = 549
	name = "EVENTNAME338006" #Portuguese offer
	desc = "EVENTHIST338006"
	#-#The Portuguese commander offers us weapons in exchange for land around the city of Goa to build their trade and military establishment. It would be a smart idea to accept it, in order to deliver a crushing blow to hated Muslims.\n \n If we refuse and Portuguese take control of Goa by force, they may keep it for long...

	date = { day = 1 month = february year = 1510 }
	offset = 250
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME338006A" #Accept the offer
		command = { type = cityname which = 549 value = "Goa" }
		command = { type = cedeprovince which = POR value = 549 } #Goa
		command = { type = relation which = POR value = 50 }
		command = { type = treasury value = 50 }
		command = { type = land value = 1000 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trigger which = 18040 } #POR: The infidel yield to our demands
	}
	action_b = {
		name = "ACTIONNAME338006B" #Refuse the offer and face the consequences
		command = { type = treasury value = 50 }
		command = { type = relation which = POR value = -200 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = war which = POR }
		command = { type = trigger which = 18041 } #POR: The infidel refuses our offer
	}
}
#(1510-1660) Submission of Goa
event = {
	id = 338007
	trigger = {
		event = 18041
		control = { province = 549 data = POR }
		NOT = { core_national = { province = 441 data = -1 } } #Tago, Portugal should of course be exempt
	}
	random = no
	province = 549
	name = "EVENTNAME338007" #Goa is lost
	desc = "EVENTHIST338007"
	#-#The treacherous Portuguese has captured the port of Goa, there is nothing we can do about it.

	date = { day = 1 month = february year = 1510 }
	offset = 250
	deathdate = { day = 1 month = january year = 1660 }

	action_a = {
		name = "ACTIONNAME338007A" #We are helpless
		command = { type = cityname which = 549 value = "Goa" }
		command = { type = cedeprovince which = POR value = 549 } #Goa
		command = { type = trigger which = 18043 } #POR: Goa is ours
	}
}

#(1550-1820) Sikhism in Panjab
event = {
	id = 338055
	trigger = {
		NOT = {
			provincereligion = { province = 1521 data = sikh } #Panjab
		}
	}
	random = no
	province = 1521 #Panjab
	name = "EVENTNAME338055" # Sikhism in Panjab
	desc = "EVENTHIST338055"

	date = { day = 0 month = january year = 1550 }
	offset = 6000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #A new religion!
		command = { type = provincereligion which = 1521 value = sikh }
	}
}

#(1550-1820) Sikhism in Chandigahr
event = {
	id = 338056
	trigger = {
		NOT = {
			provincereligion = { province = 1520 data = sikh } #Chandigahr
		}
	}
	random = no
	province = 1520 #Chandigahr
	name = "EVENTNAME338056" # Sikhism in Chandigahr
	desc = "EVENTHIST338055"

	date = { day = 0 month = january year = 1550 }
	offset = 6000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME338055A" #A new religion!
		command = { type = cityname which = 1520 value = "Amritsar" }
		command = { type = provincereligion which = 1520 value = sikh }
	}
}

#(1430-1820) Dai Viet Rebellion Collapses in Hanoi
event = {
	id = 338057
	trigger = {
		tag = CHI # really only needs to be for China as the RR will disappear if the province changes hands
		control = { province = 662 data = -1 }
		NOT = { exists = DAI }
	}
	random = no
	province = 662 #Hanoi
	name = "EVENTNAME338057" # Dai Viet Rebellion Collapses in Hanoi
	desc = "EVENTHIST338057"
	#-#The Vietnamese uprising against Imperial rule has failed in the province of Hanoi, with the peasants having finally been routed by the Emperor's occupation army and forced to flee to the mountains and valleys further south. Let us hope this unhappy saga is now finally at an end.

	date = { day = 1 month = january year = 1430 }
	offset = 300
	deathdate = { day = 1 month = january year = 1820 }

	action_a = {
		name = "ACTIONNAME338057A" #Victory!
		command = { type = province_revoltrisk which = 662 value = -30 }
	}
}

#(1430-1820) Dai Viet Rebellion Collapses in Tanh Noah
event = {
	id = 338058
	trigger = {
		tag = CHI # really only needs to be for China as the RR will disappear if the province changes hands
		control = { province = 663 data = -1 }
		NOT = { exists = DAI }
	}
	random = no
	province = 663 #Tanh Noah
	name = "EVENTNAME338058" # Dai Viet Rebellion Collapses in Tanh Noah
	desc = "EVENTHIST338058"
	#-#The Vietnamese uprising against Imperial rule has failed in the province of Tanh Noah, with the peasants having finally been routed by the Emperor's occupation army and forced to flee to the mountains and valleys further south. Let us hope this unhappy saga is now finally at an end.

	date = { day = 1 month = january year = 1430 }
	offset = 300
	deathdate = { day = 1 month = january year = 1820 }

	action_a = {
		name = "ACTIONNAME338058A" #Victory!
		command = { type = province_revoltrisk which = 663 value = -30 }
	}
}

#(1430-1820) Dai Viet Rebellion Collapses in Lao Cai
event = {
	id = 338059
	trigger = {
		tag = CHI # really only needs to be for China as the RR will disappear if the province changes hands
		control = { province = 1554 data = -1 }
		NOT = { exists = DAI }
	}
	random = no
	province = 1554 #Lao Cai
	name = "EVENTNAME338059" # Dai Viet Rebellion Collapses in Lao Cai
	desc = "EVENTHIST338059"
	#-#The Vietnamese uprising against Imperial rule has failed in the province of Lao Cai, with the peasants having finally been routed by the Emperor's occupation army and forced to flee to the mountains and valleys further south. Let us hope this unhappy saga is now finally at an end.

	date = { day = 1 month = january year = 1430 }
	offset = 300
	deathdate = { day = 1 month = january year = 1820 }

	action_a = {
		name = "ACTIONNAME338059A" #Victory!
		command = { type = province_revoltrisk which = 1554 value = -30 }
	}
}
