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.