• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

vjwua

Corporal
Dec 6, 2020
39
87
Alternative history beckons me a little more than the real thing. Lately, I've been thinking about the voyages of the Treasure Fleet led by the tall and brave Zheng He. His voyage was a gesture of goodwill, a sign of support for China's dominance on the continent. And his appearance on the pages of history is a credit to Yongle's unique rule, which went against many established guidelines.

One always wishes he had gone further. Menzies, for example, writes about this, although if he had played EU2, he would not have discovered the whole world in the early 15th century even with a hundred ships. I have a more logical explanation.

There is the legendary Mount Penglai, a kind of Taoist paradise. The first emperor of China, like several others after him, wanted to discover it. In vain. In the 1410s, this idea came to Yongle. The reason is simple: the discovery of Penglai seems to grant immortality, as well as unearthly glory. That is why he used Zheng He to find the mountain. In the east, he paid attention to the areas where the ships were moving fast. As if guessing, he tells us all about what he has learned. The emperor was interested and allowed the sailor to move on to the east.

This is the idea of Chinese America (aka Fusong), which eventually becomes self-sufficient and, due to its distance from China itself, becomes a peaceful place. And here is also an opportunity to educate the peoples of the Americas and prepare them for the arrival of the Eastern barbarians.

The scenario is intended for AGCEEP 1.60 version of the June update. If you have an older version, you can copy the data from a separate txt to events.csv.
 

Attachments

  • Fantasy_Chinese_America_080623.zip
    1,3 MB · Views: 0
  • FCA_events.txt
    18,2 KB · Views: 0
  • 1Like
Reactions:
China events:

Code:
#(1419-1436) Penglai Has Been Discovered
event = {
    id = 3100000
    trigger = {
        OR = {
            discovered = 24 #Jalisco #Aztec-Tlaxcala
            discovered = 26 #Michoacбn
            discovered = 30 #Atlixco
            discovered = 31 #Tehuantepec
            discovered = 162 #Cali #Chimu-Inca
            discovered = 164 #Guayaquil
            discovered = 165 #Cajamarca
            discovered = 166 #Huanuco
            discovered = 168 #Lima
            discovered = 170 #Arequipa
            discovered = 171 #Moquega
            discovered = 172 #Arica
            discovered = 173 #Atacama
            discovered = 174 #Coquimbo
        }
    }
    random = no
    country = CHI
    name = "EVENTNAME3100000" #Penglai Has Been Discovered
    desc = "EVENTHIST3100000"
    #-#In Chinese mythology, there is a land called Penglai. It was a mysterious mountain island in the Eastern Sea, where the Eight Daoist Immortals lived. They experienced no illness or pain and lived forever. Each of their's power can be transferred to a tool of power that can give life or destroy evil. In Penglai, there is no winter, bowls of rice and glasses of wine are never empty, and enchanted fruits give unearthly power. There was silver and gold fairy palace on the mount, and trees full of jewels. The first emperor of China, Qin Shi Huang, hoped to find Mount Penglai. He sought immortality, and this desire killed him.\n \n The legends of Penglai filled the minds of the Ming emperors. Yongle, who had usurped the throne, sought to prove his legitimacy with all his might. One of his forces was to be the grandiose Treasure Fleet, commanded by tall and courageous explorer. Zheng He managed to explore the Indian and Malay coasts during four expeditions. In 1417-1418, a new expedition discovered that Penglai was much further away from Ryukyu or Japan. But the emperor's desire to immortalise himself convinced him to allow Zheng He to go further.\n \n The fleet is sailing on the eastern tailwinds, on a path of no return. The distances were extremely long and the sea was rough. If there are parts of land, they are sparsely populated. A large part of the fleet dies at sea. Despair and restlessness are growing on the ships, but Zheng He understands what it is for. Finally, after many months of travel, the Chinese encounter another world. What was described in the myths has become visible. Penglai is here. Meeting local barbarians is even more shocking - they are like us, and what is on their mind? In the end, the Zheng He states...
    
    date = { day = 0 month = january year = 1419 }
    offset = 180
    deathdate = { day = 0 month = january year = 1436 }
    
    action_a = {
        name = "ACTIONNAME3100000A" #A Discovery awaits us
        command = { type = stability value = 1 }
        command = { type = naval value = 300 }
        command = { type = treasury value = -50 }
        command = { type = warships which = 653 value = 2 } #Shanghai
        command = { type = sleepevent which = 10046 } #CHI: Fate of the Treasure Fleet
    }
    action_b = {
        name = "ACTIONNAME3100000B" #We must take care of our neighbours, not savages
        command = { type = stability value = 1 }
        command = { type = relation which = -1 value = 25 }
        command = { type = relation which = -1 value = 25 }
        command = { type = relation which = -1 value = 25 }
        command = { type = relation which = -1 value = 25 }
        command = { type = relation which = -1 value = 25 }
        command = { type = treasury value = -50 }
        command = { type = sleepevent which = 3100001 } #CHI: Meet the Aztecs
        command = { type = sleepevent which = 3100002 } #CHI: Meet the Zapotecs
        command = { type = sleepevent which = 3100003 } #CHI: Meet the Incas
        command = { type = sleepevent which = 3100004 } #CHI: Meet the Chimu
        command = { type = sleepevent which = 3100006 } #CHI: Fate of the Treasure Fleet
    }
}

#(1419-1435) Meet the Aztecs
event = {
    id = 3100001
    trigger = {
        event = 3100000 #CHI: Penglai Has Been Discovered
        OR = {
            discovered = 24 #Jalisco
            discovered = 26 #Michoacбn
        }
        exists = AZT
    }
    random = no
    country = CHI
    name = "EVENTNAME3100001" #Meet the Aztecs
    desc = "EVENTHIST3100001"
    #-#Delighted to be on land, the expedition found a completely different culture. Great pyramids on which sacrifices to barbarian gods were performed, a city build on a lake, swords made of volcanic glass. The fields were full of edible plants and amazing animals. But most importantly, there were wise and friendly people with whom we would have to establish contact.
    
    date = { day = 0 month = january year = 1419 }
    offset = 180
    deathdate = { day = 0 month = january year = 1435 }
    
    action_a = {
        name = "ACTIONNAME3100001A" #We are pleased
        command = { type = trigger which = 3100500 } #AZT: Arrival from the West
        command = { type = trade value = 100 }
    }
}

