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

XiDragon

Whatever
42 Badges
Aug 21, 2004
116
29
  • Hearts of Iron IV: Cadet
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Stellaris
  • Magicka
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Crusader Kings III
  • Divine Wind
  • Crusader Kings II
  • 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 Complete
  • Cities in Motion
  • 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
  • Heir to the Throne
  • Europa Universalis III Complete
  • King Arthur II
Hi

Regarding the modding manual, is the sticky thread and the WIKI all that is there?

What I was looking for is for example information about the syntax of the event system like for "mean_time_to_happen". What can it be set to?
I tried days but that doesn't seem to work. Seems to me the shortest amount it can be set to is one month.
But there are other informations I would be glad to get like where can I use "limit"? Only in the option segment or in the trigger as well? And so on.

Is there such documentation available?
 
You should be able to set the mean time by day...(you could in EU3), I am not sure what the syntax is though.
I think the wiki and Johan's post are the only guides available right now also. You should get an answer to any questions you have here. (I will check up on the mean time part)
 
You can set it by days:
Code:
	mean_time_to_happen = {
		days = 24
months:
Code:
	mean_time_to_happen = {
		months = 24
or years:
Code:
	mean_time_to_happen = {
		years = 24
 
battlecry said:
You can set it by days:
Code:
	mean_time_to_happen = {
		days = 24
months:
Code:
	mean_time_to_happen = {
		months = 24
or years:
Code:
	mean_time_to_happen = {
		years = 24

Thanks for this info but unfortunately the days setting doesn't seem to work. It defaults to 1 month if you use days.

I have the following event and it works it is just so that if I send an envoy abroad lets say at the 12. of January the event is triggered the following month at the 3. or 4. and not like you would expect a day or two after I've send him away.
Code:
# Envoy Abroad
country_event = {

	id = 199001

	trigger = {
		any_character = { 
			is_envoy = yes 
			not = { has_character_flag = envoy_abroad }
		}	
	}

   	mean_time_to_happen = { days = 1 }

	title = "EVTNAME199001"
	desc = "EVTDESC199001"

	option = {
		name = "EVTOPTA199001"					# Envoy xy is at target

		any_character = {
			limit = { 
				is_envoy = yes 
				not = { has_character_flag = envoy_abroad } 
			}
			set_character_flag = envoy_abroad
		}
	}
}
 
XiDragon said:
Thanks for this info but unfortunately the days setting doesn't seem to work. It defaults to 1 month if you use days.

I have the following event and it works it is just so that if I send an envoy abroad lets say at the 12. of January the event is triggered the following month at the 3. or 4. and not like you would expect a day or two after I've send him away.
Code:
# Envoy Abroad
country_event = {

	id = 199001

	trigger = {
		any_character = { 
			is_envoy = yes 
			not = { has_character_flag = envoy_abroad }
		}	
	}

   	mean_time_to_happen = { days = 1 }

	title = "EVTNAME199001"
	desc = "EVTDESC199001"

	option = {
		name = "EVTOPTA199001"					# Envoy xy is at target

		any_character = {
			limit = { 
				is_envoy = yes 
				not = { has_character_flag = envoy_abroad } 
			}
			set_character_flag = envoy_abroad
		}
	}
}

Try it for some other trigger, perhaps is_envoy is just a weird one. I haven't used it yet, but there's always some triggers that fire in weird ways/times.
 
battlecry said:
Try it for some other trigger, perhaps is_envoy is just a weird one. I haven't used it yet, but there's always some triggers that fire in weird ways/times.

I will do so for testing, just to find out if it really is that this one trigger option is causing the problems.