• 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
34 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
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Prison Architect
  • For the Motherland
  • 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
I have a weird situation where part of an event I have created doesnt work 100% of the time, only about 66 to 75% of the time.

This is the code:

Code:
country_event = {
		
	id = 185407
		
	trigger = {
		tag = MA2
		NOT = { year = 476 }
		NOT = { has_country_flag = brennus_ftw }
	}
	
	title = "EVTNAME185407"
	desc = "EVTDESC185407"
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = brennus_ftw	
		135 = {
			spawn_horde = 2

			[U][B]culture = thracian[/B][/U]

			religion = shamanism

			barbarian_power = 7
		}
	}

	option = {
		name = "EVTOPTA185407"
	}
}

Province 135 is startng out as celtic and druidism in 474.1.1. The part that doesnt work 100% of the time is "culture = thracian".

Sometimes in changes to thracian after the event fires, sometimes it doesnt.

Anyone got any ideas ?
 
I copied the event, ran it a couple of times, and got the same result.
I think this has to do with that the barbarians can convert provinces to their own culture. In your event, the barbarian horde is released before the culture swaps, wich could lead to the barbarians spawning having the same culture as the province had before the event fired, in this case celtic. This means that they can convert the province's culture to their own, reverting it to celtic from thracian again.

Sometimes the newly spawned barbarians would take the additional 7 barbarian power with them, too.

Maybe putting "spawn_horde = 2" between the religion change and "barbarian_power = 7" could do the trick?
 
Thanks for the reply vanin.

I think you must be right, the barbarians are converting the culture in the province.

The key is that I want the horde to spawn as celts in a thracian province. I might try a seperate delayed event that converts it back to thracian and see if I can get it "stable".