RR88

Recruit
33 Badges
Feb 12, 2011
9
0
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Cities: Skylines Industries
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Crusader Kings II
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Darkest Hour
  • Crusader Kings II: The Old Gods
So, being completly bored and having a lot of time I've created an event that grants us an accepted culture after being in possession of 50/60 % of provinces of one type of culture. Here is an example of acceptance of baltic culture, where we'll have to own 4 of 5 baltic provinces for x years, and have stability at level 3 and not being at war. Feel free to comment and give some feedback.

Code:
event = {
	id = 89002
	trigger = {
		someof = {
		    number = 4
			ownerchange = { province = 283 years = 45 }
			ownerchange = { province = 284 years = 55 }
			ownerchange = { province = 288 years = 45 }
			ownerchange = { province = 289 years = 55 }
			ownerchange = { province = 290 years = 60 }
			}
		someof = {
		    number = 4
			owned = { province = 283 data = -1 }
			owned = { province = 284 data = -1 }
			owned = { province = 288 data = -1 }
			owned = { province = 289 data = -1 }
			owned = { province = 290 data = -1 }
			}
		atwar = no
		stability = 3
		    }
	random = no
	name = "Assimilation of foreign culture"
	desc = "xxx"

	date = { day = 1 month = january year = 1419 }
	offset = 14610
	deathdate = { day = 1 month = january year = 1820 }

	action_a = {
			name = "Great"
			command = { type = add_countryculture which = baltic }
		   }
	}
 

Toio

Field Marshal
6 Badges
Jun 18, 2003
7.699
0
Visit site
  • Europa Universalis III
  • Europa Universalis III Complete
  • For The Glory
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
So, being completly bored and having a lot of time I've created an event that grants us an accepted culture after being in possession of 50/60 % of provinces of one type of culture. Here is an example of acceptance of baltic culture, where we'll have to own 4 of 5 baltic provinces for x years, and have stability at level 3 and not being at war. Feel free to comment and give some feedback.

Code:
event = {
	id = 89002
	trigger = {
		someof = {
		    number = 4
			ownerchange = { province = 283 years = 45 }
			ownerchange = { province = 284 years = 55 }
			ownerchange = { province = 288 years = 45 }
			ownerchange = { province = 289 years = 55 }
			ownerchange = { province = 290 years = 60 }
			}
		someof = {
		    number = 4
			owned = { province = 283 data = -1 }
			owned = { province = 284 data = -1 }
			owned = { province = 288 data = -1 }
			owned = { province = 289 data = -1 }
			owned = { province = 290 data = -1 }
			}
		atwar = no
		stability = 3
		    }
	random = no
	name = "Assimilation of foreign culture"
	desc = "xxx"

	date = { day = 1 month = january year = 1419 }
	offset = 14610
	deathdate = { day = 1 month = january year = 1820 }

	action_a = {
			name = "Great"
			command = { type = add_countryculture which = baltic }
		   }
	}

nice event although your offset needs a rethink.

offset works like this . It will choose a given day anytime in date of 14610 days from ( your event) your date line, so 1st of January 1419, then after 1st trigger and failure it will not trigger again until 14610 days have past.
so it could try to trigger on the 2nd of January 1419 and never again until 14610 days later, If you continuously have game on. It could also try first trigger 9000 days after 1st of January 1419. Of course if you save and restart game all offsets are recalculated.

This is the reason a lot of events with long offsets fire after restart.

I have removed/shorten all my offsets which are longer than 5 years for all events
 

RR88

Recruit
33 Badges
Feb 12, 2011
9
0
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Cities: Skylines Industries
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Crusader Kings II
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Darkest Hour
  • Crusader Kings II: The Old Gods
Thanks for info about offset... I thought it was something completly different. I've also thought about adding another trigger condition => controlchange, It would be useful, because it could inform how often revolts appers in area (of course if you lose control over province for rebel scum) and how prone provinces are for invasion e.g. Netherlands or baltic area of LO and TO. It would be a little harder to maintain possesion and gain acceptance of foreign culture, especially in high revolt risk areas.

The main problem is that even if you own e.g. 15 of 25 french culture provinces and the trigger is set to 17, after gaining 2 provinces in peace resolution you'll automatically gain a french culture due to the fact that other provinces in the area were owned for other countries for 50-60 years (the trigger is not specified to country, just to provinces) it's my only problem with event, because with small 4/5/6 provnice cultures I've set that you would have to own all of them to gain a culture. I think it's reasonable,

BTW. Offset = 360 it's good setting ?
 

MichaelM

For the Glory lead
10 Badges
Jun 30, 2004
3.798
99
crystalempiregames.com
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • For The Glory
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
The main problem is that even if you own e.g. 15 of 25 french culture provinces and the trigger is set to 17, after gaining 2 provinces in peace resolution you'll automatically gain a french culture due to the fact that other provinces in the area were owned for other countries for 50-60 years (the trigger is not specified to country, just to provinces) it's my only problem with event,
You could combine the two someof triggers, like this:
Code:
		someof = {
			number = 4
			AND = {
				owned = { province = 283 data = -1 }
				ownerchange = { province = 283 years = 45 }
			}
			AND = {
				owned = { province = 284 data = -1 }
				ownerchange = { province = 284 years = 55 }
			}
			AND = {
				owned = { province = 288 data = -1 }
				ownerchange = { province = 288 years = 45 }
			}
			AND = {
				owned = { province = 289 data = -1 }
				ownerchange = { province = 289 years = 55 }
			}
			AND = {
				owned = { province = 290 data = -1 }
				ownerchange = { province = 290 years = 60 }
			}
		}

I'm glad to see someone doing cool things with the new triggers.
 
Last edited:

luk3Z

Rebel
1 Badges
May 15, 2007
400
13
  • For The Glory
So, being completly bored and having a lot of time I've created an event that grants us an accepted culture after being in possession of 50/60 % of provinces of one type of culture. Here is an example of acceptance of baltic culture, where we'll have to own 4 of 5 baltic provinces for x years, and have stability at level 3 and not being at war. Feel free to comment and give some feedback.
(...)

Really cool.
Anyway you should check this events [for EU2]: rapidshare.com/files/203705856/Quendi_Poland_Mod_aktualna_wersja.exe.html

especially in .\QPM\QPM :)

Author of this mod stopped developing it long time ago, but his events are also cool.
 

Tontonseb

Second Lieutenant
40 Badges
Sep 20, 2006
164
0
www.panzer.fr
  • Hearts of Iron IV: Death or Dishonor
  • 500k Club
  • Cities: Skylines
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Victoria 2: Heart of Darkness
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Battle for Bosporus
  • Divine Wind
  • Arsenal of Democracy
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Hearts of Iron Anthology
  • For The Glory
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Rome Gold
  • Victoria 2
  • Victoria 2: A House Divided
Offset = 360, yes in that case it's certainly very good. It's good to have an offset that allows you to test the event an adequate number of times considering the delay between date and deathdate. I mean that if the delay is six months, it would be nice to have, say offset = 20. Toio has given a precious advice above: avoid any unusual offset. I rarely use an offset longer than 720.
 

ConjurerDragon

Generalissimus
63 Badges
Apr 19, 2005
5.320
481
  • Teleglitch: Die More Edition
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • The Kings Crusade
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Sengoku
  • Ship Simulator Extremes
  • Sword of the Stars
  • Impire
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Pride of Nations
  • Rise of Prussia
  • Shadowrun: Hong Kong
  • East India Company Collection
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • 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
  • Hearts of Iron III
Great idea :D Why I haven't thought about it myself, now I have to rewrite alomst 20 events :p But that way it'll be more realistic, thanks for help.

I would suggest that you add the condition to the trigger that you not only OWN but CONTROL those provinces too. How would you assimilate the culture if e.g. you own those provinces but all of them would be controlled by rebels?
 

RR88

Recruit
33 Badges
Feb 12, 2011
9
0
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Cities: Skylines Industries
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Crusader Kings II
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Darkest Hour
  • Crusader Kings II: The Old Gods
Ok, so after few months I come back to my "project" and created an event to all cultures and begin testing. So I begin with Poland, and in year 1478 I conquered Wallachia, and anexed Moldovia - all romanian culture provinces. In my event I set the assimilation time to 60 years, but in year 1491 I get the event and being a rookie in event editing I have no clue what's wrong. Here is the event:

Code:
event = {
	id = 89085
	trigger = {
		someof = {
		    number = 3
		   	AND = {
     ownerchange = { province = 318 years = 60 }
     owned = { province = 318 data = -1 }
     controlchange = { province = 318 years = 60 }
    }
AND = {
     ownerchange = { province = 319 years = 60 }
     owned = { province = 319 data = -1 }
     controlchange = { province = 319 years = 60 }
    }
AND = {
     ownerchange = { province = 322 years = 60 }
     owned = { province = 322 data = -1 }
     controlchange = { province = 322 years = 60 }
    }
}
      atwar = no
      stability = 3
	}
Random = no
name = "Acceptance of foreign culture"
	desc = "xxx"
	date = { day = 1 month = january year = 1419 }
	offset = 300
	deathdate = { day = 1 month = january year = 1820 }
	action_a = {
		name = "Fantastic!"
		command = { type = add_countryculture which = romanian }
		   }
	}
 

MichaelM

For the Glory lead
10 Badges
Jun 30, 2004
3.798
99
crystalempiregames.com
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • For The Glory
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
The trigger looks all right (although of course you're asking it to choose any 3 of the 3 AND-blocks). May I have a save game from just before the event fires?
 

ConjurerDragon

Generalissimus
63 Badges
Apr 19, 2005
5.320
481
  • Teleglitch: Die More Edition
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • The Kings Crusade
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Sengoku
  • Ship Simulator Extremes
  • Sword of the Stars
  • Impire
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Pride of Nations
  • Rise of Prussia
  • Shadowrun: Hong Kong
  • East India Company Collection
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • 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
  • Hearts of Iron III
Instead of
deathdate = { day = 1 month = january year = 1820 }
you can simply use
deathdate = { year = 1820 }

What kind of event should that be? One specifically for POLand? If so the country is missing.

If it´s a provincesspecific event the province needs to be specified for which it should fire.

province = 323 #Transylvania

e.g. event 338291 in AGCEEP_Global_provincespec.eue


As far as I remember if you don´t make it provincespecific AND not countryspecific then the trigger is met as soon as ANYONE fulfills the trigger. Not just you/Poland.
 
Last edited:

RR88

Recruit
33 Badges
Feb 12, 2011
9
0
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Cities: Skylines Industries
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Crusader Kings II
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Darkest Hour
  • Crusader Kings II: The Old Gods
Ok, somebody help me with descripton and I'll be good to share my creation with others ;) I thought about something like:
After years of integration, the new lands finally acknowledge our superiority.
But for me it is little incoherent and too short. Maybe somebody else would have better idea?
 

ConjurerDragon

Generalissimus
63 Badges
Apr 19, 2005
5.320
481
  • Teleglitch: Die More Edition
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • The Kings Crusade
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Sengoku
  • Ship Simulator Extremes
  • Sword of the Stars
  • Impire
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Pride of Nations
  • Rise of Prussia
  • Shadowrun: Hong Kong
  • East India Company Collection
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • 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
  • Hearts of Iron III
Ok, somebody help me with descripton and I'll be good to share my creation with others ;) I thought about something like:

But for me it is little incoherent and too short. Maybe somebody else would have better idea?

Resistance is futile - they have been assimilated?
 

CurryHodac

Recruit
6 Badges
Oct 11, 2013
4
0
  • For The Glory
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis IV
  • Victoria 2
  • War of the Roses
Though this thread is quite old, I was wondering if it was possible within the command list to code a random event with the trigger being owning a wrong culture province for x amount of time (like say, 50 years), and the command being to accept that culture.
 

ConjurerDragon

Generalissimus
63 Badges
Apr 19, 2005
5.320
481
  • Teleglitch: Die More Edition
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • The Kings Crusade
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Sengoku
  • Ship Simulator Extremes
  • Sword of the Stars
  • Impire
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Pride of Nations
  • Rise of Prussia
  • Shadowrun: Hong Kong
  • East India Company Collection
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • 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
  • Hearts of Iron III
Though this thread is quite old, I was wondering if it was possible within the command list to code a random event with the trigger being owning a wrong culture province for x amount of time (like say, 50 years), and the command being to accept that culture.

Yes. However not with just one random event. Random events happen only once per year to a country and are chosen from all possible events (due to their triggers being met) by random chance. Which means that you would not get your desired event after an exact amount of years because there are quite a lot of random events existing that will make your new event quite unlikely to trigger even if the triggers of your event are met.

Better would be to have a persistent event (so that it might trigger again and again for different countries) for every province.