• 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 small issue in the Sertorius Mod which is making at least two of the events appear as follows:

rome_9-1.jpg




It all works fine, except for the way it looks. The code for the one in the screenie above is event 70504, triggered by 70503 as follows:

Code:
country_event = {
		
	id = 70503
	
	trigger = {
		tag = LUS
		war_with = ROM
		year = 675
		NOT = { year = 678 }
		NOT = { has_country_flag = roman_donation_ftw }
		NOT = { has_country_flag = sertorius_donation_ftw }
	}	
	
	title = "EVTNAME70503"
	desc = "EVTDESC70503"
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = roman_donation_ftw
	}

	option = {
		name = "EVTOPTA70503"
			treasury = 300
			stability = 1
			any_country = {
				country_event = 70504
			}
	}
}

country_event = {
		
	id = 70504
	
	trigger = {
		tag = ROM
		war_with = LUS
		year = 674
		NOT = { year = 675 }
		NOT = { has_country_flag = roman_discord_ftw }
	}	
	
	title = "EVTNAME70504"
	desc = "EVTDESC70504"
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = roman_discord_ftw
	}

	option = {
		name = "EVTOPTA70504"
			stability = -2
	}
}

Any help is appreciated.
 
Normally a triggered event has:
is_triggered_only = yes
And no other triggers or MTTH

Also I think any_country needs a limit of some sort otherwise you properly trigger that event for every other country in the game. Havn't actually seen any_country used in the vanilla files, though I could have missed it.

Instead you could simply use:

ROM = { country_event =70504 }

Since you only want 70504 to trigger for Rome anyways.