#################################### # Japan #################################### # Air AI Flags # JAPAirAINaval = Naval Priority for bombardment # JAPAirAIGround = Ground support is a priority # Misc. Flags # ChinaBackoff = Backoff from his attack on China # ChinaBackoffSiam = Backoff from his attack on China # Pacific War Flags # JAPStandardPacific = Standard Pacific War AI # JAPInvadePHI = Invade the Phillipenese # JAPInvadeNEPacific = Invade the North East side of the Pacific # JAPInvadeNEI = Invade the Netherlands East Indies and Singapore # JAPInvadeNewGuinea = Invade New Guinea # Homeland Defense Flags # JAPHomeland = Homeland under attack # Unit building AI # JAPBuildStandard = Standard Building of units # JAPBuildLand = Priority Building land units #################################### ################ # Chinese Invasion AI ############################################# event = { id = 3011001 random = no country = JAP trigger = { ai = yes war = { country = CHI } not = { war = { country = USA } } not = { war = { country = SOV } } not = { war = { country = ENG } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = ai which = "switch/JAP_China.ai" } } } ################ # Japan Air AI Naval portion ############################################# event = { id = 3011014 random = no country = JAP persistent = yes trigger = { ai = yes atwar = yes NOT = { local_flag = JAPAirAINaval } NOT = { lost_national = { country = JAP value = 2 } } OR = { war = { country = USA } war = { country = PHI } war = { country = U05 } war = { country = ENG } war = { country = FRA } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_setflag which = JAPAirAINaval } command = { type = local_clrflag which = JAPAirAIGround } command = { type = ai which = "switch/JAP_Air_Naval.ai" } } } ################ # Japanese Air AI Ground portion ############################################# event = { id = 3011015 random = no country = JAP persistent = yes trigger = { ai = yes atwar = yes NOT = { local_flag = JAPAirAIGround } OR = { lost_national = { country = JAP value = 2 } war = { country = CHI } war = { country = CGX } war = { country = CSX } war = { country = CHC } war = { country = CYN } war = { country = SOV } } NOT = { war = { country = USA } war = { country = PHI } war = { country = U05 } war = { country = ENG } war = { country = FRA } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_clrflag which = JAPAirAINaval } command = { type = local_setflag which = JAPAirAIGround } command = { type = ai which = "switch/JAP_Air_Ground.ai" } } } ################ # Pacific War Flags # JAPStandardPacific = Standard Pacific War AI # JAPInvadePHI = Invade the Phillipenese # JAPInvadeNEI = Invade the Netherlands East Indies and Singapore # JAPInvadeNEPacific = Invade the North East side of the Pacific # JAPInvadeNewGuinea = Invade New Guinea ################ # Japanese Pacific War AIs JAPInvadePHI ############################################# event = { id = 3011016 random = no country = JAP persistent = yes trigger = { ai = yes NOT = { local_flag = JAPInvadePHI } NOT = { local_flag = JAPHomeland } NOT = { garrison = { country = PHI province = 1579 type = land size = 20 area = yes } } # Davao NOT = { garrison = { country = USA province = 1579 type = land size = 20 area = yes } } # Davao OR = { # Philippines AND = { war = { country = PHI } NOT = { lost_national = { country = PHI value = 60 } } } AND = { owned = { province = 1572 data = -3 } # Palawan NOT = { control = { province = 1572 data = -3 } } # Palawan } AND = { owned = { province = 1571 data = -3 } # Mindoro NOT = { control = { province = 1571 data = -3 } } # Mindoro } AND = { owned = { province = 1575 data = -3 } # Samar NOT = { control = { province = 1575 data = -3 } } # Samar } AND = { owned = { province = 1573 data = -3 } # Palawan NOT = { control = { province = 1573 data = -3 } } # Leyte } AND = { owned = { province = 1578 data = -3 } # Cagayan NOT = { control = { province = 1578 data = -3 } } # Cagayan } AND = { owned = { province = 1574 data = -3 } # Negros NOT = { control = { province = 1574 data = -3 } } # Bacolod } AND = { owned = { province = 1579 data = -3 } # Davos NOT = { control = { province = 1579 data = -3 } } # Davos } AND = { owned = { province = 1576 data = -3 } # Panay NOT = { control = { province = 1576 data = -3 } } # Panay } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_setflag which = JAPInvadePHI } command = { type = local_clrflag which = JAPInvadeNEI } command = { type = local_clrflag which = JAPInvadeNEPacific } command = { type = local_clrflag which = JAPInvadeNewGuinea } command = { type = local_clrflag which = JAPStandardPacific } command = { type = ai which = "switch/JAP_Naval_PHI.ai" } } } ################ # Japanese Pacific War AIs JAPInvadeNEI ############################################# event = { id = 3011017 random = no country = JAP persistent = yes trigger = { ai = yes NOT = { local_flag = JAPInvadeNEI } NOT = { local_flag = JAPHomeland } OR = { garrison = { country = USA province = 1579 type = land size = 20 area = yes } # Davao garrison = { country = PHI province = 1579 type = land size = 20 area = yes } # Davao NOT = { # Philippines AND = { war = { country = PHI } NOT = { lost_national = { country = PHI value = 60 } } } AND = { owned = { province = 1572 data = -3 } # Palawan NOT = { control = { province = 1572 data = -3 } } # Palawan } AND = { owned = { province = 1571 data = -3 } # Mindoro NOT = { control = { province = 1571 data = -3 } } # Mindoro } AND = { owned = { province = 1575 data = -3 } # Samar NOT = { control = { province = 1575 data = -3 } } # Samar } AND = { owned = { province = 1573 data = -3 } # Palawan NOT = { control = { province = 1573 data = -3 } } # Leyte } AND = { owned = { province = 1578 data = -3 } # Cagayan NOT = { control = { province = 1578 data = -3 } } # Cagayan } AND = { owned = { province = 1574 data = -3 } # Negros NOT = { control = { province = 1574 data = -3 } } # Bacolod } AND = { owned = { province = 1579 data = -3 } # Davos NOT = { control = { province = 1579 data = -3 } } # Davos } AND = { owned = { province = 1576 data = -3 } # Panay NOT = { control = { province = 1576 data = -3 } } # Panay } } } OR = { AND = { war = { country = U05 } NOT = { control = { province = 1648 data = -3 } } #Dutch harbor provs? NOT = { control = { province = 1653 data = -3 } } NOT = { control = { province = 1638 data = -3 } } NOT = { garrison = { country = U05 province = 1648 type = land size = 10 area = yes } } NOT = { garrison = { country = U05 province = 1653 type = land size = 10 area = yes } } NOT = { garrison = { country = U05 province = 1638 type = land size = 10 area = yes } } } AND = { war = { country = ENG } NOT = { control = { province = 1508 data = -3 } } NOT = { garrison = { country = ENG province = 1508 type = land size = 10 area = yes } } # Singapore } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_clrflag which = JAPInvadePHI } command = { type = local_setflag which = JAPInvadeNEI } command = { type = local_clrflag which = JAPInvadeNEPacific } command = { type = local_clrflag which = JAPInvadeNewGuinea } command = { type = local_clrflag which = JAPStandardPacific } command = { type = ai which = "switch/JAP_Naval_NEI.ai" } } } ################ # Japanese Pacific War AIs JAPInvadeNEPacific ############################################# event = { id = 3011018 random = no country = JAP persistent = yes trigger = { ai = yes NOT = { local_flag = JAPInvadeNEPacific } NOT = { local_flag = JAPHomeland } OR = { garrison = { country = USA province = 1579 type = land size = 20 area = yes } # Davao garrison = { country = PHI province = 1579 type = land size = 20 area = yes } # Davao NOT = { # Philippines AND = { war = { country = PHI } NOT = { lost_national = { country = PHI value = 60 } } } AND = { owned = { province = 1572 data = -3 } # Palawan NOT = { control = { province = 1572 data = -3 } } # Palawan } AND = { owned = { province = 1571 data = -3 } # Mindoro NOT = { control = { province = 1571 data = -3 } } # Mindoro } AND = { owned = { province = 1575 data = -3 } # Samar NOT = { control = { province = 1575 data = -3 } } # Samar } AND = { owned = { province = 1573 data = -3 } # Palawan NOT = { control = { province = 1573 data = -3 } } # Leyte } AND = { owned = { province = 1578 data = -3 } # Cagayan NOT = { control = { province = 1578 data = -3 } } # Cagayan } AND = { owned = { province = 1574 data = -3 } # Negros NOT = { control = { province = 1574 data = -3 } } # Negros } AND = { owned = { province = 1579 data = -3 } # Davos NOT = { control = { province = 1579 data = -3 } } # Davos } AND = { owned = { province = 1576 data = -3 } # Panay NOT = { control = { province = 1576 data = -3 } } # Panay } } } NOT = { AND = { war = { country = U05 } NOT = { control = { province = 1648 data = -3 } } NOT = { control = { province = 1653 data = -3 } } NOT = { control = { province = 1638 data = -3 } } NOT = { garrison = { country = U05 province = 1648 type = land size = 10 area = yes } } NOT = { garrison = { country = U05 province = 1653 type = land size = 10 area = yes } } NOT = { garrison = { country = U05 province = 1638 type = land size = 10 area = yes } } } AND = { war = { country = ENG } NOT = { control = { province = 1508 data = -3 } } NOT = { garrison = { country = ENG province = 1508 type = land size = 10 area = yes } } # Singapore } } OR = { #Outer Japanese Islands NOT = { control = { province = 1661 data = -3 } } # Motoyama NOT = { control = { province = 1686 data = -3 } } # Saipan NOT = { control = { province = 1685 data = -3 } } # Tinian NOT = { control = { province = 1684 data = -3 } } # Rota NOT = { control = { province = 1670 data = -3 } } # Negrulmud NOT = { control = { province = 1662 data = -3 } } # Oki-Mura NOT = { control = { province = 1672 data = -3 } } # Marcus Island Minami #Far Outer Rim Japanese Islands NOT = { control = { province = 1675 data = -3 } } # Eniwetok NOT = { control = { province = 1674 data = -3 } } # Bikini NOT = { control = { province = 1676 data = -3 } } # Kwajalein NOT = { control = { province = 1681 data = -3 } } # Wotje NOT = { control = { province = 1677 data = -3 } } # Dejap NOT = { control = { province = 1669 data = -3 } } # Ngulu NOT = { control = { province = 1666 data = -3 } } # Totol NOT = { control = { province = 1667 data = -3 } } # Ulithi Weno NOT = { control = { province = 1665 data = -3 } } # Truk Kolonia NOT = { control = { province = 1668 data = -3 } } # Woleai AND = { war = { country = USA } NOT = { control = { province = 1673 data = -3 } } # Wake Island } AND = { war = { country = USA } NOT = { control = { province = 1683 data = -3 } } # Guam } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_clrflag which = JAPInvadePHI } command = { type = local_clrflag which = JAPInvadeNEI } command = { type = local_setflag which = JAPInvadeNEPacific } command = { type = local_clrflag which = JAPInvadeNewGuinea } command = { type = local_clrflag which = JAPStandardPacific } command = { type = ai which = "switch/JAP_Naval_NEPacific.ai" } } } ################ # Japanese Pacific War AIs JAPInvadeNewGuinea ############################################# event = { id = 3011019 random = no country = JAP persistent = yes trigger = { ai = yes NOT = { local_flag = JAPInvadeNewGuinea } NOT = { local_flag = JAPHomeland } OR = { garrison = { country = USA province = 1579 type = land size = 20 area = yes } # Davao garrison = { country = PHI province = 1579 type = land size = 20 area = yes } # Davao NOT = { # Philippines AND = { war = { country = PHI } NOT = { lost_national = { country = PHI value = 60 } } } AND = { owned = { province = 1572 data = -3 } # Palawan NOT = { control = { province = 1572 data = -3 } } # Palawan } AND = { owned = { province = 1571 data = -3 } # Mindoro NOT = { control = { province = 1571 data = -3 } } # Mindoro } AND = { owned = { province = 1575 data = -3 } # Samar NOT = { control = { province = 1575 data = -3 } } # Samar } AND = { owned = { province = 1573 data = -3 } # Palawan NOT = { control = { province = 1573 data = -3 } } # Leyte } AND = { owned = { province = 1578 data = -3 } # Cagayan NOT = { control = { province = 1578 data = -3 } } # Cagayan } AND = { owned = { province = 1574 data = -3 } # Negros NOT = { control = { province = 1574 data = -3 } } # Negros } AND = { owned = { province = 1579 data = -3 } # Davos NOT = { control = { province = 1579 data = -3 } } # Davos } AND = { owned = { province = 1576 data = -3 } # Panay NOT = { control = { province = 1576 data = -3 } } # Panay } } } NOT = { AND = { war = { country = U05 } NOT = { control = { province = 1648 data = -3 } } NOT = { control = { province = 1653 data = -3 } } NOT = { control = { province = 1638 data = -3 } } NOT = { garrison = { country = U05 province = 1648 type = land size = 10 area = yes } } NOT = { garrison = { country = U05 province = 1653 type = land size = 10 area = yes } } NOT = { garrison = { country = U05 province = 1638 type = land size = 10 area = yes } } } AND = { war = { country = ENG } NOT = { control = { province = 1508 data = -3 } } NOT = { garrison = { country = ENG province = 1508 type = land size = 10 area = yes } } # Singapore } } NOT = { #Outer Japanese Islands NOT = { control = { province = 1661 data = -3 } } # Motoyama NOT = { control = { province = 1686 data = -3 } } # Saipan NOT = { control = { province = 1685 data = -3 } } # Tinian NOT = { control = { province = 1684 data = -3 } } # Rota NOT = { control = { province = 1670 data = -3 } } # Negrulmud NOT = { control = { province = 1662 data = -3 } } # Oki-Mura NOT = { control = { province = 1672 data = -3 } } # Marcus Island Minami #Far Outer Rim Japanese Islands NOT = { control = { province = 1675 data = -3 } } # Eniwetok NOT = { control = { province = 1674 data = -3 } } # Bikini NOT = { control = { province = 1676 data = -3 } } # Kwajalein NOT = { control = { province = 1681 data = -3 } } # Wotje NOT = { control = { province = 1677 data = -3 } } # Dejap NOT = { control = { province = 1669 data = -3 } } # Ngulu NOT = { control = { province = 1666 data = -3 } } # Totol NOT = { control = { province = 1667 data = -3 } } # Ulithi Weno NOT = { control = { province = 1665 data = -3 } } # Truk Kolonia NOT = { control = { province = 1668 data = -3 } } # Woleai AND = { war = { country = USA } NOT = { control = { province = 1673 data = -3 } } # Wake Island } AND = { war = { country = USA } NOT = { control = { province = 1683 data = -3 } } # Guam } } war = { country = AST } war = { country = ENG } OR = { #North New Guinea NOT = { control = { province = 1599 data = JAP } } # Sorong NOT = { control = { province = 1641 data = JAP } } # Biak Island NOT = { control = { province = 1600 data = JAP } } # Babo NOT = { control = { province = 1642 data = JAP } } # Arare NOT = { control = { province = 1595 data = JAP } } # Sarmi NOT = { control = { province = 1596 data = JAP } } # Hollandia NOT = { control = { province = 1602 data = JAP } } # Aitape NOT = { control = { province = 1603 data = JAP } } # Wewak NOT = { control = { province = 1604 data = JAP } } # Lae #North Solomon Islands NOT = { control = { province = 1724 data = JAP } } # Admirality Islands NOT = { control = { province = 1725 data = JAP } } # New Ireland NOT = { control = { province = 1605 data = JAP } } # Buka Island NOT = { control = { province = 1587 data = JAP } } # Bougainville #New Britain NOT = { control = { province = 1726 data = JAP } } # Rabaul NOT = { control = { province = 1727 data = JAP } } # Gasmata } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_clrflag which = JAPInvadePHI } command = { type = local_clrflag which = JAPInvadeNEI } command = { type = local_clrflag which = JAPInvadeNEPacific } command = { type = local_setflag which = JAPInvadeNewGuinea } command = { type = local_clrflag which = JAPStandardPacific } command = { type = ai which = "switch/JAP_Naval_NewGuinea.ai" } } } ################ # Japanese Pacific War AIs JAPStandardPacific ############################################# event = { id = 3011020 random = no country = JAP persistent = yes trigger = { ai = yes NOT = { local_flag = JAPStandardPacific } NOT = { local_flag = JAPHomeland } OR = { #war with allies war = { country = AST } war = { country = ENG } war = { country = FRA } war = { country = NZL } war = { country = PHI } war = { country = USA } war = { country = U05 } } OR = { garrison = { country = USA province = 1579 type = land size = 20 area = yes } # Davao garrison = { country = PHI province = 1579 type = land size = 20 area = yes } # Davao NOT = { # Philippines AND = { war = { country = PHI } NOT = { lost_national = { country = PHI value = 60 } } } AND = { owned = { province = 1572 data = -3 } # Palawan NOT = { control = { province = 1572 data = -3 } } # Palawan } AND = { owned = { province = 1571 data = -3 } # Mindoro NOT = { control = { province = 1571 data = -3 } } # Mindoro } AND = { owned = { province = 1575 data = -3 } # Samar NOT = { control = { province = 1575 data = -3 } } # Samar } AND = { owned = { province = 1573 data = -3 } # Palawan NOT = { control = { province = 1573 data = -3 } } # Leyte } AND = { owned = { province = 1578 data = -3 } # Cagayan NOT = { control = { province = 1578 data = -3 } } # Cagayan } AND = { owned = { province = 1574 data = -3 } # Negros NOT = { control = { province = 1574 data = -3 } } # Negros } AND = { owned = { province = 1579 data = -3 } # Davos NOT = { control = { province = 1579 data = -3 } } # Davos } AND = { owned = { province = 1576 data = -3 } # Panay NOT = { control = { province = 1576 data = -3 } } # Panay } } } NOT = { AND = { war = { country = U05 } NOT = { control = { province = 1648 data = -3 } } NOT = { control = { province = 1653 data = -3 } } NOT = { control = { province = 1638 data = -3 } } NOT = { garrison = { country = U05 province = 1648 type = land size = 10 area = yes } } NOT = { garrison = { country = U05 province = 1653 type = land size = 10 area = yes } } NOT = { garrison = { country = U05 province = 1638 type = land size = 10 area = yes } } } AND = { war = { country = ENG } NOT = { control = { province = 1432 data = -3 } } NOT = { garrison = { country = ENG province = 1432 type = land size = 10 area = yes } } # Singapore } } NOT = { #Outer Japanese Islands NOT = { control = { province = 1661 data = -3 } } # Motoyama NOT = { control = { province = 1686 data = -3 } } # Saipan NOT = { control = { province = 1685 data = -3 } } # Tinian NOT = { control = { province = 1684 data = -3 } } # Rota NOT = { control = { province = 1670 data = -3 } } # Negrulmud NOT = { control = { province = 1662 data = -3 } } # Oki-Mura NOT = { control = { province = 1672 data = -3 } } # Marcus Island Minami #Far Outer Rim Japanese Islands NOT = { control = { province = 1675 data = -3 } } # Eniwetok NOT = { control = { province = 1674 data = -3 } } # Bikini NOT = { control = { province = 1676 data = -3 } } # Kwajalein NOT = { control = { province = 1681 data = -3 } } # Wotje NOT = { control = { province = 1677 data = -3 } } # Dejap NOT = { control = { province = 1669 data = -3 } } # Ngulu NOT = { control = { province = 1666 data = -3 } } # Totol NOT = { control = { province = 1667 data = -3 } } # Ulithi Weno NOT = { control = { province = 1665 data = -3 } } # Truk Kolonia NOT = { control = { province = 1668 data = -3 } } # Woleai AND = { war = { country = USA } NOT = { control = { province = 1673 data = -3 } } # Wake Island } AND = { war = { country = USA } NOT = { control = { province = 1683 data = -3 } } # Guam } } NOT = { #North New Guinea NOT = { control = { province = 1599 data = -3 } } # Sorong NOT = { control = { province = 1641 data = -3 } } # Biak Island NOT = { control = { province = 1600 data = -3 } } # Babo NOT = { control = { province = 1642 data = -3 } } # Arare NOT = { control = { province = 1595 data = -3 } } # Sarmi NOT = { control = { province = 1596 data = -3 } } # U05landia NOT = { control = { province = 1602 data = -3 } } # Aitape NOT = { control = { province = 1603 data = -3 } } # Wewak NOT = { control = { province = 1604 data = -3 } } # Lae #North Solomon Islands NOT = { control = { province = 1724 data = -3 } } # Admirality Islands NOT = { control = { province = 1725 data = -3 } } # New Ireland NOT = { control = { province = 1605 data = -3 } } # Buka Island NOT = { control = { province = 1587 data = -3 } } # Bougainville #New Britain NOT = { control = { province = 1726 data = -3 } } # Rabaul NOT = { control = { province = 1727 data = -3 } } # Gasmata } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_clrflag which = JAPInvadePHI } command = { type = local_clrflag which = JAPInvadeNEI } command = { type = local_clrflag which = JAPInvadeNEPacific } command = { type = local_clrflag which = JAPInvadeNewGuinea } command = { type = local_setflag which = JAPStandardPacific } command = { type = ai which = "switch/JAP_Naval_Pacific.ai" } } } ################ # Japan loads Standard builds AI ############################################# event = { id = 3011021 random = no country = JAP persistent = yes trigger = { ai = yes OR = { atwar = yes event = 2011022 # Marco Polo } NOT = { local_flag = JAPBuildStandard } NOT = { AND = { war = { country = CHI } NOT = { land_percentage = { country = CHI value = 1.25 } } } AND = { war = { country = USA } NOT = { land_percentage = { country = USA value = 0.55 } } } AND = { war = { country = AST } NOT = { land_percentage = { country = AST value = 1.05 } } } AND = { war = { country = ENG } NOT = { land_percentage = { country = ENG value = 1.05 } } } AND = { war = { country = SOV } NOT = { land_percentage = { country = SOV value = 0.45 } } } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 30 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_setflag which = JAPBuildStandard } command = { type = local_clrflag which = JAPBuildLand } command = { type = ai which = "switch/JAP_Build_Standard.ai" } } } ################ # Japan loads Land builds AI ############################################# event = { id = 3011022 random = no country = JAP persistent = yes trigger = { ai = yes OR = { atwar = yes event = 2011022 # Marco Polo } NOT = { local_flag = JAPBuildLand } OR = { AND = { war = { country = CHI } NOT = { land_percentage = { country = CHI value = 1.2 } } } AND = { war = { country = USA } NOT = { land_percentage = { country = USA value = 0.5 } } } AND = { war = { country = AST } NOT = { land_percentage = { country = AST value = 1.0 } } } AND = { war = { country = ENG } NOT = { land_percentage = { country = ENG value = 1.0 } } } AND = { war = { country = SOV } NOT = { land_percentage = { country = SOV value = 0.4 } } } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 7 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_clrflag which = JAPBuildStandard } command = { type = local_setflag which = JAPBuildLand } command = { type = ai which = "switch/JAP_Build_Land.ai" } } } ################ # Homeland Defense Flags # JAPHomeland = Homeland under attack ################ # Japan Homeland defense AI ############################################# event = { id = 3011023 random = no country = JAP persistent = yes trigger = { ai = yes OR = { atwar = yes event = 2011022 # Marco Polo } NOT = { local_flag = JAPHomeland } OR = { # Japan AND = { owned = { province = 1554 data = JAP } # Hiroshima NOT = { control = { province = 1554 data = JAP } } # Hiroshima } AND = { owned = { province = 1553 data = JAP } # Osaka NOT = { control = { province = 1553 data = JAP } } # Osaka } AND = { owned = { province = 1558 data = JAP } # Kanazawa NOT = { control = { province = 1558 data = JAP } } # Kanazawa } AND = { owned = { province = 1557 data = JAP } # Nagoya NOT = { control = { province = 1557 data = JAP } } # Nagoya } AND = { owned = { province = 1552 data = JAP } # Tokyo NOT = { control = { province = 1552 data = JAP } } # Tokyo } AND = { owned = { province = 1556 data = JAP } # Niigata NOT = { control = { province = 1556 data = JAP } } # Niigata } AND = { owned = { province = 1550 data = JAP } # Fukushima NOT = { control = { province = 1550 data = JAP } } # Fukushima } AND = { owned = { province = 1551 data = JAP } # Akita NOT = { control = { province = 1551 data = JAP } } # Akita } AND = { owned = { province = 1549 data = JAP } # Sendai NOT = { control = { province = 1549 data = JAP } } # Sendai } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_setflag which = JAPHomeland } command = { type = local_clrflag which = JAPBuildStandard } command = { type = local_clrflag which = JAPBuildLand } command = { type = local_clrflag which = JAPInvadePHI } command = { type = local_clrflag which = JAPInvadeNEI } command = { type = local_clrflag which = JAPInvadeNEPacific } command = { type = local_clrflag which = JAPInvadeNewGuinea } command = { type = local_clrflag which = JAPStandardPacific } command = { type = ai which = "switch/JAP_Homeland.ai" } } } ################ # Japan Rescinds Homelands defense AI ############################################# event = { id = 3011024 random = no country = JAP persistent = yes trigger = { ai = yes OR = { atwar = yes event = 2011022 # Marco Polo } local_flag = JAPHomeland NOT = { # Japan AND = { owned = { province = 1554 data = JAP } # Hiroshima NOT = { control = { province = 1554 data = JAP } } # Hiroshima } AND = { owned = { province = 1553 data = JAP } # Osaka NOT = { control = { province = 1553 data = JAP } } # Osaka } AND = { owned = { province = 1558 data = JAP } # Kanazawa NOT = { control = { province = 1558 data = JAP } } # Kanazawa } AND = { owned = { province = 1557 data = JAP } # Nagoya NOT = { control = { province = 1557 data = JAP } } # Nagoya } AND = { owned = { province = 1552 data = JAP } # Tokyo NOT = { control = { province = 1552 data = JAP } } # Tokyo } AND = { owned = { province = 1556 data = JAP } # Niigata NOT = { control = { province = 1556 data = JAP } } # Niigata } AND = { owned = { province = 1550 data = JAP } # Fukushima NOT = { control = { province = 1550 data = JAP } } # Fukushima } AND = { owned = { province = 1551 data = JAP } # Akita NOT = { control = { province = 1551 data = JAP } } # Akita } AND = { owned = { province = 1549 data = JAP } # Sendai NOT = { control = { province = 1549 data = JAP } } # Sendai } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 1 deathdate = { day = 29 month = december year = 1963 } action_a = { command = { type = local_clrflag which = JAPHomeland } command = { type = ai which = "switch/JAP_Homeland_Rescind.ai" } } } ################ # Japan builds Fortifications ############################################# event = { #id = 3011027 random = no country = JAP trigger = { ai = yes technology = 5100 control = { province = 1665 data = JAP } # Truk control = { province = 1661 data = JAP } # Iwo Jima } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 7 deathdate = { day = 29 month = december year = 1939 } action_a = { command = { type = ai which = "switch/JAP_Build_Fort.ai" } } } ################ # Japan retools production ############################################# event = { #id = 3011028 random = no country = JAP trigger = { ai = yes OR = { war = { country = USA } war = { country = SOV } war = { country = PHI } war = { country = ENG } war = { country = FRA } } } name = "AI_EVENT" style = 0 date = { day = 1 month = january year = 1933 } offset = 7 deathdate = { day = 29 month = december year = 1939 } action_a = { command = { type = ai which = "switch/JAP_Build_Fort_Stop.ai" } command = { type = sleepevent which = 3011027 } } } ################ # Production Queue ############################################# event = { id = 3011056 random = no country = JAP trigger = { ai = yes } name = "AI_EVENT" date = { day = 1 month = january year = 1936 } action = { command = { type = build_division which = destroyer when = 100 cost = -0.1 where = 200 } command = { type = build_division which = carrier value = cag when = 3 cost = -0.1 where = 100 } command = { type = build_division which = carrier value = cag when = 3 cost = -0.1 where = 100 } command = { type = build_division which = carrier value = cag when = 3 cost = -0.1 where = 100 } command = { type = build_division which = carrier value = cag when = 3 cost = -0.1 where = 100 } command = { type = build_division which = naval_bomber when = 20 cost = -0.1 where = 150 } command = { type = build_division which = transport when = 40 cost = -0.1 where = 200 } command = { type = build_division which = transport when = 40 cost = -0.1 where = 200 } command = { type = build_division which = infantry value = artillery when = 36 cost = -0.1 where = 30 } command = { type = build_division which = marine value = amph_armor when = 12 cost = -0.1 where = 60 } command = { trigger = { control = { province = 1552 data = JAP } } type = activate_division which = 13016 value = 2000 where = 1552 when = 0 } # Japan command = { trigger = { control = { province = 1552 data = JAP } } type = activate_division which = 13016 value = 2001 where = 1552 when = 0 } command = { trigger = { control = { province = 1552 data = JAP } } type = activate_division which = 13016 value = 2002 where = 1552 when = 0 } command = { trigger = { control = { province = 1559 data = JAP } } type = activate_division which = 13016 value = 2003 where = 1559 when = 0 } command = { trigger = { control = { province = 1559 data = JAP } } type = activate_division which = 13016 value = 2004 where = 1559 when = 0 } command = { trigger = { control = { province = 1554 data = JAP } } type = activate_division which = 13016 value = 2005 where = 1554 when = 0 } command = { trigger = { control = { province = 1554 data = JAP } } type = activate_division which = 13016 value = 2006 where = 1554 when = 0 } command = { trigger = { control = { province = 1561 data = JAP } } type = activate_division which = 13016 value = 2007 where = 1561 when = 0 } command = { trigger = { control = { province = 1561 data = JAP } } type = activate_division which = 13016 value = 2008 where = 1561 when = 0 } command = { trigger = { control = { province = 1361 data = JAP } } type = activate_division which = 13016 value = 2009 where = 1361 when = 0 } # Pacific command = { trigger = { control = { province = 1362 data = JAP } } type = activate_division which = 13016 value = 2010 where = 1362 when = 0 } command = { trigger = { control = { province = 1562 data = JAP } } type = activate_division which = 13016 value = 2011 where = 1562 when = 0 } command = { trigger = { control = { province = 1564 data = JAP } } type = activate_division which = 13016 value = 2012 where = 1564 when = 0 } command = { trigger = { control = { province = 1662 data = JAP } } type = activate_division which = 13016 value = 2013 where = 1662 when = 0 } command = { trigger = { control = { province = 1661 data = JAP } } type = activate_division which = 13016 value = 2014 where = 1661 when = 0 } command = { trigger = { control = { province = 1670 data = JAP } } type = activate_division which = 13016 value = 2015 where = 1670 when = 0 } command = { trigger = { control = { province = 1667 data = JAP } } type = activate_division which = 13016 value = 2016 where = 1667 when = 0 } command = { trigger = { control = { province = 1675 data = JAP } } type = activate_division which = 13016 value = 2017 where = 1675 when = 0 } command = { trigger = { control = { province = 1676 data = JAP } } type = activate_division which = 13016 value = 2018 where = 1676 when = 0 } command = { trigger = { control = { province = 1685 data = JAP } } type = activate_division which = 13016 value = 2019 where = 1685 when = 0 } command = { trigger = { control = { province = 1685 data = JAP } } type = activate_division which = 13016 value = 2020 where = 1685 when = 0 } command = { trigger = { ai = CHI } type = trigger which = 3011060 } } } ################ # Pacific War - China-Nanjing ############################################# event = { id = 3011057 random = no country = JAP trigger = { war = { country = USA country = JAP } war = { country = CHI country = JAP } ai = yes difficulty = 2 } name = "AI_EVENT" date = { day = 1 month = january year = 1933 } offset = 7 deathdate = { day = 29 month = december year = 1964 } action = { #command = { type = removeclaim which = 1245 } # Tangschan, so U87 is the AI leader in this theater #command = { type = independence which = U87 value = 0 } #command = { type = make_puppet which = U87 } command = { type = build_division which = destroyer when = 20 cost = -0.1 where = 2 } command = { type = build_division which = destroyer when = 20 cost = -0.1 where = 2 } command = { type = build_division which = destroyer when = 20 cost = -0.1 where = 2 } command = { type = build_division which = destroyer when = 20 cost = -0.1 where = 2 } command = { type = build_division which = destroyer when = 20 cost = -0.1 where = 2 } command = { type = build_division which = destroyer when = 20 cost = -0.1 where = 2 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 2 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 2 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 15 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 15 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 15 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 20 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 20 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 25 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 25 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 30 } command = { type = build_division which = transport when = 10 cost = -0.1 where = 30 } command = { type = build_division which = infantry value = artillery when = 9 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 9 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 9 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 9 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 9 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 9 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 9 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 9 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 3 cost = -0.1 where = 3 } command = { type = build_division which = marine value = amph_armor when = 2 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 2 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 2 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 6 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 6 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 6 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 6 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 6 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 6 cost = -0.1 where = 4 } command = { type = build_division which = marine value = amph_armor when = 6 cost = -0.1 where = 4 } #command = { type = sleepleader which = 50002 } # Go to U87 #command = { type = sleepleader which = 50007 } #command = { type = sleepleader which = 50008 } #command = { type = sleepleader which = 50009 } #command = { type = sleepleader which = 50017 } #command = { type = sleepleader which = 50021 } #command = { type = sleepleader which = 50022 } #command = { type = sleepleader which = 50024 } #command = { type = sleepleader which = 50039 } #command = { type = sleepleader which = 50040 } #command = { type = sleepleader which = 50044 } #command = { type = sleepleader which = 50052 } #command = { type = sleepleader which = 50057 } #command = { type = sleepleader which = 50060 } #command = { type = sleepleader which = 50065 } #command = { type = sleepleader which = 50068 } #command = { type = sleepleader which = 50081 } #command = { type = sleepleader which = 50082 } #command = { type = sleepleader which = 50091 } #command = { type = sleepleader which = 50094 } #command = { type = sleepleader which = 50099 } #command = { type = sleepleader which = 50101 } #command = { type = sleepleader which = 50104 } #command = { type = sleepleader which = 50119 } #command = { type = sleepleader which = 50120 } #command = { type = sleepleader which = 50121 } #command = { type = sleepleader which = 50132 } #command = { type = sleepleader which = 50139 } #command = { type = sleepleader which = 50151 } #command = { type = sleepleader which = 50173 } #command = { type = sleepleader which = 50177 } #command = { type = sleepleader which = 50182 } #command = { type = sleepleader which = 50189 } #command = { type = sleepleader which = 50190 } #command = { type = sleepleader which = 50196 } #command = { type = sleepleader which = 50208 } #command = { type = sleepleader which = 50210 } #command = { type = trigger which = 3011059 } } } event = { id = 3011059 random = no country = U87 trigger = { ispuppet = yes ai = yes ai = JAP } name = "AI_EVENT" date = { day = 1 month = january year = 1933 } offset = 7 deathdate = { day = 29 month = december year = 1964 } action = { command = { type = free_ic value = 50 } command = { type = build_division which = infantry value = artillery when = 18 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 18 cost = -0.1 where = 3 } command = { type = build_division which = infantry value = artillery when = 18 cost = -0.1 where = 3 } command = { type = headofstate which = 1250011 } command = { type = headofgovernment which = 1250055 } } } event = { id = 3011060 random = no country = CHI action = { command = { type = free_ic value = -10 } command = { type = supplies value = -1000 } command = { type = manpowerpool value = -1000 } } }