Vous êtes sur la page 1sur 23

#on_siege_pulse events #on start of siege, give option to send family away or flee entirely character_event = { id = 1100099991 desc

= "EVTDESCWAYsiegepulseflee" title = "EVTNAMEWAYsiegepulseflee" picture = "GFX_evt_Council_Around_Table" border = "GFX_event_normal_frame_war" is_triggered_only = yes trigger = { NOT = { has_character_modifier = stalwart_defender } NOT = { has_character_modifier = modifier_hidden } OR = { tier = KING tier = EMPEROR is_primary_war_attacker = yes is_primary_war_defender = yes } siege = { is_attacker = no location = { is_capital = yes } } } option = { name = "EVTOPTWAYsiegepulseflee01" ai_chance = { factor = 0.5 modifier = { factor = 5 trait = slothful } modifier = { factor = 2 trait = proud } modifier = { factor = 2 trait = zealous } } #ai add_character_modifier = { name = stalwart_defender duration = 730 } random = { chance = 66 if = { limit = { NOT = { trait = zealous } NOT = { trait = cynical } }

add_trait = zealous hidden_tooltip = { character_event = { id = 38269 #Notify } } } if = { limit = { trait = craven } remove_trait = craven hidden_tooltip = { character_event = { id = 38296 #Notify } } } } random = { chance = 25 if = { limit = { NOT = { trait = brave } NOT = { trait = craven } } add_trait = brave hidden_tooltip = { character_event = { id = 38270 #Notify } } } if = { limit = { NOT = { trait = proud } NOT = { trait = humble } } add_trait = proud hidden_tooltip = { character_event = { id = 38261 #Notify } } } } ROOT = { if = { any_dynasty_member = { limit = { at_location = ROOT NOT = { character = ROOT } } add_character_modifier = { name = left_at_siege duration = 180 } } } #if if = {

any_spouse = { limit = { at_location = ROOT } add_character_modifier = { name = left_at_siege duration = 180 } } } #if } #root } #opt option = { name = "EVTOPTWAYsiegepulseflee02" trigger = { any_dynasty_member = { at_location = ROOT NOT = { has_character_modifier = modifier_hidden } } } #trig ai_chance = { factor = 1 modifier = { factor = 5 trait = diligent } modifier = { factor = 5 trait = just } modifier = { factor = 5 trait = brave } } #ai scaled_wealth = -0.5 add_character_modifier = { name = stalwart_defender duration = 730 } if = { limit = { NOT = { trait = just } NOT = { trait = arbitrary } } random = { chance = 25 add_trait = just hidden_tooltip = { character_event = { id = 38267 #Notify } } } } if = { limit = {

NOT = { trait = proud } NOT = { trait = humble } } random = { chance = 20 add_trait = proud hidden_tooltip = { character_event = { id = 38261 #Notify } } } } if = { limit = { NOT = { trait = diligent } NOT = { trait = slothful } } random = { chance = 5 add_trait = diligent hidden_tooltip = { character_event = { id = 38256 #Notify } } } } ROOT = { if = { any_dynasty_member = { limit = { at_location = ROOT NOT = { character = ROOT } } add_character_modifier = { name = modifier_hidden duration = 730 } } } #if if = { any_spouse = { limit = { at_location = ROOT } add_character_modifier = { name = modifier_hidden duration = 730 } } } #if } #root } #opt option = { name = "EVTOPTWAYsiegepulseflee03" ai_chance = { factor = 0.25 modifier = {

factor = 20 trait = craven } modifier = { factor = 2 trait = humble } modifier = { factor = 2 trait = diligent } } #ai scaled_wealth = -0.75 random = { chance = 66 if = { limit = { NOT = { trait = brave } NOT = { trait = craven } } add_trait = craven hidden_tooltip = { character_event = { id = 38257 #Notify } } } if = { limit = { trait = brave } remove_trait = brave } if = { limit = { trait = proud } remove_trait = proud hidden_tooltip = { character_event = { id = 38300 #Notify } } } } random = { chance = 5 if = { limit = { NOT = { trait = diligent } NOT = { trait = slothful } } add_trait = diligent hidden_tooltip = { character_event = { id = 38256 #Notify } } }

if = { limit = { trait = slothful } remove_trait = slothful hidden_tooltip = { character_event = { id = 38298 #Notify } } } } ROOT = { add_character_modifier = { name = modifier_hidden duration = 730 } if = { any_dynasty_member = { limit = { at_location = ROOT } add_character_modifier = { name = modifier_hidden duration = 730 } } } if = { any_spouse = { limit = { at_location = ROOT } add_character_modifier = { name = modifier_hidden duration = 730 } } } } } } #Escape from a siege where you have not hidden character_event = { id = 1100099992 desc = "EVTDESCWAYsiegeescape" title = "EVTNAMEWAYnotifyofoutcome" picture = "GFX_evt_siege" border = "GFX_event_normal_frame_war" is_triggered_only = yes only_rulers = yes min_age = 16 max_age = 65 #Glover/I'm gettin' too old for this shit prisoner = no capable_only = yes trigger = {

NOT = { has_character_modifier = modifier_hidden } OR = { tier = KING tier = EMPEROR is_primary_war_attacker = yes is_primary_war_defender = yes } siege = { is_attacker = no location = { is_capital = yes } } } option = { name = "EVTOPTWAYsiegesescapeattempt01" ai_chance = { factor = 0.75 modifier = { factor = 0.5 trait = craven } modifier = { factor = 2 trait = brave } modifier = { factor = 1.5 trait = ambitious } modifier = { factor = 0.75 trait = slothful } } #ai random_list = { 33 = { custom_tooltip = EVTTOOLTIPsiegeescaped hidden_tooltip = { character_event = { id = 1100099994 } } } #33 66 = { ROOT = { custom_tooltip = EVTTOOLTIPsiegecaptured enemy set_character_flag = captured } hidden_tooltip = { ROOT = { character_event = { id = 110009 9993 } } siege = { enemy = { leader = { character _event = { id = 1100099997 } } } } } } #66 } #rndlist random = { chance = 25

if = { limit = { NOT = { trait = brave } NOT = { trait = craven } } add_trait = brave hidden_tooltip = { character_event = { id = 38270 #Notify } } } if = { limit = { trait = craven } remove_trait = craven hidden_tooltip = { character_event = { id = 38296 #Notify } } } } random = { chance = 10 if = { limit = { trait = slothful } remove_trait = slothful hidden_tooltip = { character_event = { id = 38298 #Notify } } } if = { limit = { trait = content } remove_trait = content hidden_tooltip = { character_event = { id = 38299 #Notify } } } } } #opt1 option = { name = "EVTOPTWAYsiegesescapeattempt02" ai_chance = { factor = 0.5 modifier = { factor = 5 trait = ambitious } modifier = {

factor = 20 trait = brave } modifier = { factor = 20 trait = humble } modifier = { factor = 0.5 trait = craven } modifier = { factor = 0.75 trait = slothful } } #ai random_list = { 75 = { custom_tooltip = EVTTOOLTIPsiegeescaped hidden_tooltip = { character_event = { id = 1100099995 } } } #75 25 = { ROOT = { custom_tooltip = EVTTOOLTIPsiegecaptured enemy set_character_flag = captured } hidden_tooltip = { ROOT = { character_event = { id = 110009 9993 } } siege = { enemy = { leader = { character _event = { id = 1100099997 } } } } } } #25 } #rndlst random = { chance = 25 if = { limit = { NOT = { trait = brave } NOT = { trait = craven } } add_trait = brave hidden_tooltip = { character_event = { id = 38270 #Notify } } } if = { limit = { trait = craven } remove_trait = craven hidden_tooltip = { character_event = {

id = 38296 #Notify } } } if = { limit = { NOT = { trait = proud } NOT = { trait = humble } } add_trait = humble hidden_tooltip = { character_event = { id = 38260 #Notify } } } if = { limit = { trait = proud } remove_trait = proud hidden_tooltip = { character_event = { id = 38300 #Notify } } } } random = { chance = 10 if = { limit = { trait = slothful } remove_trait = slothful hidden_tooltip = { character_event = { id = 38298 #Notify } } } if = { limit = { trait = content } remove_trait = content hidden_tooltip = { character_event = { id = 38299 #Notify } } } if = { limit = { is_ill = no } add_trait = ill hidden_tooltip = { character_event = { id = 38290 #Notify

} } } } random = { chance = 5 if = { limit = { is_ill = no } add_trait = pneumonic hidden_tooltip = { character_event = { id = 38290 #Notify } } } if = { limit = { NOT = { trait = wounded } } add_trait = wounded hidden_tooltip = { character_event = { id = 38280 #Notify } } } } random = { chance = 1 if = { limit = { NOT = { trait = maimed } } add_trait = maimed hidden_tooltip = { character_event = { id = 38281 #Notify } } } if = { limit = { is_ill = no } add_trait = has_tuberculosis hidden_tooltip = { character_event = { id = 38290 #Notify } } } } } #Opt2 option = { name = "EVTOPTWAYsiegesescapeattempt03" ai_chance = { factor = 0.1

modifier = { factor = 5 trait = ambitious } modifier = { factor = 20 trait = lunatic } modifier = { factor = 20 trait = possessed } modifier = { factor = 10 trait = brave } modifier = { factor = 0.5 trait = craven } modifier = { factor = 0.5 trait = slothful } modifier = { factor = 0.1 trait = clubfooted } }#ai random_list = { 70 = { custom_tooltip = EVTTOOLTIPsiegeescaped hidden_tooltip = { character_event = { id = 1100099996 } } } #70 20 = { ROOT = { custom_tooltip = EVTTOOLTIPsiegecaptured enemy set_character_flag = captured } hidden_tooltip = { ROOT = { character_event = { id = 110009 9993 } } siege = { enemy = { leader = { character _event = { id = 1100099997 } } } } } } #20 10 = { ROOT = { death = { death_reason = death_escape } } } #10 } #rndlst random = { chance = 50 if = { limit = {

NOT = { trait = brave } NOT = { trait = craven } } add_trait = brave hidden_tooltip = { character_event = { id = 38270 #Notify } } } if = { limit = { trait = craven } remove_trait = craven hidden_tooltip = { character_event = { id = 38296 #Notify } } } if = { limit = { NOT = { trait = proud } NOT = { trait = humble } } add_trait = proud hidden_tooltip = { character_event = { id = 38261 #Notify } } } } random = { chance = 20 if = { limit = { NOT = { trait = lunatic } } add_trait = lunatic hidden_tooltip = { character_event = { id = 38304 #Notify } } } if = { limit = { NOT = { trait = trusting } NOT = { trait = paranoid } } add_trait = trusting hidden_tooltip = { character_event = { id = 38250 #Notify } } } if = {

limit = { trait = slothful } remove_trait = slothful hidden_tooltip = { character_event = { id = 38298 #Notify } } } if = { limit = { trait = content } remove_trait = content hidden_tooltip = { character_event = { id = 38299 #Notify } } } } if = { limit = { NOT = { trait = wounded } } random = { chance = 5 add_trait = wounded hidden_tooltip = { character_event = { id = 38280 #Notify } } } } if = { limit = { NOT = { trait = maimed } } random = { chance = 10 add_trait = maimed hidden_tooltip = { character_event = { id = 38280 #Notify } } } } } #Opt3 option = { name = "EVTOPTWAYsiegesescapeattempt04" ai_chance = { factor = 5 modifier = { factor = 2 trait = content } modifier = {

factor = 2 trait = patient } modifier = { factor = 2 trait = craven } modifier = { factor = 0.5 trait = ambitious } modifier = { factor = 0.1 trait = brave } modifier = { factor = 2 trait = slothful } } #ai random = { chance = 25 if = { limit = { NOT = { trait = patient } NOT = { trait = wroth } } add_trait = patient hidden_tooltip = { character_event = { id = 38264 #Notify } } } if = { limit = { NOT = { trait = stressed } } add_trait = stressed hidden_tooltip = { character_event = { id = 38282 #Notify } } } } random = { chance = 5 if = { limit = { NOT = { trait = brave } NOT = { trait = craven } } add_trait = craven hidden_tooltip = { character_event = { id = 38257 #Notify } }

} if = { limit = { trait = brave } remove_trait = brave } if = { limit = { NOT = { trait = temperate } NOT = { trait = gluttonous } } add_trait = temperate hidden_tooltip = { character_event = { id = 38276 #Notify } } } if = { limit = { NOT = { trait = trusting } NOT = { trait = paranoid } } add_trait = paranoid hidden_tooltip = { character_event = { id = 38275 #Notify } } } } } #opt4 } #evnt

#captured by the enemy character_event = { id = 1100099993 desc = "EVTDESCRWAYnotifyofcapture1" title = "EVTNAMEWAYnotifyofoutcome" picture = "GFX_evt_Bloody_man" border = "GFX_event_normal_frame_war" is_triggered_only = yes option = { name = "EVTOPWAYsiegecapture02" remove_character_modifier = stalwart_defender ROOT = { custom_tooltip = EVTTOOLWAYfamilyhatesyou } }#opt }#evt #escape by postern character_event = {

id = 1100099994 desc = "EVTDESCRWAYnotifyofescape01" title = "EVTNAMEWAYnotifyofoutcome" picture = "GFX_evt_Courier_Riding" border = "GFX_event_normal_frame_war" is_triggered_only = yes trigger = { is_alive = yes } option = { name = "EVTTOOLTIPsiegeescaped" remove_character_modifier = stalwart_defender add_character_modifier = { name = modifier_hidden duration = 730 } add_character_modifier = { name = escaped_siege duration = 365 } if = { any_dynasty_member = { limit = { NOT = { in_command = yes } at_location = ROOT NOT = { has_character_modifier = modifie r_hidden } } opinion = { modifier = left_behind who = ROOT months = 12 } } }#if }#opt }#evt #escape by sewer character_event = { id = 1100099995 desc = "EVTDESCRWAYnotifyofescape02" title = "EVTNAMEWAYnotifyofoutcome" picture = "GFX_evt_Courier_Riding" border = "GFX_event_normal_frame_war" is_triggered_only = yes trigger = { is_alive = yes } option = { name = "EVTTOOLTIPsiegeescaped" remove_character_modifier = stalwart_defender add_character_modifier = { name = modifier_hidden duration = 730 } add_character_modifier = { name = escaped_siege

duration = 365 } if = { any_dynasty_member = { limit = { NOT = { in_command = yes } at_location = ROOT NOT = { has_character_modifier = modifie r_hidden } } opinion = { modifier = left_behind who = ROOT months = 12 } } }#if }#opt }#evt #escape by wall character_event = { id = 1100099996 desc = "EVTDESCRWAYnotifyofescape03" title = "EVTNAMEWAYnotifyofoutcome" picture = "GFX_evt_Courier_Riding" border = "GFX_event_normal_frame_war" is_triggered_only = yes trigger = { is_alive = yes } option = { name = "EVTTOOLTIPsiegeescaped" remove_character_modifier = stalwart_defender add_character_modifier = { name = modifier_hidden duration = 730 } add_character_modifier = { name = escaped_siege duration = 365 } if = { any_dynasty_member = { limit = { NOT = { in_command = yes } at_location = ROOT NOT = { has_character_modifier = modifie r_hidden } } opinion = { modifier = left_behind who = ROOT months = 12 } } }#if }#opt }#evt

#capture event character_event = { id = 1100099997 desc = "EVTDESCRWAYnotifyofcapture2" title = "EVTNAMEWAYnotifyofoutcome" picture = "GFX_evt_Thrown_into_dungeon" border = "GFX_event_normal_frame_war" is_triggered_only = yes option = { name = "EVTOPWAYsiegecapture01" siege = { enemy = { leader = { limit = { has_character_flag = captured NOT = { has_character_modifier = modifier_hidden } } imprison = ROOT set_character_flag = captured_in_battle clr_character_flag = captured if = { any_dynasty_member = { limit = { at_location = RO OT } opinion = { modifier = left_ behind who = FROM months = 12 } } }#if if = { any_spouse = { limit = { at_location = RO OT } opinion = { modifier = left_ behind who = FROM months = 12 } } }#if }#ldr }#nme }#siege }#opt }#evt # #surrender or die events # character_event = { #attacker

# # # #

id = 1100099998 desc = "EVTDESC1100099998" picture = "GFX_evt_siege" border = "GFX_event_normal_frame_war"

# #is_triggered_only = yes #need a lesson about "on actions" # trigger = { # siege = { # is_attacker = yes # enemy = { # leader = { # is_primary_war_attacker = no # is_primary_war_defender = no # } # } # } # } # mean_time_to_happen = { # days = 70 # modifier = { #every 12 days, no flag to mark cooldown, storm e nd wotu is like 6 months. # factor = 5 # trait = wroth # } # modifier = { # factor = 1.75 # martial = 7 # } # modifier = { # factor = 0.8 # martial = 12 # } # modifier = { # factor = 0.8 # diplomacy = 10 # } # modifier = { # factor = 0.75 # siege = { # enemy = { # leader = { # NOT = { martial = 8 } # } # } # } # } # modifier = { # factor = 0.85 # siege = {

# enemy = { # leader = { # NOT = { martial = 10 } # } # } # } # } # } # option = { # name = "EXCELLENT" #Propose surrender # siege = {enemy = {leader = {character_event = { id = 110009999 9 }}}} # }#opt # } # character_event = { #defender # # # # id = 1100099999 desc = "EVTDESC1100099999" picture = "GFX_evt_siege" border = "GFX_event_normal_frame_war"

# is_triggered_only = yes # option = { # name = "OK" #surrender # siege = { # morale = -1 #will surrender # } # ai_chance = { # factor = 3 #doesnt really matter but why is this a dec imal? Ruthless, honorable etc but really need to tie the above comment for any o f this to be justified. # modifier = { # factor = 1.5 # trait = slothful # } # modifier = { # factor = 2 # trait = weak # } # modifier = { # factor = 1.5 # trait = craven # } # modifier = { # factor = 1.1 # trait = humble # } # modifier = { # factor = 2.3 # trait = depressed # } # modifier = {

# factor = 2.1 # trait = trusting # } # modifier = { # factor = 0.2 # trait = paranoid # } # }#ai # FROM = {character_event = { id = 1100100000}} # }#opt # option = { # name = "REFUSE" #NEVA! # ai_chance = { # factor = 7 # modifier = { # factor = 2 # trait = proud # } # modifier = { # factor = 1.5 # trait = knight # } # modifier = { # factor = 2 # martial = 11 # } # modifier = { # factor = 1.3 # trait = trained_warrior # } # modifier = { # factor = 1.5 # trait = skilled_warrior # } # modifier = { # factor = 2 # trait = master_warrior # } # modifier = { # factor = 3 # trait = brilliant_strategist # } # modifier = { # factor = 2 # trait = wroth # } # modifier = { # factor = 4

# trait = brave # } # } # FROM = {character_event = { id = 1100100001}} # }#opt # } # character_event = { #information accept # # # # id = 1100100000 desc = "EVTDESC1100100000" picture = "GFX_evt_siege" border = "GFX_event_normal_frame_war"

# is_triggered_only = yes # option = { # name = "EXCELLENT"} # } # character_event = { #information REFUSE # # # # id = 1100100001 desc = "EVTDESC1100100001" picture = "GFX_evt_siege" border = "GFX_event_normal_frame_war"

# is_triggered_only = yes # option = { # name = "OK"} # }

Vous aimerez peut-être aussi