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

unmerged(53815)

Sergeant
Feb 10, 2006
95
0
'Lo,

I've been trying to make an event similar that is to trigger by the Sudenteland-thing (first the "Claim Sudetenland!" - then the Chezchs accept, then my event) and it's supposed to be like the "Install Tiso in Slovakia" but instead creating an independent Bohemia (...don't ask...) Anyways, I've managed to make the country Bohemia but my event won't fire somehow.
This is what it looks like, anyways:

PHP:
event = {
	id = 2003
	random = no
	country = GER
	# Triggered by CZE 2200
	name = "EVT_2003_NAME"
	desc = "EVT_2003_DESC"
	style = 0
	picture = "Sudetenland"

	action_a = {
		name = "ACTIONNAME2003A" #Ok
		ai_chance = 25
		command = { type = dissent value = -10 }
		command = { type = manpowerpool value = 100 }
		command = { type = domestic which = defense_lobby value = 1 }
	}
	action_b = {
		name = "ACTIONNAME2003B" #Independent Bohemia
		ai_chance = 75
		command = { type = independence which = U01 value = 1 }
		command = { type = secedeprovince which = U01 value = 466 } #Strakonice
		command = { type = secedeprovince which = U01 value = 467 } #Tabor
		command = { type = secedeprovince which = U01 value = 471 } #Usti
		command = { type = secedeprovince which = U01 value = 472 } #Liberec
		command = { type = secedeprovince which = U01 value = 474 }
		command = { type = trigger which = 102003 }
}

I've been vacuming HoI2 wiki for clues but still can't see why it won't work. :confused: Also, I've created an event 102003 which is basically ministers etc for Bohemia and put it in "bohemia.txt" I also added the line "bohemia.txt" to the events file.

Any help would be very thankfully recieved!
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • 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
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
in what manner will it not work? Does it produce an independent Bohemia? (if not make sure you have an entry for Bohemia in the revolt.txt (if you havent already done so) and try this command:

command = { type = independence which = U01 value = 1 when = 0 }

The secede commands may not work properly as they are giving land to a country that hasnt been made yet (I may be wrong here, sometimes it works and sometimes it doesn't), so if it isn't seceding land to Bohemia you need to put those commands in a seperate event.

And you are missing a closing bracket.

Ayeshteni
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • 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
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Yaki said:
It's working great now - thanks

However, I just wondered about this:

name = "EVT_3718_NAME"
desc = "EVT_3718_DESC"

How do you customize them? I other words change the text, picture etc?

Cherrs

the text is found in the event_text.csv (usually - some are in the extra_text.csv iirc)

Open up event_text.csv with a text editor (like notepad, do NOT use excel) and use the find function to scroll down to the EVT... entry. You will find the text there. You can edit it (BUT remember not to delete ANY semi-colon (;) or else there will be errors).

Event pictures can be found in GFX/events_pics folder. You can add new ones and have

picture = "piccy name"

in the event to show that piccy (but they have to be the same dimensions as the existing ones I believe).

Ayeshteni
 

JRShield

Generalfeldmarschall
90 Badges
Sep 1, 2005
753
0
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Magicka
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Victoria 3 Sign Up
  • Divine Wind
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Cities in Motion 2
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
Yaki said:
It's working great now - thanks

However, I just wondered about this:

name = "EVT_3718_NAME"
desc = "EVT_3718_DESC"

How do you customize them? I other words change the text, picture etc?

Cherrs


You can also do it like this

name = "My Name "
desc = "O, i think somethig happened! "
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • 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
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
JRShield said:
You can also do it like this

name = "My Name "
desc = "O, i think somethig happened! "

Indeed you can.
Although there is a certain limit to the amount of text you can place in the desc ="". If it more than 5 lines (roughly), it will cause error reports (even though there is technically nothing wrong with the event). So if you are putting in a short one liner or so, it is easier to just put it in the event. But longer text MUST be placed in one of the text files in the config folder.

Ayeshteni