• 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.

kane279

First Lieutenant
53 Badges
Apr 27, 2007
233
11
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Battle for Bosporus
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron III: Their Finest Hour
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • For the Motherland
  • Hearts of Iron III
  • Arsenal of Democracy
  • Hearts of Iron III Collection
  • Semper Fi
  • Victoria 2
  • 500k Club
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
After many many games I really started hating the fakt, that there is no event based possibility to end the game when GER is at war with ENG and USA at the same time.

Reason: surrender event UK fires only when GER not at war with USA and US surrender event only fires when GER not at war with UK

well what I want, is to avoid hunting down all british VP in the whole world

So I want to enhance the UK surrender event with an additional possibility to fire the event - but obviously I am too stupid for it :(

conditions for this additional trigger should be:
no war GER <--> SOV # bitter peace already fired

province = 19 AXIS control London
province = 11 AXIS control Sunderland
province = 14 AXIS control Liverpool
province = 28 AXIS control Belfast
province = 9 AXIS control Glasgow
province = 23 AXIS control Plymouth
province = 1505 AXIS control Bombay
province = 1457 AXIS control Calcutta
province = 906 AXIS control Alexandria
province = 348 AXIS control Gibraltar
province = 900 AXIS control Suez

lost_VP = { country = ENG value = 90 } #even Churchill should get worried now
lost_IC = { country = ENG value = 90 } #guess it's over anyway


well...since there seems no such thing like "AXIS" I get lost with the "OR" conditions since the controler could be GER, ITA, nat.Spain, HUN, IND (German puppet),....
and I didn't manage to say controler isn't ENG (maybe because my C++ skills really suck...:rolleyes:)
:(

I know I am lousy at C++ but maybe one of you can help me out?
pretty please :)
 
I'm not great with events myself, but I took a crack at it. I should warn you that I haven't tested it or anything. This would be the German even that triggers the UK surrender event.

Code:
event = {
	id = 1111
	random = no
	country = GER

	name = "Negotiated peace with the United Kingdom"
	desc = "With London in Axis hands and much of the UK industry destroyed or conquered, the time was ripe to offer a negotiated peace."
	picture = "partition_of_england"
	style = 0

	trigger = {
		big_alliance = { country = GER alliance = axis }

		control = { province = 19 data = -3 }
		control = { province = 11  data = -3 }
		control = { province = 14 data = -3 }
		control = { province = 28  data = -3 }
		control = { province = 9  data = -3 }
		control = { province = 23   data = -3 }
		control = { province = 1505 data = -3 }
		control = { province = 1457 data = -3 }
		control = { province = 906 data = -3 }
		control = { province = 348 data = -3 }
		control = { province = 900 data = -3 }

		lost_vp = { country = ENG value = 90 }
		lost_ic = { country = ENG value = 90 }

		not = { war = { country = GER country = SOV } }
		}

        date = { day = 0 month = january year = 1936 }
        offset = 10
	deathdate = { day = 29 month = december year = 1963 }

	action_a = {
		ai_chance = 50
		name = "Demand surrender and concessions."
		command = { type = dissent value = -5 }
		command = { type = end_mastery which = SCO }
		command = { type = money value = 5000 }
		command = { type = trigger which = 1112 }
		}
	action_b = {
		ai_chance = 50
		name = "Continue the war."
		command = { type = dissent value = -2 }
		command = { type = money value = 2500 }
		command = { type = sleepevent which = 1112 }
		}
}

It is triggered if Germany is in the axis, Germany or one of Germany's allies (-3) control the United Kingdom, England has lost ninety or more victory points and industry, and Germany is not at war with the Soviet Union.
 
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 }
}
}
 
the making peace stuff is a bit fucked up in this game I have the impression. Once I was at war and not at war with a country at the same time due to event-driven peace. Sorry I can't help more...but as a dirty solution I would recommend scripting a renewed declaration of war against the Allies.