• 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.
Showing developer posts only. Show all posts in this thread.

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
My question has to do with the scope change "any_de_jure_vassal_title". In my in game tests, this line seems to cause problems. The game ignores the line its on when executing, including the opening curly bracket. Is the line working? richvh suggested it should be brought up with you.

Alternatively, can you give any suggestions on how to scope from a province to all the holdings in it? I'd like to test to see if a building exists in the province that a person is currently in. This is for the Crisis of the Confederation mod, where being in a province that has a hospital makes you heal faster from wounds and illness, and the level 2 version of the building gives a boost to overall health to anyone in the province (rule, courtiers, and barony rulers). This is accomplished through events that add and remove the traits.

EDIT: Got a solution, but didn't use "any_de_jure_vassal_title" in the end to pull it off.

any_de_jure_vassal_title only exists as an effect - not as a trigger. That's why it's not working.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
How to stop a dead dynasty from reappearing again, I've asked the Quick Question forums countless time but to no avail, and the used_for_random=no doesn't seem to work.

I believe you should set can_appear to equal no.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Does anyone know what the base_unit function thingy do for special_units? I ask it here in hopes someone might be able to tell me just which flags it hits and carries to the custom unit from the base unit, for example does it share tactics etc etc.

It is so that the game knows how to handle them, so in combat they are included when the strength of that sub-unit type is calculated etc. Same for calculating what graphical type to show on the map.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Another question:

In localisation, does [Spouse.etc...] scope to the most recent spouse, if they are widowed?

No, no dead characters are included.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Speaking of localisation, can you give us an indication of whether or not localisation for events is now suddenly going to be required henceforth?

Lots of us used to prefer writing desc = "This is the description" type events previously, but patch 2.3 makes all these events blanks.

Myself and lots of others would like to know, at least, if this is something that was a mistake and will be fixed, or if we need to start re-doing all the events we've ever done with localisation :p

For active mods with large-ish teams it's not an insurmountable issue, at least in Warhammer Illathid has offered to go through and do it for me as needed while I focus on writing new events. For older mods and one-man-efforts however, a lot of mod content is going to be lost more or less permanently if localisation is now a requirement.

I actually had no idea that you could do that kind of direct localization anymore. I thought that disappeared in one of the expansions to EU3 (because I remember the angry reactions on the mod forum).