#(1419-1435) Meet the Zapotecs
event = {
    id = 3100002
    trigger = {
        event = 3100000 #CHI: Penglai Has Been Discovered
        OR = {
            discovered = 30 #Atlixco
            discovered = 31 #Tehuantepec
        }
        exists = ZAP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100002" #Meet the Zapotecs
    desc = "EVENTHIST3100002"
    #-#Delighted to be on land, the expedition found a completely different culture. Great pyramids on which sacrifices to barbarian gods were performed, a city build on a lake. They developed their own calendar and logosyllabic system. The fields were full of edible plants and amazing animals. But most importantly, there were wise and friendly people with whom we would have to establish contact.
    
    date = { day = 0 month = january year = 1419 }
    offset = 180
    deathdate = { day = 0 month = january year = 1435 }
    
    action_a = {
        name = "ACTIONNAME3100001A" #We are pleased
        command = { type = trigger which = 3100600 } #ZAP: Arrival from the West
        command = { type = trade value = 100 }
    }
}

#(1419-1435) Meet the Incas
event = {
    id = 3100003
    trigger = {
        event = 3100000 #CHI: Penglai Has Been Discovered
        OR = {
            discovered = 168 #Lima
            discovered = 170 #Arequipa
            discovered = 171 #Moquega
            discovered = 172 #Arica
            discovered = 173 #Atacama
            discovered = 174 #Coquimbo            
        }
        exists = INC
    }
    random = no
    country = CHI
    name = "EVENTNAME3100003" #Meet the Incas
    desc = "EVENTHIST3100003"
    #-#Delighted to be on land, the expedition found a completely different culture. A city with irrigation systems, palaces and temples, and a wide network of roads. They are good with textiles, ceramics, and precious metals. The fields were full of edible plants and amazing animals. But most importantly, there were wise and friendly people with whom we would have to establish contact.
    
    date = { day = 0 month = january year = 1419 }
    offset = 180
    deathdate = { day = 0 month = january year = 1435 }
    
    action_a = {
        name = "ACTIONNAME3100001A" #We are pleased
        command = { type = trigger which = 3100700 } #INC: Arrival from the West
        command = { type = trade value = 100 }
    }
}

#(1419-1435) Meet the Chimu
event = {
    id = 3100004
    trigger = {
        event = 3100000 #CHI: Penglai Has Been Discovered
        OR = {
            discovered = 162 #Cali
            discovered = 164 #Guayaquil
            discovered = 165 #Cajamarca
            discovered = 166 #Huanuco
        }
        exists = CHM
    }
    random = no
    country = CHI
    name = "EVENTNAME3100004" #Meet the Chimu
    desc = "EVENTHIST3100004"
    #-#Delighted to be on land, the expedition found a completely different culture. A city with irrigation systems, palaces and temples, and a wide network of roads. The belief in the gods of nature, especially the Sun, did not interfere with the existence of other religions. The fields were full of edible plants and amazing animals. But most importantly, there were wise and friendly people with whom we would have to establish contact.
    
    date = { day = 0 month = january year = 1419 }
    offset = 180
    deathdate = { day = 0 month = january year = 1435 }
    
    action_a = {
        name = "ACTIONNAME3100001A" #We are pleased
        command = { type = trigger which = 3100800 } #CHM: Arrival from the West
        command = { type = trade value = 100 }
    }
}

#(1419-1600) The Zheng He exchange
event = {
    id = 3100005
    trigger = {
        OR = {
            owned = { province = 6 data = -1 } #Columbia #All Pacific shore
            owned = { province = 7 data = -1 } #Nehalem
            owned = { province = 8 data = -1 } #Sacramento
            owned = { province = 9 data = -1 } #Monterey
            owned = { province = 10 data = -1 } #Sierra Madre
            owned = { province = 11 data = -1 } #San Bernadino
            owned = { province = 12 data = -1 } #Ensenada
            owned = { province = 13 data = -1 } #Baja
            owned = { province = 15 data = -1 } #Altar
            owned = { province = 17 data = -1 } #Empalme
            owned = { province = 24 data = -1 } #Jalisco
            owned = { province = 25 data = -1 } #Saltillo
            owned = { province = 26 data = -1 } #Michoacбn
            owned = { province = 27 data = -1 } #Zacatecas
            owned = { province = 28 data = -1 } #Tampico
            owned = { province = 29 data = -1 } #Tlaxcala
            owned = { province = 30 data = -1 } #Atlixco
            owned = { province = 31 data = -1 } #Tehuantepec
        }
    }
    random = no
    country = CHI
    name = "EVENTNAME3100005" #The Zheng He exchange
    desc = "EVENTHIST3100005"
    #-#Zheng He's ships, fantastic as Chinese might, have returned home. The success of his long-distance expedition quickly spread through the imperial court. But the emperor himself rejoiced the most, anticipating his own immortality. The discovery caused quite a stir in Chinese philosophical circles. Meeting nomadic barbarians who resembled the Chinese in their lifestyle and even physiognomy renewed interest in the Tianxia concept. It rejects any notion of borders, nation-states or war, be it domestic or international. Word of the journey spread across the country, finding adventurers willing to sacrifice everything to get to Penglai. But more profound changes were about to come. Already Zheng He brought a pineapple to Forbidden City in his voyage, and they would be followed by maize and potatoes, that with a caloric yield per cultivated surface similar to that of rice, would trigger an unprecedented population growth. The Zheng He exchange drastically altered both worlds, but at the time it also greatly contributed to the prestige of the Chinese civilization, that after having restored internal harmony and external supremacy, had discovered a New World.

    date = { day = 0 month = january year = 1419 }
    offset = 100
    deathdate = { day = 0 month = january year = 1600 }

    action_a = {
        name = "ACTIONNAME285126A" #Great reputation
        command = { type = vp value = 50 }
        command = { type = relation which = KOR value = 50 }
        command = { type = relation which = NIP value = 50 }
        command = { type = relation which = HAM value = 50 }
        command = { type = relation which = MCH value = 50 }
        command = { type = relation which = TIB value = 50 }
        command = { type = relation which = CHG value = 50 }
        command = { type = relation which = MGL value = 50 }
        command = { type = relation which = LCH value = 50 }
        command = { type = relation which = MUB value = 50 }
        command = { type = relation which = MYG value = 50 }
        command = { type = relation which = BRM value = 50 }
        command = { type = relation which = LAX value = 50 }
        command = { type = relation which = LNA value = 50 }
        command = { type = relation which = CHA value = 50 }
        command = { type = relation which = ARK value = 50 }
        command = { type = relation which = MON value = 50 }
        command = { type = relation which = AYU value = 50 }
        command = { type = relation which = CAM value = 50 }
        command = { type = relation which = PAK value = 50 }
        command = { type = relation which = MLC value = 50 }
        command = { type = relation which = BEI value = 50 }
        command = { type = relation which = KUT value = 50 }
        command = { type = relation which = ATJ value = 50 }
        command = { type = relation which = SIA value = 50 }
        command = { type = relation which = PAL value = 50 }
        command = { type = relation which = MTR value = 50 }
        command = { type = relation which = GUJ value = 50 }
        command = { type = relation which = DLH value = 50 }
        command = { type = relation which = RAJ value = 50 }
        command = { type = relation which = MLW value = 50 }
        command = { type = relation which = GON value = 50 }
        command = { type = relation which = HYA value = 50 }
        command = { type = relation which = JAI value = 50 }
        command = { type = relation which = ORI value = 50 }
        command = { type = relation which = BGL value = 50 }
        command = { type = relation which = BMD value = 50 }
        command = { type = relation which = VIJ value = 50 }
        command = { type = relation which = CLC value = 50 }
        command = { type = relation which = COC value = 50 }
        command = { type = relation which = TRV value = 50 }
        command = { type = relation which = LNK value = 50 }
        command = { type = badboy value = -2 }
    }
}

#(1436) Fate of the Treasure Fleet
event = {
    id = 3100006
    random = no
    country = CHI
    name = "EVENTNAME10046" #Fate of the Treasure Fleet
    desc = "EVENTHIST3100006"
    #-#After the death of Xuan Zong, the Three Yang became counsels to the Imperial administration. Although Zheng He died, the rumors of an open Penglai interested Confucian officials who sought to balance costly maintenance of the massive Treasure Fleet with immeasurable benefits of wealth and harmony. In addition, new trade relations in the lands called Fusong, could strengthen China's dominant role. This encouraged the Emperor to continue his expeditions.

    date = { day = 1 month = april year = 1436 }
    offset = 120
    deathdate = { day = 1 month = october year = 1436 }

    action_a = {
        name = "ACTIONNAME3100006A" #We can explore at the expense of cheaper ones
        command = { type = colonists value = -2 }
        command = { type = merchants value = -2 }
        command = { type = diplomats value = -1 }
        command = { type = land value = 2000 }
        command = { type = infra value = 2000 }
        command = { type = naval value = -3000 }
        command = { type = trade value = -1000 }
        command = { type = domestic which = INNOVATIVE value = -1 }
        command = { type = domestic which = LAND value = 1 }
        command = { type = domestic which = OFFENSIVE value = -1 }
        command = { type = ADM which = -1 value = 90 }
        command = { type = DIP which = -1 value = 90 }
        command = { type = inflation value = 1 }
        command = { type = clrflag which = [treasure_fleet_voyages] }
        command = { type = setflag which = [penglai] }
        command = { type = sleepevent which = 10047 } #CHI: Dismantling of the fleet
    }
    action_b = {
        name = "ACTIONNAME3100006B" #We will rule the seas forever!
        command = { type = warships which = -1 value = 10 }
        command = { type = transports which = -3 value = 5 }
        command = { type = gainbuilding which = 653 value = shipyard } #Shanghai
        command = { type = losebuilding which = -1 value = bailiff }
        command = { type = losebuilding which = -1 value = bailiff }
        command = { type = colonists value = 6 }
        command = { type = merchants value = 6 }
        command = { type = diplomats value = 2 }
        command = { type = land value = -4000 }
        command = { type = infra value = -5000 }
        command = { type = naval value = 6000 }
        command = { type = trade value = 4000 }
        command = { type = wakeleader which = 032300 } #New explorer #Wang Jing Hong (CHI)
        command = { type = domestic which = ARISTOCRACY value = -1 }
        command = { type = domestic which = MERCANTILISM value = -2 }
        command = { type = domestic which = LAND value = -2 }
        command = { type = treasury value = -1400 }
        command = { type = revoltrisk which = 180 value = 9 }
        command = { type = revoltrisk which = 120 value = 6 }
        command = { type = revoltrisk which = 60 value = 3 }
        command = { type = inflation value = 4 }
        command = { type = ADM which = -2 value = 180 }
        command = { type = DIP which = 2 value = 180 }
        command = { type = setflag which = [treasure_fleet_voyages] }
        command = { type = setflag which = [penglai] }
        command = { type = sleepevent which = 10047 } #CHI: Dismantling of the fleet
        command = { type = sleepevent which = 10005 } #CHI: Japanese Pirates Attack
        command = { type = sleepevent which = 10006 } #CHI: Pirates besiege Nanjing
    }
    action_c = {
        name = "ACTIONNAME3100006C" #Burn all expedition records
        command = { type = gainmanufactory which = -2 value = luxury }
        command = { type = gainbuilding which = -1 value = bailiff }
        command = { type = losebuilding which = -1 value = shipyard }
        command = { type = colonists value = -4 }
        command = { type = merchants value = -4 }
        command = { type = diplomats value = -2 }
        command = { type = stability value = 1 }
        command = { type = land value = 4500 }
        command = { type = infra value = 4500 }
        command = { type = naval value = -7000 }
        command = { type = trade value = -2000 }
        command = { type = domestic which = ARISTOCRACY value = 1 }
        command = { type = domestic which = INNOVATIVE value = -1 }
        command = { type = domestic which = MERCANTILISM value = 1 }
        command = { type = domestic which = LAND value = 2 }
        command = { type = domestic which = OFFENSIVE value = -1 }
        command = { type = clrflag which = [treasure_fleet_voyages] }
    }
}

#(1460-1470) Chinese Horses
event = {
    id = 3100007
    trigger = {
        flag = [penglai]
        OR = {
            event = 3100001 #CHI: Meet the Aztecs
            event = 3100002 #CHI: Meet the Zapotecs
            event = 3100003 #CHI: Meet the Incas
            event = 3100004 #CHI: Meet the Chimu
        }
    }
    random = no
    country = CHI
    name = "EVENTNAME3100007" #Chinese Horses
    desc = "EVENTHIST3100007"
    #-#The world explored by the Penglai, also nicknamed Fusong, was very different from the Asian world. They had their own architecture, art, writing, economy, and religion. The aliens could boast of their knowledge of astronomy, but the Chinese had much more to offer. The Four Great Inventions: the compass, gunpowder, papermaking, and printing, elevated the Celestial Empire and were to impress the East. However, trade made it necessary to learn about one more thing: horses. The emperor had to fill the shortage of horses, and at the same time give them to the nations as a gift.

    date = { day = 1 month = january year = 1460 }
    offset = 1000
    deathdate = { day = 1 month = january year = 1470 }
    
    action_a = {
        name = "ACTIONNAME3100007A" #Send by sea to all nations
        command = { type = treasury value = -200 }
        command = { type = manpower value = -20 }
        command = { type = trigger which = 3100502 } #AZT: Valuable Imperial Gift
        command = { type = trigger which = 3100602 } #ZAP: Valuable Imperial Gift
        command = { type = trigger which = 3100702 } #INC: Valuable Imperial Gift
        command = { type = trigger which = 3100802 } #CHM: Valuable Imperial Gift
    }    
    action_b = {
        name = "ACTIONNAME3100007B" #Send by sea to the Incas and Aztecs
        command = { type = treasury value = -100 }
        command = { type = manpower value = -10 }
        command = { type = trigger which = 3100502 } #AZT: Valuable Imperial Gift
        command = { type = trigger which = 3100702 } #INC: Valuable Imperial Gift
    }    
    action_c = {
        name = "ACTIONNAME3100007C" #It's too expensive
        command = { type = relation which = AZT value = -15 }
        command = { type = relation which = ZAP value = -15 }
        command = { type = relation which = INC value = -15 }
        command = { type = relation which = CHM value = -15 }
        command = { type = sleepevent which = 3100501 } #AZT: Chinese Influences
        command = { type = sleepevent which = 3100601 } #ZAP: Chinese Influences
        command = { type = sleepevent which = 3100701 } #INC: Chinese Influences
        command = { type = sleepevent which = 3100801 } #CHM: Chinese Influences
        command = { type = sleepevent which = 3100008 } #CHI: Buddhist Preachers
        command = { type = sleepevent which = 3100009 } #CHI: Chinese Vessels
        command = { type = sleepevent which = 3100010 } #CHI: Gunpowder Export
    }
}

#(1470-1480) Buddhist Preachers
event = {
    id = 3100008
    trigger = {
        flag = [penglai]
        OR = {
            event = 3100001 #CHI: Meet the Aztecs
            event = 3100002 #CHI: Meet the Zapotecs
            event = 3100003 #CHI: Meet the Incas
            event = 3100004 #CHI: Meet the Chimu
        }
    }
    random = no
    country = CHI
    name = "EVENTNAME3100008" #Buddhist Preachers
    desc = "EVENTHIST3100008"
    #-#An influx of Chinese merchants introduced the people of Fusong to our greatest inventions. Some of them were accepted by local monks and nobles. As a thank you, merchants introduced the newcomers to the teachings of Chinese Buddhism. It was a mixture of the Mahayana belief in lifelong enlightenment and elements of Taoism. According to it, Buddha is not just a teacher, but a god to whom one should pray for help and salvation. Some of the merchants who were knowledgeable in management were familiar with Confucius. These beliefs contrasted with the polytheism and sometimes bloody nature of Eastern customs. Seeing the potential to bring the two worlds closer together, the emperor ordered preachers to be sent among the Fusong people.
    
    date = { day = 1 month = january year = 1470 }
    offset = 1000
    deathdate = { day = 1 month = january year = 1480 }
    
    action_a = {
        name = "ACTIONNAME3100007A" #Send by sea to all nations
        command = { type = treasury value = -200 }
        command = { type = missionaries value = -4 }
        command = { type = trigger which = 3100503 } #AZT: A New Belief
        command = { type = trigger which = 3100603 } #ZAP: A New Belief
        command = { type = trigger which = 3100703 } #INC: A New Belief
        command = { type = trigger which = 3100803 } #CHM: A New Belief
    }    
    action_b = {
        name = "ACTIONNAME3100007B" #Send by sea to the Incas and Aztecs
        command = { type = treasury value = -100 }
        command = { type = missionaries value = -2 }
        command = { type = trigger which = 3100503 } #AZT: A New Belief
        command = { type = trigger which = 3100703 } #INC: A New Belief
    }    
    action_c = {
        name = "ACTIONNAME3100007C" #It's too expensive
        command = { type = relation which = AZT value = -15 }
        command = { type = relation which = ZAP value = -15 }
        command = { type = relation which = INC value = -15 }
        command = { type = relation which = CHM value = -15 }
        command = { type = sleepevent which = 3100501 } #AZT: Chinese Influences
        command = { type = sleepevent which = 3100601 } #ZAP: Chinese Influences
        command = { type = sleepevent which = 3100701 } #INC: Chinese Influences
        command = { type = sleepevent which = 3100801 } #CHM: Chinese Influences
        command = { type = sleepevent which = 3100009 } #CHI: Chinese Vessels
        command = { type = sleepevent which = 3100010 } #CHI: Gunpowder Export
    }
}

#(1480-1490) Chinese Vessels
event = {
    id = 3100009
    trigger = {
        flag = [penglai]
        OR = {
            event = 3100001 #CHI: Meet the Aztecs
            event = 3100002 #CHI: Meet the Zapotecs
            event = 3100003 #CHI: Meet the Incas
            event = 3100004 #CHI: Meet the Chimu
        }
    }
    random = no
    country = CHI
    name = "EVENTNAME3100009" #Chinese Vessels
    desc = "EVENTHIST3100009"
    #-#When the people of Fusong first saw the sails of the Treasure Fleet, they thought they were sea monsters. This is not surprising, as they could only see a few fishing boats at sea. Now they were inspired by the majesty and power of the ships from China. The ties with the peoples of the East deepened, and now shipbuilding masters were sent to Fusong at the imperial expense to teach the locals how to build their own boats.
    
    date = { day = 1 month = january year = 1480 }
    offset = 1000
    deathdate = { day = 1 month = january year = 1490 }
    
    action_a = {
        name = "ACTIONNAME3100007A" #Send by sea to all nations
        command = { type = treasury value = -200 }
        command = { type = trigger which = 3100504 } #AZT: Large Wooden Vessel
        command = { type = trigger which = 3100604 } #ZAP: Large Wooden Vessel
        command = { type = trigger which = 3100704 } #INC: Large Wooden Vessel
        command = { type = trigger which = 3100804 } #CHM: Large Wooden Vessel
    }    
    action_b = {
        name = "ACTIONNAME3100007B" #Send by sea to the Incas and Aztecs
        command = { type = treasury value = -100 }
        command = { type = trigger which = 3100504 } #AZT: Large Wooden Vessel
        command = { type = trigger which = 3100704 } #INC: Large Wooden Vessel
    }    
    action_c = {
        name = "ACTIONNAME3100007C" #It's too expensive
        command = { type = relation which = AZT value = -15 }
        command = { type = relation which = ZAP value = -15 }
        command = { type = relation which = INC value = -15 }
        command = { type = relation which = CHM value = -15 }
        command = { type = sleepevent which = 3100501 } #AZT: Chinese Influences
        command = { type = sleepevent which = 3100601 } #ZAP: Chinese Influences
        command = { type = sleepevent which = 3100701 } #INC: Chinese Influences
        command = { type = sleepevent which = 3100801 } #CHM: Chinese Influences
        command = { type = sleepevent which = 3100010 } #CHI: Gunpowder Export
    }
}

#(1490-1500) Gunpowder Export
event = {
    id = 3100010
    trigger = {
        flag = [penglai]
        OR = {
            event = 3100001 #CHI: Meet the Aztecs
            event = 3100002 #CHI: Meet the Zapotecs
            event = 3100003 #CHI: Meet the Incas
            event = 3100004 #CHI: Meet the Chimu
        }
    }
    random = no
    country = CHI
    name = "EVENTNAME3100010" #Gunpowder Export
    desc = "EVENTHIST3100010"
    #-#The discovery of gunpowder by the Chinese was a milestone that changed the warcraft. One of the great inventions that was perfected to the end. For the people of Fusong, the Chinese fire shot was something that could not be explained. The work of divine hands. This quickly became an advantage for the Chinese, who seized control of the local trade. And only now is it time to teach the newcomers how to make and fire the divine weapon.
    
    date = { day = 1 month = january year = 1490 }
    offset = 1000
    deathdate = { day = 1 month = january year = 1500 }
    
    action_a = {
        name = "ACTIONNAME3100007A" #Send by sea to all nations
        command = { type = treasury value = -200 }
        command = { type = trigger which = 3100505 } #AZT: The Divine Weapon of Fire
        command = { type = trigger which = 3100605 } #ZAP: The Divine Weapon of Fire
        command = { type = trigger which = 3100705 } #INC: The Divine Weapon of Fire
        command = { type = trigger which = 3100805 } #CHM: The Divine Weapon of Fire
    }    
    action_b = {
        name = "ACTIONNAME3100007B" #Send by sea to the Incas and Aztecs
        command = { type = treasury value = -100 }
        command = { type = trigger which = 3100505 } #AZT: The Divine Weapon of Fire
        command = { type = trigger which = 3100705 } #INC: The Divine Weapon of Fire
    }    
    action_c = {
        name = "ACTIONNAME3100007C" #It's too expensive
        command = { type = relation which = AZT value = -15 }
        command = { type = relation which = ZAP value = -15 }
        command = { type = relation which = INC value = -15 }
        command = { type = relation which = CHM value = -15 }
        command = { type = sleepevent which = 3100501 } #AZT: Chinese Influences
        command = { type = sleepevent which = 3100601 } #ZAP: Chinese Influences
        command = { type = sleepevent which = 3100701 } #INC: Chinese Influences
        command = { type = sleepevent which = 3100801 } #CHM: Chinese Influences
    }
}

#(1536) The greatness of Fusong
event = {
    id = 3100011
    trigger = {
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100011" #The greatness of Fusong
    desc = "EVENTHIST3100011"
    #-#A century has passed since Zheng He's death. The discovery of the mysterious land of Penglai and its inhabitants made China famous throughout the world. The exchange that followed confirmed the supremacy of China and the emperor. For the newcomers themselves, the Chinese approach was significant, bringing them closer to our civilisation. Colonies were founded on the northern shores, populated mainly by exiles or traders. Fusong blooms like a garden of flowers. However, we should not despise the overseas barbarians who explored these lands. They have their own interests that clash with our power. To resist, we must fight back.

    date = { day = 1 month = april year = 1536 }
    offset = 120
    deathdate = { day = 1 month = january year = 1537 }

    action_a = {
        name = "ACTIONNAME3100011A" #Stand behind Fusong to the end
        command = { type = warships which = -1 value = 5 }
        command = { type = naval value = 2500 }
        command = { type = trade value = 2500 }
        command = { type = land value = 1000 }
        command = { type = infra value = 1000 }
        command = { type = domestic which = LAND value = -1 }
        command = { type = domestic which = OFFENSIVE value = -1 }
        command = { type = treasury value = -200 }
        command = { type = ADM which = 1 value = 60 }
        command = { type = DIP which = 1 value = 60 }
        command = { type = colonists value = 3 }
        command = { type = merchants value = 2 }
        command = { type = inflation value = 1 }
    }
    action_b = {
        name = "ACTIONNAME3100011B" #We will rule all of Fusong!
        command = { type = warships which = -1 value = 10 }
        command = { type = transports which = -3 value = 5 }
        command = { type = gainbuilding which = 653 value = shipyard } #Shanghai
        command = { type = conquistador which = -1 }
        command = { type = explorer which = -1 }
        command = { type = colonists value = 6 }
        command = { type = merchants value = 4 }
        command = { type = diplomats value = 1 }
        command = { type = naval value = 6000 }
        command = { type = trade value = 6000 }        
        command = { type = land value = -500 }
        command = { type = infra value = -500 }
        command = { type = domestic which = ARISTOCRACY value = -1 }
        command = { type = domestic which = MERCANTILISM value = -1 }
        command = { type = domestic which = LAND value = -2 }
        command = { type = treasury value = -1000 }
        command = { type = revoltrisk which = 120 value = 5 }
        command = { type = revoltrisk which = 80 value = 3 }
        command = { type = revoltrisk which = 40 value = 2 }
        command = { type = inflation value = 3 }
        command = { type = ADM which = -1 value = 120 }
        command = { type = DIP which = 1 value = 120 }
        command = { type = MIL which = 1 value = 120 }
        command = { type = addcore which = 4 } #Nanaimo
        command = { type = addcore which = 5 } #Olympia
        command = { type = addcore which = 6 } #Columbia
        command = { type = addcore which = 7 } #Nehalem
        command = { type = addcore which = 8 } #Sacramento
        command = { type = addcore which = 9 } #Monterey
        command = { type = addcore which = 10 } #Sierra Madre
        command = { type = addcore which = 11 } #San Bernardino
        command = { type = addcore which = 12 } #Ensenada
        command = { type = addcore which = 13 } #Baja
        command = { type = addcore which = 14 } #Salton
        command = { type = addcore which = 15 } #Altar
        command = { type = addcore which = 16 } #Canyon
        command = { type = addcore which = 1473 } #Oregon
        command = { type = addcore which = 1474 } #Sierra Nevada
        command = { type = addcore which = 1475 } #Tonopah
        command = { type = addcore which = 1476 } #Inyo        
    }
    action_c = {
        name = "ACTIONNAME3100011C" #We are defenceless against barbarians
        command = { type = gainmanufactory which = -2 value = luxury }
        command = { type = losebuilding which = -1 value = shipyard }
        command = { type = colonists value = -2 }
        command = { type = merchants value = -2 }
        command = { type = stability value = 1 }
        command = { type = land value = 3000 }
        command = { type = infra value = 3000 }
        command = { type = naval value = -5000 }
        command = { type = trade value = -1000 }
        command = { type = domestic which = MERCANTILISM value = 1 }
        command = { type = domestic which = LAND value = 2 }
        command = { type = domestic which = OFFENSIVE value = -1 }
        command = { type = ADM which = 2 value = 120 }
        command = { type = DIP which = -1 value = 120 }
        command = { type = vp value = -50 }
        command = { type = clrflag which = [penglai] }
    }    
}

#(1450-1600) Fusong Colonization Rush
event = {
    id = 3100012
    trigger = {
        flag = [penglai]
        owned = { province = 6 data = -1 } #Columbia
        NOT = { provincereligion = { province = 6 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1450 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1600 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 6 value = 10000 } #Columbia
        command = { type = provincemanpower which = 6 value = 2 }
        command = { type = provincetax which = 6 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1450-1600) Fusong Colonization Rush
event = {
    id = 3100013
    trigger = {
        flag = [penglai]
        owned = { province = 7 data = -1 } #Nehalem
        NOT = { provincereligion = { province = 7 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1450 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1600 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 7 value = 10000 } #Nehalem
        command = { type = provincemanpower which = 7 value = 2 }
        command = { type = provincetax which = 7 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1450-1600) Fusong Colonization Rush
event = {
    id = 3100014
    trigger = {
        flag = [penglai]
        owned = { province = 8 data = -1 } #Sacramento
        NOT = { provincereligion = { province = 8 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1450 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1600 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 8 value = 10000 } #Sacramento
        command = { type = provincemanpower which = 8 value = 2 }
        command = { type = provincetax which = 8 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1450-1600) Fusong Colonization Rush
event = {
    id = 3100015
    trigger = {
        flag = [penglai]
        owned = { province = 9 data = -1 } #Monterey
        NOT = { provincereligion = { province = 9 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1450 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1600 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 9 value = 10000 } #Monterey
        command = { type = provincemanpower which = 9 value = 2 }
        command = { type = provincetax which = 9 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1450-1600) Fusong Colonization Rush
event = {
    id = 3100016
    trigger = {
        flag = [penglai]
        owned = { province = 10 data = -1 } #Sierra Madre
        NOT = { provincereligion = { province = 10 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1450 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1600 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 10 value = 10000 } #Sierra Madre
        command = { type = provincemanpower which = 10 value = 2 }
        command = { type = provincetax which = 10 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1450-1600) Fusong Colonization Rush
event = {
    id = 3100017
    trigger = {
        flag = [penglai]
        owned = { province = 11 data = -1 } #San Bernadino
        NOT = { provincereligion = { province = 11 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1450 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1600 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 11 value = 10000 } #San Bernadino
        command = { type = provincemanpower which = 11 value = 2 }
        command = { type = provincetax which = 11 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1450-1600) Fusong Colonization Rush
event = {
    id = 3100018
    trigger = {
        flag = [penglai]
        owned = { province = 15 data = -1 } #Altar
        NOT = { provincereligion = { province = 15 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1450 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1600 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 15 value = 10000 } #Altar
        command = { type = provincemanpower which = 15 value = 1 }
        command = { type = provincetax which = 15 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1550-1650) Fusong Colonization Rush
event = {
    id = 3100019
    trigger = {
        flag = [penglai]
        owned = { province = 6 data = -1 } #Columbia
        NOT = { provincereligion = { province = 6 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1550 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1650 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 6 value = 10000 } #Columbia
        command = { type = provincemanpower which = 6 value = 2 }
        command = { type = provincetax which = 6 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1550-1650) Fusong Colonization Rush
event = {
    id = 3100020
    trigger = {
        flag = [penglai]
        owned = { province = 7 data = -1 } #Nehalem
        NOT = { provincereligion = { province = 7 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1550 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1650 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 7 value = 10000 } #Nehalem
        command = { type = provincemanpower which = 7 value = 2 }
        command = { type = provincetax which = 7 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1550-1650) Fusong Colonization Rush
event = {
    id = 3100021
    trigger = {
        flag = [penglai]
        owned = { province = 8 data = -1 } #Sacramento
        NOT = { provincereligion = { province = 8 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1550 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1650 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 8 value = 10000 } #Sacramento
        command = { type = provincemanpower which = 8 value = 2 }
        command = { type = provincetax which = 8 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1550-1650) Fusong Colonization Rush
event = {
    id = 3100022
    trigger = {
        flag = [penglai]
        owned = { province = 9 data = -1 } #Monterey
        NOT = { provincereligion = { province = 9 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1550 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1650 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 9 value = 10000 } #Monterey
        command = { type = provincemanpower which = 9 value = 2 }
        command = { type = provincetax which = 9 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1550-1650) Fusong Colonization Rush
event = {
    id = 3100023
    trigger = {
        flag = [penglai]
        owned = { province = 10 data = -1 } #Sierra Madre
        NOT = { provincereligion = { province = 10 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1550 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1650 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 10 value = 10000 } #Sierra Madre
        command = { type = provincemanpower which = 10 value = 2 }
        command = { type = provincetax which = 10 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1550-1650) Fusong Colonization Rush
event = {
    id = 3100024
    trigger = {
        flag = [penglai]
        owned = { province = 11 data = -1 } #San Bernadino
        NOT = { provincereligion = { province = 11 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1550 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1650 }    
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 11 value = 10000 } #San Bernadino
        command = { type = provincemanpower which = 11 value = 2 }
        command = { type = provincetax which = 11 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1550-1650) Fusong Colonization Rush
event = {
    id = 3100025
    trigger = {
        flag = [penglai]
        owned = { province = 15 data = -1 } #Altar
        NOT = { provincereligion = { province = 15 data = pagan } } #not a TP
    }
    random = no
    country = CHI
    name = "EVENTNAME3100012" #Fusong Colonization Rush
    desc = "EVENTHIST3100012"
    #-#Since the opening of Fusong, China's population has grown by more than a third. This has been made possible by political stability, trade development and the introduction of new plants such as corn and sweet potatoes. They grow well on land that is unsuitable for rice, wheat or sorghum. This population boom leads to the launch of small expeditions aimed at establishing settlements on the other side of the ocean. The settlers were merchants and nobles, and some were criminals who had been exiled as far away from China as possible. As a result, a large community was formed in Fusong, making it a rich and beautiful land.
    
    date = { day = 1 month = january year = 1550 }
    offset = 5000
    deathdate = { day = 1 month = january year = 1650 }
    
    action_a = {
        name = "ACTIONNAME3100012A" #Found a settlement
        command = { type = population which = 15 value = 10000 } #Altar
        command = { type = provincemanpower which = 15 value = 1 }
        command = { type = provincetax which = 15 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }
    }
    action_b = {
        name = "ACTIONNAME3100012B" #Encourage personal initiative
        command = { type = treasury value = 100 }
        command = { type = colonists value = 4 }
    }
}

#(1500-1600) Attack on the Aztecs
event = {
    id = 3100026
    trigger = {
        flag = [penglai]
        AZT = {
            OR = {
                religion = buddhist
                religion = confucian
            }
        }
        war = { country = SPA country = AZT }
    }
    
    random = no
    country = CHI
    name = "EVENTNAME3100026" #Attack on the Aztecs
    desc = "EVENTHIST3100026"
    #-#The war came to the shores of Fusong. Overseas barbarians invaded the Aztec lands, seeking wealth and glory. They would do no harm, they would burn and kill those whom we had taught great things. We must send the conquerors to the bottom!
    
    date = { day = 1 month = june year = 1500 }
    offset = 30
    deathdate = { day = 1 month = june year = 1600 }
    
    action_a = {
        name = "ACTIONNAME3100026A" #The dragon flaps its wings
        command = { type = war which = SPA }
        command = { type = INF which = -2 value = 10000 }
        command = { type = CAV which = -2 value = 3000 }    
        command = { type = treasury value = -150 }
        command = { type = manpower value = 20 }
        command = { type = relation which = AZT value = 100 }
    }    
    action_b = {
        name = "ACTIONNAME3100026B" #Maybe the barbarians are stronger?
        command = { type = sleepevent which = 3100027 } #CHI: Attack on the Incas
        command = { type = vp value = -25 }
    }
}

#(1500-1600) Attack on the Incas
event = {
    id = 3100027
    trigger = {
        flag = [penglai]
        INC = {
            OR = {
                religion = buddhist
                religion = confucian
            }
        }
        war = { country = SPA country = INC }
    }
    
    random = no
    country = CHI
    name = "EVENTNAME3100027" #Attack on the Incas
    desc = "EVENTHIST3100027"
    #-#The war came to the shores of Fusong. Overseas barbarians invaded the Inca lands, seeking wealth and glory. They would do no harm, they would burn and kill those whom we had taught great things. We must send the conquerors to the bottom!
    
    date = { day = 1 month = june year = 1500 }
    offset = 30
    deathdate = { day = 1 month = june year = 1600 }
    
    action_a = {
        name = "ACTIONNAME3100026A" #The dragon flaps its wings
        command = { type = war which = SPA }
        command = { type = INF which = -2 value = 10000 }
        command = { type = CAV which = -2 value = 3000 }    
        command = { type = treasury value = -150 }
        command = { type = manpower value = 20 }
        command = { type = relation which = INC value = 100 }
    }    
    action_b = {
        name = "ACTIONNAME3100026B" #Maybe the barbarians are stronger?
        command = { type = sleepevent which = 3100026 } #CHI: Attack on the Aztecs
        command = { type = vp value = -25 }
    }
}

#(1644-1710) The Fall of the Ming Dynasty and Fusong
event = {
    id = 3100028
    trigger = {
        flag = [penglai]
        event = 10014 #CHI: The Fall of Ming Dynasty
        event = 147126 #CHI: Fall of Beijing
        owned = { province = 10 data = -1 } #Sierra Madre
        control = { province = 10 data = -1 } #Sierra Madre
        OR = {
            owned = { province = 6 data = -1 } #Columbia
            owned = { province = 7 data = -1 } #Nehalem
            owned = { province = 8 data = -1 } #Sacramento
            owned = { province = 9 data = -1 } #Monterey
            owned = { province = 11 data = -1 } #San Bernadino
            owned = { province = 15 data = -1 } #Altar
        }
    }
    random = no
    country = CHI
    name = "EVENTNAME3100028" #The Fall of the Ming Dynasty and Fusong
    desc = "EVENTHIST3100028"
    #-#Reports of the Manchus' threats to Beijing reached Fusong along with refugees from China. Compared to the chaos of the mainland, Fusong seemed a calmer place, where loyalty to the Ming regime was high, although independent temperament was making its way. If the South falls, the East will become a Ming bastion.
    
    date = { day = 1 month = january year = 1644 }
    offset = 30
    deathdate = { day = 29 month = december year = 1710 }
    
    action_a = {
        name = "ACTIONNAME3100028A" #We will support the fight!
        command = { type = population which = 10 value = 20000 } #Sierra Madre
        command = { type = provincemanpower which = 10 value = 2 }
        command = { type = provincetax which = 10 value = 1 }
        command = { type = population which = -1019 value = -5000 }
        command = { type = population which = -1019 value = -5000 }        
        command = { type = population which = -1019 value = -5000 }        
        command = { type = population which = -1019 value = -5000 }        
        command = { type = sleepevent which = 10026 } #CHI: The End of the Ming Dynasty
    }
}

#(1644-1710) The End of the Ming Dynasty and Fusong
event = {
    id = 3100029
    trigger = {
        flag = [penglai]
        event = 3100028 #CHI: The Fall of the Ming Dynasty and Fusong
        owned = { province = 10 data = -1 } #Sierra Madre
        control = { province = 10 data = -1 } #Sierra Madre
        OR = {
            owned = { province = 6 data = -1 } #Columbia
            owned = { province = 7 data = -1 } #Nehalem
            owned = { province = 8 data = -1 } #Sacramento
            owned = { province = 9 data = -1 } #Monterey
            owned = { province = 11 data = -1 } #San Bernadino
            owned = { province = 15 data = -1 } #Altar
        }
    }
    random = no
    country = CHI
    name = "EVENTNAME3100029" #The Fall of the Ming Dynasty and Fate of Fusong
    desc = "EVENTHIST3100029"
    #-#The last of the Ming pretenders has fled to the East! The Manchu own the majority of China, and we are helpless against their advance and the never-ending revolts in the areas we control. Even the heavens indicate that the only salvation is in the east, in Fusong. If the heavenly mandate cannot be reversed, then maybe Penglai's mandate will be favorable.
    
    date = { day = 1 month = january year = 1683 }
    offset = 30
    deathdate = { day = 1 month = january year = 1684 }
    
    action_a = {
        name = "ACTIONNAME3100029A" #Sail away from the invaders
        command = { type = capital which = 10 } #Sierra Madre
        command = { type = population which = -1019 value = -5000 }
        command = { type = provincemanpower which = -4 value = -1 }
        command = { type = provincetax which = -4 value = -1 }        
        command = { type = population which = -1019 value = -5000 }    
        command = { type = provincemanpower which = -4 value = -1 }
        command = { type = provincetax which = -4 value = -1 }            
        command = { type = population which = -1019 value = -5000 }    
        command = { type = provincemanpower which = -4 value = -1 }
        command = { type = provincetax which = -4 value = -1 }            
        command = { type = population which = -1019 value = -5000 }    
        command = { type = provincemanpower which = -4 value = -1 }
        command = { type = provincetax which = -4 value = -1 }            
        command = { type = cedeprovince which = MCH value = 649 } #Hebei
        command = { type = cedeprovince which = MCH value = 650 } #Shandong
        command = { type = cedeprovince which = MCH value = 651 } #Jinan
        command = { type = cedeprovince which = MCH value = 652 } #Jiangsu
        command = { type = cedeprovince which = MCH value = 653 } #Shanghai
        command = { type = cedeprovince which = MCH value = 654 } #Anhui
        command = { type = cedeprovince which = MCH value = 655 } #Zhejiang
        command = { type = cedeprovince which = MCH value = 656 } #Fujian
        command = { type = cedeprovince which = MCH value = 657 } #Kowloon
        command = { type = cedeprovince which = MCH value = 658 } #Guangzhou
        command = { type = cedeprovince which = MCH value = 659 } #Guangdong
        command = { type = cedeprovince which = MCH value = 660 } #Hainan
        command = { type = cedeprovince which = MCH value = 661 } #Guangxi
        command = { type = cedeprovince which = MCH value = 689 } #Taiwan
        command = { type = cedeprovince which = MCH value = 1553 } #Yunnan
        command = { type = cedeprovince which = MCH value = 1555 } #Wenshan
        command = { type = cedeprovince which = MCH value = 1556 } #Guizhou
        command = { type = cedeprovince which = MCH value = 1557 } #Sichuan Pendi
        command = { type = cedeprovince which = MCH value = 1558 } #Lanzhou
        command = { type = cedeprovince which = MCH value = 1559 } #Xining
        command = { type = cedeprovince which = MCH value = 1562 } #Shanxi
        command = { type = cedeprovince which = MCH value = 1563 } #Shaanxi
        command = { type = cedeprovince which = MCH value = 1564 } #Henan
        command = { type = cedeprovince which = MCH value = 1565 } #Hubei
        command = { type = cedeprovince which = MCH value = 1566 } #Hunan
        command = { type = cedeprovince which = MCH value = 1567 } #Nanchang
        command = { type = cedeprovince which = MCH value = 1608 } #Qiling Pendi
        command = { type = cedeprovince which = KOR value = 641 } #Kyongju
        command = { type = cedeprovince which = KOR value = 642 } #Yalu        
        command = { type = stability value = -3 }
        command = { type = revoltrisk which = 120 value = 5 }
        command = { type = flagname which = "" }
        command = { type = country which = SMI }
        command = { type = countryname value = "Fusong" }
        command = { type = inflation value = -40 }
        command = { type = trigger which = 221001 } #MCH: The Imperial Throne
        command = { type = trigger which = 3100030 } #SMI: Claim on the Mainland
    }
    action_b = {
        name = "ACTIONNAME3100029B" #Useless to retreat, we surrender to the Manchu (End Game)
        command = { type = trigger which = 10027 } #MCH: The End of the Ming Dynasty
    }
    action_c = {
        name = "ACTIONNAME3100029C" #No, we will never give up!
        command = { type = stability value = -6 }
        command = { type = revoltrisk which = 120 value = 10 }
    }
}

#(1644-1710) Claim on the Mainland
event = {
    id = 3100030 #triggered by CHI_3100029 A
    random = no
    country = SMI
    name = "EVENTNAME3100030" #Claim on the Mainland
    desc = "EVENTHIST3100030"
    #-#Fusong declared itself independent of China. Should we maintain our claim to rule in China?
    
    action_a = {
        name = "ACTIONNAME3100029A" #We will be back one day
        command = { type = population which = -1 value = 5000 }
        command = { type = provincemanpower which = -4 value = 1 }
        command = { type = provincetax which = -4 value = 1 }            
        command = { type = population which = -1 value = 5000 }    
        command = { type = provincemanpower which = -4 value = 1 }
        command = { type = provincetax which = -4 value = 1 }            
        command = { type = population which = -1 value = 5000 }        
        command = { type = provincemanpower which = -4 value = 1 }
        command = { type = provincetax which = -4 value = 1 }    
        command = { type = population which = -1 value = 5000 }        
        command = { type = provincemanpower which = -4 value = 1 }
        command = { type = provincetax which = -4 value = 1 }            
        command = { type = addcore which = 4 } #Nanaimo
        command = { type = addcore which = 5 } #Olympia
        command = { type = addcore which = 6 } #Columbia
        command = { type = addcore which = 7 } #Nehalem
        command = { type = addcore which = 8 } #Sacramento
        command = { type = addcore which = 9 } #Monterey
        command = { type = addcore which = 10 } #Sierra Madre
        command = { type = addcore which = 11 } #San Bernardino
        command = { type = addcore which = 12 } #Ensenada
        command = { type = addcore which = 13 } #Baja
        command = { type = addcore which = 14 } #Salton
        command = { type = addcore which = 15 } #Altar
        command = { type = addcore which = 16 } #Canyon
        command = { type = addcore which = 1473 } #Oregon
        command = { type = addcore which = 1474 } #Sierra Nevada
        command = { type = addcore which = 1475 } #Tonopah
        command = { type = addcore which = 1476 } #Inyo
    }    
    action_b = {
        name = "ACTIONNAME3100029B" #Start it all again
        command = { type = population which = -1 value = 5000 }
        command = { type = provincemanpower which = -4 value = 1 }
        command = { type = provincetax which = -4 value = 1 }            
        command = { type = population which = -1 value = 5000 }    
        command = { type = provincemanpower which = -4 value = 1 }
        command = { type = provincetax which = -4 value = 1 }            
        command = { type = population which = -1 value = 5000 }        
        command = { type = provincemanpower which = -4 value = 1 }
        command = { type = provincetax which = -4 value = 1 }    
        command = { type = population which = -1 value = 5000 }        
        command = { type = provincemanpower which = -4 value = 1 }
        command = { type = provincetax which = -4 value = 1 }                
        command = { type = addcore which = 4 } #Nanaimo
        command = { type = addcore which = 5 } #Olympia
        command = { type = addcore which = 6 } #Columbia
        command = { type = addcore which = 7 } #Nehalem
        command = { type = addcore which = 8 } #Sacramento
        command = { type = addcore which = 9 } #Monterey
        command = { type = addcore which = 10 } #Sierra Madre
        command = { type = addcore which = 11 } #San Bernardino
        command = { type = addcore which = 12 } #Ensenada
        command = { type = addcore which = 13 } #Baja
        command = { type = addcore which = 14 } #Salton
        command = { type = addcore which = 15 } #Altar
        command = { type = addcore which = 16 } #Canyon
        command = { type = addcore which = 1473 } #Oregon
        command = { type = addcore which = 1474 } #Sierra Nevada
        command = { type = addcore which = 1475 } #Tonopah
        command = { type = addcore which = 1476 } #Inyo
        command = { type = removecore which = 646 } #Liaotung
        command = { type = removecore which = 647 } #Liaoning
        command = { type = removecore which = 648 } #Hepei
        command = { type = removecore which = 649 } #Hebei
        command = { type = removecore which = 650 } #Shandong
        command = { type = removecore which = 651 } #Jinan
        command = { type = removecore which = 652 } #Jiangsu
        command = { type = removecore which = 653 } #Shanghai
        command = { type = removecore which = 654 } #Anhui
        command = { type = removecore which = 655 } #Zhejiang
        command = { type = removecore which = 656 } #Fujian
        command = { type = removecore which = 657 } #Kowloon
        command = { type = removecore which = 658 } #Guangzhou
        command = { type = removecore which = 659 } #Guangdong
        command = { type = removecore which = 660 } #Hainan
        command = { type = removecore which = 661 } #Guangxi
        command = { type = removecore which = 1553 } #Yunnan
        command = { type = removecore which = 1555 } #Wenshan
        command = { type = removecore which = 1556 } #Guizhou
        command = { type = removecore which = 1557 } #Sichuan Pendi
        command = { type = removecore which = 1558 } #Lanzhou
        command = { type = removecore which = 1559 } #Xining
        command = { type = removecore which = 1560 } #Ningxia
        command = { type = removecore which = 1561 } #Hohhot
        command = { type = removecore which = 1562 } #Shanxi
        command = { type = removecore which = 1563 } #Shaanxi
        command = { type = removecore which = 1564 } #Henan
        command = { type = removecore which = 1565 } #Hubei
        command = { type = removecore which = 1566 } #Hunan
        command = { type = removecore which = 1567 } #Nanchang
        command = { type = removecore which = 1608 } #Qilian Pendi        
    }
}

Penglai Treasure Fleet events:

Code:
#(1436-1446) Penglai Treasure Fleet Tribute Receiving Events - extras for Aztecs 
event = {
    id = 3100050
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 24 #Jalisco
            discovered = 26 #Michoacбn
        }
        exists = AZT
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1436 }
    offset = 720
    deathdate = { day = 1 month = june year = 1446 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 30 }
        command = { type = relation which = AZT value = 15 }
    }
}

#(1446-1456) Penglai Treasure Fleet Tribute Receiving Events - extras for Aztecs 
event = {
    id = 3100051
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 24 #Jalisco
            discovered = 26 #Michoacбn
        }
        exists = AZT
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1446 }
    offset = 720
    deathdate = { day = 1 month = june year = 1456 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 30 }
        command = { type = relation which = AZT value = 15 }
    }
}

#(1456-1466) Penglai Treasure Fleet Tribute Receiving Events - extras for Aztecs 
event = {
    id = 3100052
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 24 #Jalisco
            discovered = 26 #Michoacбn
        }
        exists = AZT
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1456 }
    offset = 720
    deathdate = { day = 1 month = june year = 1466 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 30 }
        command = { type = relation which = AZT value = 15 }
    }
}

#(1466-1476) Penglai Treasure Fleet Tribute Receiving Events - extras for Aztecs 
event = {
    id = 3100053
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 24 #Jalisco
            discovered = 26 #Michoacбn
        }
        exists = AZT
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1466 }
    offset = 720
    deathdate = { day = 1 month = june year = 1476 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 30 }
        command = { type = relation which = AZT value = 15 }
    }
}

#(1436-1446) Penglai Treasure Fleet Tribute Receiving Events - extras for Zapotecs 
event = {
    id = 3100054
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 30 #Atlixco
            discovered = 31 #Tehuantepec
        }
        exists = ZAP
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1436 }
    offset = 720
    deathdate = { day = 1 month = june year = 1446 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 10 }
        command = { type = relation which = ZAP value = 15 }
    }
}

#(1446-1456) Penglai Treasure Fleet Tribute Receiving Events - extras for Zapotecs 
event = {
    id = 3100055
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 30 #Atlixco
            discovered = 31 #Tehuantepec
        }
        exists = ZAP
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1446 }
    offset = 720
    deathdate = { day = 1 month = june year = 1456 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 10 }
        command = { type = relation which = ZAP value = 15 }
    }
}

#(1456-1466) Penglai Treasure Fleet Tribute Receiving Events - extras for Zapotecs 
event = {
    id = 3100056
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 30 #Atlixco
            discovered = 31 #Tehuantepec
        }
        exists = ZAP
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1456 }
    offset = 720
    deathdate = { day = 1 month = june year = 1466 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 10 }
        command = { type = relation which = ZAP value = 15 }
    }
}

#(1466-1476) Penglai Treasure Fleet Tribute Receiving Events - extras for Zapotecs 
event = {
    id = 3100057
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 30 #Atlixco
            discovered = 31 #Tehuantepec
        }
        exists = ZAP
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1466 }
    offset = 720
    deathdate = { day = 1 month = june year = 1476 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 10 }
        command = { type = relation which = ZAP value = 15 }
    }
}

#(1436-1446) Penglai Treasure Fleet Tribute Receiving Events - extras for Incas 
event = {
    id = 3100058
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 168 #Lima
            discovered = 170 #Arequipa
            discovered = 171 #Moquega
            discovered = 172 #Arica
            discovered = 173 #Atacama
            discovered = 174 #Coquimbo
        }
        exists = INC
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1436 }
    offset = 720
    deathdate = { day = 1 month = june year = 1446 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 30 }
        command = { type = relation which = INC value = 15 }
    }
}

#(1446-1456) Penglai Treasure Fleet Tribute Receiving Events - extras for Incas 
event = {
    id = 3100059
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 168 #Lima
            discovered = 170 #Arequipa
            discovered = 171 #Moquega
            discovered = 172 #Arica
            discovered = 173 #Atacama
            discovered = 174 #Coquimbo
        }
        exists = INC
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1446 }
    offset = 720
    deathdate = { day = 1 month = june year = 1456 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 30 }
        command = { type = relation which = INC value = 15 }
    }
}

#(1456-1466) Penglai Treasure Fleet Tribute Receiving Events - extras for Incas 
event = {
    id = 3100060
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 168 #Lima
            discovered = 170 #Arequipa
            discovered = 171 #Moquega
            discovered = 172 #Arica
            discovered = 173 #Atacama
            discovered = 174 #Coquimbo
        }
        exists = INC
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1456 }
    offset = 720
    deathdate = { day = 1 month = june year = 1466 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 30 }
        command = { type = relation which = INC value = 15 }
    }
}

#(1466-1476) Penglai Treasure Fleet Tribute Receiving Events - extras for Incas 
event = {
    id = 3100061
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 168 #Lima
            discovered = 170 #Arequipa
            discovered = 171 #Moquega
            discovered = 172 #Arica
            discovered = 173 #Atacama
            discovered = 174 #Coquimbo
        }
        exists = INC
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1466 }
    offset = 720
    deathdate = { day = 1 month = june year = 1476 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 30 }
        command = { type = relation which = INC value = 15 }
    }
}

#(1436-1446) Penglai Treasure Fleet Tribute Receiving Events - extras for Chimu 
event = {
    id = 3100062
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 162 #Cali
            discovered = 164 #Guayaquil
            discovered = 165 #Cajamarca
            discovered = 166 #Huanuco
        }
        exists = CHM
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1436 }
    offset = 720
    deathdate = { day = 1 month = june year = 1446 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 10 }
        command = { type = relation which = CHM value = 15 }
    }
}

#(1446-1456) Penglai Treasure Fleet Tribute Receiving Events - extras for Chimu 
event = {
    id = 3100063
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 162 #Cali
            discovered = 164 #Guayaquil
            discovered = 165 #Cajamarca
            discovered = 166 #Huanuco
        }
        exists = CHM
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1446 }
    offset = 720
    deathdate = { day = 1 month = june year = 1456 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 10 }
        command = { type = relation which = CHM value = 15 }
    }
}

