Is there a good way for something to trigger when a regency begins or ends? The only method I'm seeing is a triggered modifier withhas_regent = yes/no
, but even assuming that would work, I'm a bit reluctant because the wiki says that's resource-intensive. Though I would also have anai = no
clause in there too, I'm not sure if that would suffice for lowering resource intensity.
Not to mention that only lets me attach a modifier to the specific person, not fire an event.
Fire an event for the liege when a character gains the title_regent minor title (happens one day after whatever made the regency start) checking if the liege has some regency_setup_done flag and otherwise doing whatever you want to do, and fire another event for the liege when a character loses the same minor title that cleans things up. There might be some edge cases when a regent dies or otherwise loses the title without the regency ending, however, so you might want to check for all possible causes for a regency (imprisoned, underage, incapable, on a pilgrimage, etc.) not being a thing before doing the cleanup.
- 2
- 1