N3OW/common/on_action/NEOW_restoration_flavour_on_actions.txt

48 lines
1.6 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 = {
scope:title = title:e_nistrenia
house ?= house:house_kirtoka_georgia
NOT = { has_global_variable = flag_NEOW_kirtoka_restoration }
}
trigger_event = { id = NEOW_restoration.0201 days = 1 }
}
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 }
}
}
}
}