#(1456-1466) Penglai Treasure Fleet Tribute Receiving Events - extras for Chimu 
event = {
    id = 3100064
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 162 #Cali
            discovered = 164 #Guayaquil
            discovered = 165 #Cajamarca
            discovered = 166 #Huanuco
        }
        exists = CHM
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1456 }
    offset = 720
    deathdate = { day = 1 month = june year = 1466 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 10 }
        command = { type = relation which = CHM value = 15 }
    }
}

#(1466-1476) Penglai Treasure Fleet Tribute Receiving Events - extras for Chimu 
event = {
    id = 3100065
    trigger = {
        OR = {
            owned = { province = 650 data = -1 } #Shandong
            owned = { province = 652 data = -1 } #Jiangsu
            owned = { province = 653 data = -1 } #Shanghai
            owned = { province = 655 data = -1 } #Zhejiang
            owned = { province = 656 data = -1 } #Fujian
            owned = { province = 657 data = -1 } #Kowloon
            owned = { province = 659 data = -1 } #Guangdong
        }
        OR = {
            discovered = 162 #Cali
            discovered = 164 #Guayaquil
            discovered = 165 #Cajamarca
            discovered = 166 #Huanuco
        }
        exists = CHM
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "EVENTNAME3100050" #Tribal Nations Admire Penglai Treasure Fleet
    desc = "EVENTHIST3100050"
    #-#As the Penglai Treasure Fleet continued its expedition to the newly discovered mythical land, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

    date = { day = 1 month = june year = 1466 }
    offset = 720
    deathdate = { day = 1 month = june year = 1476 }

    action_a = {
        name = "ACTIONNAME147064A" #Tribute Received
        command = { type = treasury value = 10 }
        command = { type = relation which = CHM value = 15 }
    }
}

Aztec/Incas/Zapotecs/Chimu events:

Code:
#-----------------------------------------------------------------------------------------------
#Aztec Empire

#(1419-1600) Arrival from the West
event = {
    id = 3100500
    random = no
    country = AZT
    name = "EVENTNAME3100500" #Arrival from the West
    desc = "EVENTHIST3100500"
    #-#One unremarkable day, a local man noticed a sea monster that resembled one of the mythical creatures. Time passed, and the creature approached the coast, making the locals afraid of the unknown. Eventually, the wooden structure sat down, and out came creatures that looked incredibly like us. Nothing was clear except that these people came from the West. And they could both bring light and plunge into darkness.
    
    action_a = {
        name = "ACTIONNAME3100500A" #These deities will save us!
        command = { type = relation which = CHI value = 50 }
        command = { type = trade value = 500 }
        command = { type = discover which = 649 } #Hebei
        command = { type = discover which = 653 } #Shanghai
        command = { }
    }    
    
    action_b = {
        name = "ACTIONNAME3100500B" #Drown in blood
        command = { type = relation which = CHI value = -200 }
        command = { type = casusbelli which = CHI value = 6000 }
        command = { type = sleepevent which = 3100501 } #AZT: Chinese Influences
        command = { }
    }
}

#(1500-1820) Chinese Influences
event = {
    id = 3100501
    trigger = {
        event = 3100500 #AZT: Arrival from the West
        NOT = { war = { country = AZT country = CHI } } 
        religion = pagan
        domestic = { type = innovative value = 5 }
    }
    random = no
    country = AZT
    name = "EVENTNAME3100501" #Chinese Influences
    desc = "EVENTHIST3100501"
    #-#As contact with Chinese grew, the citizens of the Aztec Empire began to question their old beliefs and looked toward the emperor for guidance. The lower ranks, followed by some of the nobility, follow Buddhism, encouraged by Chinese merchants. Bureaucrats are fond of Confucianism, which blends in quite easily with local beliefs. This is overlaid with the abundance of gifts and knowledge brought from the West. This cannot but worry the adherents of the old faith. One way or another, if the emperor indicates which way to go, perhaps others will follow.
    
    date = { day = 0 month = january year = 1500 }
    offset = 1800
    deathdate = { year = 1820 }    
    
    action_a = {
        name = "ACTIONNAME3100501A" #Revamp Our Beliefs To Strengthen Our Overseas Ties
        command = { type = religion which = buddhist }
        command = { type = technology which = asian }
        command = { type = provincereligion which = -2 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = domestic which = innovative value = 1 }
        command = { type = stability value = 1 }    
        command = { type = land value = 8000 }
        command = { type = naval value = 8000 }
        command = { type = trade value = 4000 }
        command = { type = infra value = 4000 }
    }
    action_b = {
        name = "ACTIONNAME3100501B" #Confucius' Teachings Will Make Us Human Beings
        command = { type = religion which = confucian }
        command = { type = technology which = asian }
        command = { type = provincereligion which = -2 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = domestic which = innovative value = -1 }
        command = { type = domestic which = centralization value = 1 }
        command = { type = stability value = -1 }        
        command = { type = land value = 4000 }
        command = { type = naval value = 4000 }
        command = { type = trade value = 8000 }
        command = { type = infra value = 8000 }        
    }    
    action_c = {
        name = "ACTIONNAME3100501C" #Our Beliefs Are Fine, And Will Not Change
        command = { type = religion which = pagan }
        command = { type = vp value = 30 }
        command = { type = inflation value = -10 }
        command = { type = domestic which = innovative value = -1 }
        command = { type = stability value = 2 }        
    }
}

#(1460-1470) Valuable Imperial Gift
event = {
    id = 3100502
    trigger = {
        event = 3100500 #AZT: Arrival from the West
        NOT = { war = { country = AZT country = CHI } } 
    }
    random = no
    country = AZT
    name = "EVENTNAME3100502" #Valuable Imperial Gift
    desc = "EVENTHIST3100502"
    #-#Boats from the Chinese have arrived on our shores. Their envoys say that they are to produce horses, fast and fearsome creatures. They use them as weapons, vehicles and food. The Chinese have promised to monitor the population and teach us what they know.
    
    action_a = {
        name = "ACTIONNAME3100502A" #Interesting
        command = { type = land value = 25000 }
        command = { type = CAV which = -2 value = 5000 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 1 }
    }
}

#(1470-1480) A New Belief
event = {
    id = 3100503
    trigger = {
        event = 3100500 #AZT: Arrival from the West
        NOT = { war = { country = AZT country = CHI } } 
    }
    random = no
    country = AZT
    name = "EVENTNAME3100503" #A New Belief
    desc = "EVENTHIST3100503"
    #-#With the development of trade, more and more Chinese settle in our lands. They introduce us to their faith - Buddhism. It is a philosophy of development and self-knowledge, calmness and restraint. The truths of Buddhism are simple: life is suffering, which can be overcome and true happiness can be achieved. The Chinese form of Buddhism also teaches about the possibility of lifelong enlightenment. Some traders are followers of Taoism, which calls for living in harmony with the universe. Those who know about management quote the wisdom of Confucius. It has five parts: humanity, justice and common sense, spontaneity and cultivation. These teachings quickly became popular through monks and nobles, from where they gradually captured the attention of the population. However, a significant part of the population was reluctant to accept the new faith, fearing to anger the gods or dissolve among the newcomers.
    
    action_a = {
        name = "ACTIONNAME3100503A" #We are being enlightened
        command = { type = infra value = 15000 }
        command = { type = trade value = 15000 }
        command = { type = provincereligion which = -2 value = buddhist }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 1 }
    }
}

#(1480-1490) Large Wooden Vessel
event = {
    id = 3100504
    trigger = {
        event = 3100500 #AZT: Arrival from the West
        NOT = { war = { country = AZT country = CHI } } 
    }
    random = no
    country = AZT
    name = "EVENTNAME3100504" #Large Wooden Vessel
    desc = "EVENTHIST3100504"
    #-#We still remember our first encounter with the Chinese, who came to us on sea monsters. In fact, these were large-scale ships that could carry a lot of cargo and people. From what they said, it was clear that these ships were built to confirm China's dominance and to receive gifts from other nations. Now they set about teaching us how to make our own ships, which were immediately recognisable by their brightly coloured paintwork and formidable appearance.
    
    action_a = {
        name = "ACTIONNAME3100504A" #Now we are monsters too
        command = { type = naval value = 25000 }
        command = { type = warships which = -2 value = 3 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 2 }
    }
}

#(1490-1500) The Divine Weapon of Fire
event = {
    id = 3100505
    trigger = {
        event = 3100500 #AZT: Arrival from the West
        NOT = { war = { country = AZT country = CHI } } 
    }
    random = no
    country = AZT
    name = "EVENTNAME3100505" #The Divine Weapon of Fire
    desc = "EVENTHIST3100505"
    #-#Shortly after their arrival, the Chinese brought a thing that was powerful, perhaps terrifying. It produced a trail of fire and smoke. And it fired like none of us had ever done before. Then even the most unbelieving understood who was in front of them. More and more of them came, and they taught us to become like them. It seems that now the Chinese have decided to introduce us to the weapons of long-range combat. With gunpowder, the most perfect creation of the Chinese.
    
    action_a = {
        name = "ACTIONNAME3100505A" #We are fearless
        command = { type = land value = 25000 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 2 }
    }
}

#(1600-1820) Exploration of the World
event = {
    id = 3100506
    trigger = {
        event = 3100500 #AZT: Arrival from the West
        NOT = { war = { country = AZT country = CHI } }     
    }
    random = no
    country = AZT
    name = "EVENTNAME3100506" #Exploration of the World
    desc = "EVENTHIST3100506"
    #-#Since meeting the Chinese, contact with the outside world has been limited to Beijing and Shanghai. Over time, the peoples of East and South Asia learned about Fusong, and from there - in Europe and Africa. Diplomats from Japan, Korea, Malacca and Mataram started to visit us. They were followed by foreign merchants who found it profitable to trade here. Finally, they showed me a map, which, in addition to Fusong, showed previously unknown lands.
    
    date = { day = 0 month = january year = 1600 }
    offset = 5000
    deathdate = { year = 1820 }        
    
    action_a = {
        name = "ACTIONNAME3100506A" #Are we not alone?
        command = { type = discover which = 642 } #Yalu
        command = { type = discover which = 659 } #Guangdong
        command = { type = discover which = 677 } #Malacca
        command = { type = discover which = 685 } #Kanto
        command = { type = discover which = 702 } #Jakarta
    }
}

#-----------------------------------------------------------------------------------------------
#Zapotecs

#(1419-1600) Arrival from the West
event = {
    id = 3100600
    random = no
    country = ZAP
    name = "EVENTNAME3100500" #Arrival from the West
    desc = "EVENTHIST3100500"
    #-#One unremarkable day, a local man noticed a sea monster that resembled one of the mythical creatures. Time passed, and the creature approached the coast, making the locals afraid of the unknown. Eventually, the wooden structure sat down, and out came creatures that looked incredibly like us. Nothing was clear except that these people came from the West. And they could both bring light and plunge into darkness.

    action_a = {
        name = "ACTIONNAME3100500A" #These deities will save us!
        command = { type = relation which = CHI value = 50 }
        command = { type = trade value = 500 }
        command = { type = discover which = 649 } #Hebei
        command = { type = discover which = 653 } #Shanghai        
        command = { }
    }    
    
    action_b = {
        name = "ACTIONNAME3100500B" #Drown in blood
        command = { type = relation which = CHI value = -200 }
        command = { type = casusbelli which = CHI value = 6000 }
        command = { type = sleepevent which = 3100601 } #ZAP: Chinese Influences
        command = { }
    }
}

