diff --git a/N3OW/common/coat_of_arms/coat_of_arms/alps.txt b/N3OW/common/coat_of_arms/coat_of_arms/alps.txt new file mode 100644 index 00000000..8619ac33 --- /dev/null +++ b/N3OW/common/coat_of_arms/coat_of_arms/alps.txt @@ -0,0 +1,1187 @@ +e_alps={ + pattern="pattern_horizontal_split_01.dds" + color1=red + color2=red + color3=black + colored_emblem={ + color1=black + texture="ce_ordinary_pile_02.dds" + instance={scale={1 0.17} depth=6 rotation=90} + instance={scale={1 0.17} depth=7 rotation=270} + instance={scale={1 0.83} depth=16 rotation=90} + instance={scale={1 0.83} depth=17 rotation=270} + } + colored_emblem={ + color1=red + texture="ce_ordinary_pile_02_inverted.dds" + instance={scale={0.48 1} depth=28} + instance={scale={0.48 -1} depth=29} + instance={scale={0.48 -1} depth=30} + instance={scale={0.48 1} depth=31} + } + colored_emblem={ + color1=yellow + color2=orange + texture="ce_crown.dds" + instance={position={0.5 0.24} scale={0.53 0.21}} + } + colored_emblem={ + color1=red + color2=red + texture="ce_per_saltire.dds" + instance={depth=39.010002} + } + colored_emblem={ + color1=black + texture="ce_ordinary_pile_02_inverted.dds" + instance={scale={0.1 1} depth=18} + instance={scale={0.13 -1} depth=19} + instance={scale={0.08 1} depth=20} + instance={scale={0.08 -1} depth=21} + instance={depth=35.010002} + instance={scale={1 -1} depth=36.010002} + instance={depth=37.010002} + instance={scale={1 -1} depth=38.010002} + } + colored_emblem={ + color1=blue + texture="ce_ordinary_pile_02.dds" + instance={scale={1 0.54} depth=12 rotation=90} + instance={scale={1 0.54} depth=13 rotation=270} + } + colored_emblem={ + color1=red + texture="ce_inescutcheon.dds" + instance={position={0.5 0.51} scale={0.88 0.88} depth=2} + } + colored_emblem={ + color1=white + texture="ce_cross_09.dds" + instance={scale={0.36 0.36} depth=1} + } + colored_emblem={ + color1=yellow + texture="ce_escutcheon.dds" + instance={position={0.5 0.51} scale={0.68 0.68} depth=3} + } + colored_emblem={ + color1=yellow_light + texture="ce_ordinary_pile_02.dds" + instance={scale={1 0.26} depth=8 rotation=90} + instance={scale={1 0.27} depth=9 rotation=270} + instance={scale={1 0.68} depth=14 rotation=90} + instance={scale={1 0.68} depth=15 rotation=270} + } + colored_emblem={ + color1=blue + texture="ce_ordinary_pile_02_inverted.dds" + instance={scale={0.21 1} depth=22} + instance={scale={0.21 -1} depth=23} + instance={scale={0.21 -1} depth=24} + instance={scale={0.69 1} depth=32.010002} + instance={position={0.5 -0.5} scale={0.69 1} depth=33.010002} + instance={scale={0.69 -1} depth=34.010002} + } + colored_emblem={ + color1=white + texture="ce_block_04.dds" + instance={scale={0.49 1} depth=4 rotation=90} + instance={scale={1 0.47} depth=5} + } + colored_emblem={ + color1=red + texture="ce_ordinary_pile_02.dds" + instance={scale={1 0.44} depth=10 rotation=90} + instance={scale={1 0.46} depth=11 rotation=270} + } + colored_emblem={ + color1=yellow_light + texture="ce_ordinary_pile_02_inverted.dds" + instance={scale={0.31 -1} depth=25} + instance={scale={0.31 1} depth=26} + instance={scale={0.31 -1} depth=27} + } +} +k_switzerland={ + pattern="pattern_solid.dds" + color1=red + color2=white + colored_emblem={ + texture="ce_cross_09.dds" + color1=white + color2=white + instance={position={0.5 0.45} scale={0.8 0.8}} + } +} +d_mittelland={ + pattern="pattern_tricolor_horizontal_01.dds" + color1=green + color2=red + color3=yellow +} +c_zurich={ + pattern="pattern_solid.dds" + color1=white + color2=blue_light + colored_emblem={ + texture="ce_per_bend.dds" + color1=white + color2=blue_light + instance={position={0.5 0.5} scale={1 1}} + } +} +c_basel={ + pattern="pattern_solid.dds" + color1=white + color2=black + colored_emblem={ + texture="ce_crozier.dds" + color1=black + color2=black + instance={position={0.5 0.5} scale={-0.9 0.9}} + } +} +c_aargau={ + pattern="pattern_vertical_split_01.dds" + color1=blue_light + color2=white + color3=black +} +c_bern={ + pattern="pattern_solid.dds" + color1=red + color2=yellow + colored_emblem={ + texture=ce_mena_bend.dds + color1=yellow + color2=yellow + instance={position={0.5 0.5} scale={1.25 1.25}} + } + colored_emblem={ + texture="ce_bear_passant.dds" + color1=black + color2=red + color3=white + instance={position={0.44 0.5} rotation=45 scale={0.8 0.8}} + } +} +c_geneva={ + pattern="pattern_vertical_split_01.dds" + color1=yellow + color2=red + colored_emblem={ + color1=red + color2=yellow + texture="NEOW_ce_crown_french_closed.dds" + instance={position={0.411 0.079} scale={0.15 0.15}} + } + colored_emblem={ + color1=black + color2=red + color3=yellow + texture="ce_eagle_double.dds" + mask={1} + } + colored_emblem={ + color1=yellow + texture="ce_key_st_peter.dds" + instance={position={0.7 0.45} scale={-0.75 0.75}} + } +} +c_valais={ + pattern="pattern_vertical_split_01.dds" + color1=white + color2=red + colored_emblem={ + color1=red + texture="ce_star_05.dds" + mask={1} + instance={position={0.5 0.1} scale={0.2 0.2}} + instance={position={0.5 0.3} scale={0.2 0.2}} + instance={position={0.5 0.5} scale={0.2 0.2}} + instance={position={0.5 0.7} scale={0.2 0.2}} + instance={position={0.5 0.9} scale={0.2 0.2}} + } + colored_emblem={ + color1=white + texture="ce_star_05.dds" + mask={2} + instance={position={0.5 0.1} scale={0.2 0.2}} + instance={position={0.5 0.3} scale={0.2 0.2}} + instance={position={0.5 0.5} scale={0.2 0.2}} + instance={position={0.5 0.7} scale={0.2 0.2}} + instance={position={0.5 0.9} scale={0.2 0.2}} + } + colored_emblem={ + color1=red + texture="ce_star_05.dds" + instance={position={0.3 0.2} scale={0.2 0.2}} + instance={position={0.3 0.4} scale={0.2 0.2}} + instance={position={0.3 0.6} scale={0.2 0.2}} + instance={position={0.3 0.8} scale={0.2 0.2}} + } + colored_emblem={ + color1=white + texture="ce_star_05.dds" + instance={position={0.7 0.2} scale={0.2 0.2}} + instance={position={0.7 0.4} scale={0.2 0.2}} + instance={position={0.7 0.6} scale={0.2 0.2}} + instance={position={0.7 0.8} scale={0.2 0.2}} + } +} +d_rhaetia={ + pattern="pattern_solid.dds" + color1=white + color2=black + colored_emblem={ + color1=black + color2=black + color3=white + texture="NEOW_ce_goat_rampant.dds" + } +} +c_grisons={ + pattern="pattern_solid.dds" + color1=white + sub={ + pattern="pattern_vertical_split_01.dds" + color1=black + color2=white + instance={offset={0 0} scale={0.5 0.5}} + } + sub={ + pattern="pattern_checkers_02.dds" + color1=yellow + color2=blue + colored_emblem={ + color1=yellow + mask={2} + texture="ce_cross_large.dds" + } + colored_emblem={ + color1=blue + mask={1} + texture="ce_cross_large.dds" + } + instance={offset={0.5 0} scale={0.5 0.5}} + } + sub={ + pattern="pattern_solid.dds" + color1=white + colored_emblem={ + color1=black + color2=black + color3=white + texture="NEOW_ce_goat_rampant.dds" + } + instance={offset={0 0.5} scale={1 0.5}} + } +} +c_ticino={ + pattern="pattern_vertical_split_01.dds" + color1=red + color2=blue +} +c_sankt_gallen={ + pattern="pattern_solid.dds" + color1=green + color2=white + colored_emblem={ + color1=white + color2=green + texture="NEOW_ce_fasces.dds" + instance={scale={-1 1}} + } +} +d_savoie={ + pattern="pattern_cross_01.dds" + color1=red + color2=white +} +c_savoy={ + pattern="pattern_shield_03_small.dds" + color1=white + color2=red + colored_emblem={ + color1=blue + texture="ce_pile_mask.dds" + mask={1} + instance={scale={2 -1}} + } + colored_emblem={ + color1=white + texture="ce_ordinary_cross_thin.dds" + mask={2} + instance={position={0.5 0.425} scale={0.4 0.4}} + } +} +c_upper_savoy={ + pattern="pattern_solid.dds" + color1=blue + color2=white + colored_emblem={ + color1=white + texture="ce_pile_mask.dds" + instance={scale={2 1}} + } + colored_emblem={ + color1=red + texture="ce_block_02.dds" + instance={position={0.5 0.7} scale={0.45 0.45}} + } + colored_emblem={ + color1=white + texture="ce_ordinary_cross_thin.dds" + instance={position={0.5 0.7} scale={0.4 0.4}} + } + colored_emblem={ + color1=white + texture="ce_border_shield.dds" + instance={position={0.5 0.7} scale={0.45 0.45}} + } +} +d_upper_burgundy={ + pattern="pattern_solid.dds" + color1=blue + color2=yellow + colored_emblem={ + color1=yellow + texture="ce_billet.dds" + instance={position={1 1} scale={0.12 0.12}} + instance={position={0.8 1} scale={0.12 0.12}} + instance={position={0.6 1} scale={0.12 0.12}} + instance={position={0.4 1} scale={0.24 0.24}} + instance={position={0.2 1} scale={0.12 0.12}} + instance={position={0 1} scale={0.12 0.12}} + instance={position={0.9 0.8} scale={0.12 0.12}} + instance={position={0.7 0.8} scale={0.12 0.12}} + instance={position={0.5 0.8} scale={0.12 0.12}} + instance={position={0.3 0.8} scale={0.12 0.12}} + instance={position={0.1 0.8} scale={0.12 0.12}} + instance={position={1 0.6} scale={0.12 0.12}} + instance={position={0.8 0.6} scale={0.12 0.12}} + instance={position={0.6 0.6} scale={0.12 0.12}} + instance={position={0.4 0.6} scale={0.12 0.12}} + instance={position={0.2 0.6} scale={0.12 0.12}} + instance={position={0 0.6} scale={0.12 0.12}} + instance={position={0.9 0.4} scale={0.12 0.12}} + instance={position={0.7 0.4} scale={0.12 0.12}} + instance={position={0.5 0.4} scale={0.12 0.12}} + instance={position={0.3 0.4} scale={0.12 0.12}} + instance={position={0.1 0.4} scale={0.12 0.12}} + instance={position={1 0.2} scale={0.12 0.12}} + instance={position={0.8 0.2} scale={0.12 0.12}} + instance={position={0.6 0.2} scale={0.12 0.12}} + instance={position={0.4 0.2} scale={0.12 0.12}} + instance={position={0.2 0.2} scale={0.12 0.12}} + instance={position={0 0.2} scale={0.12 0.12}} + instance={position={0.9 0} scale={0.12 0.12}} + instance={position={0.7 0} scale={0.12 0.12}} + instance={position={0.5 0} scale={0.12 0.12}} + instance={position={0.3 0} scale={0.12 0.12}} + instance={position={0.1 0} scale={0.12 0.12}} + } + colored_emblem={ + color1=yellow + color2=red + texture="ce_lion_rampant_crown.dds" + } + colored_emblem={ + color1=yellow + color2=red + texture="ce_crown_head.dds" + instance={position={0.53 0.09} scale={0.15 0.15} rotation=16} + } +} +c_vesoul={ + pattern="pattern_horizontal_split_01.dds" + color1=blue + color2=red + colored_emblem={ + color1=yellow + texture="ce_billet.dds" + mask={1} + instance={position={0.9 0.4} scale={0.12 0.12}} + instance={position={0.7 0.4} scale={0.12 0.12}} + instance={position={0.5 0.4} scale={0.12 0.12}} + instance={position={0.3 0.4} scale={0.12 0.12}} + instance={position={0.1 0.4} scale={0.12 0.12}} + instance={position={1 0.2} scale={0.12 0.12}} + instance={position={0.8 0.2} scale={0.12 0.12}} + instance={position={0.6 0.2} scale={0.12 0.12}} + instance={position={0.4 0.2} scale={0.12 0.12}} + instance={position={0.2 0.2} scale={0.12 0.12}} + instance={position={0 0.2} scale={0.12 0.12}} + instance={position={0.9 0} scale={0.12 0.12}} + instance={position={0.7 0} scale={0.12 0.12}} + instance={position={0.5 0} scale={0.12 0.12}} + instance={position={0.3 0} scale={0.12 0.12}} + instance={position={0.1 0} scale={0.12 0.12}} + } + colored_emblem={ + color1=yellow + color2=red + mask={1} + texture="ce_lion_rampant_crown.dds" + } + colored_emblem={ + color1=white + texture="ce_crescent.dds" + instance={position={0.5 0.75} scale={0.67 0.67}} + } +} +c_besancon={ + pattern="pattern_solid.dds" + color1=yellow + color2=black + colored_emblem={ + color1=black + color2=black + color3=white + texture="ce_eagle.dds" + } + colored_emblem={ + color1=red + texture="ce_column.dds" + instance={position={0.33 0.4} scale={0.59 0.59}} + instance={position={0.67 0.4} scale={0.59 0.59}} + } +} +c_dole={ + pattern="pattern_horizontal_split_01.dds" + color1=blue + color2=red + colored_emblem={ + color1=yellow + texture="ce_billet.dds" + mask={1} + instance={position={0.9 0.4} scale={0.12 0.12}} + instance={position={0.7 0.4} scale={0.12 0.12}} + instance={position={0.5 0.4} scale={0.12 0.12}} + instance={position={0.3 0.4} scale={0.12 0.12}} + instance={position={0.1 0.4} scale={0.12 0.12}} + instance={position={1 0.2} scale={0.12 0.12}} + instance={position={0.8 0.2} scale={0.12 0.12}} + instance={position={0.6 0.2} scale={0.12 0.12}} + instance={position={0.4 0.2} scale={0.12 0.12}} + instance={position={0.2 0.2} scale={0.12 0.12}} + instance={position={0 0.2} scale={0.12 0.12}} + instance={position={0.9 0} scale={0.12 0.12}} + instance={position={0.7 0} scale={0.12 0.12}} + instance={position={0.5 0} scale={0.12 0.12}} + instance={position={0.3 0} scale={0.12 0.12}} + instance={position={0.1 0} scale={0.12 0.12}} + } + colored_emblem={ + color1=yellow + color2=red + mask={1} + texture="ce_lion_rampant_crown.dds" + } + colored_emblem={ + color1=yellow + texture="ce_sun.dds" + instance={position={0.5 0.78} scale={0.49 0.49}} + } +} +k_tirol={ + pattern="pattern_horizontal_split_01.dds" + color1=white + color2=red + colored_emblem={ + color1=black + color2=black + texture="ce_shield_02.dds" + instance={scale={0.78 0.78}} + } + colored_emblem={ + color1=white + color2=white + texture="ce_shield_02.dds" + instance={scale={0.71 0.71}} + } + colored_emblem={ + color1=red + color2=yellow + color3=white + texture="ce_eagle_crown_boned.dds" + instance={position={0.5 0.53} scale={0.78 0.78} + } + } +} +d_tyrol = { + pattern="pattern_solid.dds" + color1=white + color2=red + colored_emblem={ + color1=green + texture="ce_laurels.dds" + instance={position={0.5 0.3} scale={0.43 0.43}} + } + colored_emblem={ + color1=red + color2=yellow + color3=white + texture="ce_eagle.dds" + instance={position={0.5 0.62} scale={1 0.88}} + } + colored_emblem={ + color1=yellow + color2=yellow + texture="ce_crescent_bone.dds" + instance={position={0.5 0.46} scale={0.45 0.44}} + } +} +c_innsbruck={ + pattern="pattern_solid.dds" + color1=red + color2=white + colored_emblem={ + color1=white + texture="ce_block_02.dds" + instance={position={0.5 0.474} scale={1 0.24}} + } + colored_emblem={ + color1=white + texture="NEOW_ce_bridge_innsbruck.dds" + instance={scale={0.85 0.85} position={0.5 0.45}} + } +} +c_kufstein={ + pattern="pattern_solid.dds" + color1=red + color2=green + colored_emblem={ + color1=green + texture="ce_mount.dds" + } + colored_emblem={ + color1=white + color2=brown + texture="NEOW_ce_barrel.dds" + instance={position={0.5 0.355} scale={0.666 0.666}} + } +} +c_reutte={ + pattern="pattern_solid.dds" + color1=red + color2=white + colored_emblem={ + color1=white + texture="ce_mena_fess.dds" + instance={position={0.5 0.4}} + } + colored_emblem={ + color1=green_light + color2=brown + texture="NEOW_ce_tree_fir.dds" + instance={position={0.3 0.435} scale={0.4 0.74}} + instance={position={0.7 0.435} scale={0.4 0.74}} + instance={position={0.5 0.435} scale={0.4 0.74}} + } + colored_emblem={ + color1=green_light + texture="ce_mount.dds" + instance={position={0.5 0.551}} + } +} +c_vorarlberg={ + pattern="pattern_horizontal_split_01.dds" + color1=red + color2=white + colored_emblem={ + color1=white + texture="ce_block_02.dds" + } + colored_emblem={ + color1=red + color2=black + texture="ce_gonfanon.dds" + } +} +d_south_tyrol={ + pattern="pattern_horizontal_split_01.dds" + color1=white + color2=blue + colored_emblem={ + color1=white + texture="ce_block_02.dds" + } + colored_emblem={ + color1=red + color2=yellow + color3=black + texture="ce_eagle_crown_boned.dds" + instance={position={0.29 0.27} scale={0.56 0.56}} + instance={position={0.71 0.27} scale={0.56 0.56}} + instance={position={0.29 0.75} scale={0.56 0.56}} + instance={position={0.71 0.75} scale={0.56 0.56}} + } + colored_emblem={ + color1=black + color2=yellow + color3=yellow + texture="ce_eagle_crown_boned.dds" + instance={position={0.29 0.27} scale={0.5 0.5}} + instance={position={0.71 0.75} scale={0.5 0.5}} + } + colored_emblem={ + color1=black + texture="ce_block_05.dds" + instance={scale={0.4 1} rotation=90} + instance={scale={1 0.35}} + } +} +c_lienz={ + pattern="pattern_diagonal_split_02.dds" + color1=blue + color2=white + colored_emblem={ + color1=white + color2=red + mask={2} + texture="ce_barry_06.dds" + } + colored_emblem={ + color1=red + color2=green + color3=yellow + texture="ce_flower.dds" + instance={position={0.4 0.75} scale={0.2 0.2}} + } + colored_emblem={ + color1=yellow + color2=red + color3=blue + texture="ce_lion_passant_small.dds" + instance={position={0.5 0.35} scale={0.85 0.85} rotation=45} + } +} +c_bozan={ + pattern="pattern_tricolor_horizontal_01.dds" + color1=white + color2=red + color3=white + colored_emblem={ + color1=yellow + texture="ce_star_06.dds" + instance={scale={0.4 0.4}} + } +} +d_lictenstein = { + custom=yes + pattern="pattern_horizontal_split_01.dds" + color1=yellow_light + color2=red + color3=red +} +k_rhodania={ + pattern="pattern_checkers_diagonal_01.dds" + color1=yellow + color2=yellow + colored_emblem={ + color1=white + texture="ce_pile_mask.dds" + instance={position={0.5 0.75} scale={2 0.5}} + } + colored_emblem={ + color1=red + color2=red + color3=white + texture="ce_eagle_crown.dds" + instance={position={0.5 0.8} scale={0.4 0.4}} + } + colored_emblem={ + color1=red + texture="ce_pile_mask.dds" + instance={position={0.75 0.5} scale={0.5 2} rotation=270} + } + colored_emblem={ + color1=white + color2=white + color3=red + texture="ce_lion_rampant_per_pale.dds" + instance={position={0.8 0.5} scale={0.45 0.45}} + } + colored_emblem={ + color1=blue + color2=red + color3=yellow + texture="ce_dolphin.dds" + instance={position={0.2 0.5} scale={-0.45 0.45}} + } + colored_emblem={ + color1=yellow + color2=red + texture="ce_vertical_stripes_01.dds" + mask={1} + instance={position={0.5 0.25} scale={0.75 0.5}} + } + colored_emblem={ + color1=red + texture="ce_inescutcheon.dds" + instance={scale={0.5 0.5}} + } + colored_emblem={ + color1=white + texture="ce_block_02.dds" + instance={scale={0.05 0.25}} + instance={scale={0.2 0.05} position={0.5 0.4775}} + } +} +d_lyonnais={ + pattern="pattern_horizontal_split_02.dds" + color1=red + color2=blue + colored_emblem={ + color1=white + color2=white + color3=red + texture="ce_lion_rampant.dds" + instance={position={0.5 0.65} scale={0.65 0.65}} + } + colored_emblem={ + color1=yellow + texture="ce_fleur.dds" + instance={position={0.25 0.175} scale={0.3 0.3}} + instance={position={0.5 0.175} scale={0.3 0.3}} + instance={position={0.75 0.175} scale={0.3 0.3}} + } +} +c_rhone={ + pattern="pattern_vertical_split_01.dds" + color1=red + color2=yellow + sub={ + parent=d_lyonnais + instance={offset={0 0} scale={0.5 1}} + } + sub={ + pattern="pattern__solid_designer.dds" + color1=yellow + colored_emblem={ + color1=black + color2=red + color3=yellow + texture="ce_lion_rampant.dds" + } + colored_emblem={ + color1=red + texture="ce_label_05.dds" + } + instance={offset={0.5 0} scale={0.5 1}} + } +} +c_ain={ + pattern="pattern_ermine.dds" + color1=white + color2=black + colored_emblem={ + color1=white + texture="ce_block_02.dds" + instance={position={0.75 0.25} scale={0.5 0.5}} + } + colored_emblem={ + color1=red + color2=red + color3=white + texture="ce_lion_rampant.dds" + instance={position={0.7 0.25} scale={0.5 0.5}} + } + colored_emblem={ + color1=blue + texture="ce_block_02.dds" + instance={position={0.25 0.5} scale={0.5 1}} + instance={position={0.75 0.35} scale={0.5 0.3}} + } + colored_emblem={ + color1=red + texture="ce_block_02.dds" + instance={position={0.75 0.75} scale={0.5 0.5}} + } + colored_emblem={ + color1=white + color2=white + color3=blue + mask={1} + texture="ce_lion_rampant.dds" + instance={position={0.3 0.25} scale={-0.5 0.5}} + instance={position={0.7 0.75} scale={0.5 0.5}} + } + colored_emblem={ + color1=black + color2=black + color3=blue + mask={2} + texture="ce_lion_rampant.dds" + instance={position={0.3 0.25} scale={-0.5 0.5}} + instance={position={0.7 0.75} scale={0.5 0.5}} + } + colored_emblem={ + color1=yellow + texture="ce_horsebrays.dds" + instance={position={0.7 0.275} scale={0.25 0.25}} + instance={position={0.7 0.35} scale={0.25 0.25}} + instance={position={0.7 0.425} scale={0.25 0.25}} + } + colored_emblem={ + color1=yellow + texture="ce_fleur.dds" + instance={position={0.2 0.6} scale={0.2 0.2}} + instance={position={0.4 0.6} scale={0.2 0.2}} + instance={position={0.3 0.75} scale={0.2 0.2}} + } + colored_emblem={ + color1=red + texture="ce_billet.dds" + instance={position={0.3 0.7} scale={0.25 0.25} rotation=315} + } + colored_emblem={ + color1=white + texture="ce_cross_bottony.dds" + } +} +c_loire={ + pattern="pattern_solid.dds" + color1=red + color2=yellow + colored_emblem={ + color1=yellow + color2=yellow + color3=red + texture="ce_dolphin.dds" + } +} +d_dauphine_fr={ + pattern="pattern_checkers_02.dds" + color1=white + color2=blue + sub={ + parent="d_ile_de_france" + instance={offset={0 0} scale={0.5 0.5}} + instance={offset={0.5 0.5} scale={0.5 0.5}} + } + sub={ + pattern="pattern_solid.dds" + color1=yellow + colored_emblem={ + color1=blue + color2=red + color3=yellow + texture="ce_dolphin.dds" + } + instance={offset={0.5 0} scale={0.5 0.5}} + instance={offset={0 0.5} scale={0.5 0.5}} + } +} +c_isere={ + pattern="pattern_solid.dds" + color1=yellow + color2=blue + colored_emblem={ + color1=white + color2=white + texture="NEOW_ce_waves_05.dds" + instance={position={0.5 0.375} scale={1 -1} depth=2} + } + colored_emblem={ + color1=blue + color2=blue + texture="NEOW_ce_waves_05.dds" + instance={position={0.5 0.5} scale={1 -1} depth=3} + instance={position={0.5 0.25} scale={1 -1}} + } + colored_emblem={ + color1=blue + color2=red + color3=yellow + texture="ce_dolphin.dds" + instance={position={0.5 0.75} scale={0.5 0.5}} + } +} +c_drome={ + pattern="pattern_solid.dds" + color1=yellow + color2=blue + colored_emblem={ + color1=white + color2=white + texture="NEOW_ce_waves_05.dds" + instance={position={0.5 0.625} scale={1 1} depth=2} + } + colored_emblem={ + color1=blue + color2=blue + texture="NEOW_ce_waves_05.dds" + instance={position={0.5 0.5} scale={1 1} depth=3} + instance={position={0.5 0.75} scale={1 1}} + } + colored_emblem={ + color1=blue + color2=red + color3=yellow + texture="ce_dolphin.dds" + instance={position={0.5 0.25} scale={0.5 0.5}} + } +} +c_upper_alps={ + pattern="pattern_horizontal_split_02.dds" + color1=red + color2=blue + colored_emblem={ + texture="ce_fleur.dds" + color1=yellow + mask={2} + instance={position={0.1 0} scale={0.23 0.26}} + instance={position={0.3 0} scale={0.23 0.26}} + instance={position={0.5 0} scale={0.23 0.26}} + instance={position={0.7 0} scale={0.23 0.26}} + instance={position={0.9 0} scale={0.23 0.26}} + instance={position={0 0.2} scale={0.23 0.26}} + instance={position={0.2 0.2} scale={0.23 0.26}} + instance={position={0.4 0.2} scale={0.23 0.26}} + instance={position={0.6 0.2} scale={0.23 0.26}} + instance={position={0.8 0.2} scale={0.23 0.26}} + instance={position={1 0.2} scale={0.23 0.26}} + instance={position={0.1 0.4} scale={0.23 0.26}} + instance={position={0.3 0.4} scale={0.23 0.26}} + instance={position={0.5 0.4} scale={0.23 0.26}} + instance={position={0.7 0.4} scale={0.23 0.26}} + instance={position={0.9 0.4} scale={0.23 0.26}} + } + colored_emblem={ + color1=yellow + texture="ce_block_02.dds" + mask={1} + instance={position={0.75 0.5} scale={0.5 1}} + } + colored_emblem={ + color1=yellow + texture="ce_cross_occitan.dds" + instance={position={0.3 0.6} scale={0.5 0.5}} + } + colored_emblem={ + color1=blue + color2=red + color3=yellow + texture="ce_dolphin.dds" + instance={position={0.7 0.6} scale={0.5 0.5}} + } +} +d_provence_fr={ + pattern="pattern_solid.dds" + color1=blue + color2=yellow + colored_emblem={ + color1=red + texture="ce_label_03.dds" + instance={position={0.5 0.3} scale={1 0.6}} + } + colored_emblem={ + color1=yellow + texture="ce_fleur.dds" + instance={position={0.5 0.6} scale={0.7 0.7}} + } +} +c_bouches_du_rhone={ + pattern="pattern_solid.dds" + color1=yellow + color2=blue + colored_emblem={ + color1=blue + texture="ce_pile_mask.dds" + instance={position={0.5 0.75} scale={2 0.5}} + } + colored_emblem={ + color1=blue + texture="ce_block_02.dds" + instance={position={0.5 0.5} scale={0.35 1}} + } + colored_emblem={ + color1=red + texture="ce_label_03.dds" + instance={position={0.5 0.3} scale={1 0.6}} + } + colored_emblem={ + color1=yellow + texture="ce_fleur.dds" + instance={position={0.5 0.5} scale={0.4 0.4}} + } +} +c_camargue={ + pattern="pattern_diagonal_split_01.dds" + color1=blue + color2=red + colored_emblem={ + color1=white + texture="ce_block_05.dds" + instance={rotation=135} + } + colored_emblem={ + color1=yellow + texture="ce_spearhead.dds" + instance={position={0.77 0.23} scale={0.71 0.71} rotation=45} + } + colored_emblem={ + color1=yellow + texture="ce_crescent.dds" + instance={position={0.75 0.24} scale={0.53 0.53} rotation=45} + } + colored_emblem={ + color1=black + color2=black + color3=white + texture="ce_bull_head.dds" + instance={position={0.34 0.31} scale={0.59 0.59}} + } + colored_emblem={ + color1=yellow + texture="NEOW_ce_cross_camargue.dds" + instance={position={0.64 0.69} scale={0.5 0.5}} + } +} +c_alpes_maritimes={ + pattern="pattern_solid.dds" + color1=white + colored_emblem={ + color1=red + color2=red + color3=white + texture="ce_eagle_crown.dds" + instance={position={0.5 0.45} scale={0.9 0.9}} + } + colored_emblem={ + color1=green + texture="ce_mount.dds" + instance={position={0.5 0.5}} + } + colored_emblem={ + color1=blue + color2=white + texture="NEOW_ce_waves_05.dds" + instance={position={0.5 0.75}} + } +} +c_lower_alps={ + pattern="pattern_solid.dds" + color1=blue + color2=yellow + colored_emblem={ + color1=red + texture="ce_label_03.dds" + instance={position={0.5 0.3} scale={1 0.6}} + } + colored_emblem={ + color1=yellow + texture="ce_fleur.dds" + instance={position={0.5 0.4} scale={0.4 0.4}} + } + colored_emblem={ + color1=white + texture="ce_pile_mask.dds" + instance={position={0.25 0.85} scale={1.55 0.5}} + instance={position={0.5 0.85} scale={1.5 0.5}} + instance={position={0.75 0.85} scale={1.5 0.5}} + } +} +c_var={ + pattern="pattern_solid.dds" + color1=yellow + color2=blue + colored_emblem={ + color1=blue + texture="ce_pile_mask.dds" + instance={position={0.5 0.5} scale={2 -1}} + } + colored_emblem={ + color1=red + texture="ce_label_03.dds" + instance={position={0.5 0.3} scale={1 0.6}} + } + colored_emblem={ + color1=yellow + texture="ce_fleur.dds" + instance={position={0.5 0.5} scale={0.5 0.5}} + } +} +c_vaucluse={ + sub={ + pattern="pattern_solid.dds" + color1=red + colored_emblem={ + color1=yellow + color2=white + texture="ce_keys_crossed.dds" + } + instance={offset={0 0} scale={0.5 0.5}} + } + sub={ + parent="d_provence_fr" + instance={offset={0.5 0} scale={0.5 0.5}} + } + sub={ + pattern="pattern_horizontal_split_02.dds" + color1=blue + color2=yellow + colored_emblem={ + color1=green_light + color2=yellow + texture="NEOW_ce_orange_branch.dds" + instance={position={0.5 0.7}} + } + colored_emblem={ + color1=blue + color2=red + texture="ce_horn.dds" + instance={position={0.5 0.175} scale={0.3 0.3}} + } + instance={offset={0 0.5} scale={0.5 0.5}} + } + sub={ + pattern="pattern_solid.dds" + color1=red + colored_emblem={ + color1=yellow + texture="ce_key_st_peter.dds" + instance={position={0.5 0.15} scale={0.7 0.7} rotation=270} + instance={position={0.5 0.4} scale={0.7 0.7} rotation=270} + instance={position={0.5 0.65} scale={0.7 0.7} rotation=270} + } + instance={offset={0.5 0.5} scale={0.5 0.5}} + } +} +d_monaco={ + pattern="pattern_horizontal_split_01.dds" + color1=red + color2=white + colored_emblem={ + color1=red + color2=white + texture="ce_lozengy.dds" + instance={position={0.92 0.38} scale={0.75 0.75}} + instance={position={0.08 0.38} scale={0.75 0.75}} + instance={position={0.92 0.93} scale={0.75 0.75}} + instance={position={0.08 0.94} scale={0.75 0.75}} + instance={position={0.5 0.92} scale={0.75 0.75}} + instance={position={0.5 0.38} scale={0.75 0.75}} + } + colored_emblem={ + color1=red + texture="ce_block_02.dds" + instance={position={0.5 0.73} scale={0.08 0.06}} + instance={position={0.22 0.72} scale={0.07 0.07}} + instance={position={0.36 0.73} scale={0.08 0.08}} + instance={position={0.64 0.73} scale={0.07 0.07}} + instance={position={0.78 0.71} scale={0.09 0.09}} + } + colored_emblem={ + color1=white + texture="ce_block_02.dds" + instance={position={0.5 0} scale={1 0.04}} + } +} +c_monaco={ + pattern="pattern_horizontal_split_01.dds" + color1=red + color2=white +} diff --git a/N3OW/common/culture/cultures/NEOW_rhaeto_helvetic.txt b/N3OW/common/culture/cultures/NEOW_rhaeto_helvetic.txt new file mode 100644 index 00000000..07149985 --- /dev/null +++ b/N3OW/common/culture/cultures/NEOW_rhaeto_helvetic.txt @@ -0,0 +1,195 @@ +aleman = { + color = { 153 45 117 } + + parents = { swabian romansch } + created = 2100.1.1 + + ethos = ethos_stoic + heritage = heritage_rhaeto_helvetic + language = language_rhaeto_helvetic + martial_custom = martial_custom_equal + traditions = { + tradition_parochialism + tradition_hard_working + tradition_castle_keepers + tradition_mountain_homes + tradition_faith_bound + } + + name_list = name_list_NEOW_swabian + + coa_gfx = { german_group_coa_gfx western_coa_gfx } + building_gfx = { western_building_gfx } + clothing_gfx = { dde_hre_clothing_gfx western_clothing_gfx } + unit_gfx = { western_unit_gfx } + + ethnicities = { + 25 = caucasian_blond + 15 = caucasian_ginger + 35 = caucasian_brown_hair + 25 = caucasian_dark_hair + } +} + +ladin = { + color = { 229 114 210 } + + ethos = ethos_stoic + heritage = heritage_rhaeto_helvetic + language = language_rhaeto_helvetic + martial_custom = martial_custom_equal + traditions = { + tradition_parochialism + tradition_hard_working + tradition_castle_keepers + tradition_mountain_homes + } + + name_list = name_list_swabian + + coa_gfx = { german_group_coa_gfx western_coa_gfx } + building_gfx = { western_building_gfx } + clothing_gfx = { dde_hre_clothing_gfx western_clothing_gfx } + unit_gfx = { western_unit_gfx } + + ethnicities = { + 25 = caucasian_blond + 15 = caucasian_ginger + 35 = caucasian_brown_hair + 25 = caucasian_dark_hair + } +} + +pelonais = { + color = { 229 68 149 } + + parents = { swiss patoues } + created = 2300.1.1 + + ethos = ethos_bureaucratic + heritage = heritage_rhaeto_helvetic + language = language_rhaeto_helvetic + martial_custom = martial_custom_equal + traditions = { + tradition_parochialism + tradition_hard_working + tradition_chivalry + tradition_culinary_art + tradition_faith_bound + } + + name_list = name_list_french + + coa_gfx = { french_coa_gfx frankish_group_coa_gfx western_coa_gfx } + building_gfx = { western_building_gfx } + clothing_gfx = { french_clothing_gfx western_clothing_gfx } + unit_gfx = { western_unit_gfx } + + ethnicities = { + 10 = caucasian_blond + 3 = caucasian_ginger + 31 = caucasian_brown_hair + 36 = caucasian_dark_hair + 1 = slavic_dark_hair + 11 = arab + 7 = mediterranean + 1 = asian + 1 = south_indian + } +} + +romansch = { + color = { 178 89 178 } + + ethos = ethos_stoic + heritage = heritage_rhaeto_helvetic + language = language_rhaeto_helvetic + martial_custom = martial_custom_equal + traditions = { + tradition_parochialism + tradition_hard_working + tradition_castle_keepers + tradition_mountain_homes + tradition_faith_bound + } + + name_list = name_list_swabian + + coa_gfx = { german_group_coa_gfx western_coa_gfx } + building_gfx = { western_building_gfx } + clothing_gfx = { dde_hre_clothing_gfx western_clothing_gfx } + unit_gfx = { western_unit_gfx } + + ethnicities = { + 25 = caucasian_blond + 15 = caucasian_ginger + 35 = caucasian_brown_hair + 25 = caucasian_dark_hair + } +} + +sassun = { + color = { 204 61 168 } + + parents = { saxon romansch } + created = 2150.1.1 + + ethos = ethos_stoic + heritage = heritage_rhaeto_helvetic + language = language_rhaeto_helvetic + martial_custom = martial_custom_equal + traditions = { + tradition_parochialism + tradition_hard_working + tradition_castle_keepers + tradition_mountain_homes + } + + name_list = name_list_swabian + + coa_gfx = { german_group_coa_gfx western_coa_gfx } + building_gfx = { western_building_gfx } + clothing_gfx = { dde_hre_clothing_gfx western_clothing_gfx } + unit_gfx = { western_unit_gfx } + + ethnicities = { + 25 = caucasian_blond + 15 = caucasian_ginger + 35 = caucasian_brown_hair + 25 = caucasian_dark_hair + } +} + +swiss = { #Svizzer + color = { 229 91 114 } + + parents = { romansch swabian } + created = 2100.1.1 + + ethos = ethos_stoic + heritage = heritage_rhaeto_helvetic + language = language_rhaeto_helvetic + martial_custom = martial_custom_equal + traditions = { + tradition_staunch_traditionalists + tradition_hard_working + tradition_religious_patronage + tradition_fervent_temple_builders + tradition_faith_bound + + } + + name_list = name_list_swabian + + coa_gfx = { german_group_coa_gfx western_coa_gfx } + building_gfx = { western_building_gfx } + clothing_gfx = { dde_hre_clothing_gfx western_clothing_gfx } + unit_gfx = { western_unit_gfx } + + ethnicities = { + 25 = caucasian_blond + 15 = caucasian_ginger + 35 = caucasian_brown_hair + 25 = caucasian_dark_hair + } +} \ No newline at end of file diff --git a/N3OW/common/landed_titles/alps.txt b/N3OW/common/landed_titles/alps.txt new file mode 100644 index 00000000..f17cc918 --- /dev/null +++ b/N3OW/common/landed_titles/alps.txt @@ -0,0 +1,1057 @@ +e_alps = { + color={ 255 80 80 } + + capital = c_bern + can_be_named_after_dynasty = no + + k_switzerland = { + color = { 255 80 80 } + + capital = c_bern + + d_mittelland = { + color = { 255 220 220 } + + capital = c_zurich #Zurich + + c_zurich = { + color = { 255 215 205 } + + b_zurich = { + province = 2051 + + color = { 255 215 205 } + } + b_schwyz = { + province = 2461 + + color = { 255 215 205 } + } + } + c_basel = { + color = { 255 215 205 } + b_basel = { + province = 2050 + + color = { 255 215 205 } + } + b_aargau = { + province = 9784 + + color = { 255 215 205 } + } + b_delemont = { + province = 9763 + + color = { 255 215 205 } + } + b_solothurn = { + province = 9783 + + color = { 255 215 205 } + } + } + c_aargau = { # Lucerne + color = { 150 70 15 } + + b_lucerne = { + province = 2048 + + color = { 150 70 15 } + } + b_engelberg = { + province = 3107 + + color = { 255 215 205 } + } + } + } + d_transjurania = { + color = { 159 40 10 } + capital = c_bern + + c_bern = { + color = { 139 30 10 } + + b_bern = { + province = 2046 + + color = { 139 30 10 } + } + b_biel = { + province = 2049 + + color = { 150 70 15 } + } + b_thun = { + province = 2047 + + color = { 139 30 10 } + } + b_neuchatel = { + province = 2460 + + color = { 135 55 45 } + } + b_fribourg = { + province = 9782 + + color = { 90 5 15 } + } + } + c_geneva = { + b_geneva = { + province = 2035 + + color = { 175 40 65 } + } + b_lausanne = { + province = 2037 + + color = { 139 30 10 } + } + b_martigny = { + province = 2038 + + color = { 90 5 15 } + } + } + c_valais = { + color = { 139 30 10 } + + b_thusis = { # Sion + province = 9700 + + color = { 139 30 10 } + } + b_aosta = { + province = 2039 + + color = { 90 5 15 } + } + } + } + d_rhaetia = { + color = { 215 190 220 } + + capital = c_grisons + + c_grisons = { + color = { 255 220 220 } + + b_chur = { + province = 2055 + + color = { 255 220 220 } + } + b_bludenz = { + province = 9704 + + color = { 170 150 190 } + } + b_illanz = { + province = 9786 + + color = { 170 150 190 } + } + } + c_ticino = { + color = { 139 30 10 } + + b_bellinzona = { + province = 2478 + + color = { 240 175 255 } + } + b_davos = { + province = 9701 + + color = { 139 30 10 } + } + } + c_sankt_gallen = { + color = { 230 205 205 } + + b_sankt_gallen = { + province = 2053 + + color = { 230 205 205 } + } + b_vares = { + province = 2789 + + color = { 255 220 220 } + } + b_werdenburg = { + province = 2788 + + color = { 255 220 220 } + } + b_konstanz = { + province = 2054 + + color = { 230 205 205 } + } + } + } + d_savoie = { + color = { 213 214 148 } + color2 = { 255 255 255 } + + capital = c_savoy + cultural_names = { + name_list_occitan=cn_sav_o_grv_ia + name_list_NEOW_provencal=cn_savoio + name_list_NEOW_french=cn_savoie + name_list_arpitan=cn_savou_e_grv_ + } + + c_savoy = { + color = { 225 233 154 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_sav_o_grv_ia + name_list_NEOW_provencal=cn_savoio + name_list_NEOW_french=cn_savoie + name_list_arpitan=cn_savou_e_grv_ + } + + b_chambery = { + province = 8721 + color = { 225 233 154 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_chamb_e_grv_ri + name_list_NEOW_provencal=cn_chamberi + name_list_occitan=cn_chamber_i_act_ + } + } + b_albertville = { + province = 9711 + color = { 225 133 154 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_arb_e_grv_rtvela + } + } + b_saint_jean_de_maurienne = { + province = 9712 + color = { 225 133 154 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_sent_jian_de_m_o_hat_ri_e_grv_na + } + } + b_bourg_saint_maurice = { + province = 9797 + color = { 225 133 154 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_le_b_o_hat_rg + } + } + } + c_upper_savoy = { + color = { 226 218 92 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_nauta_savoia + name_list_arpitan=cn_savou_e_grv__d_amont + name_list_NEOW_french=cn_haute_savoie + name_list_NEOW_provencal=cn_auto_savoio + } + + b_annecy = { + province = 13276 + color = { 226 118 92 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_aneci + name_list_NEOW_provencal=cn_aneci + name_list_arpitan=cn__e_grv_neci + } + } + b_thonon_les_bains = { + province = 13277 + color = { 226 118 92 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_tonon + } + } + b_bonneville = { + province = 13278 + color = { 226 118 92 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_b_o_hat_navela + } + } + } + } + d_upper_burgundy = { #Franche-Comté + color = { 159 20 58 } + + capital = c_besancon # Besancon + + c_vesoul = { + color = { 139 10 38 } + + b_vesoul = { + province = 2077 + + color = { 139 10 38 } + } + b_jussey = { + province = 2383 + + color = { 139 10 38 } + } + b_gy = { + province = 2076 + + color = { 139 10 38 } + } + b_lure = { + province = 2192 + + color = { 75 75 125 } + } + } + c_besancon = { + color = { 199 82 112 } + + b_besancon = { + province = 2459 + + color = { 139 10 38 } + } + b_pontarlier = { + province = 2075 + + color = { 135 55 45 } + } + b_montbelliard = { + province = 2057 + + color = { 215 200 215 } + } + b_belfort = { + province = 9768 + + color = { 139 10 38 } + } + b_morteau = { + province = 2074 + + color = { 139 10 38 } + } + } + c_dole = { + color = { 170 35 70 } + + b_dole = { + province = 2191 + + color = { 170 35 70 } + } + b_lons_le_saunier = { + province = 2073 + + color = { 170 35 70 } + } + b_salins = { + province = 2072 + + color = { 170 35 70 } + } + b_champagnole = { + province = 2457 + + color = { 199 82 112 } + } + } + } + } + + k_tirol = { + color = { 102 33 20 } + capital = c_innsbruck + + can_be_named_after_dynasty = no + + d_tyrol = { + color = { 75 65 75 } + capital = c_innsbruck #De-facto only, actually Tirol + + can_be_named_after_dynasty = no + + c_innsbruck = { + color = { 75 65 75 } + + b_innsbruck = { + province = 2950 + + color = { 75 65 75 } + } + b_imst = { + province = 9706 + + color = { 170 150 190 } + } + b_hall_in_tirol = { + province = 9774 + + color = { 45 40 45 } + } + + } + c_kufstein = { + color = { 55 55 70 } + b_kufstein = { + province = 2953 + + color = { 75 65 75 } + } + b_kitzbuhel = { + province = 2976 + + color = { 115 105 115 } + } + b_breitenbach = { + province = 2948 + + color = { 60 70 70 } + } + } + c_reutte = { + color = { 55 55 70 } + b_reutte = { + province = 2781 + + color = { 45 40 45 } + } + b_lechaschau = { + province = 2782 + + color = { 45 40 45 } + } + b_lech = { + province = 9705 + + color = { 170 150 190 } + } + } + c_vorarlberg = { + color = { 250 150 220 } + + b_bregenz = { + province = 2787 + + color = { 255 220 220 } + } + b_hohenschwangau = { + province = 2790 + + color = { 45 40 45 } + } + } + } + d_south_tyrol = { + color = { 195 5 5 } + + capital = c_bozan #De-facto only, actually Tirol + + c_lienz = { + color = { 55 55 70 } + + b_lienz = { + province = 3134 + + color = { 55 55 70 } + } + b_kartitsch = { + province = 9709 + + color = { 55 55 70 } + } + } + c_bozan= { + color = { 60 50 60 } + + b_bolzano = { + province = 2498 + + color = { 250 150 220 } + } + b_bozen = { #Meran + province = 2954 + + color = { 75 65 75 } + + cultural_names = { + name_list_italian = cn_merano + name_list_cisalpine = cn_merano + name_list_sicilian = cn_merano + name_list_sardinian = cn_merano + } + } + b_brixen = { + province = 2955 + + color = { 60 50 60 } + } + b_bruneck = { + province = 2952 + + color = { 60 50 60 } + } + } + } + d_lictenstein = { + color = { 3 55 245 } + + capital = c_vaduz + + c_vaduz = { + color = { 255 220 220 } + + b_vaduz = { + province = 2052 + color = { 255 220 220 } + } + } + } + } + k_rhodania = { + color = { 213 199 55 } + color2 = { 255 255 255 } + + capital = c_bouches_du_rhone + + d_lyonnais = { + color = { 204 208 50 } + color2 = { 255 255 255 } + + capital = c_rhone + cultural_names = { + name_list_occitan=cn_lion_e_act_s + name_list_NEOW_provencal=cn_lioun_e_act_s + name_list_arpitan=cn_liyon_e_hat_s + } + + c_rhone = { + color = { 191 220 43 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_r_o_hat_no + name_list_occitan=cn_r_o_grv_se + name_list_NEOW_provencal=cn_rose + } + + b_lyon = { + province = 2017 + color = { 191 120 43 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_liyon + name_list_NEOW_provencal=cn_lioun + name_list_occitan=cn_lion + } + } + b_villefranche_sur_saone = { + province = 2018 + color = { 191 120 43 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_vilo_franco + name_list_arpitan=cn_velafranche + } + } + } + c_ain = { + color = { 204 208 78 } + color2 = { 255 255 255 } + + cultural_names = { + name_list_arpitan=cn_en + } + + b_bourg_en_bresse = { + province = 2023 + color = { 204 138 78 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_borg + name_list_occitan=cn_borg_de_bressa + name_list_NEOW_provencal=cn_bourg_de_bresso + } + } + b_amberieu_en_bugey = { + province = 2024 + color = { 204 138 78 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_amb_e_grv_ri_o_hat_ + } + } + b_oyonnax = { + province = 2025 + color = { 204 138 78 } + color2 = { 255 255 255 } + } + b_belley = { + province = 2026 + color = { 204 138 78 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_b_e_grv_l_e_hat_ + } + } + } + c_loire = { + color = { 201 204 72 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_l_e_grv_ge + name_list_occitan=cn_l_e_act_ger + name_list_arpitan=cn_l_e_hat_re + } + + b_saint_etienne = { + province = 2019 + color = { 201 134 72 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_sant_est_e_grv_ve + name_list_arpitan=cn_sant_eti_e_grv_ve + } + } + b_roanne = { + province = 2020 + color = { 201 134 72 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_rouana + name_list_occitan=cn_roana + name_list_NEOW_provencal=cn_rouano + } + } + b_montbrison = { + province = 2021 + color = { 201 134 72 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_mount_brisoun + name_list_arpitan=cn_montbr_e_act_son + } + } + } + } + d_dauphine_fr = { + color = { 200 204 5 } + color2 = { 255 255 255 } + + capital = c_isere + cultural_names = { + name_list_occitan=cn_daufinat + name_list_NEOW_provencal=cn_d_o_act_ufinat + name_list_arpitan=cn_d_a_hat_rf_e_act_n_a_hat_t + } + + c_isere = { + color = { 212 191 11 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_is_e_grv_ra + name_list_arpitan=cn_isera + name_list_NEOW_provencal=cn_isero + } + + b_grenoble = { + province = 2027 + color = { 212 191 11 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_grenoblo + name_list_occitan=cn_gren_o_grv_ble + } + } + b_vienne = { + province = 2028 + color = { 212 191 11 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_vieno + name_list_occitan=cn_viana + name_list_arpitan=cn_vi_e_grv_na + } + } + b_bourgoin_jallieu = { + province = 2029 + color = { 212 191 11 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_br_e_act_gon + } + } + b_voiron = { + province = 2030 + color = { 212 191 11 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_vou_e_act_ron + name_list_NEOW_provencal=cn_voueroun + } + } + b_la_mure = { + province = 2031 + color = { 212 191 11 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_m_o_grv_ta_rocassosa + name_list_NEOW_provencal=cn_muro + name_list_arpitan=cn_la_mura + } + } + } + c_drome = { + color = { 186 182 45 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_droma + name_list_occitan=cn_droma + name_list_NEOW_provencal=cn_droumo + } + + b_valence = { + province = 2032 + color = { 186 182 45 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_valen_c_ced_a + name_list_NEOW_provencal=cn_val_e_grv_n_c_ced_o + } + } + b_montelimar = { + province = 2033 + color = { 186 182 45 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_mountelimar + name_list_occitan=cn_montelaimar + } + } + b_nyons = { + province = 2034 + color = { 186 182 45 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_niom + name_list_NEOW_provencal=cn_nioun + } + } + b_die = { + province = 2036 + color = { 186 182 45 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_dia + name_list_occitan=cn_di_a_act_ + name_list_NEOW_provencal=cn_d_i_grv_o + } + } + } + c_upper_alps = { + color = { 196 193 59 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_autis_aup + name_list_arpitan=cn_hi_o_hat_tes__a_hat_rpes + name_list_occitan=cn_auts_aups + name_list_NEOW_french=cn_hautes_alpes + } + + b_gap = { + province = 2059 + color = { 196 193 59 } + color2 = { 255 255 255 } + } + b_briancon = { + province = 2060 + color = { 196 193 59 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_brian_c_ced_oun + } + } + b_embrun = { + province = 2061 + color = { 196 193 59 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_ambrun + } + } + } + } + d_provence_fr = { + color = { 150 161 32 } + color2 = { 255 255 255 } + capital = c_bouches_du_rhone + + cultural_names = { + name_list_occitan=cn_proven_c_ced_a + name_list_NEOW_provencal=cn_prouv_e_grv_n_c_ced_o + } + + c_bouches_du_rhone = { + color = { 137 133 25 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_bouco_d_o_act_u_rose + name_list_occitan=cn_bocas_de_r_o_grv_se + name_list_arpitan=cn_goles_de_r_o_hat_no + } + + b_marseille = { + province = 2062 + color = { 137 73 25 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_marsiho + name_list_arpitan=cn_marselye + name_list_occitan=cn_marselha + } + } + b_aix_en_provence = { + province = 2064 + color = { 137 73 25 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn__e_grv_x_en_provence + name_list_occitan=cn_ais_de_proven_c_ced_a + name_list_NEOW_provencal=cn_ais_de_prouv_e_grv_n_c_ced_o + } + } + } + c_camargue = { + color = { 117 113 5 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_camargo + name_list_occitan=cn_camarga + } + + b_arles = { + province = 2066 + color = { 137 73 25 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_arle + name_list_NEOW_provencal=cn_arle + name_list_arpitan=cn__a_hat_rlo + } + } + b_saintes_maries_de_la_mer = { + province = 2065 + color = { 137 73 25 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_li_s_a_grv_nti_mar_i_grv_o_de_la_mar + name_list_occitan=cn_lei_santei_marias_de_la_mar + } + } + } + c_alpes_maritimes = { + color = { 175 174 37 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn__a_hat_rpes_de_mar + name_list_occitan=cn_aups_maritims + name_list_NEOW_provencal=cn_aup_maritime + } + + b_nice = { + province = 8717 + color = { 175 104 37 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_ni_c_ced_a + name_list_NEOW_provencal=cn_nissa + } + } + b_grasse = { + province = 8718 + color = { 175 104 37 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_grasso + } + } + b_tende = { + province = 8720 + color = { 175 104 37 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_tendo + name_list_occitan=cn_tenda + } + } + } + c_lower_alps = { + color = { 125 123 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_french=cn_basses_alpes + name_list_arpitan=cn_b_a_hat_ssas__a_hat_rpes + name_list_occitan=cn_bassas_aups + name_list_NEOW_provencal=cn_b_a_grv_ssis_aup + } + + b_forcalquier = { + province = 2070 + color = { 125 63 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_forcauquier + name_list_NEOW_provencal=cn_fourcauqui_e_act_ + } + } + b_digne_les_bains = { + province = 2071 + color = { 125 63 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_dinha + name_list_NEOW_provencal=cn_digno + } + } + b_castellane = { + province = 2297 + color = { 125 63 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_castelana + name_list_NEOW_provencal=cn_castelano + } + } + b_barcelonette = { + province = 2298 + color = { 125 63 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_barcilona_de_proven_c_ced_a + name_list_NEOW_provencal=cn_barcilouneto + } + } + } + c_var = { + color = { 127 125 23 } + color2 = { 255 255 255 } + + b_toulon = { + province = 2301 + color = { 127 65 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_tolon + name_list_NEOW_provencal=cn_touloun + } + } + b_frejus = { + province = 2305 + color = { 127 65 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_freju + name_list_occitan=cn_frej_u_act_s + } + } + b_draguignan = { + province = 2455 + color = { 127 65 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_draguinhan + } + } + b_brignoles = { + province = 3256 + color = { 127 65 23 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_brignolo + name_list_occitan=cn_brinh_o_grv_la + } + } + } + c_vaucluse = { + color = { 139 132 20 } + color2 = { 255 255 255 } + cultural_names = { + name_list_arpitan=cn_v_a_hat_lcllusa + name_list_occitan=cn_vauclusa + name_list_NEOW_provencal=cn_vau_cluso + } + + b_avignon = { + province = 2067 + color = { 139 72 20 } + color2 = { 255 255 255 } + cultural_names = { + name_list_NEOW_provencal=cn_avignoun + name_list_occitan=cn_avinhon + } + } + b_carpentras = { + province = 2068 + color = { 139 72 20 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_carpentr_a_grv_s + } + } + b_apt = { + province = 2069 + color = { 139 72 20 } + color2 = { 255 255 255 } + cultural_names = { + name_list_occitan=cn_at + name_list_NEOW_provencal=cn_ate + } + } + } + } + d_monaco= { + color = { 229 27 34 } + color2 = { 255 255 255 } + capital = c_monaco + + cultural_names = { + name_list_occitan=cn_m_o_act_negue + name_list_arpitan=cn_monac_o_hat_ + name_list_ligurian=cn_m_u_vrt_negu + name_list_NEOW_provencal=cn_m_o_act_nego + } + + c_monaco = { + color = { 229 27 34 } + color2 = { 255 255 255 } + + b_monaco = { + province = 8719 + color = { 229 27 34 } + color2 = { 255 255 255 } + + cultural_names = { + name_list_occitan=cn_m_o_act_negue + name_list_arpitan=cn_monac_o_hat_ + name_list_ligurian=cn_m_u_vrt_negu + name_list_NEOW_provencal=cn_m_o_act_nego + } + } + } + } + } +} \ No newline at end of file diff --git a/N3OW/common/scripted_effects/00_major_decisions_scripted_effects.txt b/N3OW/common/scripted_effects/00_major_decisions_scripted_effects.txt new file mode 100644 index 00000000..3a9c4171 --- /dev/null +++ b/N3OW/common/scripted_effects/00_major_decisions_scripted_effects.txt @@ -0,0 +1,3861 @@ +create_roman_empire_scripted_effect = { + primary_title = { save_scope_as = old_primary_title } + add_trait = augustus + if = { + limit = { has_dlc_feature = legends } + create_legend_seed = { + type = legitimizing + quality = illustrious + chronicle = new_title + properties = { + title = title:h_roman_empire + founder = root + } + } + } + #Create Roman Empire, shift dejure/history/laws, destroy e_byzantium. + + if = { + limit = { capital_county = { this = title:c_byzantion } } + title:h_roman_empire = { + set_capital_county = title:c_byzantion + } + } + + hidden_effect = { + every_held_title = { #Should shift all dejure of all Empires owned at the time. + title_tier = empire + + set_de_jure_liege_title = title:h_roman_empire + } + every_empire = { + limit = { + NOT = { exists = hegemony } + any_de_jure_county = { + percent >= 0.6 + holder = { + OR = { + this = root + any_liege_or_above = { this = root } + } + } + } + } + set_de_jure_liege_title = title:h_roman_empire + } + } + split_byzantine_empire_effect = yes + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:h_roman_empire = { + change_title_holder = { + holder = root + change = scope:change + } + copy_title_history = title:e_byzantium + } + resolve_title_and_vassal_change = scope:change + if = { # Move your Title MaAs to your new title if you have any + limit = { + government_allows = administrative + primary_title = { + any_title_maa_regiment = { } + } + } + hidden_effect = { + primary_title = { transfer_title_maa_ownership = title:h_roman_empire } + } + } + if = { # If you have founded the Varangian Guard, you get to keep the benefits + limit = { + scope:old_primary_title = { has_variable = founded_varangian_guard } + } + hidden_effect = { + title:h_roman_empire = { set_variable = founded_varangian_guard } + } + } + hidden_effect = { set_primary_title_to = title:h_roman_empire } + every_held_title = { #Should destroy all other Empires owned at the time. + title_tier = empire + + root = { destroy_title = prev } + } + + if = { #Automatically move capital to Constantinople, unless it's been set to Rome. + limit = { + NOT = { capital_county = { this = title:c_roma } } + NOT = { capital_county = { this = title:c_byzantion } } + culture = { has_cultural_pillar = heritage_byzantine } + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { this = title:c_byzantion.holder } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_byzantion = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + root = { set_realm_capital = title:c_byzantion } + } + else_if = { + limit = { + NOT = { capital_county = { this = title:c_roma } } + NOT = { capital_county = { this = title:c_byzantion } } + NOT = { culture = { has_cultural_pillar = heritage_byzantine } } + exists = title:h_roman_empire.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { this = title:c_roma.holder } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_roma = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + root = { set_realm_capital = title:c_roma } + } + hidden_effect = { + add_character_flag = flag_restorer_of_rome #used for Eulogy. + title:h_roman_empire = { + set_variable = rome_was_restored_by_byzantium + } + } +} + +create_roman_empire_holy_scripted_effect = { + add_trait = augustus + #Create Roman Empire, shift dejure/history/laws, destroy e_hre. + hidden_effect = { + every_held_title = { #Should shift all dejure of all Empires owned at the time. + title_tier = empire + + set_de_jure_liege_title = title:h_roman_empire + } + primary_title = { + if = { + limit = { + any_in_de_jure_hierarchy = { + tier = tier_kingdom + OR = { + title:k_france ?= this + title:k_aquitaine ?= this + title:k_brittany ?= this + } + } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + OR = { + title:k_france ?= this + title:k_aquitaine ?= this + title:k_brittany ?= this + } + } + set_de_jure_liege_title = title:e_france + title:e_france = { set_de_jure_liege_title = title:h_roman_empire } + } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_germany + title:e_germany = { set_de_jure_liege_title = title:h_roman_empire } + } + } + every_empire = { + limit = { + NOT = { exists = hegemony } + any_de_jure_county = { + percent >= 0.6 + holder = { + OR = { + this = root + any_liege_or_above = { this = root } + } + } + } + } + set_de_jure_liege_title = title:h_roman_empire + } + } + split_byzantine_empire_effect = yes + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:h_roman_empire = { + change_title_holder = { + holder = root + change = scope:change + } + set_variable = { + name = variable_restored_hre #Used for flavor later. + value = yes + } + copy_title_history = title:e_hre + } + resolve_title_and_vassal_change = scope:change + if = { # Move your Title MaAs to your new title if you have any + limit = { + government_allows = administrative + primary_title = { + any_title_maa_regiment = { } + } + } + hidden_effect = { + primary_title = { transfer_title_maa_ownership = title:h_roman_empire } + } + } + if = { # If you have founded the Varangian Guard, you get to keep the benefits (you are not likely to have done it here, but better safe than sorry) + limit = { + primary_title = { has_variable = founded_varangian_guard } + } + hidden_effect = { + title:h_roman_empire = { set_variable = founded_varangian_guard } + } + } + hidden_effect = { set_primary_title_to = title:h_roman_empire } + every_held_title = { #Should destroy all other Empires owned at the time. + title_tier = empire + + root = { destroy_title = prev } + } + hidden_effect = { + title:h_roman_empire = { + set_coa = e_hre_roman + set_title_color = { 255 255 255 } + } + } + + if = { #Automatically move capital to Rome. + limit = { + NOT = { capital_county = { this = title:c_roma } } + exists = title:h_roman_empire.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_roma.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_roma = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + title:h_roman_empire.holder = { set_realm_capital = title:c_roma } + } + hidden_effect = { + create_story = restoring_roman_provinces_story + add_character_flag = flag_restorer_of_rome #used for Eulogy. + } +} + +create_roman_empire_italy_scripted_effect = { + add_trait = augustus + #Create Roman Empire, shift dejure/history/laws, destroy e_italy. + hidden_effect = { + every_held_title = { #Should shift all dejure of all Empires owned at the time. + title_tier = empire + + set_de_jure_liege_title = title:h_roman_empire + } + every_empire = { + limit = { + NOT = { exists = hegemony } + any_de_jure_county = { + percent >= 0.6 + holder = { + OR = { + this = root + any_liege_or_above = { this = root } + } + } + } + } + set_de_jure_liege_title = title:h_roman_empire + } + } + split_byzantine_empire_effect = yes + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:h_roman_empire = { + change_title_holder = { + holder = root + change = scope:change + } + set_variable = { + name = variable_restored_italy #Used for flavor later. + value = yes + } + copy_title_history = title:e_italy + } + resolve_title_and_vassal_change = scope:change + if = { # Move your Title MaAs to your new title if you have any + limit = { + government_allows = administrative + primary_title = { + any_title_maa_regiment = { } + } + } + hidden_effect = { + primary_title = { transfer_title_maa_ownership = title:h_roman_empire } + } + } + if = { # If you have founded the Varangian Guard, you get to keep the benefits (you are not likely to have done it here, but better safe than sorry) + limit = { + primary_title = { has_variable = founded_varangian_guard } + } + hidden_effect = { + title:h_roman_empire = { set_variable = founded_varangian_guard } + } + } + hidden_effect = { set_primary_title_to = title:h_roman_empire } + every_held_title = { #Should destroy all other Empires owned at the time. + title_tier = empire + + root = { destroy_title = prev } + } + if = { #Automatically move capital to Rome. + limit = { + NOT = { capital_county = { this = title:c_roma } } + exists = title:h_roman_empire.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_roma.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_roma = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + title:h_roman_empire.holder = { set_realm_capital = title:c_roma } + } + hidden_effect = { + create_story = restoring_roman_provinces_story + add_character_flag = flag_restorer_of_rome #used for Eulogy. + } +} + +split_byzantine_empire_effect = { + hidden_effect = { + title:e_byzantium = { + if = { + limit = { + OR = { + NOT = { exists = holder } + holder ?= root + } + } + every_in_de_jure_hierarchy = { + limit = { + title:e_italy ?= { is_titular = no } + tier = tier_kingdom + OR = { + title:k_trinacria ?= this + title:k_sicily ?= this + title:k_naples ?= this + title:k_venice ?= this + } + } + set_de_jure_liege_title = title:e_italy + title:e_italy = { set_de_jure_liege_title = title:h_roman_empire } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + OR = { + title:k_trinacria ?= this + title:k_epirus ?= this + title:k_croatia ?= this + title:k_serbia ?= this + title:k_bosnia ?= this + title:k_sicily ?= this + title:k_venice ?= this + title:k_naples ?= this + } + } + set_de_jure_liege_title = title:e_illyria + title:e_illyria = { set_de_jure_liege_title = title:h_roman_empire } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + OR = { + title:k_thessalonika ?= this + title:k_hellas ?= this + title:k_krete ?= this + title:k_bulgaria ?= this + } + } + set_de_jure_liege_title = title:e_macedonia + title:e_macedonia = { set_de_jure_liege_title = title:h_roman_empire } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + OR = { + title:k_saruhan ?= this + title:k_tekke ?= this + title:k_trebizond ?= this + title:k_ottoman ?= this + title:k_rum ?= this + title:k_mentese ?= this + title:k_karaman ?= this + title:k_germiyan ?= this + title:k_cyprus ?= this + title:k_eretnid ?= this + title:k_candar ?= this + title:k_nikaea ?= this + title:k_pontus ?= this + title:k_armenia ?= this + title:k_georgia ?= this + title:k_armenian_principality ?= this + title:k_old_armenia ?= this + title:k_anatolia ?= this + title:k_aydin ?= this + } + } + set_de_jure_liege_title = title:e_anatolia + title:e_anatolia = { set_de_jure_liege_title = title:h_roman_empire } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + if = { + limit = { + any_title_to_title_neighboring_and_across_water_empire = { + count >= 1 + } + } + random_title_to_title_neighboring_and_across_water_empire = { + save_scope_as = new_empire_de_jure + } + set_de_jure_liege_title = scope:new_empire_de_jure + } + } + } + } + } +} + +create_eastern_roman_empire_scripted_effect = { + if = { # First we move the domicile of root, if necessary + limit = { + exists = domicile + domicile.domicile_location = { + geographical_region = custom_ep3_restore_rome_eastern_empire + } + } + domicile = { + move_domicile = root.capital_province + } + } + scope:new_holder = { # Secondly, we handle the new liege + add_trait = augustus + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + if = { # We ensure they get Byzantion + limit = { + scope:new_holder != title:c_byzantion.holder + } + title:c_byzantion = { + change_title_holder = { + holder = scope:new_holder + change = scope:change + } + } + } + # We move over the De Jure for all the basic titles + title:e_byzantium ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } + title:e_illyria ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } + title:e_macedonia ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } + title:e_anatolia ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } + title:h_eastern_roman_empire = { # They get the new Roman Empire title + change_title_holder = { + holder = scope:new_holder + change = scope:change + } + } + root = { # They get every held title from current root in the greater region + every_held_title = { + limit = { + tier = tier_county + is_landless_type_title = no + title_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } + } + change_title_holder = { + holder = scope:new_holder + change = scope:change + } + } + } + resolve_title_and_vassal_change = scope:change + set_primary_title_to = title:h_eastern_roman_empire + set_realm_capital = title:c_byzantion + } + + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + # Then all the direct vassals who should move over + every_vassal = { + limit = { + highest_held_title_tier >= tier_county + capital_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } + } + change_liege = { + liege = scope:new_holder + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + # Then vassals who are not directly in line + every_vassal_or_below = { + limit = { + highest_held_title_tier >= tier_county + capital_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } + } + change_liege = { + liege = scope:new_holder + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + + # Then change the de_jure for empires that are de jure part of the Roman Empire, but who has mostly broken free + every_empire = { + limit = { + hegemony ?= title:h_roman_empire + any_de_jure_county = { + percent >= 0.51 + title_province = { + geographical_region = custom_ep3_restore_rome_eastern_empire + } + } + } + set_de_jure_liege_title = title:h_eastern_roman_empire + } + + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + # Then every title that aren't county title held by root, but they have a majority of the titles under their rule + every_held_title = { + limit = { + NOR = { + tier = tier_county + tier = tier_hegemony + this = root.primary_title + } + is_landless_type_title = no + any_de_jure_county = { + percent >= 0.51 + title_province = { + geographical_region = custom_ep3_restore_rome_eastern_empire + } + } + } + change_title_holder = { + holder = scope:new_holder + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + + every_empire = { + limit = { + OR = { + any_de_jure_county = { + percent >= 0.75 + holder = { + OR = { + this = scope:new_holder + any_liege_or_above = { this = scope:new_holder } + } + } + } + AND = { + de_jure_liege = title:h_eastern_roman_empire + any_de_jure_county = { + percent >= 0.51 + holder = { + OR = { + this = scope:new_holder + any_liege_or_above = { this = scope:new_holder } + } + } + } + } + } + } + set_de_jure_liege_title = title:h_eastern_roman_empire + } +} + +mend_great_schism_scripted_effect = { + root.faith = { + if = { #If from obscure branch of Christianity, make it official. + limit = { + root.faith = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } } + } + add_doctrine = special_doctrine_ecumenical_christian + } + change_fervor = { + value = 25 + desc = fervor_gain_mended_schism + } + hidden_effect = { + religion = { + every_faith = { + limit = { + this != religious_head.faith + } + remove_religious_head_title = yes + } + } + } + } + every_player = { #Notify all players of the same Faith. + limit = { + this != root + faith = root.faith + } + trigger_event = roman_restoration.0103 + } + every_ruler = { #Notify rulers of other Christian branches that they are no longer valid and offer chance at conversion. + limit = { + faith.religion = root.faith.religion + faith != root.faith + NOT = { government_has_flag = government_is_theocracy } + this != this.faith.religious_head + faith = { + has_doctrine = special_doctrine_ecumenical_christian + } + } + trigger_event = roman_restoration.0101 + } + every_player = { #Then notify all infidel players that might be around. + limit = { + OR = { + AND = { #Either filthy heretics... + faith.religion = root.faith.religion + faith = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } } + } + faith.religion != root.faith.religion #...Or Heathens. + } + } + trigger_event = roman_restoration.0102 + } + religion:eastern_orthodox_religion = { + every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. + custom = every_ecumenical_christian_faith.tt + limit = { + this.religion = root.faith.religion + has_doctrine = special_doctrine_ecumenical_christian + this != root.faith + } + remove_doctrine = special_doctrine_ecumenical_christian + change_fervor = { + value = -25 + desc = fervor_loss_mended_schism + } + } + } + religion:catholic_religion = { + every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. + custom = every_ecumenical_christian_faith.tt + limit = { + this.religion = root.faith.religion + has_doctrine = special_doctrine_ecumenical_christian + this != root.faith + } + remove_doctrine = special_doctrine_ecumenical_christian + change_fervor = { + value = -25 + desc = fervor_loss_mended_schism + } + } + } + religion:protestant_religion = { + every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. + custom = every_ecumenical_christian_faith.tt + limit = { + this.religion = root.faith.religion + has_doctrine = special_doctrine_ecumenical_christian + this != root.faith + } + remove_doctrine = special_doctrine_ecumenical_christian + change_fervor = { + value = -25 + desc = fervor_loss_mended_schism + } + } + } + + set_nickname_effect = { NICKNAME = nick_the_ecumenist } +} + +restore_papacy_scripted_effect = { + save_scope_as = reformer + if = { #Pick your chaplain first. + limit = { + exists = cp:councillor_court_chaplain + cp:councillor_court_chaplain = { faith = faith:catholic } + } + cp:councillor_court_chaplain = { save_scope_as = new_pope } + } + else = { + hidden_effect = { + create_character = { + employer = root + template = religious_leader_character + random_traits = no + save_scope_as = new_pope + } + } + scope:new_pope = { + add_trait = education_learning_3 + add_trait = zealous + add_trait = intellect_good_1 + random_list = { + 1 = { add_trait = lustful } + 1 = { add_trait = chaste } + 1 = { add_trait = wrathful } + 1 = { add_trait = diligent } + 1 = { add_trait = impatient } + 1 = { add_trait = arrogant } + 1 = { add_trait = humble } + 1 = { add_trait = gregarious } + } + random_list = { + 1 = { add_trait = honest } + 1 = { add_trait = ambitious } + 1 = { add_trait = just } + 1 = { add_trait = cynical } + 1 = { add_trait = zealous } + 1 = { add_trait = compassionate } + 1 = { add_trait = stubborn } + } + } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:k_papal_state = { + change_title_holder = { + holder = scope:new_pope + change = scope:change + } + } + title:c_roma = { + change_title_holder = { + holder = scope:new_pope + change = scope:change + } + } + title:d_latium = { + change_title_holder = { + holder = scope:new_pope + change = scope:change + } + } + title:d_spoleto = { + change_title_holder = { + holder = scope:new_pope + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + faith:catholic = { + change_fervor = { + value = 15 + desc = fervor_gain_papacy_restored + } + if = { + limit = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } } + add_doctrine = special_doctrine_ecumenical_christian + } + if = { + limit = { has_doctrine = doctrine_no_head } + hidden_effect = { remove_doctrine = doctrine_no_head } + add_doctrine = doctrine_spiritual_head + } + set_religious_head_title = title:k_papal_state + } +} + +destroy_papacy_scripted_effect = { + save_scope_as = scoped_destroyer + if = { + limit = { exists = title:k_papal_state.holder } + title:k_papal_state.holder = { save_scope_as = scoped_pope } + } + add_piety = massive_piety_gain + root.faith = { + change_fervor = { + value = 50 + desc = fervor_gain_papacy_destroyed + } + } + + # Destroy the papacy title if it exists. + if = { + limit = { + exists = title:k_papal_state + } + destroy_title = title:k_papal_state + } + + # If the Pope exists, they will suffer some kind of humiliating or tragic fate. + if = { + limit = { + exists = scope:scoped_pope + } + if = { + limit = { + faith = { + has_doctrine_parameter = human_sacrifice_active + } + } + scope:scoped_pope = { + death = { + death_reason = death_sacrificed_to_gods + killer = root + } + } + } + else_if = { + limit = { + faith.religion = faith:hellenic_pagan.religion + } + scope:scoped_pope = { + death = { + death_reason = death_crucified + killer = root + } + } + } + else = { + scope:scoped_pope = { set_character_faith = root.faith } + } + + if = { + limit = { scope:scoped_pope.gold > 0 } + scope:scoped_pope = { + hidden_effect = { remove_short_term_gold = scope:scoped_pope.gold } + } + } + } + + # Catholicism is now sad. + faith:catholic = { + change_fervor = { + value = -100 + desc = fervor_loss_papacy_destroyed + } + if = { + limit = { has_doctrine = special_doctrine_ecumenical_christian } + remove_doctrine = special_doctrine_ecumenical_christian + } + if = { + limit = { has_doctrine = doctrine_spiritual_head } + remove_doctrine = doctrine_spiritual_head + hidden_effect = { add_doctrine = doctrine_no_head } + } + } +} + +form_switzerland_scripted_effect = { + save_scope_as = scoped_ruler + title:e_hre.holder = { save_scope_as = scoped_emperor } + title:d_savoie = { save_scope_as = savoy } + title:k_switzerland = { save_scope_as = switzerland } + #De jure shifts. + title:d_mittelland = { set_de_jure_liege_title = title:k_switzerland } + title:d_transjurania = { set_de_jure_liege_title = title:k_switzerland } + if = { + limit = { completely_controls = title:d_savoie } + title:d_savoie = { set_de_jure_liege_title = title:k_switzerland } + } + else = { custom_tooltip = form_switzerland_kingdom_decision_effect_tooltip } + title:k_switzerland = { set_de_jure_liege_title = root.top_liege.primary_title } + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_switzerland = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { set_primary_title_to = title:k_switzerland } + add_prestige = major_prestige_gain + if = { + limit = { + OR = { + has_realm_law = crown_authority_0 + has_realm_law = crown_authority_1 + has_realm_law = crown_authority_2 + } + } + add_realm_law_skip_effects = crown_authority_3 + } +} + +form_austria_scripted_effect = { + #Grab scopes for loc and such. + save_scope_as = scoped_ruler + title:e_hre.holder = { save_scope_as = scoped_emperor } + title:d_carinthia = { save_scope_as = carinthia } + title:d_krain = {save_scope_as = krain } + title:d_istria = { save_scope_as = istria } + title:k_austria = { save_scope_as = austria} + title:d_croatia.de_jure_liege = { save_scope_as = new_controller} + #Hand over k_austria. + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_austria = { + change_title_holder = { + holder = root + change = scope:change + } + copy_title_history = title:d_lower_austria + } + resolve_title_and_vassal_change = scope:change + #Try to make it the primary title, unless it's the Emperor doing this. + hidden_effect = { + if = { + limit = { primary_title.tier <= tier_kingdom } + set_primary_title_to = title:k_austria + } + } + #Save d_austria's current de jure liege for future reference. + title:d_lower_austria.de_jure_liege = { save_scope_as = previous_kingdom } + #Transfer custom_core_austria (d_austria & d_steyermark) to the new Archduchy. + hidden_effect = { + title:k_austria = { + set_de_jure_liege_title = scope:previous_kingdom.de_jure_liege + } + + every_county_in_region = { + region = custom_core_austria + duchy = { add_to_list = austrian_heartlands_list } + } + every_in_list = { + list = austrian_heartlands_list + limit = { + NOT = { de_jure_liege = title:k_austria } + } + set_de_jure_liege_title = title:k_austria + } + + } + #Sort Carinthia. + if = { + limit = { completely_controls = title:d_carinthia } + title:d_carinthia = { set_de_jure_liege_title = title:k_austria } + } + else = { custom_tooltip = form_austria_kingdom_decision_effect_stretch_goals_tt } + #Sort d_krain, giving it to k_austria, the de jure liege of d_croatia, or leaving it as-is, depending on if it borders any part of scope:previous_kingdom other than d_istria. + if = { + limit = { + completely_controls = title:d_krain + #d_krain must be part of d_lower_austria's former kingdom. + title:d_krain.de_jure_liege = scope:previous_kingdom + } + title:d_krain = { set_de_jure_liege_title = title:k_austria } + } + else_if = { + limit = { + #Krain must be part of d_lower_austria's former kingdom. + title:d_krain.de_jure_liege = scope:previous_kingdom + #Cannot border any other part of the former kingdom other than Istria. + NOR = { + title:d_slavonia.de_jure_liege = scope:previous_kingdom + title:d_croatia.de_jure_liege = scope:previous_kingdom + title:d_friuli.de_jure_liege = scope:previous_kingdom + } + #Check d_carinthia separately, since before the effect is run (i.e., in the decision tooltip) its liege will still be scope:previous_kingdom. + completely_controls = title:d_carinthia + } + hidden_effect = { + title:d_krain = { set_de_jure_liege_title = title:d_croatia.de_jure_liege } + save_scope_value_as = { + name = krain_isolated + value = yes + } + } + } + #Sort d_istria, giving it to k_austria, the de jure liege of d_croatia, or leaving it as-is, depending on if it borders any part of scope:previous_kingdom other than d_krain. + if = { + limit = { + completely_controls = title:d_istria + #d_istria must be part of d_lower_austria's former kingdom. + title:d_istria.de_jure_liege = scope:previous_kingdom + } + title:d_istria = { set_de_jure_liege_title = title:k_austria } + } + else_if = { + limit = { + #d_istria must be part of d_lower_austria's former kingdom. + title:d_istria.de_jure_liege = scope:previous_kingdom + #Cannot border any other part of the former kingdom. + NOR = { + title:d_croatia.de_jure_liege = scope:previous_kingdom + title:d_friuli.de_jure_liege = scope:previous_kingdom + } + #Check d_krain separately, since before the effect is run (i.e., in the decision tooltip) its liege will still be scope:previous_kingdom. + completely_controls = title:d_carinthia + } + hidden_effect = { + title:d_istria = { set_de_jure_liege_title = title:d_croatia.de_jure_liege } + save_scope_value_as = { + name = istria_isolated + value = yes + } + } + } + #Sort notice of what's happening to Istria/Krain. + if = { + limit = { + exists = scope:krain_isolated + exists = scope:istria_isolated + } + custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_both_tt + } + else_if = { + limit = { exists = scope:krain_isolated } + custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_krain_tt + } + else_if = { + limit = { exists = scope:istria_isolated} + custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_istria_tt + } + #Sundry other rewards. + add_prestige = major_prestige_gain + if = { + limit = { + NOT = { has_realm_law = single_heir_succession_law } + } + add_realm_law_skip_effects = single_heir_succession_law + } + #Check to see if we're using that strong hook! + if = { + limit = { + NOT = { dynasty = title:e_hre.holder.dynasty } + } + use_hook = title:e_hre.holder + } +} + +form_carolingian_empire_scripted_effect = { + save_scope_as = scoped_ruler + title:e_hre.holder ?= { save_scope_as = scoped_emperor } + #De jure shifts. + hidden_effect = { + title:k_france = { set_de_jure_liege_title = title:e_france } + title:k_burgundy = { set_de_jure_liege_title = title:e_france } + title:k_aquitaine = { set_de_jure_liege_title = title:e_france } + title:k_brittany = { set_de_jure_liege_title = title:e_france } + title:k_frisia = { set_de_jure_liege_title = title:e_france } + title:k_lotharingia = { set_de_jure_liege_title = title:e_france } + title:k_bavaria = { set_de_jure_liege_title = title:e_france } + title:k_east_francia = { set_de_jure_liege_title = title:e_france } + title:k_italy = { set_de_jure_liege_title = title:e_france } + title:k_navarra = { set_de_jure_liege_title = title:e_france } + title:k_aragon = { set_de_jure_liege_title = title:e_france } + if = { + limit = { + OR = { + #exists = title:k_austria.holder + title:k_austria = { is_titular = yes } + title:e_hre = { + any_in_de_jure_hierarchy = { + continue = { tier >= tier_kingdom } + this = title:k_austria + } + } + } + } + title:k_austria = { set_de_jure_liege_title = title:e_france } + } + if = { + limit = { + OR = { + #exists = title:k_switzerland.holder + title:k_switzerland = { is_titular = yes } + title:e_hre = { + any_in_de_jure_hierarchy = { + continue = { tier >= tier_kingdom } + this = title:k_switzerland + } + } + } + } + title:k_switzerland = { set_de_jure_liege_title = title:e_france } + } + } + # Prestige + add_prestige = major_prestige_gain + # Law + if = { + limit = { + NOT = { has_realm_law = single_heir_succession_law } + } + add_realm_law_skip_effects = single_heir_succession_law + } + # HRE goes bye-bye + if = { + limit = { exists = scope:scoped_emperor } + destroy_title = title:e_hre + scope:scoped_emperor ?= { + add_prestige = major_prestige_loss + add_opinion = { + target = scope:scoped_ruler + modifier = pretender_opinion + } + } + } + # Innovations + culture:french = { + if = { + limit = { + NOT = { has_innovation = innovation_knighthood } + } + add_innovation = innovation_knighthood + } + if = { + limit = { + NOT = { has_innovation = innovation_royal_prerogative } + } + add_innovation = innovation_royal_prerogative + } + if = { + limit = { + NOT = { has_innovation = innovation_heraldry } + } + add_innovation = innovation_heraldry + } + } +} + +unite_burgundies_scripted_effect = { + add_prestige = medium_prestige_gain + save_scope_as = scoped_ruler + liege = { save_scope_as = former_liege } + #De jure shifts. + hidden_effect = { + title:d_burgundy = { + set_de_jure_liege_title = title:k_burgundy + } + title:d_provence = { #Just in case they drifted in the meantime. + set_de_jure_liege_title = title:k_burgundy + } + title:d_savoie = { + set_de_jure_liege_title = title:k_burgundy + } + title:d_dauphine = { + set_de_jure_liege_title = title:k_burgundy + } + title:d_upper_burgundy = { + set_de_jure_liege_title = title:k_burgundy + } + } + if = { + limit = { + culture:occitan = { + NOT = { + has_innovation = innovation_guilds + } + } + } + culture:occitan = { + add_innovation = innovation_guilds + } + } + if = { + limit = { + culture:occitan = { + NOT = { + has_innovation = innovation_burhs + } + } + } + culture:occitan = { + add_innovation = innovation_burhs + } + } + if = { + limit = { + culture:occitan = { + NOT = { + has_innovation = innovation_baliffs + } + } + } + culture:occitan = { + add_innovation = innovation_baliffs + } + } + #Make ruler independent and give Burgundy to him. + create_title_and_vassal_change = { + type = independency + save_scope_as = change + add_claim_on_loss = no + } + change_liege_or_become_independent = { + CHANGE = scope:change + VASSAL = this + } + hidden_effect = { + add_truce_both_ways = { + character = scope:former_liege + days = 1825 + name = TRUCE_GRANT_INDEPENDENCE_ROOT + } + } + resolve_title_and_vassal_change = scope:change + create_title_and_vassal_change = { + type = created + save_scope_as = new_burgundy + add_claim_on_loss = no + } + title:k_burgundy = { + change_title_holder = { + holder = root + change = scope:new_burgundy + } + } + resolve_title_and_vassal_change = scope:new_burgundy + scope:former_liege = { + add_prestige = major_prestige_loss + add_unpressed_claim = title:k_burgundy #Give chance to retaliate + add_opinion = { + target = scope:scoped_ruler + modifier = pretender_opinion + } + } +} + +form_outremer_scripted_effect = { + add_prestige = medium_prestige_gain + add_piety = medium_piety_gain + + #Saving Scope to refer to it fervor localization + title:e_outremer = { + save_scope_as = outremer_title + } + faith = { + change_fervor = { + value = 15 + desc = fervor_gain_formed_outremer + } + } + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:e_outremer = { + change_title_holder = { + holder = root + change = scope:change + } + hidden_effect = { + copy_title_history = title:k_jerusalem + } + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { set_primary_title_to = title:e_outremer } + if = { #The Sunni Caliphate is dismantled + limit = { + faith:ashari = { exists = religious_head } + } + root = { destroy_title = title:d_sunni } + } + culture = { save_scope_as = former_culture } + capital_county.title_province.culture = { save_scope_as = capital_culture } + + # If the player's capital is Arabic and the player is not, hybridize with the capital culture + if = { + limit = { + scope:capital_culture != scope:former_culture + NOT = { scope:former_culture = { has_cultural_pillar = heritage_arabic } } + scope:capital_culture = { has_cultural_pillar = heritage_arabic } + culture = { + OR = { + is_hybrid_culture = no + AND = { + NOT = { has_cultural_pillar = heritage_arabic } + NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } + } + } + } + } + scope:capital_culture = { save_scope_as = hybrid_culture } + create_hybrid_culture = scope:capital_culture + } + + # If the player has not become Arabic, hybridize with Mashiriqi (Levantine) + else_if = { + limit = { + NOT = { scope:former_culture = { has_cultural_pillar = heritage_arabic } } + culture = { + OR = { + is_hybrid_culture = no + AND = { + NOT = { has_cultural_pillar = heritage_arabic } + NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } + } + } + } + } + culture:levantine = { save_scope_as = hybrid_culture } + create_hybrid_culture = culture:levantine + } + + # If the player has become Arabic, hybridize with Occitan + else_if = { + limit = { + culture = { + OR = { + is_hybrid_culture = no + AND = { + NOT = { has_cultural_pillar = heritage_arabic } + NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } + } + } + } + } + culture:occitan = { save_scope_as = hybrid_culture } + create_hybrid_culture = culture:occitan + } + #If the player is already a European-Arabic hybrid, just save the existing culture + else = { + scope:former_culture = { save_scope_as = new_culture } + } + + if = { + limit = { exists = scope:new_culture } + capital_county = { set_county_culture = scope:new_culture } + scope:new_culture = { + if = { + limit = { + OR = { + has_cultural_pillar = heritage_frankish + any_parent_culture = { has_cultural_pillar = heritage_frankish } + } + } + set_name_list = name_list_outremer + } + if = { + limit = { + NOT = { has_innovation = innovation_men_at_arms } + } + add_innovation = innovation_men_at_arms + } + if = { + limit = { + NOT = { has_innovation = innovation_desert_tactics } + } + add_innovation = innovation_desert_tactics + } + hidden_effect = { + if = { + limit = { + NOT = { has_same_culture_language = scope:former_culture } + } + set_language_from = scope:former_culture + } + if = { + limit = { + exists = scope:hybrid_culture + NOT = { has_same_culture_heritage = scope:hybrid_culture } + } + set_heritage_from = scope:hybrid_culture + } + } + } + } + else = { + show_as_tooltip = { + if = { + limit = { exists = scope:hybrid_culture } + custom_tooltip = outremer_decision_hybrid_tt + } + } + } +} + +restore_sunni_caliphate_scripted_effect = { + add_piety = major_piety_gain + save_scope_as = reformer + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:d_sunni = { + save_scope_as = sunni_caliphate + change_title_holder = { + holder = scope:reformer + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + faith:ashari = { + change_fervor = { + value = 15 + desc = fervor_gain_restored_sunni_caliphate + } + } +} +create_israel_scripted_effect = { + save_scope_as = scoped_ruler + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_israel = { + change_title_holder = { + holder = scope:scoped_ruler + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { + set_primary_title_to = title:k_israel + title:d_palestine = { + set_de_jure_liege_title = title:k_israel + } + title:d_urdunn = { + set_de_jure_liege_title = title:k_israel + } + title:d_oultrejourdain = { + set_de_jure_liege_title = title:k_israel + } + title:k_israel = { + set_de_jure_liege_title = title:k_jerusalem.de_jure_liege + } + } +} +create_rum_scripted_effect = { + add_prestige = medium_prestige_gain + #If under a liege, make independent. + if = { + limit = { + top_liege != this + } + if = { + limit = { + NOT = { + exists = scope:former_liege + } + } + liege = { + save_scope_as = former_liege + } + } + create_title_and_vassal_change = { + type = independency + save_scope_as = change + add_claim_on_loss = no + } + change_liege_or_become_independent = { + CHANGE = scope:change + VASSAL = this + } + hidden_effect = { + add_truce_both_ways = { + character = scope:former_liege + days = 1825 + name = TRUCE_GRANT_INDEPENDENCE_ROOT + } + } + resolve_title_and_vassal_change = scope:change + } + create_title_and_vassal_change = { + type = created + save_scope_as = new_rum + add_claim_on_loss = no + } + title:k_rum = { + change_title_holder = { + holder = root + change = scope:new_rum + } + set_can_be_named_after_dynasty = no + set_can_use_nomadic_naming = no + } + resolve_title_and_vassal_change = scope:new_rum + if = { + limit = { + exists = scope:former_liege + } + scope:former_liege = { + add_prestige = major_prestige_loss + add_unpressed_claim = title:k_rum #Give chance to retaliate + add_opinion = { + target = root + modifier = pretender_opinion + } + } + } + hidden_effect = { set_primary_title_to = title:k_rum } +} + +declare_bloodline_holy_decision_effect = { + save_scope_as = progenitor_holy_blood + if = { + limit = { + NOT = { + has_character_flag = con_blood_leg + } + } + add_character_flag = con_blood_leg + hidden_effect = { + legend_seed_great_deed_dynasty_effect = yes + } + } + + faith = { + set_variable = { + name = variable_savior_found + value = yes + } + change_fervor = { + value = 25 + desc = fervor_gain_holy_bloodline + } + } + if = { #Temporal. + limit = { + root.faith.religious_head = root + } + add_trait = savior + root.dynasty = { + add_dynasty_prestige = 1000 + add_dynasty_prestige_level = 1 + } + } + else = { #Spiritual. + add_trait = paragon + root.dynasty = { + add_dynasty_prestige = 500 + } + } + + every_child = { + even_if_dead = yes + trigger_event = major_decisions.0101 + + every_child = { + even_if_dead = yes + limit = { + OR = { + is_grandchild_of = scope:progenitor_holy_blood + is_great_grandchild_of = scope:progenitor_holy_blood + } + } + trigger_event = major_decisions.0101 + + every_child = { + even_if_dead = yes + limit = { + OR = { + is_grandchild_of = scope:progenitor_holy_blood + is_great_grandchild_of = scope:progenitor_holy_blood + } + } + trigger_event = major_decisions.0101 + } + } + } +} + +sicilian_parliament_building_scripted_effect = { + #this is the County title. + title_province = { + set_variable = { + name = variable_sicilian_parliament_county + value = yes + } + if = { + limit = { + has_special_building_slot = no + } + add_special_building_slot = special_sicilian_parliament_01 + } + add_special_building = special_sicilian_parliament_01 + } +} +sicilian_parliament_kingdom_split_scripted_effect = { #If the decision is taken when the ruler doesn't hold the entirety of k_sicily, it results in the Naples/Trinacria split. (this is the ruler) + root = { + destroy_title = title:k_sicily + } + title:d_sicily = { + set_de_jure_liege_title = title:k_trinacria + } + title:d_benevento = { + set_de_jure_liege_title = title:k_naples + } + title:d_capua = { + set_de_jure_liege_title = title:k_naples + } + title:d_apulia = { + set_de_jure_liege_title = title:k_naples + } + title:d_salerno = { + set_de_jure_liege_title = title:k_naples + } + title:d_calabria = { + set_de_jure_liege_title = title:k_naples + } +} + +empower_sicilian_parliament_decision_scripted_effect = { + root = { + if = { + limit = { + has_realm_law = crown_authority_0 + } + add_realm_law_skip_effects = crown_authority_1 + } + else_if = { + limit = { + has_realm_law = crown_authority_1 + } + add_realm_law_skip_effects = crown_authority_2 + } + else_if = { + limit = { + has_realm_law = crown_authority_2 + } + add_realm_law_skip_effects = crown_authority_3 + } + } + if = { + limit = { has_title = title:k_sicily } + title:k_sicily = { + every_in_de_jure_hierarchy = { + custom = empower_sicilian_parliament_decision_every_province_custom + limit = { + tier = tier_county + title_province = { geographical_region = custom_sicily } + holder = { + OR = { + this = root + target_is_liege_or_above = root + } + } + } + title_province = { + add_province_modifier = { + modifier = parliamentary_bureaucracy_modifier + years = 150 + } + } + } + } + } + else_if = { + limit = { has_title = title:k_naples } + title:k_naples = { + every_in_de_jure_hierarchy = { + custom = empower_sicilian_parliament_decision_every_province_custom + limit = { + tier = tier_county + title_province = { geographical_region = custom_sicily } + holder = { + OR = { + this = root + target_is_liege_or_above = root + } + } + } + title_province = { + add_province_modifier = { + modifier = parliamentary_bureaucracy_modifier + years = 150 + } + } + } + } + } + else_if = { + limit = { has_title = title:k_trinacria } + title:k_trinacria = { + every_in_de_jure_hierarchy = { + custom = empower_sicilian_parliament_decision_every_province_custom + limit = { + tier = tier_county + title_province = { geographical_region = custom_sicily } + holder = { + OR = { + this = root + target_is_liege_or_above = root + } + } + } + title_province = { + add_province_modifier = { + modifier = parliamentary_bureaucracy_modifier + years = 150 + } + } + } + } + } +} + +promote_gothic_innovations_decision_scripted_effect = { + if = { + limit = { + has_realm_law = crown_authority_0 + } + add_realm_law_skip_effects= crown_authority_1 + } + else_if = { + limit = { + has_realm_law = crown_authority_1 + } + add_realm_law_skip_effects = crown_authority_2 + } + else_if = { + limit = { + has_realm_law = crown_authority_2 + } + add_realm_law_skip_effects = crown_authority_3 + } + culture = { + if = { + limit = { + NOT = { has_innovation = innovation_french_peerage } + } + add_innovation = innovation_french_peerage + } + } + if = { + limit = { + this = { completely_controls = title:d_valois } + } + title:c_ile_de_france = { + title_province = { + add_province_modifier = { + modifier = flourishing_culture_modifier + years = 150 + } + } + } + } + if = { + limit = { + this = { completely_controls = title:d_orleanais } + } + title:c_orleans = { + title_province = { + add_province_modifier = { + modifier = flourishing_culture_modifier + years = 150 + } + } + } + } + if = { + limit = { + this = { completely_controls = title:d_provence } + } + title:c_nice = { + title_province = { + add_province_modifier = { + modifier = flourishing_culture_modifier + years = 150 + } + } + } + } + if = { + limit = { + this = { completely_controls = title:d_toulouse } + } + title:c_toulouse = { + title_province = { + add_province_modifier = { + modifier = flourishing_culture_modifier + years = 150 + } + } + } + } +} + +promote_hungarian_settlement_decision_scripted_effect = { + if = { + limit = { + culture = culture:mogyer + } + + # Convert my culture to Hungarian Culture + set_culture = culture:hungarian + culture:hungarian = { + reset_culture_creation_date = yes + get_all_innovations_from = culture:mogyer + } + + # Convert my courtiers to Hungarian + hidden_effect = { + every_courtier = { + limit = { + culture = culture:mogyer + } + set_culture = culture:hungarian + } + } + + # Convert my vassals to Hungarian + every_vassal_or_below = { + limit = { + culture = culture:mogyer + } + + custom = promote_hungarian_settlement_decision_every_vassal_custom + set_culture = culture:hungarian + + # Convert their courtiers as well + hidden_effect = { + every_courtier = { + limit = { + culture = culture:mogyer + } + set_culture = culture:hungarian + } + } + } + } + + title:k_hungary = { + every_in_de_jure_hierarchy = { + custom = promote_hungarian_settlement_decision_every_province_custom + limit = { + tier = tier_county + culture = culture:mogyer + title_province = { geographical_region = custom_hungary } + holder = { + OR = { + this = root + target_is_liege_or_above = root + } + } + } + set_county_culture = culture:hungarian + add_county_modifier = { + modifier = hungarian_resettlement_modifier + years = 100 + } + custom_tooltip = promote_hungarian_settlement_decision_increased_development + custom_tooltip = promote_hungarian_settlement_decision_convert_county + hidden_effect = { + if = { + limit = { + development_level < 5 + } + change_development_level = 1 + } + random_list = { + 30 = { + # Nothing happens + } + 30 = { + trigger = { + NOT = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + } + set_county_faith = root.faith + } + 30 = { + trigger = { + NOT = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + any_neighboring_county = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + } + random_neighboring_county = { + limit = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + save_scope_as = neighboring_county + } + set_county_faith = scope:neighboring_county.faith + } + } + } + } + } +} + +revive_magyar_paganism_decision_scripted_effect = { + #Change yourself, and any willing vassals/family, over to Magyar Paganism. + set_character_faith_with_conversion = faith:magyar_pagan + #Gain nickname for your troubles. + give_nickname = nick_the_apostate + #Magyar_group counties of your old religion may defect back to the old ways. + custom_tooltip = revive_magyar_paganism_decision_scripted_effect.county_conversions.tt + hidden_effect = { + primary_title = { + every_in_de_facto_hierarchy = { + limit = { + tier = tier_county + culture = { has_cultural_pillar = heritage_magyar } + exists = scope:old_faith + religion = scope:old_faith.religion + } + #Mogyers remember the old ways best, and have a high chance to flip. + if = { + limit = { culture = culture:mogyer } + random = { + chance = 70 + set_county_faith = faith:magyar_pagan + } + } + #Slightly up the chances for the apostate. + else_if = { + limit = { holder = root } + random = { + chance = 50 + set_county_faith = faith:magyar_pagan + } + } + #Other magyar_group cultures still have a moderate chance to flip. + else = { + random = { + chance = 30 + set_county_faith = faith:magyar_pagan + } + } + } + } + } + #Make flipping counties deliriously happy about the whole affair. + primary_title = { + every_in_de_facto_hierarchy = { + limit = { + tier = tier_county + faith = faith:magyar_pagan + } + custom = hungarian_resettlement.every_converted_province + add_county_modifier = { + modifier = magyar_appreciation_modifier + years = 25 + } + } + } + #Finally, give magyar_pagans a hefty fervour boost, just so that they don't immediately convert back. + hidden_effect = { + faith:magyar_pagan = { + save_temporary_scope_as = magyar_faith + change_fervor = { + value = 100 + desc = fervor_gain_magyar_revivalism + } + } + } +} + +restore_dumnonia_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_cornwall = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + hidden_effect = { + title:d_somerset = { save_scope_as = cornwall_somerset } + title:d_gloucester = { save_scope_as = cornwall_gloucester } + title:d_cornwall = { set_de_jure_liege_title = title:k_cornwall } + if = { #If owned, annex Somerset/Wessex. + limit = { + title:d_somerset = { holder = root } + } + title:d_somerset = { set_de_jure_liege_title = title:k_cornwall } + } + if = { #If owned, annex Gloucestershire/Hwicce. + limit = { + title:d_gloucester = { holder = root } + } + title:d_gloucester = { set_de_jure_liege_title = title:k_cornwall } + } + } + custom_tooltip = restore_dumnonia_decision_effects_de_jure_tt +} + +revive_armenian_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_armenia = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + hidden_effect = { + title:k_armenia = { save_scope_as = armenian_armenia } + title:k_georgia = { save_scope_as = armenian_georgia } + title:k_daylam = { save_scope_as = armenian_daylam } + title:k_jazira = { save_scope_as = armenian_jazira } + title:k_syria = { save_scope_as = armenian_syria } + title:k_jerusalem = { save_scope_as = armenian_jerusalem } + title:k_anatolia = { save_scope_as = armenian_anatolia } + title:k_pontus = { save_scope_as = armenian_pontus } + title:e_armenia = { save_scope_as = armenian_armenia_empire } + title:k_armenia = { set_de_jure_liege_title = title:e_armenia } + if = { + limit = { + title:k_armenia = { is_title_created = yes } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_armenia = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + else_if = { + limit = { + title:k_armenia = { is_title_created = no } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_armenia = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. + limit = { + title:d_greater_armenia = { + NOT = { target_is_de_jure_liege_or_above = title:k_armenia } + } + } + title:d_greater_armenia = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. + limit = { + title:d_vaspurakan = { + NOT = { target_is_de_jure_liege_or_above = title:k_armenia } + } + } + title:d_vaspurakan = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. + limit = { + title:d_mesopotamia = { + NOT = { target_is_de_jure_liege_or_above = title:k_armenia } + } + } + title:d_mesopotamia = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Daylam & exempt Azerbaijan from de jure flipping to Armenia. + limit = { + title:k_daylam = { holder = root } + title:d_azerbaijan = { target_is_de_jure_liege_or_above = title:k_daylam } + } + title:k_daylam = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Daylam & flip Azerbaijan to Armenia. + limit = { + title:k_daylam = { holder = root } + NOT = { + title:d_azerbaijan = { target_is_de_jure_liege_or_above = title:k_daylam } + } + } + title:k_daylam = { set_de_jure_liege_title = title:e_armenia } + title:d_azerbaijan = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_azerbaijan = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Daylam & exempt Shirvan from de jure flipping to Armenia. + limit = { + title:k_daylam = { holder = root } + title:d_shirvan = { target_is_de_jure_liege_or_above = title:k_daylam } + } + title:k_daylam = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Daylam & flip Shirvan to Armenia. + limit = { + title:k_daylam = { holder = root } + NOT = { + title:d_shirvan = { target_is_de_jure_liege_or_above = title:k_daylam } + } + } + title:k_daylam = { set_de_jure_liege_title = title:e_armenia } + title:d_shirvan = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_shirvan = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Georgia & exempt ducal Georgia from de jure flipping to Armenia. + limit = { + title:k_georgia = { holder = root } + title:d_georgia = { target_is_de_jure_liege_or_above = title:k_georgia } + } + title:k_georgia = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Georgia & flip ducal Georgia to Armenia. + limit = { + title:k_georgia = { holder = root } + NOT = { + title:d_georgia = { target_is_de_jure_liege_or_above = title:k_georgia } + } + } + title:k_georgia = { set_de_jure_liege_title = title:e_armenia } + title:d_georgia = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_georgia = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Anatolia & exempt Cilicia from de jure flipping to Armenia. + limit = { + title:k_anatolia = { holder = root } + title:d_cilicia = { target_is_de_jure_liege_or_above = title:k_anatolia } + } + title:k_anatolia = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Anatolia & flip Cilicia to Armenia. + limit = { + title:k_anatolia = { holder = root } + NOT = { + title:d_cilicia = { target_is_de_jure_liege_or_above = title:k_anatolia } + } + } + title:k_anatolia = { set_de_jure_liege_title = title:e_armenia } + title:d_cilicia = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_cilicia = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Jazira & exempt Diyarbakr from de jure flipping to Armenia. + limit = { + title:k_jazira = { holder = root } + title:d_diyarbakr = { target_is_de_jure_liege_or_above = title:k_jazira } + } + title:k_jazira = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Jazira & flip Diyarbakr to Armenia. + limit = { + title:k_jazira = { holder = root } + NOT = { + title:d_diyarbakr = { target_is_de_jure_liege_or_above = title:k_jazira } + } + } + title:k_jazira = { set_de_jure_liege_title = title:e_armenia } + title:d_diyarbakr = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_diyarbakr = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Syria & exempt Edessa from de jure flipping to Armenia. + limit = { + title:k_syria = { holder = root } + title:d_edessa = { target_is_de_jure_liege_or_above = title:k_syria } + } + title:k_syria = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Syria & flip Edessa to Armenia. + limit = { + title:k_syria = { holder = root } + NOT = { + title:d_edessa = { target_is_de_jure_liege_or_above = title:k_syria } + } + } + title:k_syria = { set_de_jure_liege_title = title:e_armenia } + title:d_edessa = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_edessa = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Syria & exempt Antioch from de jure flipping to Armenia. + limit = { + title:k_syria = { holder = root } + title:d_antioch = { target_is_de_jure_liege_or_above = title:k_syria } + } + title:k_syria = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Syria & flip Antioch to Armenia. + limit = { + title:k_syria = { holder = root } + NOT = { + title:d_antioch = { target_is_de_jure_liege_or_above = title:k_syria } + } + } + title:k_syria = { set_de_jure_liege_title = title:e_armenia } + title:d_antioch = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_antioch = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & Kurdistan is already part of Jazira, annex Jazira & exempt Kurdistan from de jure flipping to Armenia. + limit = { + title:k_jazira = { holder = root } + title:d_kurdistan = { target_is_de_jure_liege_or_above = title:k_jazira } + } + title:k_jazira = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & Kurdistan is not part of Jazira, but Jazira is owned entirely, annex Jazira & flip Kurdistan to Jazira, because bordergore. + limit = { + title:k_jazira = { holder = root } + NOT = { + title:d_kurdistan = { target_is_de_jure_liege_or_above = title:k_jazira } + } + } + title:k_jazira = { set_de_jure_liege_title = title:e_armenia } + title:d_kurdistan = { set_de_jure_liege_title = title:k_jazira } + } + else = { + title:d_kurdistan = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned, annex Pontus. + limit = { + title:k_pontus = { holder = root } + } + title:k_pontus = { set_de_jure_liege_title = title:e_armenia } + } + if = { #If owned, annex Jerusalem. + limit = { + title:k_jerusalem = { holder = root } + } + title:k_jerusalem = { set_de_jure_liege_title = title:e_armenia } + } + } + custom_tooltip = create_armenian_empire_decision_effects_de_jure_tt_a + custom_tooltip = create_armenian_empire_decision_effects_de_jure_tt_b +} + +form_dai_viet_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_viet = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + root.dynasty = { + add_dynasty_prestige = major_dynasty_prestige_gain + } + + if = { + limit = { + title:k_viet = { + is_title_created = yes + NOT = { + holder = ROOT + } + } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_viet = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + else_if = { + limit = { + title:k_viet = { is_title_created = no } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_viet = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + #Viet controls + if = { #If owned, annex Dai Viet. + limit = { + title:k_viet = { holder = root } + } + title:k_viet = { set_de_jure_liege_title = title:e_viet } + } + if = { #If owned, annex Champa. + limit = { + title:k_champa = { holder = root } + } + title:k_champa = { set_de_jure_liege_title = title:e_viet } + } + if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. + limit = { + title:d_hai_dong = { + NOT = { target_is_de_jure_liege_or_above = title:k_viet } + } + } + title:d_hai_dong = { set_de_jure_liege_title = title:k_viet } + } + if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. + limit = { + title:d_lam_tay = { + NOT = { target_is_de_jure_liege_or_above = title:k_viet } + } + } + title:d_lam_tay = { set_de_jure_liege_title = title:k_viet } + } + if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. + limit = { + title:d_nghe_an = { + NOT = { target_is_de_jure_liege_or_above = title:k_viet } + } + } + title:d_nghe_an = { set_de_jure_liege_title = title:k_viet } + } + if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. + limit = { + title:d_hai_dong = { + NOT = { target_is_de_jure_liege_or_above = title:k_viet } + } + } + title:d_thang_long = { set_de_jure_liege_title = title:k_viet } + } + #Champa controls + if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. + limit = { + title:d_indrapura = { + NOT = { target_is_de_jure_liege_or_above = title:k_champa } + } + } + title:d_indrapura = { set_de_jure_liege_title = title:k_champa } + } + if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. + limit = { + title:d_vijaya = { + NOT = { target_is_de_jure_liege_or_above = title:k_champa } + } + } + title:d_vijaya = { set_de_jure_liege_title = title:k_champa } + } + if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. + limit = { + title:d_baigaur = { + NOT = { target_is_de_jure_liege_or_above = title:k_champa } + } + } + title:d_baigaur = { set_de_jure_liege_title = title:k_champa } + } + + if = { + limit = { + government_has_flag = government_is_meritocratic + } + add_realm_law = single_heir_succession_law + } +} + +form_majapahit_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_majapahit = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + root.dynasty = { + add_dynasty_modifier = majapahit_empire_founding_modifier + } + + hidden_effect = { + title:k_yavakadvipa = { save_scope_as = javanese_yavakadvipa } + title:d_SUM_palembang = { save_scope_as = javanese_palembang } + title:d_JAV_taruma = { save_scope_as = javanese_taruma } + title:d_JAV_mataram = { save_scope_as = javanese_mataram } + title:c_JAV_madura = { save_scope_as = javanese_madura } + title:e_majapahit = { save_scope_as = javanese_majapahit_empire } + title:k_yavakadvipa = { set_de_jure_liege_title = title:e_majapahit } + if = { + limit = { + title:k_yavakadvipa = { + is_title_created = yes + NOT = { + holder = ROOT + } + } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_yavakadvipa = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + else_if = { + limit = { + title:k_yavakadvipa = { is_title_created = no } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_yavakadvipa = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + if = { + limit = { + title:d_SUM_palembang = { + NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } + } + } + title:d_SUM_palembang = { set_de_jure_liege_title = title:k_yavakadvipa } + } + if = { + limit = { + title:d_JAV_taruma = { + NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } + } + } + title:d_JAV_taruma = { set_de_jure_liege_title = title:k_yavakadvipa } + } + if = { + limit = { + title:d_JAV_mataram = { + NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } + } + } + title:d_JAV_mataram = { set_de_jure_liege_title = title:k_yavakadvipa } + } + if = { + limit = { + title:c_JAV_madura = { + NOT = { target_is_de_jure_liege_or_above = title:d_JAV_mataram } + } + } + title:c_JAV_madura = { set_de_jure_liege_title = title:d_JAV_mataram } + } + if = { #If owned, annex Champa. + limit = { + title:k_yavakadvipa = { holder = root } + } + title:k_yavakadvipa = { set_de_jure_liege_title = title:e_majapahit } + } + } + custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_a + custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_b + custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_c +} + +form_ryukyu_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_ruucuu = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + capital_county = { + every_county_province = { + add_province_modifier = ryukyu_empire_founding_province_modifier + } + } + + hidden_effect = { + title:k_ruucuu = { save_scope_as = ryukyuan_ruucuu_kingdom } + title:d_ruucuu = { save_scope_as = ryukyuan_ruucuu_duchy } + title:e_ruucuu = { save_scope_as = ryukyuan_ruucuu_empire } + title:k_ruucuu = { set_de_jure_liege_title = title:e_ruucuu } + if = { + limit = { + title:k_ruucuu = { + is_title_created = yes + NOT = { + holder = ROOT + } + } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_ruucuu = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + else_if = { + limit = { + title:k_ruucuu = { is_title_created = no } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_ruucuu = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + if = { + limit = { + title:d_ruucuu = { + NOT = { target_is_de_jure_liege_or_above = title:k_ruucuu } + } + } + custom_tooltip = form_ryukyu_empire_decision_effects_de_jure_tt_b + title:d_ruucuu = { set_de_jure_liege_title = title:k_ruucuu } + } + if = { + limit = { + title:c_ucinaa = { + NOT = { target_is_de_jure_liege_or_above = title:d_ruucuu } + } + } + title:c_ucinaa = { set_de_jure_liege_title = title:d_ruucuu } + } + if = { + limit = { + title:c_amami = { + NOT = { target_is_de_jure_liege_or_above = title:d_ruucuu } + } + } + title:c_amami = { set_de_jure_liege_title = title:d_ruucuu } + } + } + custom_tooltip = form_ryukyu_empire_decision_effects_de_jure_tt_a +} + +form_siam_kingdom_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_siam = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + add_prestige_experience = major_fame_gain + + hidden_effect = { + title:k_siam = { save_scope_as = siam_kingdom } + title:d_sukhothai = { save_scope_as = sukhotai_duchy } + title:d_muang_sua = { save_scope_as = muang_sua_duchy } + title:d_sukhothai = { set_de_jure_liege_title = title:k_siam } + title:d_muang_sua = { set_de_jure_liege_title = title:k_siam } + every_held_title = { # add other duchies if I hold any in the region + limit = { + tier = tier_duchy + any_de_jure_county = { + title_province = { + geographical_region = world_asia_thailand + } + } + NOT = { + this = title:d_sukhothai + this = title:d_muang_sua + } + } + set_de_jure_liege_title = title:k_siam + } + } + custom_tooltip = form_siam_kingdom_decision_effects_de_jure_tt_a +} + +restore_holy_roman_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_hre = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + set_primary_title_to = title:e_hre + + #Papal hook management. + if = { + limit = { + faith.religious_head = { + exists = this + opinion = { + target = root + value < high_positive_opinion + } + } + OR = { + has_weak_hook = faith.religious_head + has_strong_usable_hook = faith.religious_head + } + } + use_hook = faith.religious_head + } + + #Sort title laws. + if = { + limit = { + OR = { + has_title = title:k_east_francia + any_vassal = { + has_title = title:k_east_francia + } + } + } + destroy_title = title:k_east_francia #Make Germany inalienable. + } + title:e_hre = { + add_title_law = princely_elective_succession_law + if = { #Add Salic law. + limit = { + root = { + OR = { + has_realm_law = male_preference_law + has_realm_law = male_only_law + } + } + } + add_title_law = male_only_law + } + if = { #Ignore Salic law. + limit = { + root = { has_realm_law = equal_law } + } + add_title_law = equal_law + } + if = { #Invert Salic law. Take that, Clovis, y'big nerd. + limit = { + root = { + OR = { + has_realm_law = female_preference_law + has_realm_law = female_only_law + } + } + } + add_title_law = female_only_law + } + custom_tooltip = hre_elector_list_creation_tt + } + + #Add de jures. + hidden_effect = { + if = { #If Germania is nae a thing, merge it into the HRE. + limit = { + OR = { + has_title = title:k_east_francia + has_title = title:k_bavaria + has_title = title:k_lotharingia + has_title = title:k_frisia + any_vassal = { + OR = { + has_title = title:k_east_francia + has_title = title:k_bavaria + has_title = title:k_lotharingia + has_title = title:k_frisia + } + } + } + OR = { + NOT = { exists = title:e_germany.holder } + title:e_germany.holder ?= root + } + } + title:e_germany = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_kingdom } + set_de_jure_liege_title = title:e_hre + } + } + } + every_held_title = { + title_tier = kingdom + limit = { + NOT = { #The Pope retains vague dibs on Italy. + any_this_title_or_de_jure_above = { this = title:e_italy } + } + save_temporary_scope_as = this_title + #root = { completely_controls = scope:this_title } + } + set_de_jure_liege_title = title:e_hre + } + every_vassal = { + every_held_title = { + title_tier = kingdom + limit = { + NOT = { #The Pope retains vague dibs on Italy. + any_this_title_or_de_jure_above = { this = title:e_italy } + } + save_temporary_scope_as = this_title + #prev = { completely_controls = scope:this_title } + } + set_de_jure_liege_title = title:e_hre + } + } + if = { # Merge Francia into the HRE under certain conditions + limit = { + OR = { + NOT = { exists = title:e_france.holder } + title:e_france.holder ?= root + } + OR = { + title:k_france = { # If core West Francia is part of the HRE + target_is_de_jure_liege_or_above = title:e_hre + } + calc_true_if = { # Or 2+ of the other francian Kingdoms + amount >= 2 + title:k_burgundy = { + target_is_de_jure_liege_or_above = title:e_hre + } + title:k_aquitaine = { + target_is_de_jure_liege_or_above = title:e_hre + } + title:k_brittany = { + target_is_de_jure_liege_or_above = title:e_hre + } + } + } + } + title:e_france = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_kingdom } + set_de_jure_liege_title = title:e_hre + } + } + } + every_vassal = { + limit = { + is_ai = yes + } + every_held_title = { + title_tier = kingdom + root = { + destroy_title = prev + } + } + } + every_held_title = { + title_tier >= kingdom + limit = { + NOT = { + this = title:e_hre + } + save_temporary_scope_as = this_title + } + root = { + destroy_title = prev + } + } + } + custom_tooltip = restore_holy_roman_empire_decision_effects_de_jure.tt + + #And add a bit of prestige for the trouble. + add_prestige = massive_prestige_value +} + +found_kingdom_of_bosnia_decision_scripted_effect = { + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_bosnia = { + change_title_holder = { + holder = scope:founder + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + title:d_bosna = { set_de_jure_liege_title = title:k_bosnia } + title:d_lower_bosna = { set_de_jure_liege_title = title:k_bosnia } + title:d_usora = { set_de_jure_liege_title = title:k_bosnia } +} + +found_kingdom_of_livonia_decision_scripted_effect = { + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_livonia = { + change_title_holder = { + holder = scope:founder + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + title:d_latgalians = { set_de_jure_liege_title = title:k_livonia } + title:d_courland = { set_de_jure_liege_title = title:k_livonia } + title:d_livonia = { set_de_jure_liege_title = title:k_livonia } + if = { + limit = { + title:d_esthonia = { holder = root } + } + title:d_esthonia = { set_de_jure_liege_title = title:k_livonia } + } + if = { + limit = { + has_faith = faith:baltic_pagan + root.culture = { NOT = { has_innovation = innovation_longboats } } + } + root.culture = { add_innovation = innovation_longboats } + } +} + +unite_bene_israel_effect = { + add_prestige = major_prestige_gain + add_piety = major_piety_gain + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_bene_israel = { + change_title_holder = { + holder = scope:founder + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + title:d_chera_nadu = { set_de_jure_liege_title = title:k_bene_israel } + title:d_konkana = { set_de_jure_liege_title = title:k_bene_israel } + if = { + limit = { + title:d_lata = { holder = root } + } + title:d_lata = { set_de_jure_liege_title = title:k_bene_israel } + } + if = { + limit = { + title:d_nasikya = { holder = root } + } + title:d_nasikya = { set_de_jure_liege_title = title:k_bene_israel } + } + random_held_title = { + title_tier = barony + limit = { + is_holy_site_of = faith:malabarism + } + county = { set_county_culture = culture:kochinim } + county = { set_county_faith = faith:malabarism } + } +} + +hre_elector_list_save_effect = { + ordered_in_global_list = { + variable = hre_elector_list + max = 7 + check_range_bounds = no + order_by = tier + save_temporary_scope_as = hre_elector_title + title:e_hre = { + if = { + limit = { NOT = { has_variable = hre_elector_1 } } + set_variable = { name = hre_elector_1 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_2 } } + set_variable = { name = hre_elector_2 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_3 } } + set_variable = { name = hre_elector_3 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_4 } } + set_variable = { name = hre_elector_4 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_5 } } + set_variable = { name = hre_elector_5 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_6 } } + set_variable = { name = hre_elector_6 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_7 } } + set_variable = { name = hre_elector_7 value = scope:hre_elector_title } + } + } + } +} + +favour_the_countryside_basques_decision_generic_effects_scripted_effect = { + scope:religious_leader = { + # If you weren't Basque, become so. + if = { + limit = { favour_the_countryside_basques_counts_as_basque_trigger = no } + # Now, we need to work out which Basque culture you should be. + ## First, we gather our candidates. + ### Going through counties. + every_sub_realm_county = { + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + ### Plus vassals. + every_vassal_or_below = { + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + ### And those close to you. + every_close_or_extended_family_member = { + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + every_consort = { + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + every_relation = { + type = friend + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + every_relation = { + type = lover + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + ## Next, we process the list. + if = { + limit = { + any_in_list = { + list = realm_basque_cultures_list + exists = this + } + } + ordered_in_list = { + list = realm_basque_cultures_list + order_by = { + value = 0 + save_temporary_scope_as = culture_temp + # Culture counties are added differently depending on whether they're inside or outside the realm + every_culture_county = { + # Every culture county in your realm adds 10. + if = { + limit = { + holder = { + OR = { + this = scope:religious_leader + any_liege_or_above = { this = scope:religious_leader } + } + } + } + add = 10 + } + # Every culture county outside your realm adds 5. + else = { add = 5 } + } + scope:religious_leader = { + # Vassals add weight depending on their rank. + every_vassal = { + if = { + limit = { culture = scope:culture_temp } + # Every king-tier vassal adds 50. + if = { + limit = { highest_held_title_tier = tier_kingdom } + add = 50 + } + # Every duke-tier vassal adds 25. + else_if = { + limit = { highest_held_title_tier = tier_duchy } + add = 25 + } + # Every count-tier vassal adds 10. + else_if = { + limit = { highest_held_title_tier = tier_county } + add = 10 + } + # Barons are unimportant. + } + } + # Every close family member adds 15. + every_close_family_member = { + limit = { culture = scope:culture_temp } + add = 15 + } + # Every extended family members adds 5. + every_extended_family_member = { + limit = { culture = scope:culture_temp } + add = 5 + } + # Every soulmate adds 50. + every_relation = { + type = soulmate + limit = { culture = scope:culture_temp } + add = 50 + } + # Every best friend adds 50. + every_relation = { + type = best_friend + limit = { culture = scope:culture_temp } + add = 50 + } + # Every lover adds 15. + every_relation = { + type = lover + limit = { + culture = scope:culture_temp + NOT = { has_relation_soulmate = scope:religious_leader } + } + add = 15 + } + # Every friend adds 15. + every_relation = { + type = friend + limit = { + culture = scope:culture_temp + NOT = { has_relation_best_friend = scope:religious_leader } + } + add = 15 + } + } + } + save_scope_as = chosen_basque_culture + } + } + ## Finally, we try to convert. + if = { + limit = { exists = scope:chosen_basque_culture } + convert_family_culture_and_notify_vassals_effect = { + CONVERTER = scope:religious_leader + OLD_CULTURE = scope:religious_leader.culture + NEW_CULTURE = scope:chosen_basque_culture + } + } + # If this hasn't worked at all, and they've got _any_ counties left, we just switch you to the regular Basque. + else_if = { + limit = { + culture:basque = { + any_culture_county = { exists = this } + } + } + convert_family_culture_and_notify_vassals_effect = { + CONVERTER = scope:religious_leader + OLD_CULTURE = scope:religious_leader.culture + NEW_CULTURE = culture:basque + } + } + # Otherwise, we presume that the Basque presence in the region is extinct or negligible (at least on the macro level), so we leave your culture alone. + } + # Assign a new nickname, if appropriate. + if = { + limit = { + OR = { + has_any_nickname = no + has_bad_nickname = yes + } + } + # If you're not already a pagan, guess what folks call you? + if = { + limit = { + NOT = { + faith = { has_doctrine = pagan_hostility_doctrine } + } + } + give_nickname = nick_the_pagan + } + # Otherwise, you're probably an invading Viking and you deserve to get memed. + else = { give_nickname = nick_the_mountain_king } + } + # Switch to the new faith. + add_character_flag = { + flag = delay_player_faith_conversion_notification_event + days = 1 + } + # Configure Basque paganism's variable set-up. + faith:basque_pagan = { + # Remove the restrictions on converting to Basque paganism. + remove_variable = block_conversion_till_decision_taken + # And, since you're inherently creating a new priestly structure + ## This is mostly done here for immersive reasons; we don't want to imply that Basque paganism already had a distinct organised religious hierarchy in 867 by just applying this on game start, even though you'll always have to have it to access the faith. + set_variable = { name = has_been_reformed } + remove_doctrine = unreformed_faith_doctrine + } + # Finally, convert. + ## We do this here so that it's reformed by the time you switch (giving you a better chance with vassal conversion rates). + set_character_faith_with_conversion = faith:basque_pagan + } +} + +favour_the_countryside_basques_decision_fundamentalist_path_scripted_effect = { + faith:basque_pagan = { + # First, we remove Christian Syncretism & replace it with Warmonger. + remove_doctrine = tenet_christian_syncretism + add_doctrine = tenet_warmonger + # Then, we switch on over from Pluralist to Fundamentalist. + ## We disguise some of these changes for neatness, as there's a lot to process. + hidden_effect = { remove_doctrine = doctrine_pluralism_pluralistic } + add_doctrine = doctrine_pluralism_fundamentalist + # No HoF becomes a spiritual HoF, so that you can make use of your Warmonger GHWs. + hidden_effect = { remove_doctrine = doctrine_no_head } + add_doctrine = doctrine_spiritual_head + # Plus, set the faith's fervour to a middling/low level, since you've messed with it. + change_fervor = { + value = -50 + desc = fervour_loss_temporal_meddling + } + } + # Create the new HoF. + hidden_effect = { + scope:religious_leader = { + set_up_dynamic_spiritual_hof_title_effect = { CREATOR = scope:religious_leader } + } + } + custom_tooltip = favour_the_countryside_basques_decision.tt.spiritual_hof_acquired + # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. + add_character_modifier = fp2_friend_of_the_old_ways_modifier +} + +favour_the_countryside_basques_decision_righteous_path_scripted_effect = { + faith:basque_pagan = { + # First, we remove Christian Syncretism & replace it with Sanctity of Nature. + remove_doctrine = tenet_christian_syncretism + add_doctrine = tenet_sanctity_of_nature + # Then, we switch on over from Pluralist to Righteous. + ## We disguise some of these changes for neatness, as there's a lot to process. + hidden_effect = { remove_doctrine = doctrine_pluralism_pluralistic } + add_doctrine = doctrine_pluralism_righteous + # No HoF becomes you as the temporal HoF, as you're focusing more on the non-Christian parts of the faith. + hidden_effect = { + remove_doctrine = doctrine_no_head + remove_doctrine = doctrine_theocracy_temporal + remove_doctrine = doctrine_clerical_succession_spiritual_appointment + } + add_doctrine = doctrine_temporal_head + add_doctrine = doctrine_theocracy_lay_clergy + add_doctrine = doctrine_clerical_succession_temporal_fixed_appointment + # Plus, set the faith's fervour to a middling/low level, since you've messed with it. + change_fervor = { + value = -50 + desc = fervour_loss_temporal_meddling + } + } + # Create the new HoF. + hidden_effect = { + scope:religious_leader = { + set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = scope:religious_leader } + } + } + custom_tooltip = favour_the_countryside_basques_decision.tt.temporal_hof_acquired + # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. + add_character_modifier = fp2_friend_of_the_old_ways_modifier +} + +favour_the_countryside_basques_decision_pluralist_path_scripted_effect = { + faith:basque_pagan = { + # First, we mostly only need to remove Christian Syncretism & replace it with Islamic Syncretism. + remove_doctrine = tenet_christian_syncretism + add_doctrine = tenet_islamic_syncretism + # Then set the faith's fervour to a middling/low level, since you've messed with it. + change_fervor = { + value = -50 + desc = fervour_loss_temporal_meddling + } + } + # Bonus opinion with every neighbouring Islamic ruler & their vassals, who appreciate the direction you're going in. + ## Compile a list. + top_liege = { + if = { + limit = { religion = religion:islam_religion } + add_to_list = pleased_rulers + } + every_vassal_or_below = { + limit = { religion = religion:islam_religion } + add_to_list = pleased_rulers + } + } + every_neighboring_and_across_water_top_liege_realm_owner = { + if = { + limit = { religion = religion:islam_religion } + add_to_list = pleased_rulers + } + every_vassal_or_below = { + limit = { religion = religion:islam_religion } + add_to_list = pleased_rulers + } + } + ## And apply some opinions. + every_in_list = { + list = pleased_rulers + custom = favour_the_countryside_basques_decision.tt.all_neighbouring_islamic_rulers + add_opinion = { + target = scope:religious_leader + modifier = pleased_opinion + opinion = 30 + } + } + # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. + add_character_modifier = fp2_friend_of_the_old_ways_modifier +} + +favour_the_countryside_basques_decision_default_path_scripted_effect = { + faith:basque_pagan = { + # Here, we're not fiddling with the faith's traditions at all, so we get a chonky fervour bonus for the sudden limelight. + change_fervor = { + value = 100 + desc = fervour_gain_unexpected_resurgence + } + } + # Plus a massive chunk of piety experience... + add_piety_experience = 2000 + # ... and a more powerful clergy-approval modifier. + add_character_modifier = fp2_champion_of_the_old_ways_modifier +} + +create_kingdom_of_saxony_effect = { + if = { + limit = { + NOR = { + root = $CHARACTER$ + exists = scope:new_saxon_king + } + } + # Grant every held title in Saxony to the new holder + root = { + every_held_title = { + limit = { + OR = { + title:k_saxony = { is_de_jure_liege_or_above_target = prev } + title:k_sorbia = { is_de_jure_liege_or_above_target = prev } + } + NOT = { + holder = { capital_county = prev } + } + } + create_title_and_vassal_change = { + type = granted + save_scope_as = title_change + add_claim_on_loss = no + } + change_title_holder = { + holder = $CHARACTER$ + change = scope:title_change + } + resolve_title_and_vassal_change = scope:title_change + } + } + } + if = { + limit = { exists = title:k_sorbia.holder } + destroy_title = title:k_sorbia + } + title:k_sorbia = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_duchy } + set_de_jure_liege_title = title:k_saxony + } + } + title:k_saxony = { set_coa = k_saxon_electorate } + title:k_saxony = { set_de_jure_liege_title = title:e_hre } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + if = { + limit = { + has_title = title:e_hre + } + hidden_effect = { + title:k_saxony = { + change_title_holder = { + holder = $CHARACTER$ + change = scope:title_change + } + } + } + } + else = { + title:k_saxony = { + change_title_holder = { + holder = $CHARACTER$ + change = scope:title_change + } + } + } + every_vassal = { + limit = { + primary_title = { + OR = { + title:k_saxony = { is_de_jure_liege_or_above_target = prev } + title:k_sorbia = { is_de_jure_liege_or_above_target = prev } + } + } + NOT = { this = $CHARACTER$ } + NOT = { any_liege_or_above = { this = $CHARACTER$ } } + } + change_liege = { + liege = $CHARACTER$ + change = scope:title_change + } + } + hidden_effect = { + if = { + limit = { + NOR = { + $CHARACTER$ = root + $CHARACTER$ = { is_vassal_or_below_of = root } + } + } + $CHARACTER$ = { + change_liege = { + liege = root + change = scope:title_change + } + } + } + } + resolve_title_and_vassal_change = scope:title_change + hidden_effect = { + $CHARACTER$ = { save_scope_as = new_saxon_king } + every_player = { + limit = { + this != prev + or = { + is_vassal_or_below_of = title:e_hre.holder + AND = { + exists = title:e_west_slavia + is_vassal_or_below_of = title:e_west_slavia.holder + } + title:e_hre = { is_neighbor_to_realm = prev } + primary_title = { + title:e_west_slavia = { is_de_jure_liege_or_above_target = prev } + } + } + } + trigger_event = middle_europe_decisions.0018 + } + } +} + +restore_old_vasconia_decision_scripted_effect = { + save_scope_as = founder + # Give Navarra if not held + if = { + limit = { + NOT = { has_title = title:k_navarra } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_navarra = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + } + title:k_navarra = { set_title_name = k_vasconia } + hidden_effect = { + # Transfer de jure + every_in_list = { + list = vasconia_duchies + limit = { + save_temporary_scope_as = duchy_temp + root = { completely_controls = scope:duchy_temp } + NOT = { de_jure_liege = title:k_navarra } + } + add_to_list = vasconia_transfers + set_de_jure_liege_title = title:k_navarra + } + # Destroy held superseded kingdoms (no de jure land left) + every_in_list = { + list = vasconia_kingdoms + limit = { + holder = root + any_direct_de_jure_vassal_title = { count < 1 } + } + add_to_list = superseded_kingdoms + save_scope_as = superseded_kingdom + root = { destroy_title = scope:superseded_kingdom } + } + } +} + +restore_old_vasconia_decision_tooltip_scripted_effect = { + custom_tooltip = restore_old_vasconia_decision_vasconia_past_tt + show_as_tooltip = { + every_in_list = { + list = vasconia_transfers + set_de_jure_liege_title = title:k_navarra + } + every_in_list = { + list = superseded_kingdoms + save_scope_as = superseded_kingdom + root = { destroy_title = scope:superseded_kingdom } + } + } +} + +create_beth_nahrain_scripted_effect = { + #Create Beth Nahrain + hidden_effect = { + every_held_title = { + limit = { + tier = tier_empire + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_beth_nahrain + } + } + } +} + +promote_culture_beth_nahrain_scripted_effect = { + every_sub_realm_county = { + custom = promote_culture_beth_nahrain_modifier_custom_desc + limit = { + NOT = { + culture = { has_cultural_pillar = heritage_syriac } + } + title_province = { geographical_region = custom_beth_nahrain } + } + add_county_modifier = { + modifier = promote_culture_beth_nahrain_modifier + years = 50 + } + } + if = { + limit = { + faith = faith:nestorian + } + faith:nestorian = { + change_fervor = { + value = 100 + desc = middle_east_major_decisions.1020_fervor + } + } + } + else_if = { + limit = { + NOT = { + exists = scope:suppress_tooltips + } + } + custom_tooltip = middle_east_major_decisions.1020.lack_nestorian + } +} + +learning_beth_nahrain_scripted_effect = { + house ?= { + add_house_modifier = { + modifier = learning_beth_nahrain_house_modifier + years = 100 + } + } + add_piety_experience = monumental_piety_value +} + +martial_beth_nahrain_scripted_effect = { + house ?= { + add_house_modifier = { + modifier = martial_beth_nahrain_house_modifier + years = 100 + } + } + add_prestige_experience = monumental_prestige_value +} + +nestorian_faith_beth_nahrain_scripted_effect = { + add_trait = crusader_king + add_piety_experience = monumental_piety_value +} + +no_faith_beth_nahrain_scripted_effect = { + faith:nestorian = { + change_fervor = { + value = 100 + desc = middle_east_major_decisions.1020_fervor + } + } + set_character_faith_with_conversion = faith:nestorian + add_piety = monumental_piety_gain +} + +found_empire_of_hindustan_scripted_effect = { + save_scope_as = founder + + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + if = { + limit = { + completely_controls = title:k_punjab #This will always be true but it keeps the decision text easier to read before you fulfill the criteria + NOT = { has_title = title:k_punjab } + } + title:k_punjab = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + } + if = { + limit = { + completely_controls = title:k_delhi #This will always be true but it keeps the decision text easier to read before you fulfill the criteria + NOT = { has_title = title:k_delhi } + } + title:k_delhi = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + } + if = { + limit = { + OR = { + NOT = { title:d_kuru.holder = root } + AND = { + exists = title:d_kuru.holder + title:d_kuru.holder = { + is_ai = yes + } + } + } + } + title:d_kuru = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + } + if = { + limit = { + NOT = { title:c_delhi.holder = root } + } + title:c_delhi = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + } + title:e_hindustan = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + set_primary_title_to = title:e_hindustan + + hidden_effect = { + title:k_delhi = { + set_de_jure_liege_title = title:e_hindustan + } + title:k_punjab = { + set_de_jure_liege_title = title:e_hindustan + } + every_held_title = { + limit = { + tier = tier_kingdom + OR = { + de_jure_liege = title:e_bengal + de_jure_liege = title:e_deccan + de_jure_liege = title:e_rajastan + } + } + set_de_jure_liege_title = title:e_hindustan + } + #Areas that have had more muslim influence wants to avoid border gore and gets added even if not held - unless controlled by an independent Emperor of Rajastan: + if = { + limit = { + NOT = { + title:k_sindh.holder.liege = { + has_title = title:e_rajastan + } + } + } + title:k_sindh = { + set_de_jure_liege_title = title:e_hindustan + } + } + if = { + limit = { + NOT = { + title:k_kashmir.holder.liege = { + has_title = title:e_rajastan + } + } + } + title:k_kashmir = { + set_de_jure_liege_title = title:e_hindustan + } + } + add_character_flag = e_hindustan #For title flavorization + } + #If the new Emperor of Hindustan holds any of the Indian Empires these are destroyed and their kingdoms added to Hindustan too + #This is not inside the hidden block to not hide that the empires are destroyed. + if = { + limit = { + has_title = title:e_bengal + } + hidden_effect = { + title:e_bengal = { + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_hindustan + } + } + } + destroy_title = title:e_bengal + } + if = { + limit = { + has_title = title:e_deccan + } + hidden_effect = { + title:e_deccan = { + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_hindustan + } + } + } + destroy_title = title:e_deccan + } + if = { + limit = { + has_title = title:e_rajastan + } + hidden_effect = { + title:e_rajastan = { + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_hindustan + } + } + } + destroy_title = title:e_rajastan + } + custom_tooltip = found_empire_of_hindustan_decision_effects_de_jure_tt + hidden_effect = { + if = { # Let's see if you have ultimo and save that if so + limit = { + has_realm_law = single_heir_succession_law_youngest + } + save_scope_as = set_ultimo_temp_scope + } + } + if = { + limit = { has_dlc_feature = admin_gov } + convert_to_administrative_from_feudalism_effect = { GOVERNMENT_TO_ADOPT = flag:administrative } + } + hidden_effect = { + if = { # If you had ultimo, you get to keep it. Otherwise, you get primo for free. + limit = { + exists = scope:set_ultimo_temp_scope + } + add_realm_law = single_heir_succession_law_youngest + } + else = { + add_realm_law = single_heir_succession_law + } + } + add_legitimacy_effect = { LEGITIMACY = massive_legitimacy_gain } + dynasty = { add_dynasty_prestige = massive_dynasty_prestige_value } +} diff --git a/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_barrel.dds b/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_barrel.dds new file mode 100644 index 00000000..fa816e2e --- /dev/null +++ b/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_barrel.dds @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7afb60651a1b7a8f3105d65d5232b105b41cb39176337c4e35defba691afa91 +size 87536 diff --git a/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_bridge_innsbruck.dds b/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_bridge_innsbruck.dds new file mode 100644 index 00000000..f4372d20 --- /dev/null +++ b/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_bridge_innsbruck.dds @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2f467d8b6b569814b7fd9d674f2e1488e1e789cbd0f0989df5440033a65c775 +size 22000 diff --git a/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_fasces.dds b/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_fasces.dds new file mode 100644 index 00000000..6d9dc341 --- /dev/null +++ b/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_fasces.dds @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4cc19b8ac57979a73b14e53110c9e2ac9089ee3aef3196c169d54a122f8d140 +size 87536 diff --git a/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_tree_fir.dds b/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_tree_fir.dds new file mode 100644 index 00000000..d3ce86f0 --- /dev/null +++ b/N3OW/gfx/coat_of_arms/colored_emblems/NEOW_ce_tree_fir.dds @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f26d719641f31effd57afe95f0550b87a6850d9cfa9800ac1d4d7e3698e246d +size 87536