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

Hardradi

Lt. General
33 Badges
Apr 20, 2008
1.450
7
  • Crusader Kings II
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • For the Motherland
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Crusader Kings II: Holy Knight (pre-order)
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Divine Wind
  • Deus Vult
  • Europa Universalis III Complete
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
Can anyone help with this event.

I am wanting to create a new nation event that fires in a Barbarian province after a certain date. This is what I have done so far:

country_event = {

id = 99002
trigger = {
random_country = {
limit = {
ai = no
not = { tag = this }
}
}
NOT = { exists = PAN }
113 = { controlled_by = XXX }
not = { has_country_flag = pannonian_nation }
year = 573
}

mean_time_to_happen = { days = 1 } # Adjust this when I know the event works

title = "Pannonii has formed into a nation!"
desc = "The Pannonian tribes have formed a confederacy."


option = {
name = "This is good to know."
PAN = {
add_core = 113
}
113 = { secede_province = PAN }
set_country_flag = pannonian_nation
}
}

Sorry, I dont know how to get the correct tabs in the above quote.

It doesnt fire, any suggestions/improvements ?
 

Cheexsta

Veni, vidi, vici
60 Badges
Dec 22, 2005
2.894
59
  • Europa Universalis IV: Rights of Man
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Victoria 2: Heart of Darkness
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Victoria 2
You might want to use code tags rather than quote tags next time if you want to keep the tabs in the right place :)

Might start by fixing the errors in your version of the event before suggesting what I would do.

Code:
country_event = {  #You sure you want it as a country_event?

	id = 99002
	trigger = {
		random_country = {  #Not needed. It's a country_event, so it will already fire for a "random country" that fits the trigger requirements.
			limit = {  #Not needed. Limits are only used for effects rather than triggers.
				ai = no
				not = { tag = this } #Not entirely sure what this is for.
			}
		}
		NOT = { exists = PAN }
		113 = { controlled_by = XXX } #Controlled by whom?
		not = { has_country_flag = pannonian_nation }
		year = 573 
	}

	mean_time_to_happen = { days = 1 } 

	title = "Pannonii has formed into a nation!"
	desc = "The Pannonian tribes have formed a confederacy."


	option = {
		name = "This is good to know." 
		PAN = {
			add_core = 113
		} 
		113 = { secede_province = PAN }
		set_country_flag = pannonian_nation 
	}
}

So, if I understand you correctly, you're trying to get the event to fire if province 113 is uncolonised? I don't think an event can fire for the barbarian country, but you can get one to fire for a neighbouring country. I'd do it more like this:

Code:
country_event = {

	id = 99002
	trigger = {
		NOT = { exists = PAN }
		113 = { 
			NOT = { owned_by = THIS }
			any_neighbor_province = { owned_by = THIS } #This all ensures that province 113 is on your borders, but not owned by you.
		}
		any_neighbor_country = {
			NOT = { owns = 113 } #This ensures that province 113 is not owned by any of your neighbours either, guaranteeing that it's an uncolonised province.
		}
		year = 573 
		ai = no #I presume you only wanted this event to fire for the player, so I kept this here. If you want it to fire for any country, just remove the line.
	}

	mean_time_to_happen = { days = 1 }

	title = "Pannonii has formed into a nation!"
	desc = "The Pannonian tribes have formed a confederacy."


	option = {
		name = "This is good to know." 
		PAN = {
			add_core = 113
		} 
		113 = { secede_province = PAN }
	}
}

I removed the country flags since they weren't really needed (in fact, I'm not completely sure why the new_nations events even have them, but I haven't really thought about it too hard), as the "NOT = { exists = PAN }" line should have the same effect.

So try that event and manually fire it from the console, see if it works.
 

Cheexsta

Veni, vidi, vici
60 Badges
Dec 22, 2005
2.894
59
  • Europa Universalis IV: Rights of Man
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Victoria 2: Heart of Darkness
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Victoria 2
Bring up the console (if your keyboard has a § symbol, press it; otherwise, hold down ALT and press "21" on your numpad) and type event 99002 into it. Hit Enter and you're good to go.

Glad to be of some help :)
 

Cheexsta

Veni, vidi, vici
60 Badges
Dec 22, 2005
2.894
59
  • Europa Universalis IV: Rights of Man
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Victoria 2: Heart of Darkness
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Victoria 2
It's a miracle :D

Good to see it works, always happy to help :)

As an aside, I'm thoroughly enjoying the Africa mod as well, it was good fun to really challenge Carthage as the Massaesyli, despite far lower manpower and money. The only thing I had that they didn't was a good general pool :D

Enough derailing this thread, though...