#(1500-1820) Chinese Influences
event = {
    id = 3100601
    trigger = {
        event = 3100600 #ZAP: Arrival from the West
        NOT = { war = { country = ZAP country = CHI } } 
        religion = pagan
        domestic = { type = innovative value = 5 }
    }
    random = no
    country = ZAP
    name = "EVENTNAME3100501" #Chinese Influences
    desc = "EVENTHIST3100601"
    #-#As contact with Chinese grew, the citizens of the Zapotec began to question their old beliefs and looked toward the ruler for guidance. The lower ranks, followed by some of the nobility, follow Buddhism, encouraged by Chinese merchants. Bureaucrats are fond of Confucianism, which blends in quite easily with local beliefs. This is overlaid with the abundance of gifts and knowledge brought from the West. This cannot but worry the adherents of the old faith. One way or another, if the ruler indicates which way to go, perhaps others will follow.
    
    date = { day = 0 month = january year = 1500 }
    offset = 1800
    deathdate = { year = 1820 }    
    
    action_a = {
        name = "ACTIONNAME3100501A" #Revamp Our Beliefs To Strengthen Our Overseas Ties
        command = { type = religion which = buddhist }
        command = { type = technology which = asian }
        command = { type = provincereligion which = -2 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = domestic which = innovative value = 1 }
        command = { type = stability value = 1 }    
        command = { type = land value = 8000 }
        command = { type = naval value = 8000 }
        command = { type = trade value = 4000 }
        command = { type = infra value = 4000 }
    }
    action_b = {
        name = "ACTIONNAME3100501B" #Confucius' Teachings Will Make Us Human Beings
        command = { type = religion which = confucian }
        command = { type = technology which = asian }
        command = { type = provincereligion which = -2 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = domestic which = innovative value = -1 }
        command = { type = domestic which = centralization value = 1 }
        command = { type = stability value = -1 }
        command = { type = land value = 4000 }
        command = { type = naval value = 4000 }
        command = { type = trade value = 8000 }
        command = { type = infra value = 8000 }            
    }    
    action_c = {
        name = "ACTIONNAME3100501C" #Our Beliefs Are Fine, And Will Not Change
        command = { type = religion which = pagan }
        command = { type = vp value = 30 }
        command = { type = inflation value = -10 }
        command = { type = domestic which = innovative value = -1 }
        command = { type = stability value = 2 }        
    }
}

