Here is my event:
Here is my on_action file in /common/on_actions:
so I would expect that the title would get Eldership succession if the primary title has Eldership, but it is still given primogeniture, even when primogeniture is not available, and all non-primary titles are change to primogeniture. Even if I fire the event manually with the console it does not work. What do I have to put in the event to make the succession law change? Changing succession laws in the history files works, why doesn't it work in an event? Is the vanilla Eldership event the only one where it works?
Code:
namespace = AFRREL
# Fix Eldership succession of new titles to prevent random primogeniture
character_event = {
id = AFRREL.001
hide_window = yes
only_playable = yes
is_triggered_only = yes
trigger = {
primary_title = {
has_law = succ_eldership
}
}
immediate = {
any_demesne_title = {
add_law = {
law = succ_eldership
cooldown = no
opinion_effect = no
}
}
}
}
Here is my on_action file in /common/on_actions:
Code:
on_create_title = {
events = {
AFRREL.001 # Fix Eldership
}
}
on_new_holder = {
events = {
AFRREL.001
}
}
so I would expect that the title would get Eldership succession if the primary title has Eldership, but it is still given primogeniture, even when primogeniture is not available, and all non-primary titles are change to primogeniture. Even if I fire the event manually with the console it does not work. What do I have to put in the event to make the succession law change? Changing succession laws in the history files works, why doesn't it work in an event? Is the vanilla Eldership event the only one where it works?
Last edited: