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

unmerged(287474)

Captain
2 Badges
Mar 19, 2011
389
0
  • Crusader Kings II
  • Victoria 2: A House Divided
So for detecting a player character is: ai = no

I believe you can select all children with any_child or something like that.

I believe you can then target their ward by something like:
has_ward
ward = { /* and then specify the qualifications of the wards you're looking for */}

The wards we are looking for in this case are those whom have player lieges, so: liege = { ai = no}

So ultimately, in quasi-theoretical-pseudo-code:

any_child = {
has_ward
ward = {
liege = { ai = no }
}
}

So I'll give this a go tonight or sometime this weekend, but if anyone has experience with these kinds of targetting, please share your wisdom!
 
lol! No I'm making a mod that makes the game easier for players but in interesting ways.
This part involves a player's being able to tactically tutor children and making their stats go up every year based on the tutor.

So when you negotiate to educate a child with one of your vassals, they will educate the children much more than an ai will.

This would be beneficial when you educate your own children, but also if you find a good alliance wife for your family, you could educate her from age 6 and your heir will have a really good wife for a really good heir. :D

Mod will have more than just that. Your council members will also improve at what they do over time, combat experience will raise martial for your vassals, your vassal mayors and bishops will have relevant stats improve over time, and whatever else I can think of that isn't over the top.

Basically aimed to make the game more fun by developing your dynastys abilities through ways that make sense, giving you a diplomatic edge over the ai.
 
Just an update with what worked. This will target the player's leader if in regency and has a guardian, or any child whom's guardian's liege is a player.

Code:
       trigger = {
		has_guardian = yes
		OR = {
			ai = no
			guardian = {
				liege = { ai = no }
			}
		}
	}