#(1460-1470) Valuable Imperial Gift
event = {
    id = 3100602
    trigger = {
        event = 3100600 #ZAP: Arrival from the West
        NOT = { war = { country = ZAP country = CHI } } 
    }
    random = no
    country = ZAP
    name = "EVENTNAME3100502" #Valuable Imperial Gift
    desc = "EVENTHIST3100502"
    #-#Boats from the Chinese have arrived on our shores. Their envoys say that they are to produce horses, fast and fearsome creatures. They use them as weapons, vehicles and food. The Chinese have promised to monitor the population and teach us what they know.
    
    action_a = {
        name = "ACTIONNAME3100502A" #Interesting
        command = { type = land value = 25000 }
        command = { type = CAV which = -2 value = 5000 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 1 }
    }
}

#(1470-1480) A New Belief
event = {
    id = 3100603
    trigger = {
        event = 3100600 #ZAP: Arrival from the West
        NOT = { war = { country = ZAP country = CHI } } 
    }
    random = no
    country = ZAP
    name = "EVENTNAME3100503" #A New Belief
    desc = "EVENTHIST3100503"
    #-#With the development of trade, more and more Chinese settle in our lands. They introduce us to their faith - Buddhism. It is a philosophy of development and self-knowledge, calmness and restraint. The truths of Buddhism are simple: life is suffering, which can be overcome and true happiness can be achieved. The Chinese form of Buddhism also teaches about the possibility of lifelong enlightenment. Some traders are followers of Taoism, which calls for living in harmony with the universe. Those who know about management quote the wisdom of Confucius. It has five parts: humanity, justice and common sense, spontaneity and cultivation. These teachings quickly became popular through monks and nobles, from where they gradually captured the attention of the population. However, a significant part of the population was reluctant to accept the new faith, fearing to anger the gods or dissolve among the newcomers.
    
    action_a = {
        name = "ACTIONNAME3100503A" #We are being enlightened
        command = { type = infra value = 15000 }
        command = { type = trade value = 15000 }
        command = { type = provincereligion which = -2 value = buddhist }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 1 }
    }
}

#(1480-1490) Large Wooden Vessel
event = {
    id = 3100604
    trigger = {
        event = 3100600 #ZAP: Arrival from the West
        NOT = { war = { country = ZAP country = CHI } } 
    }
    random = no
    country = ZAP
    name = "EVENTNAME3100504" #Large Wooden Vessel
    desc = "EVENTHIST3100504"
    #-#We still remember our first encounter with the Chinese, who came to us on sea monsters. In fact, these were large-scale ships that could carry a lot of cargo and people. From what they said, it was clear that these ships were built to confirm China's dominance and to receive gifts from other nations. Now they set about teaching us how to make our own ships, which were immediately recognisable by their brightly coloured paintwork and formidable appearance.
    
    action_a = {
        name = "ACTIONNAME3100504A" #Now we are monsters too
        command = { type = naval value = 25000 }
        command = { type = warships which = -2 value = 3 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 2 }
    }
}

#(1490-1500) The Divine Weapon of Fire
event = {
    id = 3100605
    trigger = {
        event = 3100600 #ZAP: Arrival from the West
        NOT = { war = { country = ZAP country = CHI } } 
    }
    random = no
    country = ZAP
    name = "EVENTNAME3100505" #The Divine Weapon of Fire
    desc = "EVENTHIST3100505"
    #-#Shortly after their arrival, the Chinese brought a thing that was powerful, perhaps terrifying. It produced a trail of fire and smoke. And it fired like none of us had ever done before. Then even the most unbelieving understood who was in front of them. More and more of them came, and they taught us to become like them. It seems that now the Chinese have decided to introduce us to the weapons of long-range combat. With gunpowder, the most perfect creation of the Chinese.
    
    action_a = {
        name = "ACTIONNAME3100505A" #We are fearless
        command = { type = land value = 25000 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 2 }
    }
}

#(1600-1820) Exploration of the World
event = {
    id = 3100606
    trigger = {
        event = 3100600 #ZAP: Arrival from the West
        NOT = { war = { country = ZAP country = CHI } }     
    }
    random = no
    country = ZAP
    name = "EVENTNAME3100506" #Exploration of the World
    desc = "EVENTHIST3100506"
    #-#Since meeting the Chinese, contact with the outside world has been limited to Beijing and Shanghai. Over time, the peoples of East and South Asia learned about Fusong, and from there - in Europe and Africa. Diplomats from Japan, Korea, Malacca and Mataram started to visit us. They were followed by foreign merchants who found it profitable to trade here. Finally, they showed me a map, which, in addition to Fusong, showed previously unknown lands.
    
    date = { day = 0 month = january year = 1600 }
    offset = 5000
    deathdate = { year = 1820 }        
    
    action_a = {
        name = "ACTIONNAME3100506A" #Are we not alone?
        command = { type = discover which = 642 } #Yalu
        command = { type = discover which = 659 } #Guangdong
        command = { type = discover which = 677 } #Malacca
        command = { type = discover which = 685 } #Kanto
        command = { type = discover which = 702 } #Jakarta
    }
}

#-----------------------------------------------------------------------------------------------
#Inca Empire

#(1419-1600) Arrival from the West
event = {
    id = 3100700
    random = no
    country = INC
    name = "EVENTNAME3100500" #Arrival from the West
    desc = "EVENTHIST3100500"
    #-#One unremarkable day, a local man noticed a sea monster that resembled one of the mythical creatures. Time passed, and the creature approached the coast, making the locals afraid of the unknown. Eventually, the wooden structure sat down, and out came creatures that looked incredibly like us. Nothing was clear except that these people came from the West. And they could both bring light and plunge into darkness.
    
    action_a = {
        name = "ACTIONNAME3100500A" #These deities will save us!
        command = { type = relation which = CHI value = 50 }
        command = { type = trade value = 500 }
        command = { type = discover which = 649 } #Hebei
        command = { type = discover which = 653 } #Shanghai        
        command = { }
    }    
    
    action_b = {
        name = "ACTIONNAME3100500B" #Drown in blood
        command = { type = relation which = CHI value = -200 }
        command = { type = casusbelli which = CHI value = 6000 }
        command = { type = sleepevent which = 3100701 } #INC: Chinese Influences
        command = { }
    }
}

#(1500-1820) Chinese Influences
event = {
    id = 3100701
    trigger = {
        event = 3100700 #INC: Arrival from the West
        NOT = { war = { country = INC country = CHI } }
        religion = pagan
        domestic = { type = innovative value = 5 }
    }
    random = no
    country = INC
    name = "EVENTNAME3100501" #Chinese Influences
    desc = "EVENTHIST3100501"
    #-#As contact with Chinese grew, the citizens of the Inca Empire began to question their old beliefs and looked toward the emperor for guidance. The lower ranks, followed by some of the nobility, follow Buddhism, encouraged by Chinese merchants. Bureaucrats are fond of Confucianism, which blends in quite easily with local beliefs. This is overlaid with the abundance of gifts and knowledge brought from the West. This cannot but worry the adherents of the old faith. One way or another, if the emperor indicates which way to go, perhaps others will follow.
    
    date = { day = 0 month = january year = 1500 }
    offset = 1800
    deathdate = { year = 1820 }    
    
    action_a = {
        name = "ACTIONNAME3100501A" #Revamp Our Beliefs To Strengthen Our Overseas Ties
        command = { type = religion which = buddhist }
        command = { type = technology which = asian }
        command = { type = provincereligion which = -2 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = domestic which = innovative value = 1 }
        command = { type = stability value = 1 }    
        command = { type = land value = 8000 }
        command = { type = naval value = 8000 }
        command = { type = trade value = 4000 }
        command = { type = infra value = 4000 }
    }
    action_b = {
        name = "ACTIONNAME3100501B" #Confucius' Teachings Will Make Us Human Beings
        command = { type = religion which = confucian }
        command = { type = technology which = asian }
        command = { type = provincereligion which = -2 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = domestic which = innovative value = -1 }
        command = { type = domestic which = centralization value = 1 }
        command = { type = stability value = -1 }    
        command = { type = land value = 4000 }
        command = { type = naval value = 4000 }
        command = { type = trade value = 8000 }
        command = { type = infra value = 8000 }        
    }    
    action_c = {
        name = "ACTIONNAME3100501C" #Our Beliefs Are Fine, And Will Not Change
        command = { type = religion which = pagan }
        command = { type = vp value = 30 }
        command = { type = inflation value = -10 }
        command = { type = domestic which = innovative value = -1 }
        command = { type = stability value = 2 }        
    }
}

#(1460-1470) Valuable Imperial Gift
event = {
    id = 3100702
    trigger = {
        event = 3100700 #INC: Arrival from the West
        NOT = { war = { country = INC country = CHI } } 
    }
    random = no
    country = INC
    name = "EVENTNAME3100502" #Valuable Imperial Gift
    desc = "EVENTHIST3100502"
    #-#Boats from the Chinese have arrived on our shores. Their envoys say that they are to produce horses, fast and fearsome creatures. They use them as weapons, vehicles and food. The Chinese have promised to monitor the population and teach us what they know.
    
    action_a = {
        name = "ACTIONNAME3100502A" #Interesting
        command = { type = land value = 25000 }
        command = { type = CAV which = -2 value = 5000 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 1 }
    }
}

#(1470-1480) A New Belief
event = {
    id = 3100703
    trigger = {
        event = 3100700 #INC: Arrival from the West
        NOT = { war = { country = INC country = CHI } } 
    }
    random = no
    country = INC
    name = "EVENTNAME3100503" #A New Belief
    desc = "EVENTHIST3100503"
    #-#With the development of trade, more and more Chinese settle in our lands. They introduce us to their faith - Buddhism. It is a philosophy of development and self-knowledge, calmness and restraint. The truths of Buddhism are simple: life is suffering, which can be overcome and true happiness can be achieved. The Chinese form of Buddhism also teaches about the possibility of lifelong enlightenment. Some traders are followers of Taoism, which calls for living in harmony with the universe. Those who know about management quote the wisdom of Confucius. It has five parts: humanity, justice and common sense, spontaneity and cultivation. These teachings quickly became popular through monks and nobles, from where they gradually captured the attention of the population. However, a significant part of the population was reluctant to accept the new faith, fearing to anger the gods or dissolve among the newcomers.
    
    action_a = {
        name = "ACTIONNAME3100503A" #We are being enlightened
        command = { type = infra value = 15000 }
        command = { type = trade value = 15000 }
        command = { type = provincereligion which = -2 value = buddhist }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 1 }
    }
}

#(1480-1490) Large Wooden Vessel
event = {
    id = 3100704
    trigger = {
        event = 3100700 #INC: Arrival from the West
        NOT = { war = { country = INC country = CHI } } 
    }
    random = no
    country = INC
    name = "EVENTNAME3100504" #Large Wooden Vessel
    desc = "EVENTHIST3100504"
    #-#We still remember our first encounter with the Chinese, who came to us on sea monsters. In fact, these were large-scale ships that could carry a lot of cargo and people. From what they said, it was clear that these ships were built to confirm China's dominance and to receive gifts from other nations. Now they set about teaching us how to make our own ships, which were immediately recognisable by their brightly coloured paintwork and formidable appearance.
    
    action_a = {
        name = "ACTIONNAME3100504A" #Now we are monsters too
        command = { type = naval value = 25000 }
        command = { type = warships which = -2 value = 3 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 2 }
    }
}

#(1490-1500) The Divine Weapon of Fire
event = {
    id = 3100705
    trigger = {
        event = 3100700 #INC: Arrival from the West
        NOT = { war = { country = INC country = CHI } } 
    }
    random = no
    country = INC
    name = "EVENTNAME3100505" #The Divine Weapon of Fire
    desc = "EVENTHIST3100505"
    #-#Shortly after their arrival, the Chinese brought a thing that was powerful, perhaps terrifying. It produced a trail of fire and smoke. And it fired like none of us had ever done before. Then even the most unbelieving understood who was in front of them. More and more of them came, and they taught us to become like them. It seems that now the Chinese have decided to introduce us to the weapons of long-range combat. With gunpowder, the most perfect creation of the Chinese.
    
    action_a = {
        name = "ACTIONNAME3100505A" #We are fearless
        command = { type = land value = 25000 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 2 }
    }
}

#(1600-1820) Exploration of the World
event = {
    id = 3100706
    trigger = {
        event = 3100700 #INC: Arrival from the West
        NOT = { war = { country = INC country = CHI } }     
    }
    random = no
    country = INC
    name = "EVENTNAME3100506" #Exploration of the World
    desc = "EVENTHIST3100506"
    #-#Since meeting the Chinese, contact with the outside world has been limited to Beijing and Shanghai. Over time, the peoples of East and South Asia learned about Fusong, and from there - in Europe and Africa. Diplomats from Japan, Korea, Malacca and Mataram started to visit us. They were followed by foreign merchants who found it profitable to trade here. Finally, they showed me a map, which, in addition to Fusong, showed previously unknown lands.
    
    date = { day = 0 month = january year = 1600 }
    offset = 5000
    deathdate = { year = 1820 }        
    
    action_a = {
        name = "ACTIONNAME3100506A" #Are we not alone?
        command = { type = discover which = 642 } #Yalu
        command = { type = discover which = 659 } #Guangdong
        command = { type = discover which = 677 } #Malacca
        command = { type = discover which = 685 } #Kanto
        command = { type = discover which = 702 } #Jakarta
    }
}

#-----------------------------------------------------------------------------------------------
#Chimu

#(1419-1600) Arrival from the West
event = {
    id = 3100800
    random = no
    country = CHM
    name = "EVENTNAME3100500" #Arrival from the West
    desc = "EVENTHIST3100500"
    #-#One unremarkable day, a local man noticed a sea monster that resembled one of the mythical creatures. Time passed, and the creature approached the coast, making the locals afraid of the unknown. Eventually, the wooden structure sat down, and out came creatures that looked incredibly like us. Nothing was clear except that these people came from the West. And they could both bring light and plunge into darkness.
    
    action_a = {
        name = "ACTIONNAME3100500A" #These deities will save us!
        command = { type = relation which = CHI value = 50 }
        command = { type = trade value = 500 }
        command = { type = discover which = 649 } #Hebei
        command = { type = discover which = 653 } #Shanghai        
        command = { }
    }    
    
    action_b = {
        name = "ACTIONNAME3100500B" #Drown in blood
        command = { type = relation which = CHI value = -200 }
        command = { type = casusbelli which = CHI value = 6000 }
        command = { type = sleepevent which = 3100801 } #CHM: Chinese Influences
        command = { }
    }
}

#(1500-1820) Chinese Influences
event = {
    id = 3100801
    trigger = {
        event = 3100800 #CHM: Arrival from the West
        NOT = { war = { country = CHM country = CHI } } 
        religion = pagan
        domestic = { type = innovative value = 5 }
    }
    random = no
    country = CHM
    name = "EVENTNAME3100501" #Chinese Influences
    desc = "EVENTHIST3100501"
    #-#As contact with Chinese grew, the citizens of the Chimor began to question their old beliefs and looked toward the ruler for guidance. The lower ranks, followed by some of the nobility, follow Buddhism, encouraged by Chinese merchants. Bureaucrats are fond of Confucianism, which blends in quite easily with local beliefs. This is overlaid with the abundance of gifts and knowledge brought from the West. This cannot but worry the adherents of the old faith. One way or another, if the ruler indicates which way to go, perhaps others will follow.    
    
    date = { day = 0 month = january year = 1500 }
    offset = 1800
    deathdate = { year = 1820 }    
    
    action_a = {
        name = "ACTIONNAME3100501A" #Revamp Our Beliefs To Strengthen Our Overseas Ties
        command = { type = religion which = buddhist }
        command = { type = technology which = asian }
        command = { type = provincereligion which = -2 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = provincereligion which = -4 value = buddhist }
        command = { type = domestic which = innovative value = 1 }
        command = { type = stability value = 1 }    
        command = { type = land value = 8000 }
        command = { type = naval value = 8000 }
        command = { type = trade value = 4000 }
        command = { type = infra value = 4000 }    
    }
    action_b = {
        name = "ACTIONNAME3100501B" #Confucius' Teachings Will Make Us Human Beings
        command = { type = religion which = confucian }
        command = { type = technology which = asian }
        command = { type = provincereligion which = -2 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = provincereligion which = -4 value = confucian }    
        command = { type = domestic which = innovative value = -1 }
        command = { type = domestic which = centralization value = 1 }
        command = { type = stability value = -1 }    
        command = { type = land value = 4000 }
        command = { type = naval value = 4000 }
        command = { type = trade value = 8000 }
        command = { type = infra value = 8000 }            
    }    
    action_c = {
        name = "ACTIONNAME3100501C" #Our Beliefs Are Fine, And Will Not Change
        command = { type = religion which = pagan }
        command = { type = vp value = 30 }
        command = { type = inflation value = -10 }
        command = { type = domestic which = innovative value = -1 }
        command = { type = stability value = 2 }        
    }
}

#(1460-1470) Valuable Imperial Gift
event = {
    id = 3100802
    trigger = {
        event = 3100800 #CHM: Arrival from the West
        NOT = { war = { country = CHM country = CHI } } 
    }
    random = no
    country = CHM
    name = "EVENTNAME3100502" #Valuable Imperial Gift
    desc = "EVENTHIST3100502"
    #-#Boats from the Chinese have arrived on our shores. Their envoys say that they are to produce horses, fast and fearsome creatures. They use them as weapons, vehicles and food. The Chinese have promised to monitor the population and teach us what they know.
    
    action_a = {
        name = "ACTIONNAME3100502A" #Interesting
        command = { type = land value = 25000 }
        command = { type = CAV which = -2 value = 5000 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 1 }
    }
}

#(1470-1480) A New Belief
event = {
    id = 3100803
    trigger = {
        event = 3100800 #CHM: Arrival from the West
        NOT = { war = { country = CHM country = CHI } } 
    }
    random = no
    country = CHM
    name = "EVENTNAME3100503" #A New Belief
    desc = "EVENTHIST3100503"
    #-#With the development of trade, more and more Chinese settle in our lands. They introduce us to their faith - Buddhism. It is a philosophy of development and self-knowledge, calmness and restraint. The truths of Buddhism are simple: life is suffering, which can be overcome and true happiness can be achieved. The Chinese form of Buddhism also teaches about the possibility of lifelong enlightenment. Some traders are followers of Taoism, which calls for living in harmony with the universe. Those who know about management quote the wisdom of Confucius. It has five parts: humanity, justice and common sense, spontaneity and cultivation. These teachings quickly became popular through monks and nobles, from where they gradually captured the attention of the population. However, a significant part of the population was reluctant to accept the new faith, fearing to anger the gods or dissolve among the newcomers.
    
    action_a = {
        name = "ACTIONNAME3100503A" #We are being enlightened
        command = { type = infra value = 15000 }
        command = { type = trade value = 15000 }
        command = { type = provincereligion which = -2 value = buddhist }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 1 }
    }
}

#(1480-1490) Large Wooden Vessel
event = {
    id = 3100804
    trigger = {
        event = 3100800 #CHM: Arrival from the West
        NOT = { war = { country = CHM country = CHI } } 
    }
    random = no
    country = CHM
    name = "EVENTNAME3100504" #Large Wooden Vessel
    desc = "EVENTHIST3100504"
    #-#We still remember our first encounter with the Chinese, who came to us on sea monsters. In fact, these were large-scale ships that could carry a lot of cargo and people. From what they said, it was clear that these ships were built to confirm China's dominance and to receive gifts from other nations. Now they set about teaching us how to make our own ships, which were immediately recognisable by their brightly coloured paintwork and formidable appearance.
    
    action_a = {
        name = "ACTIONNAME3100504A" #Now we are monsters too
        command = { type = naval value = 25000 }
        command = { type = warships which = -2 value = 3 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 2 }
    }
}

#(1490-1500) The Divine Weapon of Fire
event = {
    id = 3100805
    trigger = {
        event = 3100800 #CHM: Arrival from the West
        NOT = { war = { country = CHM country = CHI } } 
    }
    random = no
    country = CHM
    name = "EVENTNAME3100505" #The Divine Weapon of Fire
    desc = "EVENTHIST3100505"
    #-#Shortly after their arrival, the Chinese brought a thing that was powerful, perhaps terrifying. It produced a trail of fire and smoke. And it fired like none of us had ever done before. Then even the most unbelieving understood who was in front of them. More and more of them came, and they taught us to become like them. It seems that now the Chinese have decided to introduce us to the weapons of long-range combat. With gunpowder, the most perfect creation of the Chinese.
    
    action_a = {
        name = "ACTIONNAME3100505A" #We are fearless
        command = { type = land value = 25000 }
        command = { type = relation which = CHI value = 10 }
        command = { type = domestic which = innovative value = 2 }
    }
}

#(1600-1820) Exploration of the World
event = {
    id = 3100806
    trigger = {
        event = 3100800 #CHM: Arrival from the West
        NOT = { war = { country = CHM country = CHI } }     
    }
    random = no
    country = CHM
    name = "EVENTNAME3100506" #Exploration of the World
    desc = "EVENTHIST3100506"
    #-#Since meeting the Chinese, contact with the outside world has been limited to Beijing and Shanghai. Over time, the peoples of East and South Asia learned about Fusong, and from there - in Europe and Africa. Diplomats from Japan, Korea, Malacca and Mataram started to visit us. They were followed by foreign merchants who found it profitable to trade here. Finally, they showed me a map, which, in addition to Fusong, showed previously unknown lands.
    
    date = { day = 0 month = january year = 1600 }
    offset = 5000
    deathdate = { year = 1820 }        
    
    action_a = {
        name = "ACTIONNAME3100506A" #Are we not alone?
        command = { type = discover which = 642 } #Yalu
        command = { type = discover which = 659 } #Guangdong
        command = { type = discover which = 677 } #Malacca
        command = { type = discover which = 685 } #Kanto
        command = { type = discover which = 702 } #Jakarta
    }
}

AI Events:

Code:
#Setup
event = {
    id = 3100995
    trigger = { ai = yes }
    random = no
    country = CHI
    name = "AI_EVENT"
    desc = "Setup"

    date = { year = 1419 }
    deathdate = { year = 1820 }

    action_a = {
        name = "OK"
        command = { type = sleepevent which = 600000 } #CHI: Change to Zeng He AI
        command = { type = sleepevent which = 600004 } #CHI: Change to Ren Zong AI
        command = { type = sleepevent which = 600005 } #CHI: Change to Zeng He AI
    }
}

event = {
    id = 3100996
    trigger = {
        ai = yes
        event = 3100006 #CHI: Fate of the Treasure Fleet
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "AI_EVENT"
    desc = "Setup"

    date = { day = 1 month = april year = 1436 }
    offset = 5
    deathdate = { day = 1 month = november year = 1436 }

    action_a = {
        name = "OK"
        command = { type = ai which = CHI_1436_America.txt }
        command = { type = sleepevent which = 3100997 } #AI change: CHI_1436_YingZong.txt
    }
}

event = {
    id = 3100997
    trigger = {
        ai = yes
        event = 3100006 #CHI: Fate of the Treasure Fleet
        NOT = { flag = [penglai] }
    }
    random = no
    country = CHI
    name = "AI_EVENT"
    desc = "Setup"

    date = { day = 1 month = april year = 1436 }
    offset = 5
    deathdate = { day = 1 month = november year = 1436 }

    action_a = {
        name = "OK"
        command = { type = ai which = CHI_1436_YingZong.txt }
        command = { type = sleepevent which = 3100996 } #AI change: CHI_1436_America.txt
    }
}

event = {
    id = 3100998
    trigger = {
        ai = yes
        event = 3100011 #CHI: The greatness of Fusong
        flag = [penglai]
    }
    random = no
    country = CHI
    name = "AI_EVENT"
    desc = "Setup"

    date = { day = 1 month = april year = 1536 }
    offset = 5
    deathdate = { day = 1 month = november year = 1536 }

    action_a = {
        name = "OK"
        command = { type = ai which = CHI_1536_America.txt }
        command = { type = sleepevent which = 3100999 } #AI change: CHI_1525_Perfectionist.txt
    }
}

event = {
    id = 3100999
    trigger = {
        ai = yes
        event = 3100011 #CHI: The greatness of Fusong
        NOT = { flag = [penglai] }
    }
    random = no
    country = CHI
    name = "AI_EVENT"
    desc = "Setup"

    date = { day = 1 month = april year = 1536 }
    offset = 5
    deathdate = { day = 1 month = november year = 1536 }

    action_a = {
        name = "OK"
        command = { type = ai which = CHI_1525_Perfectionist.txt }
        command = { type = sleepevent which = 3100998 } #AI change: CHI_1536_America.txt
    }
}