SHARE
TWEET

Untitled

a guest Nov 19th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###########################
  2. # Child of Destiny Events #
  3. ###########################
  4.  
  5. character_event = { # Extra chance for player children to become Children of Destiny
  6.     id = HF.199
  7.     hide_window = yes
  8.     is_triggered_only = yes
  9.     only_playable = yes
  10.     ai = no
  11.     max_age = 8
  12.    
  13.     trigger = {
  14.         has_dlc = "Holy Fury"
  15.         has_game_rule = {
  16.             name = child_of_destiny
  17.             value = on
  18.         }
  19.         NOR = {
  20.             was_conceived_a_bastard = yes
  21.             trait = bastard
  22.             trait = legit_bastard
  23.         }
  24.         OR = {
  25.             is_tribal = yes
  26.             is_feudal = yes
  27.             is_nomadic = yes
  28.         }
  29.         NOR = {
  30.             any_owned_bloodline = { # Must not already have a Child of Destiny bloodline
  31.                 has_bloodline_flag = bloodline_ambition
  32.             }
  33.             is_ill = yes
  34.             is_inaccessible_or_incapable_trigger = yes
  35.             has_negative_congenital_trigger = yes
  36.             AND = { # Should be able to legally inherit
  37.                 is_female = yes
  38.                 OR = {
  39.                     has_religion_feature = religion_patriarchal
  40.                     liege = {
  41.                         has_law = agnatic_succession
  42.                     }
  43.                     AND = { # Non-randomized muslims usually prohibit women from ruling
  44.                         religion_group = muslim
  45.                         NOT = {
  46.                             has_alternate_start_parameter = { key = religion_names value = random }
  47.                         }
  48.                     }
  49.                 }
  50.             }
  51.             AND = { # Should be able to legally inherit
  52.                 is_female = no
  53.                 OR = {
  54.                     has_religion_feature = religion_matriarchal
  55.                     liege = {
  56.                         has_law = enatic_succession
  57.                     }
  58.                 }
  59.             }
  60.             any_dynasty_member = { # Only one per dynasty at any one time
  61.                 has_character_flag = is_child_of_destiny
  62.             }
  63.         }
  64.     }
  65.    
  66.     immediate = {
  67.         save_event_target_as = child_of_destiny
  68.         set_character_flag = is_child_of_destiny
  69.         set_character_flag = ai_flag_refuse_concubinage
  70.         set_character_flag = no_court_invites
  71.         father = {
  72.             narrative_event = { id = HF.201 days = 15 }
  73.         }
  74.         mother = {
  75.             narrative_event = { id = HF.201 days = 15 }
  76.         }
  77.         child_of_destiny_journey_start_effect = yes
  78.         health = 1
  79.        
  80.         character_event = { id = HF.306 }
  81.        
  82.         if = {
  83.             limit = {
  84.                 has_global_flag = cod_test_events
  85.             }
  86.             any_player = {
  87.                 character_event = { id = HF.307 }
  88.             }
  89.         }
  90.        
  91.         change_variable = { which = global_children_of_destiny_childhood_pulse_player value = 1 }
  92.     }
  93.    
  94.     weight_multiplier = {
  95.         days = 1
  96.        
  97.         modifier = { # Having a super-parent boosts the chance
  98.             factor = 3
  99.             OR = {
  100.                 father_even_if_dead = {
  101.                     has_top_tier_education_trait_trigger = yes
  102.                     is_attractive_trigger = yes
  103.                     has_pleasant_personality_trigger = yes
  104.                 }
  105.                 mother_even_if_dead = {
  106.                     has_top_tier_education_trait_trigger = yes
  107.                     is_attractive_trigger = yes
  108.                     has_pleasant_personality_trigger = yes
  109.                 }
  110.             }
  111.         }
  112.         modifier = {
  113.             factor = 3
  114.             trait = strong
  115.         }
  116.         modifier = {
  117.             factor = 3
  118.             OR = {
  119.                 trait = genius
  120.                 trait = quick
  121.             }
  122.         }
  123.         modifier = {
  124.             factor = 3
  125.             trait = fair
  126.         }
  127.         modifier = {
  128.             factor = 0.25
  129.             any_owned_bloodline = { # Let's try to avoid stacking created bloodlines
  130.                 has_bloodline_flag = created_bloodline
  131.             }
  132.         }
  133.         modifier = {
  134.             factor = 5000
  135.             has_global_flag = cod_test_values_spawns
  136.         }
  137.     }
  138. }
  139.  
  140. character_event = { # Child becomes Child of Destiny
  141.     id = HF.200
  142.    
  143.     hide_window = yes
  144.  
  145.     is_triggered_only = yes
  146.    
  147.     trigger = {
  148.         has_dlc = "Holy Fury"
  149.         has_game_rule = {
  150.             name = child_of_destiny
  151.             value = on
  152.         }
  153.         NOR = {
  154.             was_conceived_a_bastard = yes
  155.             trait = bastard
  156.             trait = legit_bastard
  157.             is_primary_heir = yes
  158.         }
  159.         OR = {
  160.             father = {
  161.                 is_liege_of = ROOT
  162.                 higher_tier_than = BARON
  163.             }
  164.             mother = {
  165.                 is_liege_of = ROOT
  166.                 higher_tier_than = BARON
  167.             }
  168.         }
  169.         OR = {
  170.             is_tribal = yes
  171.             is_feudal = yes
  172.             is_nomadic = yes
  173.         }
  174.         NOR = {
  175.             any_owned_bloodline = { # Let's not stack created bloodlines
  176.                 has_bloodline_flag = created_bloodline
  177.             }
  178.             is_ill = yes
  179.             is_inaccessible_or_incapable_trigger = yes
  180.             has_negative_congenital_trigger = yes
  181.             AND = { # Should be able to legally inherit
  182.                 is_female = yes
  183.                 OR = {
  184.                     has_religion_feature = religion_patriarchal
  185.                     liege = {
  186.                         has_law = agnatic_succession
  187.                     }
  188.                     AND = { # Non-randomized muslims usually prohibit women from ruling
  189.                         religion_group = muslim
  190.                         NOT = {
  191.                             has_alternate_start_parameter = { key = religion_names value = random }
  192.                         }
  193.                     }
  194.                 }
  195.             }
  196.             AND = { # Should be able to legally inherit
  197.                 is_female = no
  198.                 OR = {
  199.                     has_religion_feature = religion_matriarchal
  200.                     liege = {
  201.                         has_law = enatic_succession
  202.                     }
  203.                 }
  204.             }
  205.             any_dynasty_member = { # Only one per dynasty at any one time
  206.                 has_character_flag = is_child_of_destiny
  207.             }
  208.         }
  209.     }
  210.    
  211.     immediate = {
  212.         save_event_target_as = child_of_destiny
  213.         set_character_flag = is_child_of_destiny
  214.         set_character_flag = ai_flag_refuse_concubinage
  215.         set_character_flag = no_court_invites
  216.         father = {
  217.             narrative_event = { id = HF.201 days = 15 }
  218.         }
  219.         mother = {
  220.             narrative_event = { id = HF.201 days = 15 }
  221.         }
  222.         child_of_destiny_journey_start_effect = yes
  223.         health = 1
  224.        
  225.         change_variable = { which = global_children_of_destiny_on_birth value = 1 }
  226.         set_global_flag = child_of_destiny_@ROOT
  227.         if = {
  228.             limit = {
  229.                 OR = {
  230.                     father = { ai = no }
  231.                     mother = { ai = no }
  232.                 }
  233.             }
  234.             change_variable = { which = global_children_of_destiny_on_birth_player value = 1 }
  235.         }
  236.        
  237.         if = {
  238.             limit = {
  239.                 has_global_flag = cod_test_events
  240.             }
  241.             any_player = {
  242.                 character_event = { id = HF.307 }
  243.             }
  244.         }
  245.     }
  246.    
  247.     weight_multiplier = {
  248.         days = 1
  249.        
  250.         modifier = {
  251.             factor = 10
  252.             OR = {
  253.                 father = {
  254.                     ai = no
  255.                 }
  256.                 mother = {
  257.                     ai = no
  258.                 }
  259.             }
  260.         }
  261.         modifier = { # Having a super-parent boosts the chance
  262.             factor = 3
  263.             OR = {
  264.                 father_even_if_dead = {
  265.                     has_top_tier_education_trait_trigger = yes
  266.                     is_attractive_trigger = yes
  267.                     has_pleasant_personality_trigger = yes
  268.                 }
  269.                 mother_even_if_dead = {
  270.                     has_top_tier_education_trait_trigger = yes
  271.                     is_attractive_trigger = yes
  272.                     has_pleasant_personality_trigger = yes
  273.                 }
  274.             }
  275.         }
  276.         modifier = {
  277.             factor = 3
  278.             trait = strong
  279.         }
  280.         modifier = {
  281.             factor = 3
  282.             OR = {
  283.                 trait = genius
  284.                 trait = quick
  285.             }
  286.         }
  287.         modifier = {
  288.             factor = 3
  289.             trait = fair
  290.         }
  291.         modifier = {
  292.             factor = 5
  293.             total_years_played = 150
  294.             NOT = { check_variable = { which = global_children_of_destiny_bloodlines_founded value = 1 } }
  295.         }
  296.         modifier = {
  297.             factor = 2
  298.             total_years_played = 200
  299.             NOT = { check_variable = { which = global_children_of_destiny_bloodlines_founded value = 1 } }
  300.         }
  301.         modifier = {
  302.             factor = 2
  303.             total_years_played = 250
  304.             NOT = { check_variable = { which = global_children_of_destiny_bloodlines_founded value = 1 } }
  305.         }
  306.         modifier = {
  307.             factor = 5000
  308.             has_global_flag = cod_test_values_spawns
  309.         }
  310.     }
  311. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top