N3OW/common/on_action/NEOW_restoration_flavour_on_actions.txt
2026-11-21 23:41:36 +00:00

39 lines
1.3 KiB
Text

# Catches already-owned targets on an existing save, and repeats after expansion.
NEOW_restoration_flavour_pulse = {
trigger = {
is_ai = no
is_ruler = yes
}
events = {
NEOW_restoration.9000
}
}
# A war transfers titles to the conqueror or to their vassals. Check the player
# who received the title, or the top liege of the new holder, after war cleanup.
NEOW_restoration_flavour_title_gain_pulse = {
effect = {
if = {
limit = {
is_ai = no
is_ruler = yes
NOT = { has_character_flag = flag_NEOW_restoration_check_queued }
}
add_character_flag = { flag = flag_NEOW_restoration_check_queued days = 10 }
trigger_event = { id = NEOW_restoration.9000 days = 3 }
}
else_if = {
limit = {
root.top_liege = {
is_ai = no
is_ruler = yes
NOT = { has_character_flag = flag_NEOW_restoration_check_queued }
}
}
root.top_liege = {
add_character_flag = { flag = flag_NEOW_restoration_check_queued days = 10 }
trigger_event = { id = NEOW_restoration.9000 days = 3 }
}
}
}
}