diff --git a/MOD/Witcher/events/family_events.txt b/MOD/Witcher/events/family_events.txt index f8a654388..27e28fbd1 100644 --- a/MOD/Witcher/events/family_events.txt +++ b/MOD/Witcher/events/family_events.txt @@ -1,1291 +1,1295 @@ -############################################# -# -# Events for Family Members -# -# Event ID 37000-37999 is reserved -# -############################################# - -################################################### -# Relative demands a title -################################################### - -# Relative demands inheritance due to ambition -character_event = { - id = 37000 - desc = EVTDESC37000 - picture = GFX_evt_son_asking_father - - min_age = 15 - only_men = yes - capable_only = yes - prisoner = no - - trigger = { - has_ambition = obj_wants_landed_title - independent = no - liege = { - is_close_relative = ROOT - any_demesne_title = { - can_be_given_away = yes - AND = { - tier = count - is_feudal = yes - location = { - is_capital = no - } - } - } - } - NOT = { has_character_flag = flag_denied_title } - NOT = { has_character_flag = flag_promised_title } - OR = { - NOT = { has_character_flag = flag_later_title } - had_character_flag = { flag = flag_later_title days = 1825 } - } - } - - mean_time_to_happen = { - months = 12 - - modifier = { - factor = 0.5 - trait = ambitious - } - modifier = { - factor = 0.5 - trait = diligent - } - modifier = { - factor = 5.0 - trait = slothful - } - modifier = { - factor = 5.0 - trait = content - } - } - - option = { - name = EVTOPTA37000 # Ask liege for a title - liege = { character_event = { id = 37001 days = 3 tooltip = EVTTOOLTIP37001 } } - } -} - -# Liege responds to the request -character_event = { - id = 37001 - desc = EVTDESC37001 - picture = GFX_evt_son_asking_father - - is_triggered_only = yes - - option = { - name = EVTOPTA37001 # Promise that you'll arrange it - FROM = { character_event = { id = 37002 tooltip = EVTTOOLTIP37002 } } - } - - option = { - name = EVTOPTB37001 # Say he's not ready yet - trigger = { - NOT = { diplomacy = 8 } - } - - FROM = { character_event = { id = 37004 tooltip = EVTTOOLTIP37004 } } - - if = { - limit = { - ai = no - independent = yes - FROM = { - NOT = { trait = content } - NOT = { trait = patient } - NOT = { trait = craven } - NOT = { has_character_modifier = old_age } - has_character_flag = flag_later_title - } - } - custom_tooltip = { text = evt_relative_might_revolt } - } - } - - option = { - name = EVTOPTC37001 # Mention a Church career... - tooltip_info = diplomacy - trigger = { - religion = eternal_fire - diplomacy = 8 - } - FROM = { character_event = { id = 37003 tooltip = EVTTOOLTIP37003 } } - } - - option = { - name = EVTOPTD37001 # Diplomatically refuse - tooltip_info = diplomacy - trigger = { - NOT = { religion = eternal_fire } - diplomacy = 8 - } - FROM = { character_event = { id = 37003 tooltip = EVTTOOLTIP37003 } } - } -} - -# The relative is filled with anticipation -character_event = { - id = 37002 - desc = EVTDESC37002 - picture = GFX_evt_son_asking_father - - is_triggered_only = yes - - option = { - name = EVTOPTA37002 # It had better not be hollow words... - opinion = { - who = FROM - modifier = opinion_promised_title - months = 12 - } - - set_character_flag = flag_promised_title - add_character_modifier = { name = promised_a_title duration = -1 } - - hidden_tooltip = { - if = { - limit = { - OR = { - trait = slothful - trait = content - } - NOT = { trait = ambitious } - } - character_event = { id = 37005 days = 865 random = 200 } - } - if = { - limit = { - NOT = { trait = slothful } - NOT = { trait = content } - NOT = { trait = ambitious } - } - character_event = { id = 37005 days = 385 random = 200 } - } - if = { - limit = { - trait = ambitious - } - character_event = { id = 37005 days = 365 random = 50 } - } - } - } -} - -# The relative is deeply offended -character_event = { - id = 37003 - desc = EVTDESC37003 - picture = GFX_evt_bad_news - - is_triggered_only = yes - - option = { - name = EVTOPTA37003 # This will not stand! - opinion = { - who = FROM - modifier = opinion_denied_title - months = 60 - } - set_character_flag = flag_denied_title - } -} - -# The relative is disappointed -character_event = { - id = 37004 - desc = EVTDESC37004 - picture = GFX_evt_bad_news - - is_triggered_only = yes - - option = { - name = EVTOPTA37004 # I'll ask again later... - trigger = { - NOT = { has_character_flag = flag_later_title } - } - set_character_flag = flag_later_title - } - - option = { - name = EVTOPTB37004 # Not again! - trigger = { - has_character_flag = flag_later_title - } - ai_chance = { - factor = 750 - } - opinion = { - who = FROM - modifier = opinion_denied_title - months = 120 - } - clr_character_flag = flag_later_title - set_character_flag = flag_denied_title - } - - option = { - name = EVTOPTB37007 - trigger = { - has_character_flag = flag_later_title - NOT = { trait = content } - NOT = { trait = patient } - NOT = { trait = craven } - NOT = { has_character_modifier = old_age } - liege = { - independent = yes - } - } - - ai_chance = { - factor = 100 - modifier = { - factor = 2.5 - trait = ambitious - } - modifier = { - factor = 0.25 - trait = slothful - } - } - - opinion = { - who = FROM - modifier = opinion_broken_title_promise - months = 120 - } - clr_character_flag = flag_promised_title - remove_character_modifier = promised_a_title - set_character_flag = flag_denied_title - - character_event = { id = 37010 days = 45 } - } - -} - -# Relative reminds liege of promised title -character_event = { - id = 37005 - desc = EVTDESC37005 - picture = GFX_evt_son_asking_father - - is_triggered_only = yes - - trigger = { - independent = no - is_ruler = no - prisoner = no - NOT = { trait = incapable } - has_ambition = obj_wants_landed_title - has_character_flag = flag_promised_title - liege = { - any_demesne_title = { - can_be_given_away = yes - AND = { - tier = count - is_feudal = yes - location = { - is_capital = no - } - } - } - } - } - - option = { - name = EVTOPTA37005 # Ask liege for a title - liege = { character_event = { id = 37006 tooltip = EVTTOOLTIP37006 } } - } -} - -# Liege responds to the reminder -character_event = { - id = 37006 - desc = EVTDESC37006 - picture = GFX_evt_son_asking_father - - is_triggered_only = yes - - trigger = { - FROM = { - is_alive = yes - } - } - - option = { - name = EVTOPTA37006 # Oh, very well! - random_demesne_title = { - limit = { - can_be_given_away = yes - AND = { - tier = count - is_feudal = yes - location = { - is_capital = no - } - } - } - grant_title = FROM - } - } - - option = { - name = EVTOPTB37006 # I've had it with his whining! - FROM = { character_event = { id = 37007 days = 2 tooltip = EVTTOOLTIP37007 } } - - if = { - limit = { - ai = no - independent = yes - FROM = { - NOT = { trait = content } - NOT = { trait = patient } - NOT = { trait = craven } - NOT = { has_character_modifier = old_age } - } - } - custom_tooltip = { text = evt_relative_might_revolt } - } - } -} - -# Liege breaks the promise -character_event = { - id = 37007 - desc = EVTDESC37007 - picture = GFX_evt_bad_news - - is_triggered_only = yes - - option = { - name = EVTOPTA37007 # This is an outrage! - ai_chance = { - factor = 500 - } - - opinion = { - who = FROM - modifier = opinion_broken_title_promise - months = 120 - } - clr_character_flag = flag_promised_title - remove_character_modifier = promised_a_title - set_character_flag = flag_denied_title - } - option = { - name = EVTOPTB37007 # I will not stand for this! REVOLT! - - trigger = { - NOT = { trait = content } - NOT = { trait = patient } - NOT = { trait = craven } - NOT = { has_character_modifier = old_age } - liege = { - independent = yes - } - } - - ai_chance = { - factor = 100 - modifier = { - factor = 2.5 - trait = ambitious - } - modifier = { - factor = 0.25 - trait = slothful - } - } - - opinion = { - who = FROM - modifier = opinion_broken_title_promise - months = 120 - } - clr_character_flag = flag_promised_title - remove_character_modifier = promised_a_title - set_character_flag = flag_denied_title - - character_event = { id = 37010 days = 45 } - } -} - -# Character goes into exile to raise an army -character_event = { - id = 37010 - - hide_window = yes - - is_triggered_only = yes - - trigger = { - independent = no - is_ruler = no - prisoner = no - NOT = { trait = incapable } - FROMFROM = { - is_alive = yes - independent = yes - } - - liege = { - capital_scope = { - any_independent_ruler = { - religion_group = ROOT - is_landed = yes - NOT = { character = PREVPREV } - capital_scope = { - NOT = { - distance = { - where = PREVPREV - distance = 400 - } - } - } - } - } - } - } - - option = { - name = EVTOPTA37010 - liege = { - capital_scope = { - random_independent_ruler = { - limit = { - religion_group = ROOT - is_landed = yes - NOT = { character = PREVPREV } - capital_scope = { - NOT = { - distance = { - where = PREVPREV - distance = 400 - } - } - } - } - character_event = { id = 37011 } # Notify the new host - ROOT = { - move_character = PREV - } - } - } - } - } -} - -# The ruler who hosts the pretender is notified -character_event = { - id = 37011 - desc = EVTDESC37011 - picture = GFX_evt_large_army - - is_triggered_only = yes - - option = { - name = EVTOPTA37011 # Interesting - - hidden_tooltip = { - FROMFROMFROM = { character_event = { id = 37012 } } # Notify the old liege - } - } -} - -# The old liege is notified -character_event = { - id = 37012 - desc = EVTDESC37012 - picture = GFX_evt_large_army - - is_triggered_only = yes - - option = { - name = EVTOPTA37012 # The traitorous git! - - opinion = { - who = FROMFROM - modifier = opinion_traitor - } - - hidden_tooltip = { - opinion = { - who = FROMFROM - modifier = opinion_targeted_by_adventurer - months = 12 - } - FROMFROM = { character_event = { id = 37015 days = 365 } } # The event that actually fires the revolt - } - } -} - -# The pretender launches the attack -character_event = { - id = 37015 - - hide_window = yes - - is_triggered_only = yes - - trigger = { - independent = no - is_ruler = no - prisoner = no - NOT = { trait = incapable } - FROM = { - is_alive = yes - independent = yes - } - liege = { - character = FROMFROM - } - } - - option = { - name = OK - - liege = { - capital_scope = { - ROOT = { - set_defacto_liege = ROOT - create_title = { - tier = DUKE - landless = yes - temporary = yes - culture = ROOT - name = "CLAIMANT_ADVENTURE" - holder = ROOT - } - } - FROM = { - ROOT = { - set_character_flag = claimant_adventurer - random_list = { - 34 = { - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - leader = THIS - match_character = PREV - match_mult = 0.125 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.125 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.125 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.125 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.125 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.125 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - } - 33 = { - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - leader = THIS - match_character = PREV - match_mult = 0.1 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.1 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.1 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.1 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.1 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.1 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - } - 33 = { - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - leader = THIS - match_character = PREV - match_mult = 0.075 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.075 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.075 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.075 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.075 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - spawn_unit = { - province = PREVPREV - home = PREVPREV - owner = THIS - match_character = PREV - match_mult = 0.075 - match_min = 300 - match_max = 5000 - attrition = 0.25 - earmark = claimant_adventure - disband_on_peace = yes - } - } - } - } - } - } - } - - # Create some decent commander characters - create_random_soldier = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 30 - } - create_random_soldier = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 25 - } - create_random_soldier = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 33 - } - create_random_soldier = { - random_traits = yes - dynasty = none - religion = ROOT - culture = ROOT - female = no - age = 29 - } - - # Create a fleet, just to be sure - spawn_fleet = { - province = closest # closest sea zone - owner = ROOT - disband_on_peace = yes - troops = - { - galleys = { 150 150 } - } - earmark = claimant_adventure - } - - FROM = { - # Prioritize going for secondary empires - if = { - limit = { - num_of_emperor_titles = 2 - } - random_demesne_title = { - limit = { - tier = EMPEROR - is_primary_holder_title = no - } - ROOT = { - add_claim = PREV - } - holder_scope = { - reverse_war = { - target = ROOT - casus_belli = claim - thirdparty_title = PREV - } - } - } - } - - # Next, secondary kingdoms - if = { - limit = { - num_of_king_titles = 2 - NOT = { war_with = ROOT } - } - random_demesne_title = { - limit = { - tier = KING - is_primary_holder_title = no - } - ROOT = { - add_claim = PREV - } - holder_scope = { - reverse_war = { - target = ROOT - casus_belli = claim - thirdparty_title = PREV - } - } - } - } - - # Otherwise, just go for the primary title - if = { - limit = { - NOT = { war_with = ROOT } - } - primary_title = { - ROOT = { - add_claim = PREV - } - holder_scope = { - reverse_war = { - target = ROOT - casus_belli = claim - thirdparty_title = PREV - } - } - } - } - } - } -} - -# IDs to 37049 reserved for more events concerning this ambition - - - -############################################################## -# Close relative asks to get married due to obj_get_married -############################################################## - -# First event of the series -character_event = { - id = 37050 - desc = EVTDESC37050 - picture = GFX_evt_marriage - - min_age = 15 - capable_only = yes - prisoner = no - - trigger = { - is_ruler = no - NOT = { - trait = bastard - } - has_ambition = obj_get_married - NOT = { - has_minor_title = title_regent - } - is_betrothed = no - NOT = { - any_consort = { - always = yes - } - } - - liege = { - is_close_relative = ROOT - } - - NOT = { has_character_flag = flag_denied_marriage } - NOT = { has_character_flag = flag_promised_marriage } - } - - mean_time_to_happen = { - months = 24 - - modifier = { - factor = 0.25 - is_female = yes - trait = lustful - } - modifier = { - factor = 0.5 - trait = ambitious - } - modifier = { - factor = 2.0 - trait = slothful - } - modifier = { - factor = 5.0 - trait = content - } - } - - option = { - name = EVTOPTA37050 # Ask liege - liege = { character_event = { id = 37051 days = 3 tooltip = EVTTOOLTIP37051 } } - } - -} - -# Liege responds to marriage request -character_event = { - id = 37051 - desc = EVTDESC37051 - picture = GFX_evt_marriage - - is_triggered_only = yes - - option = { - name = EVTOPTA37051 # Promise that you'll arrange it - FROM = { character_event = { id = 37052 tooltip = EVTTOOLTIP37052 } } - } - - option = { - name = EVTOPTB37051 # Mention a Church career... - FROM = { character_event = { id = 37053 tooltip = EVTTOOLTIP37053 } } - } -} - -# The relative is delighted -character_event = { - id = 37052 - desc = EVTDESC37052 - picture = GFX_evt_marriage - - is_triggered_only = yes - - option = { - name = OK # Great news! - set_character_flag = flag_promised_marriage - add_character_modifier = { name = promised_a_marriage duration = -1 } - opinion = { - who = FROM - modifier = opinion_promised_marriage - months = 60 - } - } -} - -# The relative is disappointed -character_event = { - id = 37053 - desc = EVTDESC37053 - picture = GFX_evt_bad_news - - is_triggered_only = yes - - option = { - name = OK # Bleak news - set_character_flag = flag_denied_marriage - opinion = { - who = FROM - modifier = opinion_denied_marriage - months = 60 - } - } -} - -# Relative reminds liege of promised marriage -character_event = { - id = 37054 - desc = EVTDESC37054 - picture = GFX_evt_marriage - - min_age = 15 - capable_only = yes - prisoner = no - - trigger = { - is_ruler = no - is_betrothed = no - is_married = no - NOT = { - trait = bastard - } - has_ambition = obj_get_married - liege = { - is_close_relative = ROOT - ROOT = { - has_opinion_modifier = { who = PREV modifier = opinion_promised_marriage } - } - } - had_character_flag = { flag = flag_promised_marriage days = 365 } - } - - mean_time_to_happen = { - months = 4 - - modifier = { - factor = 0.25 - is_female = yes - trait = lustful - } - modifier = { - factor = 0.5 - trait = ambitious - } - modifier = { - factor = 2.0 - trait = slothful - } - modifier = { - factor = 5.0 - trait = content - } - } - - option = { - name = EVTOPTA37054 # Ask dad - liege = { character_event = { id = 37055 days = 3 tooltip = EVTTOOLTIP37055 } } - } -} - -# The liege is reminded of the promise -character_event = { - id = 37055 - desc = EVTDESC37055 - picture = GFX_evt_marriage - - is_triggered_only = yes - - option = { - name = EVTOPTA37055 # Alright, alright! - trigger = { - FROM = { - is_married = no - } - any_courtier = { - OR = { - is_female = no - NOT = { has_character_modifier = old_age } - } - can_marry = FROM - } - } - remove_character_modifier = promised_a_marriage - clr_character_flag = flag_promised_marriage - random_courtier = { - limit = { - OR = { - is_female = no - NOT = { has_character_modifier = old_age } - } - can_marry = FROM - } - add_spouse = FROM - } - } - - option = { - name = EVTOPTB37055 # You're off to the monastery! - trigger = { - FROM = { - is_married = no - } - any_realm_lord = { - is_theocracy = yes - } - } - random_realm_lord = { - limit = { - is_theocracy = yes - } - reverse_banish = FROM - } - FROM = { - cancel_ambition = yes - remove_character_modifier = promised_a_marriage - clr_character_flag = flag_promised_marriage - opinion = { - who = ROOT - modifier = opinion_sent_to_church - months = 120 - } - } - } - - option = { - name = EVTOPTC37055 # I haven't found anyone for you... - trigger = { - FROM = { - is_married = no - } - } - FROM = { - set_character_flag = flag_denied_marriage - clr_character_flag = flag_promised_marriage - remove_character_modifier = promised_a_marriage - } - } - option = { - name = EVTOPTD37055 - trigger = { - FROM = { - is_married = yes - spouse = { - is_alive = yes - } - } - } - } -} - -# Male relative who was denied decides to marry in secret -character_event = { - id = 37056 - desc = EVTDESC37056 - picture = GFX_evt_marriage - - min_age = 15 - only_men = yes - capable_only = yes - prisoner = no - - trigger = { - is_ruler = no - is_betrothed = no - has_ambition = obj_get_married - has_character_flag = flag_denied_marriage - any_courtier = { - is_female = yes - NOT = { has_character_modifier = old_age } - can_marry = ROOT - } - } - - mean_time_to_happen = { - months = 120 - - modifier = { - factor = 0.25 - trait = lustful - } - modifier = { - factor = 0.5 - trait = ambitious - } - modifier = { - factor = 2.0 - trait = slothful - } - modifier = { - factor = 5.0 - trait = content - } - } - - option = { - name = EVTOPTA37056 # I'm getting married right now - random_courtier = { - limit = { - is_female = yes - NOT = { has_character_modifier = old_age } - can_marry = ROOT - } - add_spouse = ROOT - } - liege = { character_event = { id = 37057 tooltip = EVTTOOLTIP37057 } } - } -} - -# The liege is informed of the secret marriage -character_event = { - id = 37057 - desc = EVTDESC37057 - picture = GFX_evt_marriage - - is_triggered_only = yes - - option = { - name = EVTOPTA37057 # Ah well - tooltip_info = kind - trigger = { - trait = kind - } - } - - option = { - name = EVTOPTB37057 # The insolence! - trigger = { - NOT = { trait = kind } - } - opinion = { - who = FROM - modifier = opinion_secret_marriage - months = 60 - } - } - - option = { - name = EVTOPTC37057 # They will both pay for this! - #tooltip_info = - trigger = { - OR = { - trait = wroth - trait = envious - } - } - FROM = { imprison = ROOT } - FROM = { spouse = { imprison = ROOT } } - } -} - +############################################# +# +# Events for Family Members +# +# Event ID 37000-37999 is reserved +# +############################################# + +################################################### +# Relative demands a title +################################################### + +# Relative demands inheritance due to ambition +character_event = { + id = 37000 + desc = EVTDESC37000 + picture = GFX_evt_son_asking_father + + min_age = 15 + only_men = yes + capable_only = yes + prisoner = no + + trigger = { + has_ambition = obj_wants_landed_title + independent = no + liege = { + is_close_relative = ROOT + any_demesne_title = { + can_be_given_away = yes + AND = { + tier = count + is_feudal = yes + location = { + is_capital = no + } + } + } + } + NOT = { has_character_flag = flag_denied_title } + NOT = { has_character_flag = flag_promised_title } + OR = { + NOT = { has_character_flag = flag_later_title } + had_character_flag = { flag = flag_later_title days = 1825 } + } + NOT = { + war = yes + in_command = yes + } + } + + mean_time_to_happen = { + months = 24 + + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.5 + trait = diligent + } + modifier = { + factor = 5.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = content + } + } + + option = { + name = EVTOPTA37000 # Ask liege for a title + liege = { character_event = { id = 37001 days = 3 tooltip = EVTTOOLTIP37001 } } + } +} + +# Liege responds to the request +character_event = { + id = 37001 + desc = EVTDESC37001 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + option = { + name = EVTOPTA37001 # Promise that you'll arrange it + FROM = { character_event = { id = 37002 tooltip = EVTTOOLTIP37002 } } + } + + option = { + name = EVTOPTB37001 # Say he's not ready yet + trigger = { + NOT = { diplomacy = 8 } + } + + FROM = { character_event = { id = 37004 tooltip = EVTTOOLTIP37004 } } + + if = { + limit = { + ai = no + independent = yes + FROM = { + NOT = { trait = content } + NOT = { trait = patient } + NOT = { trait = craven } + NOT = { has_character_modifier = old_age } + has_character_flag = flag_later_title + } + } + custom_tooltip = { text = evt_relative_might_revolt } + } + } + + option = { + name = EVTOPTC37001 # Mention a Church career... + tooltip_info = diplomacy + trigger = { + religion = eternal_fire + diplomacy = 8 + } + FROM = { character_event = { id = 37003 tooltip = EVTTOOLTIP37003 } } + } + + option = { + name = EVTOPTD37001 # Diplomatically refuse + tooltip_info = diplomacy + trigger = { + NOT = { religion = eternal_fire } + diplomacy = 8 + } + FROM = { character_event = { id = 37003 tooltip = EVTTOOLTIP37003 } } + } +} + +# The relative is filled with anticipation +character_event = { + id = 37002 + desc = EVTDESC37002 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + option = { + name = EVTOPTA37002 # It had better not be hollow words... + opinion = { + who = FROM + modifier = opinion_promised_title + months = 12 + } + + set_character_flag = flag_promised_title + add_character_modifier = { name = promised_a_title duration = -1 } + + hidden_tooltip = { + if = { + limit = { + OR = { + trait = slothful + trait = content + } + NOT = { trait = ambitious } + } + character_event = { id = 37005 days = 865 random = 200 } + } + if = { + limit = { + NOT = { trait = slothful } + NOT = { trait = content } + NOT = { trait = ambitious } + } + character_event = { id = 37005 days = 385 random = 200 } + } + if = { + limit = { + trait = ambitious + } + character_event = { id = 37005 days = 365 random = 50 } + } + } + } +} + +# The relative is deeply offended +character_event = { + id = 37003 + desc = EVTDESC37003 + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = EVTOPTA37003 # This will not stand! + opinion = { + who = FROM + modifier = opinion_denied_title + months = 60 + } + set_character_flag = flag_denied_title + } +} + +# The relative is disappointed +character_event = { + id = 37004 + desc = EVTDESC37004 + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = EVTOPTA37004 # I'll ask again later... + trigger = { + NOT = { has_character_flag = flag_later_title } + } + set_character_flag = flag_later_title + } + + option = { + name = EVTOPTB37004 # Not again! + trigger = { + has_character_flag = flag_later_title + } + ai_chance = { + factor = 750 + } + opinion = { + who = FROM + modifier = opinion_denied_title + months = 120 + } + clr_character_flag = flag_later_title + set_character_flag = flag_denied_title + } + + option = { + name = EVTOPTB37007 + trigger = { + has_character_flag = flag_later_title + NOT = { trait = content } + NOT = { trait = patient } + NOT = { trait = craven } + NOT = { has_character_modifier = old_age } + liege = { + independent = yes + } + } + + ai_chance = { + factor = 100 + modifier = { + factor = 2.5 + trait = ambitious + } + modifier = { + factor = 0.25 + trait = slothful + } + } + + opinion = { + who = FROM + modifier = opinion_broken_title_promise + months = 120 + } + clr_character_flag = flag_promised_title + remove_character_modifier = promised_a_title + set_character_flag = flag_denied_title + + character_event = { id = 37010 days = 45 } + } + +} + +# Relative reminds liege of promised title +character_event = { + id = 37005 + desc = EVTDESC37005 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + trigger = { + independent = no + is_ruler = no + prisoner = no + NOT = { trait = incapable } + has_ambition = obj_wants_landed_title + has_character_flag = flag_promised_title + liege = { + any_demesne_title = { + can_be_given_away = yes + AND = { + tier = count + is_feudal = yes + location = { + is_capital = no + } + } + } + } + } + + option = { + name = EVTOPTA37005 # Ask liege for a title + liege = { character_event = { id = 37006 tooltip = EVTTOOLTIP37006 } } + } +} + +# Liege responds to the reminder +character_event = { + id = 37006 + desc = EVTDESC37006 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + trigger = { + FROM = { + is_alive = yes + } + } + + option = { + name = EVTOPTA37006 # Oh, very well! + random_demesne_title = { + limit = { + can_be_given_away = yes + AND = { + tier = count + is_feudal = yes + location = { + is_capital = no + } + } + } + grant_title = FROM + } + } + + option = { + name = EVTOPTB37006 # I've had it with his whining! + FROM = { character_event = { id = 37007 days = 2 tooltip = EVTTOOLTIP37007 } } + + if = { + limit = { + ai = no + independent = yes + FROM = { + NOT = { trait = content } + NOT = { trait = patient } + NOT = { trait = craven } + NOT = { has_character_modifier = old_age } + } + } + custom_tooltip = { text = evt_relative_might_revolt } + } + } +} + +# Liege breaks the promise +character_event = { + id = 37007 + desc = EVTDESC37007 + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = EVTOPTA37007 # This is an outrage! + ai_chance = { + factor = 500 + } + + opinion = { + who = FROM + modifier = opinion_broken_title_promise + months = 120 + } + clr_character_flag = flag_promised_title + remove_character_modifier = promised_a_title + set_character_flag = flag_denied_title + } + option = { + name = EVTOPTB37007 # I will not stand for this! REVOLT! + + trigger = { + NOT = { trait = content } + NOT = { trait = patient } + NOT = { trait = craven } + NOT = { has_character_modifier = old_age } + liege = { + independent = yes + } + } + + ai_chance = { + factor = 100 + modifier = { + factor = 2.5 + trait = ambitious + } + modifier = { + factor = 0.25 + trait = slothful + } + } + + opinion = { + who = FROM + modifier = opinion_broken_title_promise + months = 120 + } + clr_character_flag = flag_promised_title + remove_character_modifier = promised_a_title + set_character_flag = flag_denied_title + + character_event = { id = 37010 days = 45 } + } +} + +# Character goes into exile to raise an army +character_event = { + id = 37010 + + hide_window = yes + + is_triggered_only = yes + + trigger = { + independent = no + is_ruler = no + prisoner = no + NOT = { trait = incapable } + FROMFROM = { + is_alive = yes + independent = yes + } + + liege = { + capital_scope = { + any_independent_ruler = { + religion_group = ROOT + is_landed = yes + NOT = { character = PREVPREV } + capital_scope = { + NOT = { + distance = { + where = PREVPREV + distance = 400 + } + } + } + } + } + } + } + + option = { + name = EVTOPTA37010 + liege = { + capital_scope = { + random_independent_ruler = { + limit = { + religion_group = ROOT + is_landed = yes + NOT = { character = PREVPREV } + capital_scope = { + NOT = { + distance = { + where = PREVPREV + distance = 400 + } + } + } + } + character_event = { id = 37011 } # Notify the new host + ROOT = { + move_character = PREV + } + } + } + } + } +} + +# The ruler who hosts the pretender is notified +character_event = { + id = 37011 + desc = EVTDESC37011 + picture = GFX_evt_large_army + + is_triggered_only = yes + + option = { + name = EVTOPTA37011 # Interesting + + hidden_tooltip = { + FROMFROMFROM = { character_event = { id = 37012 } } # Notify the old liege + } + } +} + +# The old liege is notified +character_event = { + id = 37012 + desc = EVTDESC37012 + picture = GFX_evt_large_army + + is_triggered_only = yes + + option = { + name = EVTOPTA37012 # The traitorous git! + + opinion = { + who = FROMFROM + modifier = opinion_traitor + } + + hidden_tooltip = { + opinion = { + who = FROMFROM + modifier = opinion_targeted_by_adventurer + months = 12 + } + FROMFROM = { character_event = { id = 37015 days = 365 } } # The event that actually fires the revolt + } + } +} + +# The pretender launches the attack +character_event = { + id = 37015 + + hide_window = yes + + is_triggered_only = yes + + trigger = { + independent = no + is_ruler = no + prisoner = no + NOT = { trait = incapable } + FROM = { + is_alive = yes + independent = yes + } + liege = { + character = FROMFROM + } + } + + option = { + name = OK + + liege = { + capital_scope = { + ROOT = { + set_defacto_liege = ROOT + create_title = { + tier = DUKE + landless = yes + temporary = yes + culture = ROOT + name = "CLAIMANT_ADVENTURE" + holder = ROOT + } + } + FROM = { + ROOT = { + set_character_flag = claimant_adventurer + random_list = { + 34 = { + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + leader = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + } + 33 = { + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + leader = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + } + 33 = { + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + leader = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + } + } + } + } + } + } + + # Create some decent commander characters + create_random_soldier = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 30 + } + create_random_soldier = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 25 + } + create_random_soldier = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 33 + } + create_random_soldier = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 29 + } + + # Create a fleet, just to be sure + spawn_fleet = { + province = closest # closest sea zone + owner = ROOT + disband_on_peace = yes + troops = + { + galleys = { 150 150 } + } + earmark = claimant_adventure + } + + FROM = { + # Prioritize going for secondary empires + if = { + limit = { + num_of_emperor_titles = 2 + } + random_demesne_title = { + limit = { + tier = EMPEROR + is_primary_holder_title = no + } + ROOT = { + add_claim = PREV + } + holder_scope = { + reverse_war = { + target = ROOT + casus_belli = claim + thirdparty_title = PREV + } + } + } + } + + # Next, secondary kingdoms + if = { + limit = { + num_of_king_titles = 2 + NOT = { war_with = ROOT } + } + random_demesne_title = { + limit = { + tier = KING + is_primary_holder_title = no + } + ROOT = { + add_claim = PREV + } + holder_scope = { + reverse_war = { + target = ROOT + casus_belli = claim + thirdparty_title = PREV + } + } + } + } + + # Otherwise, just go for the primary title + if = { + limit = { + NOT = { war_with = ROOT } + } + primary_title = { + ROOT = { + add_claim = PREV + } + holder_scope = { + reverse_war = { + target = ROOT + casus_belli = claim + thirdparty_title = PREV + } + } + } + } + } + } +} + +# IDs to 37049 reserved for more events concerning this ambition + + + +############################################################## +# Close relative asks to get married due to obj_get_married +############################################################## + +# First event of the series +character_event = { + id = 37050 + desc = EVTDESC37050 + picture = GFX_evt_marriage + + min_age = 15 + capable_only = yes + prisoner = no + + trigger = { + is_ruler = no + NOT = { + trait = bastard + } + has_ambition = obj_get_married + NOT = { + has_minor_title = title_regent + } + is_betrothed = no + NOT = { + any_consort = { + always = yes + } + } + + liege = { + is_close_relative = ROOT + } + + NOT = { has_character_flag = flag_denied_marriage } + NOT = { has_character_flag = flag_promised_marriage } + } + + mean_time_to_happen = { + months = 48 + + modifier = { + factor = 0.25 + is_female = yes + trait = lustful + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = content + } + } + + option = { + name = EVTOPTA37050 # Ask liege + liege = { character_event = { id = 37051 days = 3 tooltip = EVTTOOLTIP37051 } } + } + +} + +# Liege responds to marriage request +character_event = { + id = 37051 + desc = EVTDESC37051 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA37051 # Promise that you'll arrange it + FROM = { character_event = { id = 37052 tooltip = EVTTOOLTIP37052 } } + } + + option = { + name = EVTOPTB37051 # Mention a Church career... + FROM = { character_event = { id = 37053 tooltip = EVTTOOLTIP37053 } } + } +} + +# The relative is delighted +character_event = { + id = 37052 + desc = EVTDESC37052 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = OK # Great news! + set_character_flag = flag_promised_marriage + add_character_modifier = { name = promised_a_marriage duration = -1 } + opinion = { + who = FROM + modifier = opinion_promised_marriage + months = 60 + } + } +} + +# The relative is disappointed +character_event = { + id = 37053 + desc = EVTDESC37053 + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = OK # Bleak news + set_character_flag = flag_denied_marriage + opinion = { + who = FROM + modifier = opinion_denied_marriage + months = 60 + } + } +} + +# Relative reminds liege of promised marriage +character_event = { + id = 37054 + desc = EVTDESC37054 + picture = GFX_evt_marriage + + min_age = 15 + capable_only = yes + prisoner = no + + trigger = { + is_ruler = no + is_betrothed = no + is_married = no + NOT = { + trait = bastard + } + has_ambition = obj_get_married + liege = { + is_close_relative = ROOT + ROOT = { + has_opinion_modifier = { who = PREV modifier = opinion_promised_marriage } + } + } + had_character_flag = { flag = flag_promised_marriage days = 365 } + } + + mean_time_to_happen = { + months = 4 + + modifier = { + factor = 0.25 + is_female = yes + trait = lustful + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = content + } + } + + option = { + name = EVTOPTA37054 # Ask dad + liege = { character_event = { id = 37055 days = 3 tooltip = EVTTOOLTIP37055 } } + } +} + +# The liege is reminded of the promise +character_event = { + id = 37055 + desc = EVTDESC37055 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA37055 # Alright, alright! + trigger = { + FROM = { + is_married = no + } + any_courtier = { + OR = { + is_female = no + NOT = { has_character_modifier = old_age } + } + can_marry = FROM + } + } + remove_character_modifier = promised_a_marriage + clr_character_flag = flag_promised_marriage + random_courtier = { + limit = { + OR = { + is_female = no + NOT = { has_character_modifier = old_age } + } + can_marry = FROM + } + add_spouse = FROM + } + } + + option = { + name = EVTOPTB37055 # You're off to the monastery! + trigger = { + FROM = { + is_married = no + } + any_realm_lord = { + is_theocracy = yes + } + } + random_realm_lord = { + limit = { + is_theocracy = yes + } + reverse_banish = FROM + } + FROM = { + cancel_ambition = yes + remove_character_modifier = promised_a_marriage + clr_character_flag = flag_promised_marriage + opinion = { + who = ROOT + modifier = opinion_sent_to_church + months = 120 + } + } + } + + option = { + name = EVTOPTC37055 # I haven't found anyone for you... + trigger = { + FROM = { + is_married = no + } + } + FROM = { + set_character_flag = flag_denied_marriage + clr_character_flag = flag_promised_marriage + remove_character_modifier = promised_a_marriage + } + } + option = { + name = EVTOPTD37055 + trigger = { + FROM = { + is_married = yes + spouse = { + is_alive = yes + } + } + } + } +} + +# Male relative who was denied decides to marry in secret +character_event = { + id = 37056 + desc = EVTDESC37056 + picture = GFX_evt_marriage + + min_age = 15 + only_men = yes + capable_only = yes + prisoner = no + + trigger = { + is_ruler = no + is_betrothed = no + has_ambition = obj_get_married + has_character_flag = flag_denied_marriage + any_courtier = { + is_female = yes + NOT = { has_character_modifier = old_age } + can_marry = ROOT + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.25 + trait = lustful + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = content + } + } + + option = { + name = EVTOPTA37056 # I'm getting married right now + random_courtier = { + limit = { + is_female = yes + NOT = { has_character_modifier = old_age } + can_marry = ROOT + } + add_spouse = ROOT + } + liege = { character_event = { id = 37057 tooltip = EVTTOOLTIP37057 } } + } +} + +# The liege is informed of the secret marriage +character_event = { + id = 37057 + desc = EVTDESC37057 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA37057 # Ah well + tooltip_info = kind + trigger = { + trait = kind + } + } + + option = { + name = EVTOPTB37057 # The insolence! + trigger = { + NOT = { trait = kind } + } + opinion = { + who = FROM + modifier = opinion_secret_marriage + months = 60 + } + } + + option = { + name = EVTOPTC37057 # They will both pay for this! + #tooltip_info = + trigger = { + OR = { + trait = wroth + trait = envious + } + } + FROM = { imprison = ROOT } + FROM = { spouse = { imprison = ROOT } } + } +} + # IDs to 37149 reserved for more events concerning this ambition \ No newline at end of file diff --git a/MOD/Witcher/events/imprisoned_events.txt b/MOD/Witcher/events/imprisoned_events.txt index 52a65889a..d3a85664f 100644 --- a/MOD/Witcher/events/imprisoned_events.txt +++ b/MOD/Witcher/events/imprisoned_events.txt @@ -293,6 +293,18 @@ character_event = { factor = 2.0 trait = content } + modifier = { + factor = 100 + ai = yes + host = { + war = yes + ai = no + } + } + modifier = { + factor = 0.4 + ai = no + } } option = { diff --git a/MOD/Witcher/events/misc_old_gods_events.txt b/MOD/Witcher/events/misc_old_gods_events.txt index bd45e4b38..f5d0964ff 100644 --- a/MOD/Witcher/events/misc_old_gods_events.txt +++ b/MOD/Witcher/events/misc_old_gods_events.txt @@ -1,471 +1,477 @@ -# v1.10: Old Gods Events: 62300 - 62999 - -# Written by Henrik Fåhraeus - -# Called from on_action: on_prepared_invasion_aborts -# The target character is in FROM -character_event = { - - id = 62300 - desc = EVTDESC62300 - - picture = GFX_evt_viking_battle_oldgods - border = GFX_event_normal_frame_war - - is_triggered_only = yes - - immediate = { - remove_opinion = { - who = FROM - modifier = preparing_to_invade - } - FROM = { - remove_opinion = { - who = ROOT - modifier = preparing_to_invade_me - } - } - disband_event_forces = prepared_invasion - } - - option = { - name = EVTOPTA62300 - } -} - -# Called from on_action: on_prepared_invasion_expires -# The target character is in FROM -character_event = { - - id = 62310 - desc = EVTDESC62310 - - picture = GFX_evt_viking_battle_oldgods - border = GFX_event_normal_frame_war - - is_triggered_only = yes - - immediate = { - remove_opinion = { - who = FROM - modifier = preparing_to_invade - } - FROM = { - remove_opinion = { - who = ROOT - modifier = preparing_to_invade_me - } - } - if = { - limit = { - NOT = { - any_war = { - any_attacker = { character = FROM } - } - } - } - disband_event_forces = prepared_invasion - } - } - - option = { - name = EVTOPTA62310 - if = { - limit = { - NOT = { - any_war = { - any_attacker = { character = FROM } - } - } - } - prestige = -200 - piety = -50 - any_realm_lord = { - limit = { - religion = ROOT - } - opinion = { - who = ROOT - modifier = opinion_failed_invasion - } - } - } - } -} - -# Troops flock to your banner -# Called from on_action: on_prepared_invasion_monthly -# The target character is in FROM -character_event = { - id = 62320 - desc = EVTDESC62320 - - picture = GFX_evt_vikings_arriving_oldgods - border = GFX_event_normal_frame_war - - is_triggered_only = yes - - # On_action, so BIG is MORE OFTEN! - weight_multiplier = { - days = 1 - modifier = { - factor = 1.25 - martial = 15 - } - modifier = { - factor = 1.25 - martial = 20 - } - modifier = { - factor = 1.25 - diplomacy = 15 - } - modifier = { - factor = 1.25 - diplomacy = 20 - } - modifier = { - factor = 1.25 - prestige = 1000 - } - modifier = { - factor = 0.75 - NOT = { martial = 10 } - } - modifier = { - factor = 0.5 - NOT = { martial = 7 } - } - modifier = { - factor = 0.75 - NOT = { diplomacy = 10 } - } - modifier = { - factor = 0.5 - NOT = { diplomacy = 7 } - } - modifier = { - factor = 0.5 - NOT = { prestige = 100 } - } - modifier = { - factor = 0.75 - lower_tier_than = DUKE - } - modifier = { - factor = 0 - relative_power = { - who = FROM - power = 4.0 - } - } - modifier = { - factor = 0.5 - relative_power = { - who = FROM - power = 2.0 - } - } - modifier = { - factor = 0.25 - relative_power = { - who = FROM - power = 3.0 - } - } - } - - option = { - name = EVTOPTA62320 - capital_scope = { - ROOT = { - spawn_unit = { - province = PREV - owner = ROOT - match_character = ROOT - match_mult = 0.1 - earmark = prepared_invasion - attrition = 1.0 - } - spawn_fleet = { - province = closest - owner = ROOT - match_character = ROOT - match_mult = 0.1 - match_min = 7 - earmark = prepared_invasion - } - } - } - } -} - -# A hero and his retinue appear in your court -# Called from on_action: on_prepared_invasion_monthly -# The target character is in FROM -character_event = { - id = 62321 - desc = EVTDESC62321 - - hide_from = yes - - picture = GFX_evt_vikings_arriving_oldgods - border = GFX_event_normal_frame_war - - is_triggered_only = yes - - # On_action, so BIG is MORE OFTEN - weight_multiplier = { - days = 1 - modifier = { - factor = 1.25 - martial = 15 - } - modifier = { - factor = 1.25 - martial = 20 - } - modifier = { - factor = 1.25 - diplomacy = 15 - } - modifier = { - factor = 1.25 - diplomacy = 20 - } - modifier = { - factor = 1.25 - prestige = 1000 - } - modifier = { - factor = 0.75 - NOT = { martial = 10 } - } - modifier = { - factor = 0.5 - NOT = { martial = 7 } - } - modifier = { - factor = 0.75 - NOT = { diplomacy = 10 } - } - modifier = { - factor = 0.5 - NOT = { diplomacy = 7 } - } - modifier = { - factor = 0.5 - NOT = { prestige = 100 } - } - modifier = { - factor = 0.75 - lower_tier_than = DUKE - } - modifier = { - factor = 0 - relative_power = { - who = FROM - power = 4.0 - } - } - modifier = { - factor = 0.5 - relative_power = { - who = FROM - power = 2.0 - } - } - modifier = { - factor = 0.25 - relative_power = { - who = FROM - power = 3.0 - } - } - } - - option = { - name = EVTOPTA62321 - capital_scope = { - create_character = { - random_traits = yes - dynasty = random - religion = ROOT - culture = ROOT - female = no - age = 30 - attributes = { - martial = 8 - } - trait = brave - trait = zealous - trait = brilliant_strategist - trait = holy_warrior - } - new_character = { - spawn_unit = { - province = PREV - owner = ROOT - match_character = ROOT - match_mult = 0.15 -# earmark = prepared_invasion - attrition = 1.0 - } - } - } - - spawn_fleet = { - province = closest - owner = ROOT - match_character = ROOT - match_mult = 0.15 - match_min = 10 - earmark = prepared_invasion - } - } -} - -# A smaller force arrives for the invasion -# Called from on_action: on_prepared_invasion_monthly -# The target character is in FROM -character_event = { - id = 62322 - desc = EVTDESC62320 - - picture = GFX_evt_vikings_arriving_oldgods - border = GFX_event_normal_frame_war - - is_triggered_only = yes - - # On_action, so BIG is MORE OFTEN - weight_multiplier = { - days = 1 - modifier = { - factor = 1.25 - martial = 15 - } - modifier = { - factor = 1.25 - martial = 20 - } - modifier = { - factor = 1.25 - diplomacy = 15 - } - modifier = { - factor = 1.25 - diplomacy = 20 - } - modifier = { - factor = 1.25 - prestige = 1000 - } - modifier = { - factor = 0.75 - NOT = { martial = 10 } - } - modifier = { - factor = 0.5 - NOT = { martial = 7 } - } - modifier = { - factor = 0.75 - NOT = { diplomacy = 10 } - } - modifier = { - factor = 0.5 - NOT = { diplomacy = 7 } - } - modifier = { - factor = 0.5 - NOT = { prestige = 100 } - } - modifier = { - factor = 0.75 - lower_tier_than = DUKE - } - modifier = { - factor = 0 - relative_power = { - who = FROM - power = 4.0 - } - } - modifier = { - factor = 0.5 - relative_power = { - who = FROM - power = 2.0 - } - } - modifier = { - factor = 0.25 - relative_power = { - who = FROM - power = 3.0 - } - } - } - - option = { - name = EVTOPTA62320 - capital_scope = { - ROOT = { - spawn_unit = { - province = PREV - owner = ROOT - match_character = ROOT - match_mult = 0.075 - earmark = prepared_invasion - attrition = 1.0 - } - spawn_fleet = { - province = closest - owner = ROOT - match_character = ROOT - match_mult = 0.075 - match_min = 5 - earmark = prepared_invasion - } - } - } - } -} - -# Notification from decision 'convert_to_attacker_religion' -letter_event = { - id = 62800 - desc = EVTDESC62800 - - border = GFX_event_letter_frame_religion - - is_triggered_only = yes - - option = { - name = EVTOPTA62800 - if = { - limit = { - FROM = { tier = COUNT } - } - piety = 50 - } - if = { - limit = { - FROM = { tier = DUKE } - } - piety = 100 - } - if = { - limit = { - FROM = { tier = KING } - } - piety = 300 - } - if = { - limit = { - FROM = { tier = EMPEROR } - } - piety = 1000 - } - } +# v1.10: Old Gods Events: 62300 - 62999 + +# Written by Henrik Fåhraeus + +# Called from on_action: on_prepared_invasion_aborts +# The target character is in FROM +character_event = { + + id = 62300 + desc = EVTDESC62300 + + picture = GFX_evt_viking_battle_oldgods + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + immediate = { + remove_opinion = { + who = FROM + modifier = preparing_to_invade + } + FROM = { + remove_opinion = { + who = ROOT + modifier = preparing_to_invade_me + } + } + disband_event_forces = prepared_invasion + } + + option = { + name = EVTOPTA62300 + } +} + +# Called from on_action: on_prepared_invasion_expires +# The target character is in FROM +character_event = { + + id = 62310 + desc = EVTDESC62310 + + picture = GFX_evt_viking_battle_oldgods + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + immediate = { + remove_opinion = { + who = FROM + modifier = preparing_to_invade + } + FROM = { + remove_opinion = { + who = ROOT + modifier = preparing_to_invade_me + } + } + if = { + limit = { + NOT = { + any_war = { + any_attacker = { character = FROM } + } + } + } + disband_event_forces = prepared_invasion + } + } + + option = { + name = EVTOPTA62310 + if = { + limit = { + NOT = { + any_war = { + any_attacker = { character = FROM } + } + } + } + prestige = -200 + piety = -50 + any_realm_lord = { + limit = { + religion = ROOT + } + opinion = { + who = ROOT + modifier = opinion_failed_invasion + } + } + } + } +} + +# Troops flock to your banner +# Called from on_action: on_prepared_invasion_monthly +# The target character is in FROM +character_event = { + id = 62320 + desc = EVTDESC62320 + + picture = GFX_evt_vikings_arriving_oldgods + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + # On_action, so BIG is MORE OFTEN! + weight_multiplier = { + days = 1 + modifier = { + factor = 1.25 + martial = 15 + } + modifier = { + factor = 1.25 + martial = 20 + } + modifier = { + factor = 1.25 + diplomacy = 15 + } + modifier = { + factor = 1.25 + diplomacy = 20 + } + modifier = { + factor = 1.25 + prestige = 1000 + } + modifier = { + factor = 0.75 + NOT = { martial = 10 } + } + modifier = { + factor = 0.5 + NOT = { martial = 7 } + } + modifier = { + factor = 0.75 + NOT = { diplomacy = 10 } + } + modifier = { + factor = 0.5 + NOT = { diplomacy = 7 } + } + modifier = { + factor = 0.5 + NOT = { prestige = 100 } + } + modifier = { + factor = 0.75 + lower_tier_than = DUKE + } + modifier = { + factor = 0 + relative_power = { + who = FROM + power = 4.0 + } + } + modifier = { + factor = 0.5 + relative_power = { + who = FROM + power = 2.0 + } + } + modifier = { + factor = 0.25 + relative_power = { + who = FROM + power = 3.0 + } + } + } + + option = { + name = EVTOPTA62320 + capital_scope = { + ROOT = { + spawn_unit = { + province = PREV + owner = ROOT + match_character = ROOT + match_mult = 0.1 + earmark = prepared_invasion + attrition = 1.0 + cannot_inherit = yes + } + spawn_fleet = { + province = closest + owner = ROOT + match_character = ROOT + match_mult = 0.1 + match_min = 7 + earmark = prepared_invasion + cannot_inherit = yes + } + } + } + } +} + +# A hero and his retinue appear in your court +# Called from on_action: on_prepared_invasion_monthly +# The target character is in FROM +character_event = { + id = 62321 + desc = EVTDESC62321 + + hide_from = yes + + picture = GFX_evt_vikings_arriving_oldgods + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + # On_action, so BIG is MORE OFTEN + weight_multiplier = { + days = 1 + modifier = { + factor = 1.25 + martial = 15 + } + modifier = { + factor = 1.25 + martial = 20 + } + modifier = { + factor = 1.25 + diplomacy = 15 + } + modifier = { + factor = 1.25 + diplomacy = 20 + } + modifier = { + factor = 1.25 + prestige = 1000 + } + modifier = { + factor = 0.75 + NOT = { martial = 10 } + } + modifier = { + factor = 0.5 + NOT = { martial = 7 } + } + modifier = { + factor = 0.75 + NOT = { diplomacy = 10 } + } + modifier = { + factor = 0.5 + NOT = { diplomacy = 7 } + } + modifier = { + factor = 0.5 + NOT = { prestige = 100 } + } + modifier = { + factor = 0.75 + lower_tier_than = DUKE + } + modifier = { + factor = 0 + relative_power = { + who = FROM + power = 4.0 + } + } + modifier = { + factor = 0.5 + relative_power = { + who = FROM + power = 2.0 + } + } + modifier = { + factor = 0.25 + relative_power = { + who = FROM + power = 3.0 + } + } + } + + option = { + name = EVTOPTA62321 + capital_scope = { + create_character = { + random_traits = yes + dynasty = random + religion = ROOT + culture = ROOT + female = no + age = 30 + attributes = { + martial = 8 + } + trait = brave + trait = zealous + trait = brilliant_strategist + trait = holy_warrior + } + new_character = { + spawn_unit = { + province = PREV + owner = ROOT + match_character = ROOT + match_mult = 0.15 +# earmark = prepared_invasion + attrition = 1.0 + cannot_inherit = yes + } + } + } + + spawn_fleet = { + province = closest + owner = ROOT + match_character = ROOT + match_mult = 0.15 + match_min = 10 + earmark = prepared_invasion + cannot_inherit = yes + } + } +} + +# A smaller force arrives for the invasion +# Called from on_action: on_prepared_invasion_monthly +# The target character is in FROM +character_event = { + id = 62322 + desc = EVTDESC62320 + + picture = GFX_evt_vikings_arriving_oldgods + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + # On_action, so BIG is MORE OFTEN + weight_multiplier = { + days = 1 + modifier = { + factor = 1.25 + martial = 15 + } + modifier = { + factor = 1.25 + martial = 20 + } + modifier = { + factor = 1.25 + diplomacy = 15 + } + modifier = { + factor = 1.25 + diplomacy = 20 + } + modifier = { + factor = 1.25 + prestige = 1000 + } + modifier = { + factor = 0.75 + NOT = { martial = 10 } + } + modifier = { + factor = 0.5 + NOT = { martial = 7 } + } + modifier = { + factor = 0.75 + NOT = { diplomacy = 10 } + } + modifier = { + factor = 0.5 + NOT = { diplomacy = 7 } + } + modifier = { + factor = 0.5 + NOT = { prestige = 100 } + } + modifier = { + factor = 0.75 + lower_tier_than = DUKE + } + modifier = { + factor = 0 + relative_power = { + who = FROM + power = 4.0 + } + } + modifier = { + factor = 0.5 + relative_power = { + who = FROM + power = 2.0 + } + } + modifier = { + factor = 0.25 + relative_power = { + who = FROM + power = 3.0 + } + } + } + + option = { + name = EVTOPTA62320 + capital_scope = { + ROOT = { + spawn_unit = { + province = PREV + owner = ROOT + match_character = ROOT + match_mult = 0.075 + earmark = prepared_invasion + attrition = 1.0 + cannot_inherit = yes + } + spawn_fleet = { + province = closest + owner = ROOT + match_character = ROOT + match_mult = 0.075 + match_min = 5 + earmark = prepared_invasion + cannot_inherit = yes + } + } + } + } +} + +# Notification from decision 'convert_to_attacker_religion' +letter_event = { + id = 62800 + desc = EVTDESC62800 + + border = GFX_event_letter_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA62800 + if = { + limit = { + FROM = { tier = COUNT } + } + piety = 50 + } + if = { + limit = { + FROM = { tier = DUKE } + } + piety = 100 + } + if = { + limit = { + FROM = { tier = KING } + } + piety = 300 + } + if = { + limit = { + FROM = { tier = EMPEROR } + } + piety = 1000 + } + } } \ No newline at end of file