• 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(93108)

.
1 Badges
Feb 17, 2008
70
0
  • For The Glory
So.

After recently discovering how (seemingly) easy it is to write events, I decided to write an event to make Württemberg form Swabia.

Code:
event = {
id = 100001
	trigger = {
      owned = { province = 373 data = -1 }
      owned = { province = 372 data = -1 }
	random = no
	country = WUR
	name = "The Restoration of the Duchy of Swabia"
	desc = "The title of Duke of Swabia has lain vacant ever since John the Parricide killied the Emperor Albrecht within sight of the castle of Habsburg.  Now, with the land united under one ruler and the Habsburg legacy swept away, the ducal crown is open to you, along with its associations of rule of all the former territories of the Allemani. 
	style = 1

	action_a ={
		name = "Take up the mantle of Duke"
		command = { type = country which = SWA }
		command = { type = addcore which = 373 }
		command = { type = addcore which = 374 }
		command = { type = addcore which = 388 }
		command = { type = addcore which = 1612 }
		command = { type = treasury   value = -50 }
		command = { type = domestic   which = centralization value = 3 } 
		command = { type = stability   value = -2 }
	}
	action_b ={
		name = "Remain Count of Wurttemberg"
		command = { type = domestic   which = aristocracy value = 3 }
		command = { type = stability   value = 3 }

When I go to test it, the game tells me on the loading screen that certain lines have an "unknown event type". What does this mean? How can I fix it?
 
Your trigger lacks a closing bracket. Also you should have two more closing brackets at the very end to close action_b and the event itself, but possibly you just forgot to paste these last two when posting your event, anyway it should look like this (currently missing brackets added in green):
Code:
event = {
	id = 100001
	trigger = {
		owned = { province = 373 data = -1 }
		owned = { province = 372 data = -1 }
	[COLOR="Lime"]}[/COLOR]
	random = no
	country = WUR
	name = "The Restoration of the Duchy of Swabia"
	desc = "The title of Duke of Swabia has lain vacant ever since John the Parricide killied the Emperor Albrecht within sight of the castle of Habsburg.  Now, with the land united under one ruler and the Habsburg legacy swept away, the ducal crown is open to you, along with its associations of rule of all the former territories of the Allemani. 
	style = 1

	action_a = {
		name = "Take up the mantle of Duke"
		command = { type = country which = SWA }
		command = { type = addcore which = 373 }
		command = { type = addcore which = 374 }
		command = { type = addcore which = 388 }
		command = { type = addcore which = 1612 }
		command = { type = treasury   value = -50 }
		command = { type = domestic   which = centralization value = 3 } 
		command = { type = stability   value = -2 }
	}
	action_b = {
		name = "Remain Count of Wurttemberg"
		command = { type = domestic   which = aristocracy value = 3 }
		command = { type = stability   value = 3 } 
	[COLOR="Lime"]}
}[/COLOR]