Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- decisions = {
- field_of_fire_dec = { #same conditions as event dragon.3199
- is_high_prio = yes
- ai = no #ai decides via event
- potential = {
- can_use_dragon_abilities_trigger = yes
- OR = {
- NOT = { has_character_flag = dragonduel }
- had_character_flag = { flag = dragonduel days = 10 }
- }
- OR = {
- had_character_flag = { flag = dragon_used_battle days = 15 }
- NOT = { has_character_flag = dragon_used_battle }
- }
- in_battle = yes
- in_command = yes
- NOT = {
- dragon_rider = {
- at_location = ROOT
- is_alive = yes
- prisoner = no
- in_command = yes
- NOT = { character = ROOT }
- OR = {
- war_with = ROOT
- any_liege = { war_with = ROOT }
- AND = {
- ROOT = { war = no }
- OR = {
- ROOT = { any_liege = { war_with = PREVPREV } }
- any_liege = { ROOT = { any_liege = { war_with = PREVPREV } } }
- }
- }
- }
- }
- }
- NOT = {
- dragon = {
- can_use_dragon_abilities_trigger = yes
- at_location = ROOT
- is_alive = yes
- prisoner = no
- in_command = yes
- NOT = { character = ROOT }
- OR = {
- war_with = ROOT
- any_liege = { war_with = ROOT }
- AND = {
- ROOT = { war = no }
- OR = {
- ROOT = { any_liege = { war_with = PREVPREV } }
- any_liege = { ROOT = { any_liege = { war_with = PREVPREV } } }
- }
- }
- }
- }
- }
- NOT = { has_game_rule = { name = dragon_hatching_taming value = off } }
- }
- allow = {
- trigger_if = {
- limit = { can_use_dragon_abilities_trigger = yes }
- any_friend = {
- trait = dragon
- is_alive = yes
- age = 2
- NOT = { trait = maimed_dragon }
- }
- }
- custom_tooltip = {
- text = TOOLTIPfield_of_fire_decTERRAIN
- hidden_tooltip = {
- NOT = {
- location = {
- OR = {
- terrain = mountain
- terrain = desert
- }
- }
- }
- }
- }
- custom_tooltip = {
- text = TOOLTIPfield_of_fire_dec
- hidden_tooltip = {
- # location = {
- # any_province_character = {
- # at_location = ROOT
- # prisoner = no
- # in_command = yes
- # OR = {
- # war_with = ROOT
- # any_liege = { war_with = ROOT }
- # ROOT = { any_liege = { war_with = PREVPREV } }
- # any_liege = { ROOT = { any_liege = { war_with = PREVPREV } } }
- # }
- # }
- # }
- OR = {
- AND = {
- is_ruler = yes
- war = yes
- any_current_enemy = {
- #war_with = ROOT
- OR = {
- AND = {
- at_location = ROOT
- prisoner = no
- in_command = yes
- }
- any_realm_lord = {
- at_location = ROOT
- prisoner = no
- in_command = yes
- }
- any_courtier = {
- at_location = ROOT
- prisoner = no
- in_command = yes
- }
- }
- }
- }
- AND = {
- #war = no # Your liege's wars still count
- any_liege = {
- any_current_enemy = {
- #war_with = PREV
- OR = {
- AND = {
- at_location = ROOT
- prisoner = no
- in_command = yes
- }
- any_realm_lord = {
- at_location = ROOT
- prisoner = no
- in_command = yes
- }
- any_courtier = {
- at_location = ROOT
- prisoner = no
- in_command = yes
- }
- }
- }
- }
- }
- any_independent_ruler = {
- mercenary = yes
- at_location = ROOT
- in_command = yes
- prisoner = no
- }
- }
- }
- }
- }
- effect = {
- set_character_flag = dragon_used_battle
- character_event = { id = dragon.31 tooltip = "EVTTOOLTIPdragon.31" }
- }
- ai_will_do = {
- factor = 0
- }
- }
- siege_of_fire_dec = {
- is_high_prio = yes
- potential = {
- can_use_dragon_abilities_trigger = yes
- OR = {
- NOT = {has_character_flag = dragonduel}
- had_character_flag = { flag = dragonduel days = 10 }
- }
- OR = {
- had_character_flag = { flag = dragon_used days = 30}
- NOT = { has_character_flag = dragon_used}
- }
- #OR = {
- siege = {
- is_attacker = yes
- }
- # siege = {
- # is_attacker = no
- # }
- #}
- NOT = {
- location = { has_province_modifier = ruined_province }
- }
- NOT = { has_game_rule = { name = dragon_hatching_taming value = off } }
- }
- allow = {
- NOT = { in_battle = yes }
- trigger_if = {
- limit = { can_use_dragon_abilities_trigger = yes }
- any_friend = {
- trait = dragon
- age = 2
- NOT = { trait = maimed_dragon }
- }
- }
- }
- effect = {
- set_character_flag = dragon_used
- hidden_tooltip = { #find leader/target
- siege = {
- enemy = {
- leader = {
- save_event_target_as = siege_of_fire_target
- #set_character_flag = siege_leader
- ROOT = { set_character_flag = siege_of_fire_target_found }
- }
- }
- if = { #if no leader default to province owner (capital only)
- limit = { ROOT = { NOT = { has_character_flag = siege_of_fire_target_found } } }
- location = {
- owner = {
- if = {
- limit = {
- capital_holding = { controller = { character = PREVPREV } }
- capital_scope = { ROOT = { at_location = PREV } }
- }
- save_event_target_as = siege_of_fire_target
- }
- }
- }
- }
- }
- clr_character_flag = siege_of_fire_target_found
- }
- character_event = {id = dragon.38 tooltip = "EVTTOOLTIPdragon.31"}
- }
- ai_will_do = {
- factor = 1000
- modifier = { #AI never use a young dragon in siege
- factor = 0
- NOR = {
- any_friend = {
- trait = dragon
- is_alive = yes
- age = 2
- martial = 20
- }
- AND = {
- graphical_culture = dragongfx
- martial = 20
- OR = {
- has_alternate_start_parameter = { key = special_culture value = animal_kingdoms }
- has_alternate_start_parameter = { key = special_culture value = animal_world }
- has_alternate_start_parameter = { key = special_culture value = all }
- }
- }
- }
- }
- }
- }
- hatch_dragon_dec = {
- is_high_prio = yes
- potential = {
- #ai = no
- has_artifact = dragon_egg
- NOT = { can_use_dragon_abilities_trigger = yes }
- NOT = { trait = dragon }
- NOT = { any_friend = { is_alive = yes trait = dragon } }
- OR = {
- NOT = { has_character_flag = tried_hatch }
- had_character_flag = { flag = tried_hatch days = 500 }
- }
- NOT = { has_game_rule = { name = dragon_hatching_taming value = off } }
- }
- allow = {
- age = 12
- conditional_tooltip = {
- trigger = { has_game_rule = { name = dragon_hatching_taming value = valyrian_only } }
- OR = {
- culture_group = valyrian
- is_divine_blood_dynasty_trigger = yes
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- }
- prisoner = no
- in_command = no
- NOT = { trait = incapable }
- has_epidemic = no
- OR = {
- AND = {
- government = valyrian_imperial_government
- is_ruler = no
- employer = {
- crownlaw_title = {
- OR = {
- has_law = dragon_tamer_0
- AND = {
- has_law = dragon_tamer_1
- ROOT = {
- OR = {
- has_minor_title = title_dragon_tamer
- higher_real_tier_than = BARON
- }
- }
- }
- AND = {
- has_law = dragon_tamer_2
- holder_scope = {
- OR = {
- character = ROOT
- dynasty = ROOT
- }
- }
- }
- }
- }
- }
- }
- crownlaw_title = {
- government = valyrian_imperial_government
- OR = {
- has_law = dragon_tamer_0
- AND = {
- has_law = dragon_tamer_1
- ROOT = {
- OR = {
- has_minor_title = title_dragon_tamer
- higher_real_tier_than = BARON
- }
- }
- }
- AND = {
- has_law = dragon_tamer_2
- holder_scope = {
- OR = {
- character = ROOT
- dynasty = ROOT
- }
- }
- }
- }
- }
- OR = {
- independent = yes
- tier = KING
- AND = {
- lower_tier_than = KING
- NOT = { has_any_opinion_modifier = opinion_de_facto_liege }
- }
- }
- }
- custom_tooltip = {
- text = TOOLTIPDRAGONINTEL
- hidden_tooltip = {
- OR = {
- has_character_flag = dragon_intel_harrenhal
- has_character_flag = dragon_intel_dragonpit
- has_character_flag = dragon_intel_dragonstone
- has_character_flag = dragon_intel_citadel
- has_character_flag = dragon_intel_fof
- has_character_flag = dragon_intel_summerhall
- has_character_flag = dragon_intel_eggs
- has_character_flag = dragon_intel_old_ghis
- has_character_flag = dragon_intel_volantis
- has_character_flag = dragon_intel_smoking_sea
- has_character_flag = dragon_intel_asshai
- has_character_flag = dragon_intel_dynamic
- has_character_flag = dragon_intel_rebirth
- }
- }
- }
- }
- effect = {
- set_character_flag = tried_hatch
- character_event = { id = dragon.3 }
- }
- ai_check_interval = 3
- ai_will_do = {
- factor = 1000
- }
- }
- tame_dragon_dec = {
- is_high_prio = yes
- potential = {
- #ai = no
- any_friend = {
- trait = dragon
- is_alive = yes
- }
- NOT = { can_use_dragon_abilities_trigger = yes }
- NOT = { trait = dragon }
- OR = {
- NOT = { has_character_flag = choose_wild_dragon_action }
- had_character_flag = { flag = choose_wild_dragon_action days = 500 }
- }
- NOT = { has_character_flag = dany_no_tame_dragon }
- NOT = { has_game_rule = { name = dragon_hatching_taming value = off } }
- }
- allow = {
- conditional_tooltip = {
- trigger = { has_game_rule = { name = dragon_hatching_taming value = valyrian_only } }
- OR = {
- culture_group = valyrian
- is_divine_blood_dynasty_trigger = yes
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- }
- any_friend = {
- trait = dragon
- is_alive = yes
- age = 2
- }
- age = 14
- prisoner = no
- NOT = { in_battle = yes }
- NOT = { has_severe_disability_trigger = yes }
- has_epidemic = no
- OR = {
- AND = {
- government = valyrian_imperial_government
- is_ruler = no
- employer = {
- crownlaw_title = {
- OR = {
- has_law = dragon_tamer_0
- AND = {
- has_law = dragon_tamer_1
- ROOT = {
- OR = {
- has_minor_title = title_dragon_tamer
- higher_real_tier_than = BARON
- }
- }
- }
- AND = {
- has_law = dragon_tamer_2
- holder_scope = {
- OR = {
- character = ROOT
- dynasty = ROOT
- }
- }
- }
- }
- }
- }
- }
- crownlaw_title = {
- government = valyrian_imperial_government
- OR = {
- has_law = dragon_tamer_0
- AND = {
- has_law = dragon_tamer_1
- ROOT = {
- OR = {
- has_minor_title = title_dragon_tamer
- higher_real_tier_than = BARON
- }
- }
- }
- AND = {
- has_law = dragon_tamer_2
- holder_scope = {
- OR = {
- character = ROOT
- dynasty = ROOT
- }
- }
- }
- }
- }
- OR = {
- independent = yes
- tier = KING
- AND = {
- lower_tier_than = KING
- NOT = { has_any_opinion_modifier = opinion_de_facto_liege }
- }
- }
- }
- }
- effect = {
- set_character_flag = choose_wild_dragon_action
- character_event = { id = dragon.12 days = 1}
- }
- ai_check_interval = 3
- ai_will_do = {
- factor = 1000
- }
- }
- face_dragon_dec = {
- is_high_prio = yes
- potential = {
- age = 14
- dragon = {
- is_alive = yes
- OR = {
- at_location = ROOT
- location = {
- owner = {
- is_liege_of = ROOT
- has_character_modifier = calling_for_dragon_riders
- }
- }
- }
- OR = {
- NOT = { educator = { always = yes } }
- location = { any_province_lord = { is_liege_of = PREVPREV } }
- }
- NOT = { num_of_friends = 1 }
- NOT = { has_character_flag = dany_dragon }
- OR = {
- ROOT = { ai = no }
- AND = {
- NOT = { trait = shy_dragon }
- NOT = { has_character_flag = shadow_lands_dragon }
- }
- has_character_modifier = locked_in_dragonpit
- }
- OR = {
- NOT = { has_character_flag = found_wild_dragon }
- had_character_flag = { flag = found_wild_dragon days = 30 }
- }
- is_ruler = no
- NOT = { liege = { graphical_culture = dragongfx } }
- }
- NOT = { trait = dragon }
- NOT = { graphical_culture = dragongfx }
- OR = { #Must not be about to be culled
- NOT = { culture = high_valyrian }
- has_dynasty_flag = high_valyrian
- has_character_flag = high_valyrian
- has_game_rule = { name = high_valyrian_cull value = off }
- }
- NOT = { has_game_rule = { name = dragon_hatching_taming value = off } }
- }
- allow = {
- show_only_failed_conditions = yes
- conditional_tooltip = {
- trigger = { has_game_rule = { name = dragon_hatching_taming value = valyrian_only } }
- OR = {
- culture_group = valyrian
- is_divine_blood_dynasty_trigger = yes
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- }
- OR = {
- location = {
- owner = {
- OR = {
- character = ROOT
- custom_tooltip = {
- text = TOOLTIPface_dragon_decOWNER
- hidden_tooltip = {
- NOR = {
- can_use_dragon_abilities_trigger = yes
- has_dynasty_flag = dragon_riding_dynasty
- }
- }
- }
- dynasty = ROOT
- is_close_relative = ROOT
- is_liege_or_above = ROOT
- }
- }
- }
- liege = {
- has_character_modifier = calling_for_dragon_riders
- ROOT = { NOT = { tier = KING } }
- opinion = { who = ROOT value = -24 }
- reverse_opinion = { who = ROOT value = -24 }
- }
- }
- custom_tooltip = {
- text = TOOLTIPface_dragon_dec_A
- NOT = { any_friend = { trait = dragon is_alive = yes } }
- NOT = { can_use_dragon_abilities_trigger = yes }
- }
- custom_tooltip = {
- text = TOOLTIPface_dragon_dec_B
- OR = {
- NOT = { has_character_flag = found_wild_dragon }
- had_character_flag = { flag = found_wild_dragon days = 60 }
- }
- }
- custom_tooltip = {
- text = TOOLTIPface_dragon_dec_C
- OR = {
- NOT = { has_character_flag = ran_from_dragon }
- had_character_flag = { flag = ran_from_dragon days = 365 }
- }
- }
- prisoner = no
- NOT = { in_battle = yes }
- NOT = { has_severe_disability_trigger = yes }
- NOT = { is_inaccessible_trigger = yes }
- has_epidemic = no
- }
- effect = {
- character_event = { id = dragon.2699 }
- }
- ai_check_interval = 3
- ai_will_do = {
- factor = 1
- modifier = {
- factor = 0.05
- }
- modifier = {
- factor = 100
- has_ambition = obj_tame_a_dragon
- }
- #better stand a chance
- modifier = {
- factor = 0
- NOT = { trait = dragon_slayer }
- NOT = { trait = brave }
- NOT = { trait = genius }
- NOT = { trait = lunatic }
- NOT = { trait = ambitious }
- NOT = { trait = chosen_by_rhllor }
- NOT = { has_ambition = obj_tame_a_dragon }
- NOR = {
- culture = high_valyrian
- graphical_culture = valyriangfx
- }
- NOT = { any_owned_bloodline = { has_bloodline_flag = blood_of_the_dragon } }
- NOT = { has_character_flag = demon_child_non_pagan }
- NOT = {
- AND = {
- OR = {
- culture_group = valyrian
- has_silver_hair_ethnicity_trigger = yes
- }
- OR = {
- religion_group = valyrian_rel_group
- has_character_modifier = abomination_of_incest
- location = { owner = { can_use_dragon_abilities_trigger = yes is_close_relative = ROOT } }
- }
- }
- }
- NOT = { any_artifact = { has_artifact_flag = dragonhorn } }
- }
- modifier = {
- factor = 0
- NOT = { has_ambition = obj_tame_a_dragon }
- OR = {
- trait = craven
- trait = depressed
- trait = content
- trait = timid
- }
- }
- modifier = {
- factor = 0
- NOT = { can_press_claims_trigger = yes }
- NOR = {
- trait = ruthless
- trait = ambitious
- trait = arbitrary
- }
- NOT = { has_ambition = obj_tame_a_dragon }
- }
- modifier = {
- factor = 0.2
- NOR = {
- trait = chosen_by_rhllor
- any_owned_bloodline = { has_bloodline_flag = blood_of_the_dragon }
- has_character_flag = demon_child_non_pagan
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- NOT = {
- calc_true_if = {
- amount = 2
- trait = wroth
- trait = ambitious
- trait = brave
- trait = authoritative
- trait = greedy
- is_strong_trigger = yes
- is_smart_incl_genius_trigger = yes
- religion_group = valyrian_rel_group
- has_character_flag = dragon_intel_citadel
- trait = favored_by_rhllor
- }
- }
- }
- modifier = {
- factor = 4
- OR = {
- culture = high_valyrian
- graphical_culture = valyriangfx
- }
- }
- modifier = {
- factor = 5
- OR = {
- trait = chosen_by_rhllor
- any_owned_bloodline = { has_bloodline_flag = blood_of_the_dragon }
- has_character_flag = demon_child_non_pagan
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- }
- modifier = {
- factor = 4
- trait = ambitious
- }
- }
- }
- #Dany spare dragon decisions
- dany_give_spouse_dragon = {
- only_playable = yes
- potential = {
- has_character_flag = daenerys_targaryen
- any_child = {
- NOT = { any_friend = { is_alive = yes } }
- trait = dragon
- is_alive = yes
- }
- spouse = {
- is_alive = yes
- NOT = {
- any_friend = {
- trait = dragon
- is_alive = yes
- }
- }
- NOT = { war_with = ROOT }
- }
- }
- allow = {
- conditional_tooltip = {
- trigger = { has_game_rule = { name = dragon_hatching_taming value = valyrian_only } }
- spouse = {
- OR = {
- culture_group = valyrian
- is_divine_blood_dynasty_trigger = yes
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- }
- }
- }
- effect = {
- spouse = {
- ROOT = {
- random_child = {
- limit = {
- NOT = { any_friend = { is_alive = yes } }
- trait = dragon
- is_alive = yes
- }
- add_friend = PREVPREV
- #hidden_tooltip = { set_mother = 0 }
- }
- }
- hidden_tooltip = { character_event = { id = dragon.400 } }
- }
- }
- ai_check_interval = 3
- ai_will_do = {
- factor = 1
- modifier = {
- factor = 0.25 # Slow it down a bit
- }
- modifier = {
- factor = 0
- spouse = {
- OR = {
- trait = craven
- is_weak_trigger = yes
- is_dumb_trigger = yes
- trait = imbecile
- trait = infirm
- has_severe_disability_trigger = yes
- NOT = { reverse_opinion = { who = ROOT value = 50 } }
- }
- }
- }
- modifier = {
- factor = 2
- spouse = {
- OR = {
- trait = brave
- is_strong_trigger = yes
- is_smart_incl_genius_trigger = yes
- reverse_opinion = { who = ROOT value = 99 }
- }
- }
- }
- }
- }
- dany_give_child_dragon = {
- only_playable = yes
- potential = {
- has_character_flag = daenerys_targaryen
- any_child = {
- NOT = { any_friend = { is_alive = yes } }
- trait = dragon
- is_alive = yes
- }
- any_child = {
- is_alive = yes
- NOT = {
- any_friend = {
- trait = dragon
- is_alive = yes
- }
- }
- NOT = { war_with = ROOT }
- NOT = { trait = dragon }
- conditional_tooltip = {
- trigger = { has_game_rule = { name = dragon_hatching_taming value = valyrian_only } }
- OR = {
- culture_group = valyrian
- is_divine_blood_dynasty_trigger = yes
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- }
- }
- }
- allow = {
- }
- effect = {
- random_child = {
- limit = {
- is_alive = yes
- NOT = {
- any_friend = {
- trait = dragon
- is_alive = yes
- }
- }
- NOT = { war_with = ROOT }
- NOT = { trait = dragon }
- OR = {
- ROOT = { ai = no }
- AND = {
- age = 14
- NOT = {
- OR = {
- trait = craven
- is_weak_trigger = yes
- is_dumb_trigger = yes
- trait = imbecile
- trait = infirm
- has_severe_disability_trigger = yes
- NOT = { reverse_opinion = { who = ROOT value = 25 } }
- }
- }
- }
- }
- conditional_tooltip = {
- trigger = { has_game_rule = { name = dragon_hatching_taming value = valyrian_only } }
- OR = {
- culture_group = valyrian
- is_divine_blood_dynasty_trigger = yes
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- }
- }
- ROOT = {
- random_child = {
- limit = {
- NOT = { any_friend = { is_alive = yes } }
- trait = dragon
- is_alive = yes
- }
- add_friend = PREVPREV
- #hidden_tooltip = { set_mother = 0 }
- }
- }
- hidden_tooltip = { character_event = { id = dragon.400 } }
- }
- }
- ai_check_interval = 3
- ai_will_do = {
- factor = 1
- modifier = {
- factor = 0.5 # Slow it down a bit
- }
- modifier = {
- factor = 0
- NOT = {
- any_child = {
- age = 14
- NOT = {
- OR = {
- trait = craven
- is_weak_trigger = yes
- is_dumb_trigger = yes
- trait = imbecile
- trait = infirm
- has_severe_disability_trigger = yes
- NOT = { reverse_opinion = { who = ROOT value = 25 } }
- }
- }
- }
- }
- }
- }
- }
- call_for_dragon_riders = {
- is_high_prio = yes
- only_playable = yes
- potential = {
- war = yes
- NOT = { tier = BARON }
- dragon = {
- is_alive = yes
- NOT = { any_friend = { always = yes } }
- NOT = { num_of_friends = 1 }
- location = { owner = { character = ROOT } }
- OR = {
- NOT = { educator = { always = yes } }
- liege = { character = ROOT }
- }
- NOT = { trait = shy_dragon }
- NOT = { has_character_flag = dany_dragon }
- NOT = { has_character_flag = shadow_lands_dragon }
- }
- NOT = { graphical_culture = dragongfx }
- had_global_flag = { flag = scenario_initialised days = 5 } #needs a few days for the dragons to be added as friends due to add_friend not being instant
- NOT = { has_game_rule = { name = dragon_hatching_taming value = off } }
- }
- allow = {
- war = yes
- NOT = { has_character_modifier = calling_for_dragon_riders }
- }
- effect = {
- add_character_modifier = {
- name = calling_for_dragon_riders
- duration = 1825
- }
- character_event = { id = dragon.170 tooltip = TOOLTIPdragon.170 }
- }
- ai_check_interval = 3
- ai_will_do = {
- factor = 1
- modifier = {
- factor = 0.15
- }
- modifier = { #No powerful enemies
- factor = 0
- NOT = {
- any_current_enemy = {
- OR = {
- relative_power = { who = ROOT power = 0.8 }
- AND = {
- can_use_dragon_abilities_trigger = yes
- OR = {
- any_friend = {
- trait = dragon
- NOT = { trait = maimed_dragon }
- martial = 20
- ROOT = {
- OR = {
- NOT = { can_use_dragon_abilities_trigger = yes }
- NOT = {
- any_friend = {
- trait = dragon
- NOT = { trait = maimed_dragon }
- attribute_diff = { character = PREVPREV attribute = martial value = -20 }
- }
- }
- }
- }
- }
- AND = {
- martial = 20
- graphical_culture = dragongfx
- ROOT = {
- OR = {
- NOT = { can_use_dragon_abilities_trigger = yes }
- NOT = {
- any_friend = {
- trait = dragon
- NOT = { trait = maimed_dragon }
- attribute_diff = { character = PREVPREV attribute = martial value = -20 }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- modifier = {
- factor = 0
- OR = {
- trait = greedy
- trait = familyperson
- }
- }
- modifier = {
- factor = 3
- any_current_enemy = {
- OR = {
- can_use_dragon_abilities_trigger = yes
- relative_power = { who = ROOT power = 1.5 }
- }
- }
- }
- modifier = {
- factor = 3
- NOT = { can_use_dragon_abilities_trigger = yes }
- }
- modifier = {
- factor = 3
- trait = charitable
- }
- modifier = {
- factor = 3
- trait = humble
- }
- modifier = {
- factor = 0.33
- trait = proud
- }
- }
- }
- }
- targetted_decisions = {
- face_the_dragon_pi = {
- ai_target_filter = self
- filter = all
- ai = no
- only_playable = yes
- diplomacy_icon = GFX_face_the_dragon_pi
- from_potential = {
- ai = no
- NOT = { graphical_culture = dragongfx }
- NOT = { any_friend = { trait = dragon is_alive = yes } }
- NOT = { has_game_rule = { name = dragon_hatching_taming value = off } }
- }
- potential = {
- trait = dragon
- NOT = { any_friend = { always = yes is_alive = yes } }
- is_ruler = no
- NOT = { liege = { graphical_culture = dragongfx } }
- }
- allow = {
- show_only_failed_conditions = yes
- OR = {
- at_location = FROM
- location = {
- owner = {
- is_liege_of = FROM
- has_character_modifier = calling_for_dragon_riders
- }
- }
- }
- custom_tooltip = {
- text = TOOLTIPface_dragonGUARDIAN
- hidden_tooltip = {
- OR = {
- NOT = { educator = { always = yes } }
- location = { any_province_lord = { is_liege_of = ROOT } }
- }
- }
- }
- custom_tooltip = {
- text = TOOLTIPface_dragonFOUND
- hidden_tooltip = {
- OR = {
- NOT = { has_character_flag = found_wild_dragon }
- had_character_flag = { flag = found_wild_dragon days = 30 }
- }
- }
- }
- custom_tooltip = {
- text = TOOLTIPface_dragonDANY
- hidden_tooltip = {
- NOT = { has_character_flag = dany_dragon }
- }
- }
- location = {
- owner = {
- OR = {
- character = FROM
- custom_tooltip = {
- text = TOOLTIPface_dragon_decOWNER
- hidden_tooltip = {
- NOR = {
- can_use_dragon_abilities_trigger = yes
- has_dynasty_flag = dragon_riding_dynasty
- }
- }
- }
- dynasty = FROM
- is_close_relative = FROM
- is_liege_or_above = FROM
- AND = {
- has_character_modifier = calling_for_dragon_riders
- is_liege_of = FROM
- FROM = { NOT = { tier = KING } }
- opinion = { who = FROM value = -24 }
- reverse_opinion = { who = FROM value = -24 }
- }
- }
- }
- }
- FROM = {
- conditional_tooltip = {
- trigger = { has_game_rule = { name = dragon_hatching_taming value = valyrian_only } }
- OR = {
- culture_group = valyrian
- is_divine_blood_dynasty_trigger = yes
- any_artifact = { has_artifact_flag = dragonhorn }
- }
- }
- age = 14
- OR = {
- is_female = no
- female_get_masculine_event_trigger = yes
- trait = brave
- martial = 18
- culture_group = valyrian
- has_silver_hair_ethnicity_trigger = yes
- trait = chosen_by_rhllor
- }
- prisoner = no
- NOT = { in_battle = yes }
- custom_tooltip = {
- text = TOOLTIPface_dragonILL
- hidden_tooltip = {
- NOT = { has_severe_disability_trigger = yes }
- has_epidemic = no
- }
- }
- custom_tooltip = {
- text = TOOLTIPface_dragonFOUNDWILDDRAGON
- hidden_tooltip = {
- OR = {
- NOT = { has_character_flag = found_wild_dragon }
- had_character_flag = { flag = found_wild_dragon days = 60 }
- }
- }
- }
- custom_tooltip = {
- text = TOOLTIPface_dragonRAN
- hidden_tooltip = {
- OR = {
- NOT = {has_character_flag = ran_from_dragon}
- had_character_flag = { flag = ran_from_dragon days = 500}
- }
- }
- }
- NOT = { is_inaccessible_trigger = yes }
- }
- }
- effect = {
- FROM = { set_character_flag = found_wild_dragon }
- set_character_flag = found_wild_dragon
- character_event = { id = dragon.2698 tooltip = TOOLTIPdragon.2698 days = 2 random = 1 }
- }
- ai_will_do = {
- factor = 0
- }
- }
- bestow_dragon_egg = {
- ai_target_filter = close_relatives
- filter = all
- third_party_filter = artifacts
- ai_third_party_filter = artifacts
- third_party = FROM
- diplomacy_icon = GFX_bestow_dragon_egg
- #only_rulers = yes
- from_potential = {
- has_artifact = dragon_egg
- NOT = { trait = dragon }
- #Ai Logic
- OR = {
- ai = no
- any_friend = { is_alive = yes trait = dragon }
- }
- }
- potential = {
- OR = {
- dynasty = FROM
- is_close_relative = FROM
- same_realm = FROM
- }
- NOT_mythical_creature_trigger = yes
- NOT = { character = FROM }
- #Ai Logic
- OR = {
- FROM = { ai = no }
- AND = {
- reverse_opinion = { who = FROM value = -49 }
- NOT = { any_friend = { is_alive = yes trait = dragon } }
- NOT = { trait = nightswatch }
- NOT = { has_artifact = dragon_egg }
- }
- }
- }
- third_party_potential = {
- FROMFROM = {
- artifact_type = dragon_egg
- }
- }
- third_party_allow = {
- }
- allow = {
- FROM = {
- OR = {
- hidden_tooltip = { is_ruler = no }
- has_regent = no
- regent = { opinion = { who = ROOT value = 0 } }
- }
- }
- NOT = { war_with = FROM }
- }
- effect = {
- FROM = {
- #hidden_tooltip = { add_trait = held_important_artifact }
- ROOT_FROMFROM = {
- #set_artifact_flag = previous_holder_@PREV
- save_event_target_as = dragon_egg_to_transfer
- tooltip = { transfer_artifact = { from = PREV to = ROOT } }
- }
- }
- hidden_tooltip = {
- letter_event = { id = dragon.401 }
- }
- if = { #child egg hatching bonus
- limit = {
- NOT = { age = 14 }
- prisoner = no
- is_incapable = no
- OR = {
- is_child_of = FROM
- dynasty = FROM
- }
- }
- custom_tooltip = {
- text = TOOLTIPbestow_dragon_eggCHILD
- hidden_tooltip = {
- FROM = {
- character_event = { id = dragon.160 }
- }
- }
- }
- }
- prestige = 50
- if = {
- limit = { dynasty = FROM }
- opinion = {
- who = FROM
- modifier = bestowed_dragon_egg
- years = 10
- }
- }
- if = {
- limit = { NOT = { dynasty = FROM } }
- opinion = {
- who = FROM
- modifier = bestowed_dragon_egg
- years = 10
- multiplier = 3
- }
- FROM = {
- prestige = -200
- any_dynasty_member = {
- limit = {
- is_alive = yes
- is_close_relative = FROM
- NOT = { character = FROM }
- NOT = { character = ROOT }
- }
- opinion = {
- who = FROM
- modifier = opinion_angry
- months = 60
- }
- }
- }
- }
- if = {
- limit = { ai = no }
- chronicle = {
- entry = CHRONICLE_GIVEN_EGG
- picture = "GFX_targaryen_eggs"
- }
- }
- }
- ai_check_interval = 4
- ai_will_do = {
- factor = 1
- modifier = {
- factor = 0.08 # Slow it down a bit
- }
- modifier = {
- factor = 0.1
- FROM = { NOT = { age = 25 } }
- }
- modifier = {
- factor = 0.2
- NOT = { dynasty = FROM }
- }
- modifier = {
- factor = 0.75
- is_primary_heir = yes
- }
- modifier = {
- factor = 1.66
- is_female = no
- FROM = {
- primary_title = {
- OR = {
- has_law = agnatic_succession
- has_law = cognatic_succession
- }
- }
- }
- }
- modifier = {
- factor = 1.66
- is_female = yes
- FROM = {
- primary_title = {
- OR = {
- has_law = enatic_succession
- has_law = enatic_cognatic_succession
- }
- }
- }
- }
- modifier = {
- factor = 2
- sibling = FROM
- }
- modifier = {
- factor = 5
- is_child_of = FROM
- }
- modifier = {
- factor = 0.2
- can_inherit_titles_trigger = no
- }
- }
- }
- rename_dragon = {
- filter = all
- ai_target_filter = none
- ai = no
- only_rulers = yes
- is_high_prio = yes
- diplomacy_icon = GFX_face_the_dragon_pi
- from_potential = {
- ai = no
- any_friend = { trait = dragon }
- NOT = { graphical_culture = dragongfx }
- }
- potential = {
- trait = dragon
- OR = {
- liege = { character = FROM }
- is_friend = FROM
- any_friend = {
- dynasty = FROM
- is_liege_or_above = FROM
- ai = yes
- }
- }
- }
- allow = {
- NOT = { age = 20 }
- #FROM = { NOT = { has_character_flag = renaming_dragon } }
- }
- effect = {
- prompt_name = {
- player = FROM
- type = NAME_DRAGON_MESSAGE
- culture = dragon_culture
- }
- # FROM = {
- # set_character_flag = renaming_dragon
- # character_event = { id = dragon.499 tooltip = TOOLTIPdragon.499 }
- # }
- }
- ai_will_do = {
- factor = 0
- }
- }
- release_from_dragonpit = {
- filter = home_court
- ai_target_filter = home_court
- ai = no
- only_rulers = yes
- diplomacy_icon = GFX_face_the_dragon_pi
- from_potential = {
- ai = no
- }
- potential = {
- trait = dragon
- OR = {
- is_friend = FROM
- liege = { character = FROM }
- }
- has_character_modifier = locked_in_dragonpit
- }
- allow = {
- FROM = {
- age = 8
- is_incapable = no
- prisoner = no
- }
- has_character_modifier = locked_in_dragonpit
- }
- effect = {
- remove_character_modifier = locked_in_dragonpit
- hidden_tooltip = { FROM = { character_event = { id = dragon.150 } } }
- }
- ai_will_do = {
- factor = 0
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement