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

MattyG

Attention is love.
15 Badges
Mar 23, 2003
3.690
1
  • Crusader Kings II: The Old Gods
  • Deus Vult
  • Diplomacy
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III Complete
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings III
  • Europa Universalis 4: Emperor
I think the idea has a lot of merit.

here is my initial stab at the events, which are province based and random, so a little easier to repreduce through a program that idont or MichaelM can write.

Code:
event = {
	id = xxxxxx
	random = yes
	province = 231 #just an example
	trigger = {

		#obviously, it can't be in revolt or captured
		control = { province = 231 data = -1 }

		#it isn't going to be accepted if we are rapacious conquerers
		NOT = { badboy = 3 }

		# certain provinces will need exclisions, and for EIRE provinces, EIRE can't possibly exist still
		NOT = { exists = EIR }

		# acouple of obvious ones
		NOT = { core = 231 } #duh
		stability = 1


		# must have the same as the state religion, I think
		OR = {
			AND = {
				religion = xxx
				provincereligion = xxx
			}
			AND = { etc

		#more difficult to assess ... domestic settings
		NOT = { domestic = { type = serfdom value = 9 } }  #no-one too oppressive
		NOT = { domestic = { type = aristicracy value = 9 } }  #no-one too elitist
		domestic = { type = innovative value = 3 }  #no-one too narrow-minded


	}
	name = "Our Rule Accepted in Meath"
	desc = "With the passing of time and careful administration, our rule in Meath has come to be generally recognized and accepted not only by other nations, but the local populace as well."

	action_a = {
		name = "It was inevitable"
		command = { type = addcore which = 231 }
		command = { type = setflag which = meath_core }
	}
}

ANd, then , of course, an event to undo this ...

event = {
	id = xxxxxy
	random = yes
	trigger = {
		NOT = { owned = { province = 231 data = -1 } }
		core = 231
		flag = meath_core
	}
	name = "The Loss of Meath"
	desc = "With the passing of time it has become obvious to all concerned that our former rule in Meath is no longer accepted."

	action_a = {
		name = "Oh poo"
		command = { type = removecore which = 231 }
		command = { type = clrflag which = meath_core }
	}
}
 
Does this require writing an event for every province? What about ones that are owned by nations that naturally disappear/reform over time, like the provinces of Languedoc, Guyenne, &c. turning into Occitania? Languedoc may not exist, satisfying the first condition, but Occitania would.
 
It does, but that can be done via a program, and then I could go through each event and modify with the province-specific exclusions.

But we wouldn't have to do the new world provinces.

Another exclusions is that I think all continent provinces need to be continent specific, so all of europe would need continent = europe in the triggers.

These events don't change the fact that certain events give you cores 9through inheritence or whatever) or that you begin with cores. Note that the core-removal event is only to reverse the first one, and requires the country to have the right flag, so it would never happen to Eire, for example.
 
MattyG said:
These events don't change the fact that certain events give you cores 9through inheritence or whatever) or that you begin with cores. Note that the core-removal event is only to reverse the first one, and requires the country to have the right flag, so it would never happen to Eire, for example.

The situation I was thinking of is along the lines of Bavaria conquering Bearn, after which Languedoc disappears and becomes Occitania. Should that allow Bavaria to get Bearn as a core, or should they need to obliterate Occitania also?
 
Well, let me know when you get the exact triggers and such worked out. :)
 
I'm not quite sure how random events work in EU2, but from what I understand adding more random events makes old the old events slightly less likely to happen, while the total number of events per game should stay constant.
So, does that mean adding these few hundred new events would make all the old events less likely?
 
I'm not quite sure how random events work in EU2, but from what I understand adding more random events makes old the old events slightly less likely to happen, while the total number of events per game should stay constant.

Do they need to be actually random? I mean, we could just give them a very high offset, which would simulate randomness without having them be, in fact, random.
 
They do not need to be random, but they could be.

Depending on your perspective, that is either a good thing or a bad thing.

You have a chance (estimated at about 65% if I recall) of getting a random event each set of 350-450 game days. This cannot be changed. So, idont is right.

But some people feel there is too little variation with the random events (you get that feeling if you play long enough) so these would help thin things out a little.

But personally, I am happy that they would be non-random, but it means having additional events, as non-randoms can only occur once.

The other advanrage with randoms is that it might never occur, suggesting that there remains some genuine ongoing link to the province to retain the core.

Matty
 
siafu said:
The situation I was thinking of is along the lines of Bavaria conquering Bearn, after which Languedoc disappears and becomes Occitania. Should that allow Bavaria to get Bearn as a core, or should they need to obliterate Occitania also?

Well, I think that if they have already got the core, they keep it. But Occitania might be one of the exclusions.

I don't think that country existence will always need to be one of the exclusions, but in Eire's case I think it is a must. Ditto Scotland. But I don't see the same link with Bearn and Occitania. Occitania itself is a new state and has to be created, so has no prior legitimacy.
 
The only problem is that there's still a chance of gaining the core just after conquering it, and likewise you could lose it immediately too, I don't think it can really be done with offsets either because an offsetted is almost guaranteed to eventually happen. And really is it worth all the trouble anyway? I mean once you've conquered a territory having the core doesn't confer much benefit (only a tax bonus that you get with centralisation anyway). So from a purely gameplay perspective I'm not sure if it's worth the trouble. But if you can manage it go for it
 
Cores give a bonus to manpower as well. Or, rather, you don't suffer the reduction from not having one.

It is definitely worth having cores. If you lose the province, it also gives you a CB and lessens the BB when you retake it.

I know what you mean about offsets, but a 10000 offset is guartenteed to happen, as it checks relatively infrequently and many of the triggers (stability 1 and BB less than 3) will be somewhat restrictive.
 
A Final version?



Code:
event = {
	id = 876001
	random = no
	province = 231 #just an example
	trigger = {
		control = { province = 231 data = -1 }
		NOT = { badboy = 3 }
		NOT = { core = 231 }
		stability = 1
		NOT = { flag = meath_core }
		OR = {
			AND = {
				religion = sunni
				provincereligion = { province = 231 data = sunni }
			}
			AND = {
				religion = shiite
				provincereligion = { province = 231 data = shiite }
			}
			AND = {
				religion = catholic
				provincereligion = { province = 231 data = catholic }
			}
			AND = {
				religion = reformed
				provincereligion = { province = 231 data = reformed }
			}
			AND = {
				religion = protestant
				provincereligion = { province = 231 data = protestant }
			}
			AND = {
				religion = buddhism
				provincereligion = { province = 231 data = buddhism }
			}
			AND = {
				religion = hinduism
				provincereligion = { province = 231 data = hinduism }
			}
			AND = {
				religion = confucianism
				provincereligion = { province = 231 data = confucianism }
			}
		}
		NOT = { domestic = { type = serfdom value = 9 } }  
		NOT = { domestic = { type = aristicracy value = 9 } }
		domestic = { type = innovative value = 3 } 

		#specific conditions
		NOT = { exists = EIR }
		continent = europe

	}
	name = "Our Rule Accepted in Meath"
	desc = "With the passing of time and careful administration, our rule in Meath has come to be generally recognized and accepted not only by other nations, but the local populace as well."
	date = { year = 1419 }
	offset = 10000
	deathdate = { year = 1820 }

	action_a = {
		name = "It was inevitable"
		command = { type = addcore which = 231 }
		command = { type = setflag which = meath_core }
	}
}

event = {
	id = 876002
	random = yes
	trigger = {
		NOT = { owned = { province = 231 data = -1 } }
		core = 231
		flag = meath_core
	}
	name = "The Loss of Meath"
	desc = "With the passing of time it has become obvious to all concerned that our former rule in Meath is no longer accepted."

	action_a = {
		name = "Oh poo"
		command = { type = removecore which = 231 }
		command = { type = clrflag which = meath_core }
	}
}

event = {
	id = 876003
	random = yes
	trigger = {
		OR = {
			AND = {
				owned = { province = 231 data = -1 }
				religion = sunni
				NOT = { provincereligion = { province = 231 data = sunni } }
			}
			AND = {
				owned = { province = 231 data = -1 }
				religion = shiite
				NOT = { provincereligion = { province = 231 data = shiite } }
			}
			AND = {
				owned = { province = 231 data = -1 }
				religion = catholic
				NOT = { provincereligion = { province = 231 data = catholic } }
			}
			AND = {
				owned = { province = 231 data = -1 }
				religion = reformed
				NOT = { provincereligion = { province = 231 data = reformed } }
			}
			AND = {
				owned = { province = 231 data = -1 }
				religion = protestant
				NOT = { provincereligion = { province = 231 data = protestant } }
			}
			AND = {
				owned = { province = 231 data = -1 }
				religion = buddhism
				NOT = { provincereligion = { province = 231 data = buddhism }}
			}
			AND = {
				owned = { province = 231 data = -1 }
				religion = hinduism
				NOT = { provincereligion = { province = 231 data = hinduism } }
			}
			AND = {
				owned = { province = 231 data = -1 }
				religion = confucianism
				NOT = { provincereligion = { province = 231 data = confucianism } }
			}
		}
		core = 231
		flag = meath_core
	}
	name = "The Loss of Meath"
	desc = "The religious differences that wrack the province have made it clear that our rule in Meath is no longer accepted."

	action_a = {
		name = "Oh poo"
		command = { type = removecore which = 231 }
		command = { type = clrflag which = meath_core }
	}
}

event = {
	id = 876004
	random = no
	province = 231
	trigger = {
		event = 876001
		control = { province = 231 data = -1 }
		NOT = { badboy = 3 }
		NOT = { core = 231 }
		stability = 1
		NOT = { flag = meath_core }
		OR = {
			AND = {
				religion = sunni
				provincereligion = { province = 231 data = sunni }
			}
			AND = {
				religion = shiite
				provincereligion = { province = 231 data = shiite }
			}
			AND = {
				religion = catholic
				provincereligion = { province = 231 data = catholic }
			}
			AND = {
				religion = reformed
				provincereligion = { province = 231 data = reformed }
			}
			AND = {
				religion = protestant
				provincereligion = { province = 231 data = protestant }
			}
			AND = {
				religion = buddhism
				provincereligion = { province = 231 data = buddhism }
			}
			AND = {
				religion = hinduism
				provincereligion = { province = 231 data = hinduism }
			}
			AND = {
				religion = confucianism
				provincereligion = { province = 231 data = confucianism }
			}
		}
		NOT = { domestic = { type = serfdom value = 9 } }  
		NOT = { domestic = { type = aristicracy value = 9 } }
		domestic = { type = innovative value = 3 } 

		#specific conditions
		NOT = { exists = EIR }
		continent = europe

	}
	name = "Our Rule Accepted in Meath"
	desc = "With the passing of time and careful administration, our rule in Meath has come to be generally recognized and accepted not only by other nations, but the local populace as well."
	date = { year = 1419 }
	offset = 10000
	deathdate = { year = 1820 }

	action_a = {
		name = "It was inevitable"
		command = { type = addcore which = 231 }
		command = { type = setflag which = meath_core }
	}
}
		
event = {
	id = 876005
	random = no
	province = 231
	trigger = {
		event = 876004 }
		control = { province = 231 data = -1 }
		NOT = { badboy = 3 }
		NOT = { core = 231 }
		stability = 1
		NOT = { flag = meath_core }
		OR = {
			AND = {
				religion = sunni
				provincereligion = { province = 231 data = sunni }
			}
			AND = {
				religion = shiite
				provincereligion = { province = 231 data = shiite }
			}
			AND = {
				religion = catholic
				provincereligion = { province = 231 data = catholic }
			}
			AND = {
				religion = reformed
				provincereligion = { province = 231 data = reformed }
			}
			AND = {
				religion = protestant
				provincereligion = { province = 231 data = protestant }
			}
			AND = {
				religion = buddhism
				provincereligion = { province = 231 data = buddhism }
			}
			AND = {
				religion = hinduism
				provincereligion = { province = 231 data = hinduism }
			}
			AND = {
				religion = confucianism
				provincereligion = { province = 231 data = confucianism }
			}
		}
		NOT = { domestic = { type = serfdom value = 9 } }  
		NOT = { domestic = { type = aristicracy value = 9 } }
		domestic = { type = innovative value = 3 } 

		#specific conditions
		NOT = { exists = EIR }
		continent = europe

	}
	name = "Our Rule Accepted in Meath"
	desc = "With the passing of time and careful administration, our rule in Meath has come to be generally recognized and accepted not only by other nations, but the local populace as well."
	date = { year = 1419 }
	offset = 10000
	deathdate = { year = 1820 }

	action_a = {
		name = "It was inevitable"
		command = { type = addcore which = 231 }
		command = { type = setflag which = meath_core }
	}
}
 
