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

LlywelynII

Field Marshal
11 Badges
Oct 8, 2002
4.362
77
Visit site
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Divine Wind
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Victoria 2
  • 500k Club
I'm working with Drachenfire on his Welsh mod and want to come up with some events to replicate the feel of playing the Welsh princes. Whole bunch of minor stuff, but two things really need to change: bastards need to be much more common and easier to legitimize, and your kids need to get really pissed if you switch out of gavelkind inheritance.

So I did my first attempt at coding some events for CK. As I expected, it's very ugly and unwieldy compared to eu2 & there's no guide at Havard's or in the Ckpedia I could find & I'll probably have to ask a bunch of questions, but here's something right off the bat:

The triggers for the current legitamize yr bastard event:

bastardy event said:
condition = { type = trait value = bastard }
condition = { type = ruler_child }
condition = { type = age value = 16 }
condition = { type = not value = { type = trait value = vengeful } }
condition = { type = not value = { type = trait value = suspicious } }

Does this event fire for the child outside of view? or for the player?

"Value = bastard" obviously refers to the child's traits, but whose traits should not be vengeful or suspicious - his or his father's?

Does it matter that one condition is above the "type = ruler_child" and the others are below?

If it's the kid who shouldn't be vengeful or suspicious, is there a way to check for the father's traits at all? - specifically, if the dad's zealous, he'd go along with canon law and avoid claiming the kid.

Finally and most importantly, is there a way to limit CK events to particular counties, duchies or cultures? or would anything introduced for Welsh flavor end up firing for Polish counts just the same? (although, I suppose player-only events for a Wales-only mod would end up only applying to Wales, it's a pretty clunky system for people who might have a number of different save games they cycle through)
 
The event fires for AI and player both.
Here is a player only event:
Code:
condition = { type = not value = { type = ai } } #for players court only
Order of conditions is irrelevant. AND is assumed unless otherwise specified:
Code:
condition = { type = or 
		condition = { type = ruler }
		condition = { type = age value = 50 }
}
Notice that "{}" brackets enclose conditions for which OR applies. So in this example the condition is TRUE if the character is a ruler OR is older than 50 (of course a ruler older than 50 works too).

Also there are culture and religion conditions:
Code:
condition = { type = culture value = Arab }
condition = { type = religion value = moslem }

About country specific conditions:
Code:
condition = { type = title value = GOLD }
I'm not sure that it is valid for the title holder only or anyone in that court.

Enjoy!
 
Here is another attempt to limit events to certain TAG:
Code:
condition = { type = realm_ruler
	condition = { type = title value = GOLD }
}
So, events will only fire for characters in that realm, including vassals and vassal court members.
For characters in only one court, try this:
Code:
condition = { type = liege
	condition = { type = title value = DCRO }
}

The last one probably doesn't fire for the ruler, so try maybe something like this:
Code:
condition = { type = or
	condition = { type = liege
		condition = { type = title value = DCRO }
	}
	condition = { type = title value = DCRO }
}

Good way to test if the events work for intended characters is to select the character and open the console (F12). Type charevent #### and you will see in the console MTTH for the event if the event is valid for the character. If not, there will be a message in the console saying something like : " conditions not met".
It's the same for province events; select the province, console, type provevent ####.
For testfiring the province_x_province events, see my sig. :D