How do i set an event trigger to happen every year on a specific day of a specific month?
How do i set an event trigger to happen every year on a specific day of a specific month?
I think that the best you can do is fire a hidden event on_chronicle start, that fires your desired event with a days offset so that your intended event arrives at the intended date.
province_event = {
id = liberator.1001
religion = the_liberator
hide_window = yes
notification = yes
trigger = {
owner = {
NOR = {
religion_group = vampire
any_liege = {
relgion_group = vampire
}
}
}
}
immediate = {
owner = {
top_liege = {
reverse_religion = ROOT
}
}
}
}
One cause might having more than 5 councillors performing tasks in the same province.
Sadly that's not it. It'll still crash if it's the first councillor I use in a new game. I'm thinking the error might have to do with job_titles after all since the Validator doesn't seem to check it. I know it doesn't have to do with the job action itself, since assigning it to an unmoded councillor doesn't lead to a crash. Eh, maybe I need to create a custom 'can be this job' trigger for the allow clause?
The validator checks both job titles and honorary titles together with landed tirles in the "titles" checkbox.
Anyway post the code for that action here if you think it's that what it's buggy
job_scholastic = {
#is_spiritual = yes
is_voter = yes
attribute = learning
dignity = 0.35
opinion_effect = 10
monthly_salary = 0.1
monthly_prestige = 0.85
allow = {
is_adult = yes
independent = no
prisoner = no
NOT = { trait = incapable }
NOT = { trait = in_hiding }
NOT = { has_character_modifier = resigned_in_anger }
}
gain_effect = {
}
lose_effect = {
opinion = { who = FROM modifier = opinion_fired_from_council }
opinion = { who = FROM modifier = opinion_recently_fired }
}
retire_effect = {
}
dismiss_trigger = {
FROM = {
NOT = {
AND = {
has_law = succession_voting_power_1
ROOT = { is_powerful_vassal = yes }
}
}
}
}
action = action_oversee_research
action = action_compile_histories
lift_fow = yes
}
on_new_holder, on_new_holder_usurpation, and on_new_holder_inheritance cover all instances where a title has a new holder set.Does on_new_holder also trigger when a new title is created? I.e. does it overlap with on_create_title? I want to make sure any title held by someone of a specific religion always has a certain law.
You may be lacking in dynasties defined for Aegyptians. Random characters (especially Doctors, if you have Reapers Due) can also be of any culture and may be given titles (especially Doctors, because they tend to be highly skilled).
I'm trying to write a mod that does some funky dynamic stuff with duchies, and I'm running into some really stupid roadblocks, that don't seem like they're actually as hard as I'm finding them to be, can anyone help?
1) In a province event, I want to be able to talk about all neighbouring provinces that are in the same realm. This seems impossible, because same_realm takes a character and I can't get the owners of two provinces both in scope to compare (and when I try with something like any_neighbour_province = { owner = { PREVPREV = { owner = { same_realm = PREVPREV } } } }, CK2's testevent looks *really weird* - like one of those scopes is just illegal in that context and it responds by putting it as a sibling but also sort of continuing along, or something...?) ... but surely this isn't that hard?
2) Similarly, also in a province event, I want to be able to check if a neighbouring province has any neighbors in the same de-jure duchy, and ... it's basically the same problem - I can talk about the duchy of a province, but I can't ask if that's the de-jure liege of ANOTHER province, because the scopes don't seem to be nestable properly.
immediate = {
ROOT = { #the province. Default scope might point to the province or the owner, I always forget
owner = { save_event_target_as = root_owner }
any_neighbor_province = {
limit = {
owner = {
same_realm = event_target:root_owner
}
}
#do your stuff
}
}
}
[effectimplementation.cpp:6536]: Assert failed for 'id': _pTrait->CacheHolders()