#(1615-1710) Dutch sailors reach Indonesia
event = {
	id = 338193
	trigger = {
		OR = {
			religion = hindu
			religion = eastern_sunni
			religion = eastern_shia
			religion = pagan
			religion = buddhist
			religion = sikh
			religion = jain
		}
		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"
	#-#The purpose of founding the Vereenigde Oost-Indische Compagnie (VOC), the Dutch East India Company, was to gather funds for the exploration of the East Indies and the establishment of colonies and trade routes for spice and other highly valuable commodities. In this purpose, the company was quite successful. Soon, Dutch expeditions broke the Portuguese hegemony over the Indian Ocean, and gradually gained large shares of the spice trade between Indonesia and Europe.

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

	action_a = {
		name = "ACTIONNAME186052A" #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-1837) 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 = 1837 }

	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-1837) 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 = 1837 }

	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 a military base for their fleet. Should we give in to their demands, or refuse them and face the consequences? If we refuse and Portuguese take control of Goa by force, we will gain nothing...

	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, Sikh and Jain countries
event = {
	id = 338006
	trigger = {
		OR = {
			religion = hindu
			religion = sikh
			religion = jain
		}
		event = 18062
		control = { province = 549 data = -1 }
		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 the Muslims.  If we refuse and Portuguese take control of Goa by force, we will gain nothing...

	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 have captured the port of Goa and 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-1837) 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"
	#-#The Sikh religion was founded in the 15th century by Nanak Dev Ji. Son of an accountant, Nanak was interested in religion and the mysteries of life. At the age of thirty, Nanak is supposed to have proclaimed, 'There is no Hindu, there is no Muslim' and thus begun the Sikh faith. He is said to have preached all over India and by the mid-16th century, Sikhism became rooted in Panjab.

	date = { day = 0 month = january year = 1550 }
	offset = 1000
	deathdate = { year = 1837 }

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

#(1550-1837) 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"
	#-#The Sikh religion was founded in the 15th century by Nanak Dev Ji. Son of an accountant, Nanak was interested in religion and the mysteries of life. At the age of thirty, Nanak is supposed to have proclaimed, 'There is no Hindu, there is no Muslim' and thus begun the Sikh faith. He is said to have preached all over India and by the mid-16th century, Sikhism became rooted in Panjab.

	date = { day = 0 month = january year = 1550 }
	offset = 1000
	deathdate = { year = 1837 }

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

#(1430-1837) 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 = 1837 }

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

#(1430-1837) 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 = 1837 }

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

#(1430-1837) 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 = 1837 }

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

#(1399-1837) Restoration of the Holy See
event = {
	id = 338060
	trigger = {
		atwar = no
		control = { province = 399 data = -1 }
		OR = {
			religion = catholic
			religion = counterreform
		}
		NOT = { exists = PAP }
	}
	random = no
	province = 399 #Roma
	name = "EVENTNAME338060" # Restoration of the Holy See
	desc = "EVENTHIST338060"
	#-#With His Holiness the Pope our virtual prisoner in the Vatican, many across the Catholic world call for us to release him and grant independence to the Papal States. For the sake of peace with our neighbours we probably ought to acquiesce to these demands, even if that means giving up the great city of Rome.

	date = { day = 1 month = january year = 1399 }
	offset = 300
	deathdate = { day = 1 month = january year = 1837 }

	action_a = {
		name = "ACTIONNAME338060A" # We shall restore him to St. Peter's throne #
		command = { type = free which = PAP }
	}
	action_b = {
		name = "ACTIONNAME338060B" # No, Rome is ours! #
		command = { type = stability value = -1 }
	}
}

#(1720-1837) Baluchi settlers found Karachi
event = {
	id = 338061
	trigger = {
		OR = {
			owned = { province = 536 data = -1 } #Mekran
			owned = { province = 537 data = -1 } #Baluchistan
			owned = { province = 538 data = -1 } #Kalat
			owned = { province = 1526 data = -1 } #Zahedan
			culture = baluchi
			neighbour = BAL
			neighbour = SIN
		}
	}
	random = no
	province = 539 #Indus
	name = "EVENTNAME338061" #Baluchi settlers found Karachi
	desc = "EVENTHIST338061"
	#-#During the early 18th century waves of Baluchi settlers began moving east into the Indus Valley in order to escape droughts and tribal feuds, and by the middle of the century had founded the port town of Karachi. Further waves of settlers arrived over the following decades, encouraged by the ruling Talpur dynasty, who in turn constructed the Manora Fort in order to defend the region from Arab pirates.

	date = { day = 0 month = january year = 1720 }
	offset = 3000
	deathdate = { year = 1837 }

	action_a = {
		name = "ACTIONNAME338061A" #The Indus valley has changed forever
		command = { type = cityname which = 539 value = "Karachi" }
		command = { type = fortress which = 539 value = 1 }
		command = { type = populationpercent which = 539 value = 5 }
		command = { type = provincereligion which = 539 value = shia }
		command = { type = provinceculture which = 539 value = baluchi } #Indus
	}
}

#(1600-1837) Vietnamese settlers in Da Nang
event = {
	id = 338062
	trigger = {
		OR = {
			owned = { province = 663 data = -1 } #Tanh Noah
			culture = vietnamese
			neighbour = ANN
			neighbour = DAI
		}
		OR = {
			NOT = { exists = CHA }
			CHA = { isvassal = yes }
		}
	}
	random = no
	province = 664 #Da Nang
	name = "EVENTNAME338062" #Vietnamese settlers in Da Nang
	desc = "EVENTHIST338062"
	#-#The encroachment of Vietnamese settlers from the northern realm of Annam into the former territory of the Champa kingdom has changed the nature of Da Nang, which is now considered to be Vietnamese in character and language.

	date = { day = 0 month = january year = 1600 }
	offset = 3000
	deathdate = { year = 1837 }

	action_a = {
		name = "ACTIONNAME338062A" #The Cham have been displaced from Da Nang
		command = { type = cityname which = 664 value = "Hue" }
		command = { type = populationpercent which = 664 value = 5 }
		command = { type = provincereligion which = 664 value = buddhist }
		command = { type = provinceculture which = 664 value = vietnamese } #Da Nang
	}
}

#(1600-1837) Vietnamese settlers in Da Lat
event = {
	id = 338063
	trigger = {
		owned = { province = 664 data = -1 } #Da Nang
		event = 338062 #ProvinceSpec*664: Vietnamese settlers in Da Nang
		OR = {
			culture = vietnamese
			neighbour = ANN
			neighbour = DAI
		}
		OR = {
			NOT = { exists = CHA }
			CHA = { isvassal = yes }
		}
	}
	random = no
	province = 665 #Da Lat
	name = "EVENTNAME338063" #Vietnamese settlers in Da Lat
	desc = "EVENTHIST338063"
	#-#The encroachment of Vietnamese settlers from the northern realm of Annam into the former territory of the Champa kingdom has changed the nature of Da Lat, which is now considered to be Vietnamese in character and language.

	date = { day = 0 month = january year = 1600 }
	offset = 3000
	deathdate = { year = 1837 }

	action_a = {
		name = "ACTIONNAME338063A" #The Cham have been displaced from Da Lat
		command = { type = cityname which = 665 value = "Da Lat" }
		command = { type = populationpercent which = 665 value = 5 }
		command = { type = provincereligion which = 665 value = buddhist }
		command = { type = provinceculture which = 665 value = vietnamese } #Da Lat
	}
}

#(1600-1837) Vietnamese settlers in Mekong Delta
event = {
	id = 338064
	trigger = {
		owned = { province = 665 data = -1 } #Da Lat
		event = 338063 #ProvinceSpec*665: Vietnamese settlers in Da Lat
		OR = {
			culture = vietnamese
			neighbour = ANN
			neighbour = DAI
		}
		OR = {
			NOT = { exists = CAM }
			CAM = { isvassal = yes }
		}
	}
	random = no
	province = 666 #Mekong Delta
	name = "EVENTNAME338064" #Vietnamese settlers in Mekong Delta
	desc = "EVENTHIST338064"
	#-#The encroachment of Vietnamese settlers from the northern realm of Annam into the former territory of the Khmer kingdom has changed the nature of Mekong Delta, which is now considered to be Vietnamese in character and language.

	date = { day = 0 month = january year = 1600 }
	offset = 3000
	deathdate = { year = 1837 }

	action_a = {
		name = "ACTIONNAME338064A" #The Khmer have been displaced from Mekong Delta
		command = { type = cityname which = 666 value = "Gia Dinh" }
		command = { type = populationpercent which = 666 value = 5 }
		command = { type = provincereligion which = 666 value = buddhist }
		command = { type = provinceculture which = 666 value = vietnamese } #Mekong Delta
	}
}

#(1550-1680) The Lease of Macau
event = {
	id = 338065 #triggered by POR_164605 A
	trigger = {
		continent = Asia
	}
	random = no
	province = 659 #Guangdong
	name = "EVENTNAME338065" #The Lease of Macau
	desc = "EVENTHIST338065"
	#-#In 1557, following several decades of exploring and attempts at fort building along the Chinese coast (Ming armies would promptly raze any forts that Europeans managed to build), the Portuguese finally negotiated a settlement with the local Ming authorities whereby the port of Macau would be leased by China to Portugal in exchange for several taels of silver every year. Incredibly, this agreement would hold for 350 years.

	action_a = {
		name = "ACTIONNAME338065A" #Lease it to them
		command = { type = treasury value = 300 }
		command = { type = trigger which = 164606 } #POR: Portuguese Macau
		command = { type = relation which = POR value = 100 }
		command = { type = cedeprovince which = POR value = 659 } #Guangdong
	}
	action_b = {
		name = "ACTIONNAME338065B" #We do not need to pawn our territories
		command = { type = relation which = POR value = -100 }
		command = { type = trigger which = 164607 } #POR: Our Offer Was Rejected
	}
}
