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

Ethan194

Colonel
53 Badges
Jan 28, 2011
1.009
18
  • Crusader Kings II: Charlemagne
  • Stellaris: Synthetic Dawn
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Mare Nostrum
  • Semper Fi
  • Rome Gold
  • Hearts of Iron III
  • For the Motherland
  • Knights of Honor
  • Stellaris: Apocalypse
  • Crusader Kings II
  • Europa Universalis III: Chronicles
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Holy Fury
  • Steel Division: Normandy 44
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Megacorp
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
Code:
event = {
	id = 5003025
	random = no
	country = EST
	
	# Triggered by GER 2003024
	
	name = "EVT_5003025_NAME"
	desc = "EVT_5003025_DESC"
	style = 2
	picture = "Baltic_Entente"

	action_a = {
                name = "What would it achieve"
		ai_chance = 75
                command = { type = relation which = FIN value = -15 }
                command = { type = dissent value = 5 }
        }
        action_b = {
                name = "Were in this together"
	        ai_chance = 25
                command = { type = alliance which = FIN }
		command = { type = dissent value = -5 }
		command = { type = relation which = SOV value = - 25 }
		command = { type = relation which = GER value = - 15 }
		command = { type = relation which = SWE value = 25 }
		command = { type = relation which = ENG value = 15 }
                command = { type = relation which = FRA value = 15 }
                command = { type = relation which = POL value = 20 }
	}
}

Code:
event = {
	id = 2003024
	random = no
	country = GER
	
	decision = {
		exists = POL	
		exists = SOV
		OR = { 
			AND = { month = september year = 1939 } 		
			event = { id = 2003015 days = 144 } 
			event = { id = 2003013 days = 300 } 
		}		
		NOT = {
			OR = {
				ispuppet = POL			
				ispuppet = GER
				ispuppet = SOV		
				war = { country = SOV country = GER }
				alliance = { country = GER country = POL }
				alliance = { country = GER country = SOV }
			}
		}		
	}
	decision_trigger = { 
		relation = { which = SOV value = 50 } 
	}
	
	trigger = {
		exists = POL	
		exists = SOV
		OR = { 		
			event = { id = 2003015 days = 144 } 
			event = { id = 2003013 days = 300 } 
		}				
		NOT = {
			OR = {
				ispuppet = POL				
				ispuppet = GER
				ispuppet = SOV		
				war = { country = SOV country = GER }
				alliance = { country = GER country = POL }
				alliance = { country = GER country = SOV }
			}
		}	
		OR = { 
			random = 15 
			AND = { 
				year = 1939			
				month = august 
				random = 75 
			} 
		}	
	}
	
	name = "EVT_2050_NAME"
	desc = "EVT_2050_DESC"
	style = 2
	picture = "Mol_Rib"
	decision_picture = "decision_MRPact"

	date = { day = 1 month = january year = 1936 }
	offset = 20
	deathdate = { day = 12 month = march year = 1966 }

	action_a = {
		name = "ACTIONNAME2050A" # Historical Agreement
		ai_chance = 100
		command = { type = trigger which = 2007018 } # SOV
		command = { type = relation which = SOV value = 15 }
		command = { type = set_relation which = EST value = -75 }
		command = { type = set_relation which = LAT value = -75 }
		command = { type = set_relation which = LIT value = -75 }
		command = { type = trigger which = 2001025 } # UK Gears up for war
		command = { type = trigger which = 2002001 } # France Gears up for war
                command = { type = trigger which = 5003025 } # Ask the Finns
	}
	action_b = {
		name = "ACTIONNAME2050B" # Only agree to partition Poland
		ai_chance = 0
		command = { type = trigger which = 2007019 } # SOV
		command = { type = relation which = SOV value = 10 }
		command = { type = dissent value = 5 }
		command = { type = trigger which = 2001025 } # UK Gears up for war
		command = { type = trigger which = 2002001 } # France Gears up for war
		command = { type = sleepevent which = 2007026 }
	}
}

Updated Event and the error is Error: ( Missing= in statement. ) '25=-'Line=24 (something like this).
 
Last edited:
Added the event that fires mine one new to all this sorry.
 
Last edited:
Still can't get this to work i don't no what i'm doing wrong its quite annoying i added the event in the db text but it still don't work
 
Code:
event = {
	id = 5003025
	random = no
	country = EST
	
	# Triggered by GER 2003024
	
	name = "EVT_5003025_NAME"
	desc = "EVT_5003025_DESC"
	style = 2
	picture = "Baltic_Entente"

	action_a = {
                name = "What would it achieve"
		ai_chance = 75
                command = { type = dissent = 5 }
                command = { type = relation which = FIN value = -15 }
        }
        action_b = {
                name = "Were in this together"
	        ai_chance = 25
                command = { type = alliance = { country = EST country = FIN } [B][COLOR="#FF0000"]}[/COLOR][/B]
		command = { type = dissent = -5 }
		command = { type = relation which = SOV value = - 25 }
		command = { type = relation which = GER value = - 15 }
		command = { type = relation which = SWE value = 25 }
		command = { type = relation which = ENG value = 15 }
                command = { type = relation which = FRA value = 15 }
                command = { type = relation which = POL value = 20 }
	}
}
You should add one more "}" at the end of command = { type = alliance = { country = EST country = FIN }
 
It caused a ctd I've spent so much time over this event the old hoi2 guides really aren't that helpful and i have looked at the modding documentation.
 
It caused a ctd I've spent so much time over this event the old hoi2 guides really aren't that helpful and i have looked at the modding documentation.
event_commands.txt doesn't have the event causing the ctd. You have a trigger as a command.

command = { type = alliance which = <TAG> }
 
When does the CTD happen? Immediately when you fire the event, or after you select one of the actions?
 
Well that was the first time I've had a CTD with the event added and it was whilst loading up a new game as Estonia.
 
Then it's something within the event file. I once had an in-game CTD caused by the event picture, that's why I asked.
 
I guess people ignored my comment.
This line is causing the crash:
Code:
                command = { type = alliance = { country = EST country = FIN } }
It should be
Code:
command = { type = alliance which = FIN }
 
I've already tried it didn't work i think it might be the trigger.
 
Updated first post.