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

Pang Bingxun

Field Marshal
2 Badges
Nov 22, 2011
5.596
186
  • Arsenal of Democracy
  • 500k Club
Code:
#########################################################################
#  Claim Constanta!
#########################################################################
event = {
	id = 2710
	random = no
	country = BUL

	trigger = {
		control = { province = 423 data = ROM } # Constanta
	}

	name = "EVT_2710_NAME"
	desc = "EVT_2710_DESC"
	style = 0
	picture = "romania"

	date = { day = 7 month = september year = 1940 }
	offset = 1
	deathdate = { day = 8 month = september year = 1940 }

	action_a = {
		name = "EVT_2710_ACTA" # Bulgaria demands Constanta from Romania
		ai_chance = 95
		command = { type = trigger which = 2711 } #Romania's response
		command = { type = relation which = ROM value = -50 }
		command = { type = sleepevent which = 3424 }
	}
	action_b = {
		name = "EVT_2710_ACTB" # Bulgaria does not demand Constanta from Romania
		ai_chance = 5
		command = { type = relation which = ROM value = 25 }
		command = { type = domestic which = interventionism value = -1 }
		command = { type = sleepevent which = 3424 }
	}
}

#########################################################################
#  Bulgaria demands Constanta
#########################################################################
event = {
	id = 2711
	random = no
	country = ROM

	# Triggered by BUL 2710A

	name = "EVT_2710_NAME"
	desc = "EVT_2710_DESC"
	style = 0
	picture = "romania"

	action_a = {
		name = "EVT_2711_ACTA" # Romania cedes Constanta to Bulgaria
		ai_chance = 95
		command = { type = secedeprovince which = BUL value = 423 } #Constanta
		command = { type = construct which = naval_base where = 436 value = 1 }
		command = { type = construct which = naval_base where = 423 value = -2 }
		command = { type = dissent value = 5 }
	}
	action_b = {
		name = "EVT_2711_ACTB" # Romania stands up to Bulgaria
		ai_chance = 5
		command = { type = leave_alliance }
		command = { type = peace which = ENG value = 1 }
		command = { type = peace which = USA value = 1 }
		command = { type = peace which = CAN value = 1 }
		command = { type = peace which = MEX value = 1 }
		command = { type = peace which = VEN value = 1 }
		command = { type = peace which = PAN value = 1 }
		command = { type = peace which = LIB value = 1 }
		command = { type = peace which = PHI value = 1 }
		command = { type = peace which = JAP value = 1 }
		command = { type = peace which = SOV value = 1 }

		command = { type = peace which = CHI value = 1 }
		command = { type = peace which = CHC value = 1 }
		command = { type = peace which = CSX value = 1 }
		command = { type = peace which = CGX value = 1 }
		command = { type = peace which = CXB value = 1 }
		command = { type = peace which = SIK value = 1 }
		command = { type = peace which = CYN value = 1 }

		command = { type = end_guarantee which = SOV where = ROM }
		command = { type = end_guarantee which = GER where = ROM }
		command = { type = set_relation which = BUL value = -150 }
		command = { type = domestic which = defense_lobby value = 1 }
		command = { type = dissent value = -10 }
		command = { type = trigger which = 2712 } #Bulgaria's Response
	}
}

#########################################################################
#  Romania defies Bulgaria
#########################################################################
event = {
	id = 2712
	random = no
	country = BUL

	# Triggered by ROM 2711B

	name = "EVT_2712_NAME"
	desc = "EVT_2712_DESC"
	style = 0
	picture = "romania_tank"

	action_a = {
		name = "EVT_2712_ACTA" # Bulgaria takes Constanta by force
		ai_chance = 75
		command = { type = leave_alliance }
		command = { type = peace which = ENG value = 1 }
		command = { type = end_guarantee which = SOV where = BUL }
		command = { type = end_guarantee which = GER where = BUL }
		command = { type = domestic which = defense_lobby value = 1 }
		command = { type = war which = ROM }
	}
	action_b = {
		name = "EVT_2712_ACTB" # Bulgaria stands down
		ai_chance = 25
		command = { type = domestic which = defense_lobby value = -1 }
		command = { type = dissent value = 5 }
		command = { type = sleepevent which = 2713 }
	}
}

If BUL and ROM are in axis bulgaria cannot declare war on romania. A workaround could be to use command = { type = trigger which = 2712 value = 1 }.
 
Upvote 0
The delay should work, as proven in the past (Iraq) leving alliance and getting at war with a former member of this alliance on the same turn produces weird results or does not work at all.
BTW 2712 should have the same separate peace commands like in 2710 (just to be sure).