Ownership of the province is then the most precise condition.sturmvogel said:Then adding a exists = U14 trigger will fix that bug, right?
Thanks in advance.sturmvogel said:OK, I'll try to remember next time.
Ownership of the province is then the most precise condition.sturmvogel said:Then adding a exists = U14 trigger will fix that bug, right?
Thanks in advance.sturmvogel said:OK, I'll try to remember next time.
That won't work since it's a capital. This is the exact same situation as I used for the revised 260062.YodaMaster said:Ownership of the province is then the most precise condition.![]()
#Russia acccepts - Version 1
event = {
id = 3705 #triggered by RUS_3421 A
random = no
country = CHI
name = "EVENTNAME3705" #The Treaty of Nerchiinsk
desc = "EVENTHIST3705"
#-#
action_a = {
name = "ACTIONNAME3705A" #Our Victory has been acknowledged
command = { type = vp value = 30 }
command = { type = land value = 2000 }
command = { type = trade value = 500 }
command = { type = relation which = RUS value = 250 }
command = { type = stability value = 2 }
command = { type = secedeprovince which = RUS value = 602 } #Selenga
command = { type = secedeprovince which = RUS value = 603 } #Ulan Ude
command = { type = secedeprovince which = RUS value = 604 } #Buriat
command = { type = secedeprovince which = RUS value = 605 } #Tchita
command = { type = secedeprovince which = RUS value = 606 } #Kalakan
command = { type = secedeprovince which = RUS value = 607 } #Sretensk
command = { type = secedeprovince which = RUS value = 608 } #Kalar
command = { type = secedeprovince which = RUS value = 609 } #Mogotcha
command = { type = secedeprovince which = RUS value = 610 } #Djagdi
command = { type = addcore which = 623 } #Tchumkan
command = { type = addcore which = 624 } #Amgoun
command = { type = addcore which = 629 } #Tchekunda
command = { type = addcore which = 630 } #Boureia
command = { type = addcore which = 631 } #Ekimcan
command = { type = addcore which = 632 } #Nerchiinsk
command = { type = addcore which = 633 } #Norsk
command = { type = addcore which = 1467 } #Nagorje
command = { type = addcore which = 1468 } #Khretset
command = { type = addcore which = 611 } #Chilka
[COLOR=Yellow]command = { type = addcore which = 625 } #Bogorodsk
command = { type = addcore which = 626 } #Vanin
command = { type = addcore which = 627 } #Sofiisk
command = { type = addcore which = 628 } #Amour
command = { type = addcore which = 634 } #Birobidjan
#Manchus lands (if Ming dynasty)
command = { type = addcore which = 635 } #Heilongjiang
command = { type = addcore which = 636 } #Viazemski
command = { type = addcore which = 637 } #Sikhote
command = { type = addcore which = 638 } #Nelma
command = { type = addcore which = 639 } #Olga
command = { type = addcore which = 640 } #Nakhodka
command = { type = addcore which = 643 } #Jilin
command = { type = addcore which = 644 } #Baicheng
command = { type = addcore which = 645 } #Jehol
command = { type = addcore which = 646 } #Liaotung[/COLOR]
}
}
#Russia accepts - Version 2/3
event = {
id = 21655 #triggered by RUS_21653 A / RUS_21654 B
random = no
country = CHI
name = "EVENTNAME3705" #The Treaty of Nerchiinsk
desc = "EVENTHIST21655"
#-#
action_a = {
name = "ACTIONNAME3705A" #Our Victory has been acknowledged
command = { type = vp value = 30 }
command = { type = land value = 2000 }
command = { type = trade value = 500 }
command = { type = relation which = RUS value = 250 }
command = { type = stability value = 2 }
command = { type = secedeprovince which = RUS value = 602 } #Selenga
command = { type = secedeprovince which = RUS value = 603 } #Ulan Ude
command = { type = secedeprovince which = RUS value = 604 } #Buriat
command = { type = secedeprovince which = RUS value = 605 } #Tchita
command = { type = secedeprovince which = RUS value = 606 } #Kalakan
command = { type = secedeprovince which = RUS value = 607 } #Sretensk
command = { type = secedeprovince which = RUS value = 608 } #Kalar
command = { type = secedeprovince which = RUS value = 609 } #Mogotcha
command = { type = secedeprovince which = RUS value = 610 } #Djagdi
command = { type = secedeprovince which = RUS value = 612 } #Stanovoe
command = { type = secedeprovince which = RUS value = 613 } #Baladok
command = { type = secedeprovince which = RUS value = 614 } #Djugdjur
command = { type = secedeprovince which = RUS value = 615 } #Enkan
command = { type = secedeprovince which = RUS value = 616 } #Okhotsk
command = { type = secedeprovince which = RUS value = 617 } #Magadan
command = { type = addcore which = 623 } #Tchumkan
command = { type = addcore which = 624 } #Amgoun
command = { type = addcore which = 629 } #Tchekunda
command = { type = addcore which = 630 } #Boureia
command = { type = addcore which = 631 } #Ekimcan
command = { type = addcore which = 632 } #Nerchiinsk
command = { type = addcore which = 633 } #Norsk
command = { type = addcore which = 1467 } #Nagorje
command = { type = addcore which = 1468 } #Khretset
command = { type = addcore which = 611 } #Chilka
[COLOR=Yellow]command = { type = addcore which = 625 } #Bogorodsk
command = { type = addcore which = 626 } #Vanin
command = { type = addcore which = 627 } #Sofiisk
command = { type = addcore which = 628 } #Amour
command = { type = addcore which = 634 } #Birobidjan
#Manchus lands (if Ming dynasty)
command = { type = addcore which = 635 } #Heilongjiang
command = { type = addcore which = 636 } #Viazemski
command = { type = addcore which = 637 } #Sikhote
command = { type = addcore which = 638 } #Nelma
command = { type = addcore which = 639 } #Olga
command = { type = addcore which = 640 } #Nakhodka
command = { type = addcore which = 643 } #Jilin
command = { type = addcore which = 644 } #Baicheng
command = { type = addcore which = 645 } #Jehol
command = { type = addcore which = 646 } #Liaotung[/COLOR]
}
}
#Russia refuses
event = {
id = 3793 #triggered by RUS_3421 B / RUS_21653 B / RUS_21654 A
random = no
country = CHI
name = "EVENTNAME3793" #The Treaty of Nerchiinsk
desc = "EVENTHIST3793"
#-#
action_a = {
name = "ACTIONNAME3793A" #Exterminate these Rude Barbarians
command = { type = casusbelli which = RUS value = 1200 }
command = { type = manpower value = 30 }
command = { type = INF which = 634 value = 10000 } #Birobidjan
command = { type = CAV which = 634 value = 3000 } #Birobidjan
command = { type = treasury value = -150 }
command = { type = stability value = 1 }
command = { type = war which = RUS }
command = { type = addcore which = 609 } #Mogotcha
command = { type = addcore which = 611 } #Chilka
command = { type = addcore which = 623 } #Tchumkan
command = { type = addcore which = 624 } #Amgoun
command = { type = addcore which = 629 } #Tchekunda
command = { type = addcore which = 630 } #Boureia
command = { type = addcore which = 631 } #Ekimcan
command = { type = addcore which = 632 } #Nerchiinsk
command = { type = addcore which = 633 } #Norsk
command = { type = addcore which = 1467 } #Nagorje
command = { type = addcore which = 1468 } #Khretset
command = { type = addcore which = 603 } #Ulan Ude
command = { type = addcore which = 605 } #Tchita
command = { type = addcore which = 607 } #Sretensk
command = { type = addcore which = 608 } #Kalar
command = { type = addcore which = 610 } #Djagdi
command = { type = addcore which = 612 } #Stanovoe
command = { type = addcore which = 613 } #Baladok
command = { type = addcore which = 614 } #Djugdjur
command = { type = addcore which = 615 } #Enkan
[COLOR=Yellow]command = { type = addcore which = 625 } #Bogorodsk
command = { type = addcore which = 626 } #Vanin
command = { type = addcore which = 627 } #Sofiisk
command = { type = addcore which = 628 } #Amour
command = { type = addcore which = 634 } #Birobidjan
#Manchus lands (if Ming dynasty)
command = { type = addcore which = 635 } #Heilongjiang
command = { type = addcore which = 636 } #Viazemski
command = { type = addcore which = 637 } #Sikhote
command = { type = addcore which = 638 } #Nelma
command = { type = addcore which = 639 } #Olga
command = { type = addcore which = 640 } #Nakhodka
command = { type = addcore which = 643 } #Jilin
command = { type = addcore which = 644 } #Baicheng
command = { type = addcore which = 645 } #Jehol
command = { type = addcore which = 646 } #Liaotung[/COLOR]
}
}
NOT = {
[COLOR=Yellow]exists = MCH[/COLOR]
war = { country = RUS country = CHI }
}
#(1633-1820) The Imperial Throne
event = {
id = 315007 #triggered by U14_317014
random = no
country = U12
name = "EVENTNAME315003" #The Imperial Throne
desc = "EVENTHIST315003"
#-#
action_a = {
name = "ACTIONNAME315003A" #Long live the Emperor!
command = { type = inherit which = U14 }
command = { type = stability value = 1 }
command = { type = capital which = 649 } #Hebei
command = { type = addcore which = 646 } #Liaotung
command = { type = addcore which = 647 } #Liaoning
command = { type = addcore which = 648 } #Hepei
command = { type = addcore which = 649 } #Hebei
command = { type = addcore which = 650 } #Shandong
command = { type = addcore which = 651 } #Jinan
command = { type = addcore which = 652 } #Jiangsu
command = { type = addcore which = 653 } #Shanghai
command = { type = addcore which = 654 } #Anhui
command = { type = addcore which = 655 } #Zhejiang
command = { type = addcore which = 656 } #Fujian
command = { type = addcore which = 657 } #Kowloon
command = { type = addcore which = 658 } #Guangzhou
command = { type = addcore which = 659 } #Guangdong
command = { type = addcore which = 660 } #Hainan
command = { type = addcore which = 661 } #Guangxi
command = { type = addcore which = 1553 } #Yunnan
command = { type = addcore which = 1555 } #Wenshan
command = { type = addcore which = 1556 } #Guizhou
command = { type = addcore which = 1557 } #Sichuan Pendi
command = { type = addcore which = 1558 } #Lanzhou
command = { type = addcore which = 1559 } #Xining
command = { type = addcore which = 1560 } #Ningxia
command = { type = addcore which = 1561 } #Hohhot
command = { type = addcore which = 1562 } #Shanxi
command = { type = addcore which = 1563 } #Shaanxi
command = { type = addcore which = 1564 } #Henan
command = { type = addcore which = 1565 } #Hubei
command = { type = addcore which = 1566 } #Hunan
command = { type = addcore which = 1567 } #Nanchang
command = { type = addcore which = 1608 } #Qilian Pendi
[COLOR=Red]command = { type = flagname which = "" }
command = { type = country which = CHI }[/COLOR]
command = { type = add_countryculture which = cantonese }
command = { type = sleepevent which = 315004 } #U12: Claiming the Imperial Throne
[COLOR=Yellow]command = { type = trigger which = 315005 } #U12: A new dynasty for China[/COLOR]
}
}
#(1633-1820) A new dynasty for China
event = {
id = 315005 #triggered by U12_315007
random = no
country = U12
name = "EVENTNAME221010" #A new dynasty for China
desc = "EVENTHIST315003"
#-#
action_a = {
name = "ACTIONNAME315003A" #Long live the Emperor!
command = { type = flagname which = "" }
command = { type = country which = CHI }
}
}
#(1634-1820) The Imperial Throne
event = {
id = 314007 #triggered by U14_317013
random = no
country = U11
name = "EVENTNAME314003" #The Imperial Throne
desc = "EVENTHIST314003"
#-#
action_a = {
name = "ACTIONNAME314003A" #Long live the Emperor!
command = { type = inherit which = U14 }
command = { type = stability value = 1 }
command = { type = capital which = 649 } #Hebei
command = { type = addcore which = 646 } #Liaotung
command = { type = addcore which = 647 } #Liaoning
command = { type = addcore which = 648 } #Hepei
command = { type = addcore which = 649 } #Hebei
command = { type = addcore which = 650 } #Shandong
command = { type = addcore which = 651 } #Jinan
command = { type = addcore which = 652 } #Jiangsu
command = { type = addcore which = 653 } #Shanghai
command = { type = addcore which = 654 } #Anhui
command = { type = addcore which = 655 } #Zhejiang
command = { type = addcore which = 656 } #Fujian
command = { type = addcore which = 657 } #Kowloon
command = { type = addcore which = 658 } #Guangzhou
command = { type = addcore which = 659 } #Guangdong
command = { type = addcore which = 660 } #Hainan
command = { type = addcore which = 661 } #Guangxi
command = { type = addcore which = 1553 } #Yunnan
command = { type = addcore which = 1555 } #Wenshan
command = { type = addcore which = 1556 } #Guizhou
command = { type = addcore which = 1557 } #Sichuan Pendi
command = { type = addcore which = 1558 } #Lanzhou
command = { type = addcore which = 1559 } #Xining
command = { type = addcore which = 1560 } #Ningxia
command = { type = addcore which = 1561 } #Hohhot
command = { type = addcore which = 1562 } #Shanxi
command = { type = addcore which = 1563 } #Shaanxi
command = { type = addcore which = 1564 } #Henan
command = { type = addcore which = 1565 } #Hubei
command = { type = addcore which = 1566 } #Hunan
command = { type = addcore which = 1567 } #Nanchang
command = { type = addcore which = 1608 } #Qilian Pendi
[COLOR=Red]command = { type = flagname which = "" }
command = { type = country which = CHI }[/COLOR]
command = { type = add_countryculture which = cantonese }
command = { type = sleepevent which = 314004 } #U11: The Imperial Throne
[COLOR=Yellow]command = { type = trigger which = 314005 } #U11: A new dynasty for China[/COLOR]
}
}
#(1634-1820) A new dynasty for China
event = {
id = 314005 #triggered by U11_314007
random = no
country = U11
name = "EVENTNAME221010" #A new dynasty for China
desc = "EVENTHIST314003"
#-#
action_a = {
name = "ACTIONNAME314003A" #Long live the Emperor!
command = { type = flagname which = "" }
command = { type = country which = CHI }
}
}
#(1644-1820) The Imperial Throne
event = {
id = 204018 #triggered by U14_317015
random = no
country = KOR
name = "EVENTNAME204001" #The Imperial Throne
desc = "EVENTHIST204001"
#-#
action_a = {
name = "ACTIONNAME204001A" #Long live the Emperor!
command = { type = inherit which = U14 }
command = { type = stability value = 1 }
command = { type = capital which = 649 } #Hebei
command = { type = addcore which = 646 } #Liaotung
command = { type = addcore which = 647 } #Liaoning
command = { type = addcore which = 648 } #Hepei
command = { type = addcore which = 649 } #Hebei
command = { type = addcore which = 650 } #Shandong
command = { type = addcore which = 651 } #Jinan
command = { type = addcore which = 652 } #Jiangsu
command = { type = addcore which = 653 } #Shanghai
command = { type = addcore which = 654 } #Anhui
command = { type = addcore which = 655 } #Zhejiang
command = { type = addcore which = 656 } #Fujian
command = { type = addcore which = 657 } #Kowloon
command = { type = addcore which = 658 } #Guangzhou
command = { type = addcore which = 659 } #Guangdong
command = { type = addcore which = 660 } #Hainan
command = { type = addcore which = 661 } #Guangxi
command = { type = addcore which = 1553 } #Yunnan
command = { type = addcore which = 1555 } #Wenshan
command = { type = addcore which = 1556 } #Guizhou
command = { type = addcore which = 1557 } #Sichuan Pendi
command = { type = addcore which = 1558 } #Lanzhou
command = { type = addcore which = 1559 } #Xining
command = { type = addcore which = 1560 } #Ningxia
command = { type = addcore which = 1561 } #Hohhot
command = { type = addcore which = 1562 } #Shanxi
command = { type = addcore which = 1563 } #Shaanxi
command = { type = addcore which = 1564 } #Henan
command = { type = addcore which = 1565 } #Hubei
command = { type = addcore which = 1566 } #Hunan
command = { type = addcore which = 1567 } #Nanchang
command = { type = addcore which = 1608 } #Qilian Pendi
[COLOR=Red]command = { type = flagname which = "" }
command = { type = country which = CHI }[/COLOR]
command = { type = sleepevent which = 204002 } #KOR: Claiming the Imperial Throne
[COLOR=Red]command = { type = trigger which = 147132 } #CHI: A Korean dynasty for China[/COLOR]
[COLOR=Yellow]command = { type = trigger which = 204020 } #KOR: A new dynasty for China[/COLOR]
}
}
#(1644-1820) A new dynasty for China
event = {
id = 204020 #triggered by KOR_204018
random = no
country = KOR
name = "EVENTNAME221010" #A new dynasty for China
desc = "EVENTHIST204001"
#-#
action_a = {
name = "ACTIONNAME204001A" #Long live the Emperor!
command = { type = flagname which = "" }
command = { type = country which = CHI }
command = { type = trigger which = 147132 } #CHI: A Korean dynasty for China
}
}
#(1644-1820) The Imperial Throne
event = {
id = 221008 #triggered by U14_317012
random = no
country = MCH
name = "EVENTNAME221001" #The Imperial Throne
desc = "EVENTHIST221001"
#-#
action_a = {
name = "ACTIONNAME221001A" #Long live the Emperor!
command = { type = inherit which = U14 }
command = { type = stability value = 1 }
command = { type = capital which = 649 } #Hebei
command = { type = addcore which = 646 } #Liaotung
command = { type = addcore which = 647 } #Liaoning
command = { type = addcore which = 648 } #Hepei
command = { type = addcore which = 649 } #Hebei
command = { type = addcore which = 650 } #Shandong
command = { type = addcore which = 651 } #Jinan
command = { type = addcore which = 652 } #Jiangsu
command = { type = addcore which = 653 } #Shanghai
command = { type = addcore which = 654 } #Anhui
command = { type = addcore which = 655 } #Zhejiang
command = { type = addcore which = 656 } #Fujian
command = { type = addcore which = 657 } #Kowloon
command = { type = addcore which = 658 } #Guangzhou
command = { type = addcore which = 659 } #Guangdong
command = { type = addcore which = 660 } #Hainan
command = { type = addcore which = 661 } #Guangxi
command = { type = addcore which = 1553 } #Yunnan
command = { type = addcore which = 1555 } #Wenshan
command = { type = addcore which = 1556 } #Guizhou
command = { type = addcore which = 1557 } #Sichuan Pendi
command = { type = addcore which = 1558 } #Lanzhou
command = { type = addcore which = 1559 } #Xining
command = { type = addcore which = 1560 } #Ningxia
command = { type = addcore which = 1561 } #Hohhot
command = { type = addcore which = 1562 } #Shanxi
command = { type = addcore which = 1563 } #Shaanxi
command = { type = addcore which = 1564 } #Henan
command = { type = addcore which = 1565 } #Hubei
command = { type = addcore which = 1566 } #Hunan
command = { type = addcore which = 1567 } #Nanchang
command = { type = addcore which = 1608 } #Qilian Pendi
[COLOR=Red]command = { type = flagname which = "" }
command = { type = country which = CHI }
command = { type = flagname which = "Manchu" }[/COLOR]
command = { type = add_countryculture which = chihan }
command = { type = add_countryculture which = cantonese }
[COLOR=Red]command = { type = wakeleader which = 032326 } #Shi Lang (CHI)[/COLOR]
command = { type = sleepevent which = 221002 } #MCH: Claiming the Imperial Throne
[COLOR=Yellow]command = { type = trigger which = 221010 } #MCH: A new dynasty for China[/COLOR]
}
}
#(1644-1820) A new dynasty for China
event = {
id = 221010 #triggered by MCH_221008
random = no
country = MCH
name = "EVENTNAME221010" #A new dynasty for China
desc = "EVENTHIST221001"
#-#
action_a = {
name = "ACTIONNAME221001A" #Long live the Emperor!
command = { type = flagname which = "" }
command = { type = country which = CHI }
command = { type = flagname which = "Manchu" }
command = { type = trigger which = 147135 } #CHI: The Qing dynasty in China
}
}
#(1644-1820) The Qing dynasty in China
event = {
id = 147135 #triggered by MCH_221001 / MCH_221010 / MCH_10024 A / MCH_221002
random = no
country = CHI
name = "EVENTNAME147135" #The Qing dynasty in China
desc = "EVENTHIST221001"
#-#
action_a = {
name = "ACTIONNAME147132A" #We are China!
command = { type = wakeleader which = 032326 } #Shi Lang (CHI)
command = { }
}
}
command = { type = wakeleader which = 032326 } #Shi Lang (CHI)
command = { type = trigger which = 147135 } #CHI: The Qing dynasty in China
NOT = { countrysize = 13 }
AND = {
NOT = { countrysize = 13 }
ai = yes
}
countrysize = 13
OR = {
countrysize = 13
ai = no
}
In the AGCEEP mentioned Specific files: Da Xi, Da Shun, Manchus and Korea + China for 147135 and reworked countrysize conditions. Or wait for next 1.56 beta.Aleppo said:Haw and where paste it???
command = { type = secedeprovince which = KOR value = 641 } #Kyongju
command = { type = secedeprovince which = KOR value = 642 } #Yalu
#(1700-1820) Peace returns to China
event = {
id = 147131
trigger = {
NOT = {
exists = MCH
exists = U11
exists = U12
exists = U13
exists = U14
}
[COLOR=Yellow]owned = { province = 649 data = -1 } #Hebei
control = { province = 649 data = -1 } #Hebei[/COLOR]
}
random = no
country = CHI
name = "EVENTNAME147131" #Peace returns to China
desc = "EVENTHIST147131"
#-#
date = { day = 1 month = january year = 1700 }
offset = 30
deathdate = { year = 1820 }
action_a = {
name = "GOOD"
command = { type = stability value = 2 }
command = { type = capital which = 649 } #Hebei
}
}
historicalleader = {
id = { type = 6 id = 0147800 }
category = admiral
name = "Koxinga"
startdate = {
year = 1650
}
deathdate = {
day = 23
month = august
year = 1662
}
rank = 3
movement = 5
fire = 3
shock = 3
siege = 0
dormant = [COLOR=Red]no[/COLOR][COLOR=Yellow]yes #always woken if not already in service for Ming China[/COLOR]
remark = "The infamous pirate and Ming heir."
}
#(1650-1662) Koxinga in Ming service
#by sturmvogel
event = {
id = 317020
random = no
country = U14
name = "EVENTNAME147059" #Koxinga in Ming service
desc = "EVENTHIST147059"
#-#
date = { day = 1 month = january year = 1650 }
offset = 0
deathdate = { day = 23 month = august year = 1662 }
action_a = {
name = "OK"
command = { type = wakeleader which = 0147800 } #Koxinga (U14)
command = { type = sleepevent which = 147059 } #CHI: Koxinga in Ming service
}
}
#(1650-1662) Koxinga in Ming service
#by sturmvogel
event = {
id = 147059
trigger = {
exists = MCH
NOT = { exists = U14 }
monarch = 032023 #Zhu You Lang (Yong Li) °
}
random = no
country = CHI
name = "EVENTNAME147059" #Koxinga in Ming service
desc = "EVENTHIST147059"
#-#
date = { day = 1 month = january year = 1650 }
offset = 0
deathdate = { day = 23 month = august year = 1662 }
action_a = {
name = "OK"
command = { type = wakeleader which = 032315 } #Koxinga (CHI)
[COLOR=Yellow]command = { type = sleepevent which = 317020 } #U14: Koxinga in Ming service[/COLOR]
}
}
When 1.56 will be done?YodaMaster said:In the AGCEEP mentioned Specific files: Da Xi, Da Shun, Manchus and Korea + China for 147135 and reworked countrysize conditions. Or wait for next 1.56 beta.
historicalleader = {
id = { type = 6 id = 0107301 }
category = privateer
name = [COLOR=Yellow]"Koxinga"[/COLOR] [COLOR=Red]"Kunxiga"[/COLOR]
startdate = {
year = 1600
}
deathdate = {
year = 1650
}
location = 1085 #Taiwan Strait
rank = 25
movement = 6
fire = 1
shock = 4
siege = 0
remark = "China Sea"
}
ptan54 said:I would argue MCH => CHI to take place at the total destruction of all the other claimants on the Mainland. Koxinga and co's little operation based on Taiwan didn't attract much attention as "official regime of China". Long before 1683 most people in China had accepted the Qing as the legitimate regime, with the disturbances taking place mainly in the south.
Pursuant to the monarchs until 1820 idea for all the claimants, we need to have all these alternate monarchs loaded in the CHI monarch file. Depending on who becomes China, the other monarchs get slept and the winner's dynastic line is activated.