well now the rest of the problems start.
GER is at peace with ALL the Allies, when UK surrenders - Why???
There is a "leave alliance" code-line in the UK surrender event (event id = 66) - before the peacewith-code-lines - but it doesn't work as planned
and the independence code-lines don't do a thing either! UK get's everything back but neiter EYP, BUR, JOR,... emerge - anyone an idea why?
here is my re-written UK surrender event.
planed outcome:
UK leaves Allies - works

Allies continue the war - doesn't work

Allied leader --> another country (USA?) - seems to work
UK at peace with GER & JAP (and all other axis) - works fine

(but you need peacewith JAP 2 times)
UK has to grant independence to it's colonies - doesn't work at all
here is the event:
event = {
id = 66
random = no
country = ENG
name = EVT_66_NAME
desc = EVT_66_DESC
style = 0
# Triggered by German event 13
action_a = {
ai_chance = 50
name = EVT_66_ACTA
command = { type = leave_alliance }
command = { type = set_domestic which = democratic value = 3 }
command = { type = set_domestic which = political_left value = 3 }
command = { type = peace which = GER value = 0 }
command = { type = peace which = JAP value = 0 }
command = { type = peace which = JAP value = 0 }
command = { type = dissent value = 15 }
command = { type = relation which = USA value = -50 }
command = { type = set_relation which = ITA value = 50 }
command = { type = set_relation which = GER value = 50 }
command = { type = independence which = LEB value = 1 }
command = { type = independence which = EGY value = 1 }
command = { type = independence which = JOR value = 1 }
command = { type = independence which = IND value = 1 }
command = { type = independence which = BUR value = 1 }
command = { type = independence which = ISR value = 1 }
#Incase Italy has taken control
command = { type = secedeprovince which = ITA value = 5 } # Scapa Flow
command = { type = secedeprovince which = ITA value = 23 } # Plymouth
command = { type = secedeprovince which = ITA value = 1822 } # Kuwait City
#IF Germany or UK has control give provinces to Germany
command = { type = secedeprovince which = GER value = 5 } # Scapa Flow
command = { type = secedeprovince which = GER value = 23 } # Plymouth
command = { type = secedeprovince which = GER value = 1822 } # Kuwait City
#Incase Germany has control
command = { type = secedeprovince which = GER value = 31 } # Malta
command = { type = secedeprovince which = GER value = 444 } # Cyprus
command = { type = secedeprovince which = GER value = 348 } # Gibraltar
command = { type = secedeprovince which = GER value = 901 } # Port Said
command = { type = secedeprovince which = GER value = 900 } # Suez
command = { type = secedeprovince which = GER value = 1036 } # Zeila
command = { type = secedeprovince which = GER value = 1035 } # Berbera
#If Italy or UK control give them to Italy.(except gibraltar goes to spain if UK controls))
command = { type = secedeprovince which = ITA value = 31 } # Malta
command = { type = secedeprovince which = ITA value = 444 } # Cyprus
command = { type = secedeprovince which = ITA value = 348 } # Gibraltar
command = { type = secedeprovince which = ITA value = 901 } # Port Said
command = { type = secedeprovince which = ITA value = 900 } # Suez
command = { type = secedeprovince which = ITA value = 1036 } # Zeila
command = { type = secedeprovince which = ITA value = 1035 } # Berbera
#Incase Nat Spain or UK control Gibraltar give it to spain.
command = { type = secedeprovince which = SPA value = 348 } # Gibraltar
#Incase Italy control
command = { type = secedeprovince which = ITA value = 576 } # Newfoundland
command = { type = secedeprovince which = ITA value = 575 } # Labrador
#Incase Germany control
command = { type = secedeprovince which = GER value = 576 } # Newfoundland
command = { type = secedeprovince which = GER value = 575 } # Labrador
#If UK still controlls, Canada takes control
command = { type = secedeprovince which = CAN value = 576 } # Newfoundland
command = { type = secedeprovince which = CAN value = 575 } # Labrador
#Incase Italy has taken Caribbean
command = { type = secedeprovince which = ITA value = 538 } # Bermuda
command = { type = secedeprovince which = ITA value = 758 } # Belize
command = { type = secedeprovince which = ITA value = 891 } # Jamaica
command = { type = secedeprovince which = ITA value = 652 } # Andros
command = { type = secedeprovince which = ITA value = 653 } # New providence
command = { type = secedeprovince which = ITA value = 664 } # Grand Bahama
command = { type = secedeprovince which = ITA value = 665 } # Abacos
command = { type = secedeprovince which = ITA value = 666 } # Eleuthera
command = { type = secedeprovince which = ITA value = 668 } # Long Island
#Incase Germany has taken Caribbean
command = { type = secedeprovince which = GER value = 538 } # Bermuda
command = { type = secedeprovince which = GER value = 758 } # Belize
command = { type = secedeprovince which = GER value = 891 } # Jamaica
command = { type = secedeprovince which = GER value = 652 } # Andros
command = { type = secedeprovince which = GER value = 653 } # New providence
command = { type = secedeprovince which = GER value = 664 } # Grand Bahama
command = { type = secedeprovince which = GER value = 665 } # Abacos
command = { type = secedeprovince which = GER value = 666 } # Eleuthera
command = { type = secedeprovince which = GER value = 668 } # Long Island
#If UK still controlls Caribbean, US takes control
command = { type = secedeprovince which = USA value = 538 } # Bermuda
command = { type = secedeprovince which = USA value = 758 } # Belize
command = { type = secedeprovince which = USA value = 891 } # Jamaica
command = { type = secedeprovince which = USA value = 652 } # Andros
command = { type = secedeprovince which = USA value = 653 } # New providence
command = { type = secedeprovince which = USA value = 664 } # Grand Bahama
command = { type = secedeprovince which = USA value = 665 } # Abacos
command = { type = secedeprovince which = USA value = 666 } # Eleuthera
command = { type = secedeprovince which = USA value = 668 } # Long Island
# Give in to demands of Japan
command = { type = secedeprovince which = JAP value = 1315 } # Hongkong
command = { type = secedeprovince which = JAP value = 1353 } # Singapur
command = { type = secedeprovince which = JAP value = 1644 } # Kuching
command = { type = secedeprovince which = JAP value = 1646 } # Miri
command = { type = secedeprovince which = JAP value = 1647 } # Jesseltown
command = { type = secedeprovince which = JAP value = 1349 } # Aloe Star
command = { type = secedeprovince which = JAP value = 1350 } # Kotan Baruh
command = { type = secedeprovince which = JAP value = 1352 } # Luala Lupur
command = { type = secedeprovince which = JAP value = 1351 } # Kuantan
command = { type = domestic which = defense_lobby value = -2 }
command = { type = domestic which = freedom value = -2 }
command = { type = headofstate which = 1032 }
command = { type = headofgovernment which = 1042 }
command = { type = foreignminister which = 1049 }
command = { type = armamentminister which = 1068 }
command = { type = ministerofsecurity which = 1090 }
command = { type = ministerofintelligence which = 1107 }
command = { type = chiefofstaff which = 1124 }
command = { type = chiefofarmy which = 1134 }
command = { type = chiefofnavy which = 1142 }
command = { type = chiefofair which = 1151 }
#command = { type = trigger which = 12309 }
}
action_b = {
ai_chance = 50
name = EVT_66_ACTB
command = { type = dissent value = 5 }
command = { type = domestic which = defense_lobby value = 1 }
#command = { type = trigger which = 12310 }
}
}