MichaelM

I'd like to have this all in 1.0, so it looks like - with 100 hits and no opposition - that this is a go.

Could you write your program and hit run?

I will then fill in all the exclusions.

Please don't bother with any of the provinces in south and north america.

Thanks,

Matty
 
I'm still not sure if it will work but I say test it and see how it goes. Anyway at worst we're just making random events less likely to come up and wasting time, and if it works then :cool:
 
But the main events are now not random, didn't you see. :confused:

Only the undoing events are random, because there is no other way. You can't identify the country that USED to own the province, except via a flag and making it random.
 
ah right, still there's a chance of it happening too often that way... that said you do have to be below badboy 3 which won't be happening to most would be conquerors so it seems like it'll work
 
Ok, here you go. I did events for Europe, Asia, Africa, and Oceania. I went ahead and added "continent = xxx" to the triggers of events 1 and 4, where "xxx" is the continent that the province is on. Here's an example of event 1:
Code:
event = {
	id = 876901
	random = no
	province = 321
	trigger = {
		control = { province = 321 data = -1 }
		NOT = { badboy = 3 }
		NOT = { core = 321 }
		stability = 1
		NOT = { flag = rumelia_core }
		OR = {
			AND = {
				religion = sunni
				provincereligion = { province = 321 data = sunni }
			}
			AND = {
				religion = shiite
				provincereligion = { province = 321 data = shiite }
			}
			AND = {
				religion = catholic
				provincereligion = { province = 321 data = catholic }
			}
			AND = {
				religion = reformed
				provincereligion = { province = 321 data = reformed }
			}
			AND = {
				religion = protestant
				provincereligion = { province = 321 data = protestant }
			}
			AND = {
				religion = buddhism
				provincereligion = { province = 321 data = buddhism }
			}
			AND = {
				religion = hinduism
				provincereligion = { province = 321 data = hinduism }
			}
			AND = {
				religion = confucianism
				provincereligion = { province = 321 data = confucianism }
			}
		}
		NOT = { domestic = { type = serfdom value = 9 } }  
		NOT = { domestic = { type = aristocracy value = 9 } }
		domestic = { type = innovative value = 3 } 

		#specific conditions
		continent = europe

	}
	name = "Our Rule Accepted in Rumelia"
	desc = "With the passing of time and careful administration, our rule in Rumelia has come to be generally recognized and accepted not only by other nations, but the local populace as well."
	date = { year = 1419 }
	offset = 10000
	deathdate = { year = 1820 }

	action_a = {
		name = "It was inevitable"
		command = { type = addcore which = 321 }
		command = { type = setflag which = rumelia_core }
	}
}
The event ID numbers are incremented by 10 between provinces, so the last digit of each ID is 1, 2, 3, 4, or 5.

EDIT: I generated the events based on the vanilla province.csv. Does Interregnum change anything in it?
 
Last edited:
OK, that was very fast work indeed!

Thanks for adding in the continent exclusions. Most provinces will have it, but not all. The border areas ought - I think - to lose that: Turkey, the Balkans and Greece, North Africa for Al-Andalus, the Turcomen provinces.

There are no province name changes except for Toledo being Cordoba, but I can change that one.

Thanks again.

Matty
 
MattyG said:
Thanks for adding in the continent exclusions. Most provinces will have it, but not all. The border areas ought - I think - to lose that: Turkey, the Balkans and Greece, North Africa for Al-Andalus, the Turcomen provinces.
I can't really do exceptions like that with a mass generator; sorry. I hope you don't mind adding them manually. :)
 
MichaelM said:
I can't really do exceptions like that with a mass generator; sorry. I hope you don't mind adding them manually. :)


Not a bit, it's what I expected. You rock.