|
@@ -56,6 +56,7 @@ static_actions = { # static_actions is a reserved token.
|
|
|
56
56
|
trade_favors_for_heir = { alert_index = 51 alert_tooltip = ICON_TRADEFAVORSFORHEIR }
|
|
57
57
|
trade_favors_for_war_prep = { alert_index = 52 alert_tooltip = ICON_TRADEFAVORSFORWARPREP }
|
|
58
58
|
trade_favors_for_gold = { alert_index = 53 alert_tooltip = ICON_TRADEFAVORSFORGOLD }
|
|
59
|
+
ask_knowledge_sharing = { alert_index = 55 alert_tooltip = ICON_ASKKNOWLEDGESHARE }
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
# Create new diplomatic actions like this. AI will currently never send them.
|
|
@@ -208,7 +209,7 @@ static_actions = { # static_actions is a reserved token.
|
|
|
208
209
|
sell_indulgence = {
|
|
209
210
|
category = economy
|
|
210
211
|
|
|
211
|
-
alert_index =
|
|
212
|
+
alert_index = 56
|
|
212
213
|
alert_tooltip = sell_indulgence_alert_tooltip
|
|
213
214
|
|
|
214
215
|
require_acceptance = yes # Whether the recipient gets an option to decline
|
|
@@ -506,7 +507,7 @@ fabricate_ottoman_invasion_cb = {
|
|
|
506
507
|
reign_in_eyalet = {
|
|
507
508
|
category = influence
|
|
508
509
|
|
|
509
|
-
alert_index =
|
|
510
|
+
alert_index = 5
|
|
510
511
|
alert_tooltip = reign_in_eyalet_alert_tooltip
|
|
511
512
|
|
|
512
513
|
require_acceptance = yes
|
|
@@ -2225,6 +2226,14 @@ request_access_to_modern_ideas = {
|
|
|
2225
2226
|
is_in_deficit = no
|
|
2226
2227
|
is_bankrupt = no
|
|
2227
2228
|
is_at_war = no
|
|
2229
|
+
not = { num_of_loans = 1 }
|
|
2230
|
+
not = {
|
|
2231
|
+
has_government_power = {
|
|
2232
|
+
mechanic_type = russian_modernization_mechanic
|
|
2233
|
+
power_type = russian_modernization
|
|
2234
|
+
value = 90
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2228
2237
|
}
|
|
2229
2238
|
|
|
2230
2239
|
ai_acceptance = {
|
|
@@ -2527,6 +2536,14 @@ share_modern_ideas = {
|
|
|
2527
2536
|
is_in_deficit = no
|
|
2528
2537
|
is_bankrupt = no
|
|
2529
2538
|
is_at_war = no
|
|
2539
|
+
not = { num_of_loans = 1 }
|
|
2540
|
+
not = {
|
|
2541
|
+
has_government_power = {
|
|
2542
|
+
mechanic_type = russian_modernization_mechanic
|
|
2543
|
+
power_type = russian_modernization
|
|
2544
|
+
value = 90
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2530
2547
|
}
|
|
2531
2548
|
OR = {
|
|
2532
2549
|
alliance_with = FROM
|
|
@@ -2642,7 +2659,14 @@ share_modern_ideas = {
|
|
|
2642
2659
|
name = DOES_NOT_BENEFIT
|
|
2643
2660
|
limit = {
|
|
2644
2661
|
FROM = {
|
|
2645
|
-
|
|
2662
|
+
or = {
|
|
2663
|
+
has_government_power = {
|
|
2664
|
+
mechanic_type = russian_modernization_mechanic
|
|
2665
|
+
power_type = russian_modernization
|
|
2666
|
+
value = 90
|
|
2667
|
+
}
|
|
2668
|
+
has_estate_privilege = estate_nobles_mestnichestvo
|
|
2669
|
+
}
|
|
2646
2670
|
}
|
|
2647
2671
|
}
|
|
2648
2672
|
export_to_variable = {
|
|
@@ -2656,4 +2680,2643 @@ share_modern_ideas = {
|
|
|
2656
2680
|
}
|
|
2657
2681
|
}
|
|
2658
2682
|
}
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
create_pronoia = {
|
|
2686
|
+
category = influence
|
|
2687
|
+
|
|
2688
|
+
alert_index = 17 #doesn't matter. it is forced onto the subject
|
|
2689
|
+
alert_tooltip = sell_indulgence_alert_tooltip #doesn't matter. it is forced onto the subject
|
|
2690
|
+
|
|
2691
|
+
require_acceptance = no
|
|
2692
|
+
|
|
2693
|
+
is_visible = {
|
|
2694
|
+
has_government_attribute = enables_pronoias
|
|
2695
|
+
FROM = {
|
|
2696
|
+
is_subject_of = ROOT
|
|
2697
|
+
NOT = {
|
|
2698
|
+
OR = {
|
|
2699
|
+
is_subject_of_type = hereditary_pronoia_subject_type
|
|
2700
|
+
is_subject_of_type = pronoia_subject_type
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
is_subject_other_than_tributary_trigger = yes
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
is_allowed = {
|
|
2707
|
+
if = {
|
|
2708
|
+
limit = { BYZ_reached_pronia_slot_limit = yes }
|
|
2709
|
+
custom_trigger_tooltip = {
|
|
2710
|
+
tooltip = BYZ_not_enough_free_pronoia_slots
|
|
2711
|
+
BYZ_enough_pronoia_slots = yes
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
if = {
|
|
2715
|
+
limit = { from = { liberty_desire = 15 } }
|
|
2716
|
+
custom_trigger_tooltip = {
|
|
2717
|
+
tooltip = BYZ_too_much_liberty_desire
|
|
2718
|
+
from = { not = { liberty_desire = 15 } }
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
if = {
|
|
2722
|
+
limit = { from = { total_development = 100 } }
|
|
2723
|
+
custom_trigger_tooltip = {
|
|
2724
|
+
tooltip = FROM_HAS_NOT_100_TOTAL_DEV
|
|
2725
|
+
from = { not = { total_development = 100 } }
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
if = {
|
|
2729
|
+
limit = { from = { not = { government = monarchy } } }
|
|
2730
|
+
custom_trigger_tooltip = {
|
|
2731
|
+
tooltip = FROM_IS_NOT_MONARCHY
|
|
2732
|
+
from = { government = monarchy }
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
if = {
|
|
2736
|
+
limit = {
|
|
2737
|
+
from = {
|
|
2738
|
+
not = { is_subject_of_type = vassal }
|
|
2739
|
+
not = { is_subject_of_type = client_vassal }
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
custom_trigger_tooltip = {
|
|
2743
|
+
tooltip = FROM_IS_NOT_VASSAL_OF_ROOT
|
|
2744
|
+
FROM = {
|
|
2745
|
+
OR = {
|
|
2746
|
+
is_subject_of_type = vassal
|
|
2747
|
+
is_subject_of_type = client_vassal
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
on_accept = {
|
|
2754
|
+
from = { grant_independence = yes }
|
|
2755
|
+
hidden_effect = {
|
|
2756
|
+
# country_event = { id = MEE_Byzantine_Events.56 }
|
|
2757
|
+
FROM = {
|
|
2758
|
+
set_saved_name = {
|
|
2759
|
+
key = byzantine_general
|
|
2760
|
+
type = advisor
|
|
2761
|
+
scope = ROOT
|
|
2762
|
+
}
|
|
2763
|
+
define_ruler = {
|
|
2764
|
+
name = byzantine_general
|
|
2765
|
+
change_mil = 4
|
|
2766
|
+
change_adm = 1
|
|
2767
|
+
change_dip = 0
|
|
2768
|
+
min_age = 30
|
|
2769
|
+
male = yes
|
|
2770
|
+
religion = ROOT
|
|
2771
|
+
culture = ROOT
|
|
2772
|
+
}
|
|
2773
|
+
if = {
|
|
2774
|
+
limit = {
|
|
2775
|
+
has_heir = yes
|
|
2776
|
+
}
|
|
2777
|
+
kill_heir = { allow_new_heir = no }
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
if = {
|
|
2782
|
+
limit = {
|
|
2783
|
+
has_country_flag = BYZ_hereditary_pronoiars
|
|
2784
|
+
}
|
|
2785
|
+
create_subject = {
|
|
2786
|
+
subject_type = pronoia_subject_type
|
|
2787
|
+
subject = FROM
|
|
2788
|
+
keep_liberty_desire = yes
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
else = {
|
|
2792
|
+
create_subject = {
|
|
2793
|
+
subject_type = hereditary_pronoia_subject_type
|
|
2794
|
+
subject = FROM
|
|
2795
|
+
keep_liberty_desire = yes
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
ai_will_do = {
|
|
2801
|
+
if = {
|
|
2802
|
+
limit = {
|
|
2803
|
+
NOT = {
|
|
2804
|
+
OR = {
|
|
2805
|
+
mission_completed = BYZ_decentralized_pronoia
|
|
2806
|
+
mission_completed = BYZ_centralized_pronoia
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
always = yes
|
|
2811
|
+
}
|
|
2812
|
+
else_if = {
|
|
2813
|
+
limit = {
|
|
2814
|
+
is_subject_of_type = march
|
|
2815
|
+
}
|
|
2816
|
+
always = yes
|
|
2817
|
+
}
|
|
2818
|
+
else = {
|
|
2819
|
+
always = no
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
release_pronia = {
|
|
2824
|
+
category = influence
|
|
2825
|
+
require_acceptance = no
|
|
2826
|
+
is_visible = {
|
|
2827
|
+
FROM = {
|
|
2828
|
+
is_subject_of = ROOT
|
|
2829
|
+
OR = {
|
|
2830
|
+
is_subject_of_type = hereditary_pronoia_subject_type
|
|
2831
|
+
is_subject_of_type = pronoia_subject_type
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
is_allowed = {
|
|
2836
|
+
always = yes
|
|
2837
|
+
}
|
|
2838
|
+
on_accept = {
|
|
2839
|
+
from = {
|
|
2840
|
+
if = {
|
|
2841
|
+
limit = { not = { liberty_desire = 50 } }
|
|
2842
|
+
add_opinion = {
|
|
2843
|
+
who = root
|
|
2844
|
+
modifier = vassal_abandoned
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
grant_independence = yes
|
|
2848
|
+
every_owned_province = {
|
|
2849
|
+
limit = {
|
|
2850
|
+
or = {
|
|
2851
|
+
is_claim = root
|
|
2852
|
+
is_permanent_claim = root
|
|
2853
|
+
is_core = root
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
if = {
|
|
2857
|
+
limit = { is_permanent_claim = root }
|
|
2858
|
+
remove_claim = root
|
|
2859
|
+
}
|
|
2860
|
+
if = {
|
|
2861
|
+
limit = { is_claim = root }
|
|
2862
|
+
remove_claim = root
|
|
2863
|
+
}
|
|
2864
|
+
if = {
|
|
2865
|
+
limit = { is_core = root }
|
|
2866
|
+
remove_core = root
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
add_prestige = -25
|
|
2871
|
+
}
|
|
2872
|
+
ai_will_do = {
|
|
2873
|
+
always = no
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
make_pronoia_inheritable = {
|
|
2878
|
+
category = influence
|
|
2879
|
+
|
|
2880
|
+
alert_index = 17 #doesn't matter. it is forced onto the subject
|
|
2881
|
+
alert_tooltip = sell_indulgence_alert_tooltip #doesn't matter. it is forced onto the subject
|
|
2882
|
+
|
|
2883
|
+
require_acceptance = no
|
|
2884
|
+
|
|
2885
|
+
is_visible = {
|
|
2886
|
+
FROM = {
|
|
2887
|
+
is_subject_of = ROOT
|
|
2888
|
+
is_subject_of_type = hereditary_pronoia_subject_type
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
is_allowed = {
|
|
2892
|
+
if = {
|
|
2893
|
+
limit = { from = { liberty_desire = 15 } }
|
|
2894
|
+
custom_trigger_tooltip = {
|
|
2895
|
+
tooltip = BYZ_too_much_liberty_desire
|
|
2896
|
+
from = { not = { liberty_desire = 15 } }
|
|
2897
|
+
}
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
2900
|
+
on_accept = {
|
|
2901
|
+
ROOT = {
|
|
2902
|
+
create_subject = {
|
|
2903
|
+
subject_type = pronoia_subject_type
|
|
2904
|
+
subject = FROM
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
ai_will_do = {
|
|
2910
|
+
if = {
|
|
2911
|
+
limit = {
|
|
2912
|
+
NOT = {
|
|
2913
|
+
OR = {
|
|
2914
|
+
mission_completed = BYZ_decentralized_pronoia
|
|
2915
|
+
mission_completed = BYZ_centralized_pronoia
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
always = no
|
|
2920
|
+
}
|
|
2921
|
+
else_if = {
|
|
2922
|
+
limit = {
|
|
2923
|
+
FROM = { development_of_overlord_fraction = 0.25 }
|
|
2924
|
+
}
|
|
2925
|
+
always = yes
|
|
2926
|
+
}
|
|
2927
|
+
else = {
|
|
2928
|
+
always = no
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
# Sphere of Cultural Influence
|
|
2934
|
+
invite_into_cultural_sphere_of_influence = {
|
|
2935
|
+
category = influence
|
|
2936
|
+
require_acceptance = yes
|
|
2937
|
+
|
|
2938
|
+
alert_index = 60
|
|
2939
|
+
alert_tooltip = invite_into_cultural_sphere_of_influence_alert_tooltip
|
|
2940
|
+
|
|
2941
|
+
is_visible = {
|
|
2942
|
+
has_government_mechanic = persian_influence_mechanic
|
|
2943
|
+
is_subject = no
|
|
2944
|
+
FROM = { is_subject = no }
|
|
2945
|
+
}
|
|
2946
|
+
is_allowed = {
|
|
2947
|
+
if = {
|
|
2948
|
+
limit = {
|
|
2949
|
+
NOT = {
|
|
2950
|
+
FROM = {
|
|
2951
|
+
capital_scope = {
|
|
2952
|
+
trade_range = ROOT
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
custom_trigger_tooltip = {
|
|
2958
|
+
tooltip = REQUIRES_CAPITAL_IN_TRADE_RANGE_TT
|
|
2959
|
+
FROM = {
|
|
2960
|
+
capital_scope = {
|
|
2961
|
+
trade_range = ROOT
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
if = {
|
|
2967
|
+
limit = {
|
|
2968
|
+
FROM = { is_at_war = yes }
|
|
2969
|
+
}
|
|
2970
|
+
custom_trigger_tooltip = {
|
|
2971
|
+
tooltip = FROM_IS_AT_WAR_TT
|
|
2972
|
+
FROM = { is_at_war = no }
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
if = {
|
|
2976
|
+
limit = {
|
|
2977
|
+
is_at_war = yes
|
|
2978
|
+
}
|
|
2979
|
+
custom_trigger_tooltip = {
|
|
2980
|
+
tooltip = ROOT_IS_AT_WAR_TT
|
|
2981
|
+
is_at_war = no
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
if = {
|
|
2985
|
+
limit = { FROM = { NOT = { religion = root } } }
|
|
2986
|
+
custom_trigger_tooltip = {
|
|
2987
|
+
tooltip = FROM_IS_NOT_ROOT_RELIGION_TT
|
|
2988
|
+
FROM = { religion = root }
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
if = {
|
|
2992
|
+
limit = { FROM = { is_great_power = yes } }
|
|
2993
|
+
custom_trigger_tooltip = {
|
|
2994
|
+
tooltip = FROM_IS_GREAT_POWER_TT
|
|
2995
|
+
FROM = { is_great_power = no }
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
if = {
|
|
2999
|
+
limit = { FROM = { total_development = root } }
|
|
3000
|
+
custom_trigger_tooltip = {
|
|
3001
|
+
tooltip = FROM_MORE_DEV_THAN_ROOT_TT
|
|
3002
|
+
FROM = { NOT = { total_development = root } }
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
on_accept = {
|
|
3007
|
+
create_subject = {
|
|
3008
|
+
subject_type = cultural_sphere_of_influence_subject
|
|
3009
|
+
subject = FROM
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
on_decline = {
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
ai_will_do = { # this is a trigger
|
|
3016
|
+
OR = {
|
|
3017
|
+
ai_attitude = {
|
|
3018
|
+
who = FROM
|
|
3019
|
+
attitude = attitude_friendly
|
|
3020
|
+
}
|
|
3021
|
+
ai_attitude = {
|
|
3022
|
+
who = FROM
|
|
3023
|
+
attitude = attitude_protective
|
|
3024
|
+
}
|
|
3025
|
+
FROM = {
|
|
3026
|
+
any_neighbor_country = {
|
|
3027
|
+
NOT = { tag = ROOT }
|
|
3028
|
+
FROM = {
|
|
3029
|
+
ai_attitude = {
|
|
3030
|
+
who = PREV
|
|
3031
|
+
attitude = attitude_threatened
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
FROM = {
|
|
3037
|
+
ai_attitude = {
|
|
3038
|
+
who = ROOT
|
|
3039
|
+
attitude = attitude_threatened
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
NOT = {
|
|
3044
|
+
ai_attitude = {
|
|
3045
|
+
who = FROM
|
|
3046
|
+
attitude = attitude_domineering
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
NOT = {
|
|
3050
|
+
ai_attitude = {
|
|
3051
|
+
who = FROM
|
|
3052
|
+
attitude = attitude_hostile
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
NOT = {
|
|
3056
|
+
ai_attitude = {
|
|
3057
|
+
who = FROM
|
|
3058
|
+
attitude = attitude_outraged
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
has_opinion = {
|
|
3062
|
+
who = FROM
|
|
3063
|
+
value = 50
|
|
3064
|
+
}
|
|
3065
|
+
NOT = {
|
|
3066
|
+
FROM = {
|
|
3067
|
+
has_country_modifier = just_left_sphere_of_cultural_influence_timer
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
ai_acceptance = {
|
|
3073
|
+
add_entry = {
|
|
3074
|
+
name = DIPLO_OPPINION
|
|
3075
|
+
export_to_variable = {
|
|
3076
|
+
variable_name = ai_value
|
|
3077
|
+
value = opinion
|
|
3078
|
+
who = FROM
|
|
3079
|
+
with = ROOT
|
|
3080
|
+
}
|
|
3081
|
+
multiply_variable = {
|
|
3082
|
+
which = ai_value
|
|
3083
|
+
value = 0.125
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
add_entry = {
|
|
3087
|
+
name = AI_TRUST_TOWARDS_ROOT
|
|
3088
|
+
export_to_variable = {
|
|
3089
|
+
variable_name = ai_value
|
|
3090
|
+
value = trust
|
|
3091
|
+
who = FROM
|
|
3092
|
+
with = ROOT
|
|
3093
|
+
}
|
|
3094
|
+
subtract_variable = {
|
|
3095
|
+
which = ai_value
|
|
3096
|
+
value = 50
|
|
3097
|
+
}
|
|
3098
|
+
#1 trust = +4 ai points
|
|
3099
|
+
multiply_variable = {
|
|
3100
|
+
which = ai_value
|
|
3101
|
+
value = 0.4
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3104
|
+
add_entry = {
|
|
3105
|
+
name = AI_DIPLOMATIC_REPUTATION
|
|
3106
|
+
export_to_variable = {
|
|
3107
|
+
variable_name = ai_value
|
|
3108
|
+
value = trigger_value:diplomatic_reputation
|
|
3109
|
+
}
|
|
3110
|
+
#1 rep = 3
|
|
3111
|
+
multiply_variable = {
|
|
3112
|
+
which = ai_value
|
|
3113
|
+
value = 3
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
add_entry = {
|
|
3117
|
+
name = AI_TOTAL_DEVELOPMENT
|
|
3118
|
+
export_to_variable = {
|
|
3119
|
+
variable_name = ai_value
|
|
3120
|
+
value = total_development
|
|
3121
|
+
who = FROM
|
|
3122
|
+
}
|
|
3123
|
+
#4 dev = -1
|
|
3124
|
+
multiply_variable = {
|
|
3125
|
+
which = ai_value
|
|
3126
|
+
value = -0.25
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3129
|
+
add_entry = {
|
|
3130
|
+
name = DIPLO_HAS_AI_HAS_OWN_SUBJECTS_TT
|
|
3131
|
+
limit = {
|
|
3132
|
+
FROM = { num_of_subjects = 1 }
|
|
3133
|
+
}
|
|
3134
|
+
export_to_variable = {
|
|
3135
|
+
variable_name = ai_value
|
|
3136
|
+
value = 1
|
|
3137
|
+
}
|
|
3138
|
+
multiply_variable = {
|
|
3139
|
+
which = ai_value
|
|
3140
|
+
value = -20
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
add_entry = {
|
|
3144
|
+
name = ADDITIONAL_REASONS_FROM_EVENTS_AND_MISSIONS_TO_ACCEPT_TT
|
|
3145
|
+
limit = { FROM = { has_country_flag = easier_to_get_into_persian_sphere } }
|
|
3146
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3147
|
+
multiply_variable = { which = ai_value value = 25 }
|
|
3148
|
+
}
|
|
3149
|
+
add_entry = {
|
|
3150
|
+
name = attitude_neutral_DIPLO_ATTITUDE_TT
|
|
3151
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_neutral } } }
|
|
3152
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3153
|
+
multiply_variable = { which = ai_value value = -10 }
|
|
3154
|
+
}
|
|
3155
|
+
add_entry = {
|
|
3156
|
+
name = attitude_rivalry_DIPLO_ATTITUDE_TT
|
|
3157
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rivalry } } }
|
|
3158
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3159
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
3160
|
+
}
|
|
3161
|
+
add_entry = {
|
|
3162
|
+
name = attitude_hostile_DIPLO_ATTITUDE_TT
|
|
3163
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_hostile } } }
|
|
3164
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3165
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
3166
|
+
}
|
|
3167
|
+
add_entry = {
|
|
3168
|
+
name = attitude_friendly_DIPLO_ATTITUDE_TT
|
|
3169
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_friendly } } }
|
|
3170
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3171
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
3172
|
+
}
|
|
3173
|
+
add_entry = {
|
|
3174
|
+
name = attitude_threatened_DIPLO_ATTITUDE_TT
|
|
3175
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_threatened } } }
|
|
3176
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3177
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
3178
|
+
}
|
|
3179
|
+
add_entry = {
|
|
3180
|
+
name = attitude_outraged_DIPLO_ATTITUDE_TT
|
|
3181
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_outraged } } }
|
|
3182
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3183
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
3184
|
+
}
|
|
3185
|
+
add_entry = {
|
|
3186
|
+
name = attitude_domineering_DIPLO_ATTITUDE_TT
|
|
3187
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_domineering } } }
|
|
3188
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3189
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
3190
|
+
}
|
|
3191
|
+
add_entry = {
|
|
3192
|
+
name = DIPLO_BORDER_DISTANCE_TT
|
|
3193
|
+
export_to_variable = {
|
|
3194
|
+
variable_name = ai_value
|
|
3195
|
+
value = border_distance
|
|
3196
|
+
who = FROM
|
|
3197
|
+
with = ROOT
|
|
3198
|
+
}
|
|
3199
|
+
#4 units = -1
|
|
3200
|
+
multiply_variable = {
|
|
3201
|
+
which = ai_value
|
|
3202
|
+
value = -0.25
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
remove_them_from_cultural_sphere_of_influece = {
|
|
3209
|
+
category = influence
|
|
3210
|
+
require_acceptance = no
|
|
3211
|
+
|
|
3212
|
+
is_visible = {
|
|
3213
|
+
FROM = {
|
|
3214
|
+
is_subject_of = ROOT
|
|
3215
|
+
is_subject_of_type = cultural_sphere_of_influence_subject
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
is_allowed = {
|
|
3219
|
+
}
|
|
3220
|
+
on_accept = {
|
|
3221
|
+
FROM = {
|
|
3222
|
+
grant_independence = yes
|
|
3223
|
+
add_country_modifier = {
|
|
3224
|
+
name = just_left_sphere_of_cultural_influence_timer
|
|
3225
|
+
duration = 3650
|
|
3226
|
+
hidden = yes
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
3229
|
+
reverse_add_opinion = {
|
|
3230
|
+
who = from
|
|
3231
|
+
modifier = was_removed_from_our_sphere_of_influence
|
|
3232
|
+
}
|
|
3233
|
+
add_opinion = {
|
|
3234
|
+
who = from
|
|
3235
|
+
modifier = removed_from_our_sphere_of_influence
|
|
3236
|
+
}
|
|
3237
|
+
add_truce_with = from
|
|
3238
|
+
}
|
|
3239
|
+
on_decline = {
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
ai_will_do = { # Overlords will never want to break the relationship
|
|
3243
|
+
always = no
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
leave_the_cultural_sphere_of_influece = {
|
|
3248
|
+
category = influence
|
|
3249
|
+
require_acceptance = no
|
|
3250
|
+
|
|
3251
|
+
is_visible = {
|
|
3252
|
+
is_subject_of = FROM
|
|
3253
|
+
is_subject_of_type = cultural_sphere_of_influence_subject
|
|
3254
|
+
}
|
|
3255
|
+
is_allowed = {
|
|
3256
|
+
}
|
|
3257
|
+
on_accept = {
|
|
3258
|
+
if = {
|
|
3259
|
+
limit = {
|
|
3260
|
+
is_subject_of = FROM
|
|
3261
|
+
is_subject_of_type = cultural_sphere_of_influence_subject
|
|
3262
|
+
NOT = { liberty_desire = 100 }
|
|
3263
|
+
}
|
|
3264
|
+
if = {
|
|
3265
|
+
limit = {
|
|
3266
|
+
has_stab_reduction_from_dip_action_modifier = yes
|
|
3267
|
+
}
|
|
3268
|
+
add_prestige = -1
|
|
3269
|
+
}
|
|
3270
|
+
else = {
|
|
3271
|
+
add_stability = -1
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
grant_independence = yes
|
|
3275
|
+
reverse_add_opinion = {
|
|
3276
|
+
who = from
|
|
3277
|
+
modifier = left_our_sphere_of_influence
|
|
3278
|
+
}
|
|
3279
|
+
add_opinion = {
|
|
3280
|
+
who = from
|
|
3281
|
+
modifier = left_their_sphere_of_influence
|
|
3282
|
+
}
|
|
3283
|
+
add_country_modifier = {
|
|
3284
|
+
name = just_left_sphere_of_cultural_influence_timer
|
|
3285
|
+
duration = 3650
|
|
3286
|
+
hidden = yes
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
on_decline = {
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
ai_will_do = { # Overlords will never want to break the relationship
|
|
3293
|
+
is_subject_of = FROM
|
|
3294
|
+
OR = {
|
|
3295
|
+
liberty_desire = 100
|
|
3296
|
+
AND = {
|
|
3297
|
+
stability = 1
|
|
3298
|
+
liberty_desire = 90
|
|
3299
|
+
NOT = {
|
|
3300
|
+
has_opinion = {
|
|
3301
|
+
who = ROOT
|
|
3302
|
+
value = -50
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
AND = {
|
|
3307
|
+
stability = 1
|
|
3308
|
+
liberty_desire = 80
|
|
3309
|
+
NOT = {
|
|
3310
|
+
has_opinion = {
|
|
3311
|
+
who = ROOT
|
|
3312
|
+
value = -100
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
AND = {
|
|
3317
|
+
stability = 1
|
|
3318
|
+
liberty_desire = 70
|
|
3319
|
+
NOT = {
|
|
3320
|
+
has_opinion = {
|
|
3321
|
+
who = ROOT
|
|
3322
|
+
value = -150
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
}
|
|
3326
|
+
AND = {
|
|
3327
|
+
stability = 1
|
|
3328
|
+
liberty_desire = 60
|
|
3329
|
+
NOT = {
|
|
3330
|
+
has_opinion = {
|
|
3331
|
+
who = ROOT
|
|
3332
|
+
value = -199
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
NOT = {
|
|
3338
|
+
any_neighbor_country = {
|
|
3339
|
+
ROOT = {
|
|
3340
|
+
ai_attitude = {
|
|
3341
|
+
who = PREV
|
|
3342
|
+
attitude = attitude_threatened
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
join_cultural_sphere_of_influence = {
|
|
3351
|
+
category = influence
|
|
3352
|
+
require_acceptance = yes
|
|
3353
|
+
|
|
3354
|
+
alert_index = 59
|
|
3355
|
+
alert_tooltip = join_cultural_sphere_of_influence_alert_tooltip
|
|
3356
|
+
|
|
3357
|
+
is_visible = {
|
|
3358
|
+
FROM = { has_government_mechanic = persian_influence_mechanic }
|
|
3359
|
+
is_subject = no
|
|
3360
|
+
FROM = { is_subject = no }
|
|
3361
|
+
}
|
|
3362
|
+
is_allowed = {
|
|
3363
|
+
if = {
|
|
3364
|
+
limit = {
|
|
3365
|
+
NOT = {
|
|
3366
|
+
capital_scope = {
|
|
3367
|
+
trade_range = FROM
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
custom_trigger_tooltip = {
|
|
3372
|
+
tooltip = REQUIRES_FROM_TO_BE_IN_TRADE_RANGE_TT
|
|
3373
|
+
capital_scope = {
|
|
3374
|
+
trade_range = FROM
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
if = {
|
|
3379
|
+
limit = {
|
|
3380
|
+
FROM = { is_at_war = yes }
|
|
3381
|
+
}
|
|
3382
|
+
custom_trigger_tooltip = {
|
|
3383
|
+
tooltip = FROM_IS_AT_WAR_TT
|
|
3384
|
+
FROM = { is_at_war = no }
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
if = {
|
|
3388
|
+
limit = {
|
|
3389
|
+
is_at_war = yes
|
|
3390
|
+
}
|
|
3391
|
+
custom_trigger_tooltip = {
|
|
3392
|
+
tooltip = ROOT_IS_AT_WAR_TT
|
|
3393
|
+
is_at_war = no
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
if = {
|
|
3397
|
+
limit = { NOT = { religion = from } }
|
|
3398
|
+
custom_trigger_tooltip = {
|
|
3399
|
+
tooltip = ROOT_IS_NOT_FROM_RELIGION_TT
|
|
3400
|
+
religion = from
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
if = {
|
|
3404
|
+
limit = { is_great_power = yes }
|
|
3405
|
+
custom_trigger_tooltip = {
|
|
3406
|
+
tooltip = ROOT_IS_GREAT_POWER_TT
|
|
3407
|
+
is_great_power = no
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
if = {
|
|
3411
|
+
limit = { total_development = from }
|
|
3412
|
+
custom_trigger_tooltip = {
|
|
3413
|
+
tooltip = ROOT_MORE_DEV_THAN_FROM_TT
|
|
3414
|
+
NOT = { total_development = from }
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
on_accept = {
|
|
3419
|
+
FROM = {
|
|
3420
|
+
create_subject = {
|
|
3421
|
+
subject_type = cultural_sphere_of_influence_subject
|
|
3422
|
+
subject = ROOT
|
|
3423
|
+
}
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
on_decline = {
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
ai_will_do = { # this is a trigger
|
|
3430
|
+
OR = {
|
|
3431
|
+
ai_attitude = {
|
|
3432
|
+
who = FROM
|
|
3433
|
+
attitude = attitude_threatened
|
|
3434
|
+
}
|
|
3435
|
+
any_neighbor_country = {
|
|
3436
|
+
NOT = { tag = FROM }
|
|
3437
|
+
ROOT = {
|
|
3438
|
+
ai_attitude = {
|
|
3439
|
+
who = PREV
|
|
3440
|
+
attitude = attitude_threatened
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
FROM = {
|
|
3445
|
+
OR = {
|
|
3446
|
+
ai_attitude = {
|
|
3447
|
+
who = ROOT
|
|
3448
|
+
attitude = attitude_domineering
|
|
3449
|
+
}
|
|
3450
|
+
ai_attitude = {
|
|
3451
|
+
who = ROOT
|
|
3452
|
+
attitude = attitude_protective
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
NOT = { mil_tech = FROM }
|
|
3458
|
+
OR = {
|
|
3459
|
+
NOT = { army_size = FROM }
|
|
3460
|
+
AND = {
|
|
3461
|
+
capital_scope = { is_island = yes }
|
|
3462
|
+
NOT = { navy_size = FROM }
|
|
3463
|
+
}
|
|
3464
|
+
FROM = {
|
|
3465
|
+
military_strength = {
|
|
3466
|
+
who = ROOT
|
|
3467
|
+
value = 2
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
NOT = { has_country_modifier = dissolve_protectorate_timer }
|
|
3472
|
+
NOT = {
|
|
3473
|
+
ai_attitude = {
|
|
3474
|
+
who = FROM
|
|
3475
|
+
attitude = attitude_rivalry
|
|
3476
|
+
}
|
|
3477
|
+
}
|
|
3478
|
+
NOT = {
|
|
3479
|
+
ai_attitude = {
|
|
3480
|
+
who = FROM
|
|
3481
|
+
attitude = attitude_hostile
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
NOT = {
|
|
3485
|
+
ai_attitude = {
|
|
3486
|
+
who = FROM
|
|
3487
|
+
attitude = attitude_outraged
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
NOT = {
|
|
3491
|
+
ai_attitude = {
|
|
3492
|
+
who = FROM
|
|
3493
|
+
attitude = attitude_domineering
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
is_emperor = no
|
|
3497
|
+
is_emperor_of_china = no
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
ai_acceptance = {
|
|
3501
|
+
add_entry = {
|
|
3502
|
+
name = DIPLO_OPPINION
|
|
3503
|
+
export_to_variable = {
|
|
3504
|
+
variable_name = ai_value
|
|
3505
|
+
value = opinion
|
|
3506
|
+
who = FROM
|
|
3507
|
+
with = ROOT
|
|
3508
|
+
}
|
|
3509
|
+
multiply_variable = {
|
|
3510
|
+
which = ai_value
|
|
3511
|
+
value = 0.125
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
add_entry = {
|
|
3515
|
+
name = AI_TRUST_TOWARDS_ROOT
|
|
3516
|
+
export_to_variable = {
|
|
3517
|
+
variable_name = ai_value
|
|
3518
|
+
value = trust
|
|
3519
|
+
who = FROM
|
|
3520
|
+
with = ROOT
|
|
3521
|
+
}
|
|
3522
|
+
subtract_variable = {
|
|
3523
|
+
which = ai_value
|
|
3524
|
+
value = 50
|
|
3525
|
+
}
|
|
3526
|
+
#1 trust = +4 ai points
|
|
3527
|
+
multiply_variable = {
|
|
3528
|
+
which = ai_value
|
|
3529
|
+
value = 0.4
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
add_entry = {
|
|
3533
|
+
name = AI_DIPLOMATIC_REPUTATION
|
|
3534
|
+
export_to_variable = {
|
|
3535
|
+
variable_name = ai_value
|
|
3536
|
+
value = trigger_value:diplomatic_reputation
|
|
3537
|
+
}
|
|
3538
|
+
#1 rep = 3
|
|
3539
|
+
multiply_variable = {
|
|
3540
|
+
which = ai_value
|
|
3541
|
+
value = 3
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
add_entry = {
|
|
3545
|
+
name = DIPLO_OUR_TOTAL_DEVELOPMENT_TT
|
|
3546
|
+
export_to_variable = {
|
|
3547
|
+
variable_name = ai_value
|
|
3548
|
+
value = total_development
|
|
3549
|
+
who = ROOT
|
|
3550
|
+
}
|
|
3551
|
+
#10 dev = -1
|
|
3552
|
+
multiply_variable = {
|
|
3553
|
+
which = ai_value
|
|
3554
|
+
value = -0.1
|
|
3555
|
+
}
|
|
3556
|
+
}
|
|
3557
|
+
add_entry = {
|
|
3558
|
+
name = attitude_neutral_DIPLO_ATTITUDE_TT
|
|
3559
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_neutral } } }
|
|
3560
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3561
|
+
multiply_variable = { which = ai_value value = -20 }
|
|
3562
|
+
}
|
|
3563
|
+
add_entry = {
|
|
3564
|
+
name = attitude_rivalry_DIPLO_ATTITUDE_TT
|
|
3565
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rivalry } } }
|
|
3566
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3567
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
3568
|
+
}
|
|
3569
|
+
add_entry = {
|
|
3570
|
+
name = attitude_hostile_DIPLO_ATTITUDE_TT
|
|
3571
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_hostile } } }
|
|
3572
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3573
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
3574
|
+
}
|
|
3575
|
+
add_entry = {
|
|
3576
|
+
name = attitude_friendly_DIPLO_ATTITUDE_TT
|
|
3577
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_friendly } } }
|
|
3578
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3579
|
+
multiply_variable = { which = ai_value value = 50 }
|
|
3580
|
+
}
|
|
3581
|
+
add_entry = {
|
|
3582
|
+
name = attitude_outraged_DIPLO_ATTITUDE_TT
|
|
3583
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_outraged } } }
|
|
3584
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3585
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
3586
|
+
}
|
|
3587
|
+
add_entry = {
|
|
3588
|
+
name = attitude_domineering_DIPLO_ATTITUDE_TT
|
|
3589
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_domineering } } }
|
|
3590
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3591
|
+
multiply_variable = { which = ai_value value = 1000 }
|
|
3592
|
+
}
|
|
3593
|
+
add_entry = {
|
|
3594
|
+
name = attitude_protective_DIPLO_ATTITUDE_TT
|
|
3595
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_protective } } }
|
|
3596
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3597
|
+
multiply_variable = { which = ai_value value = 1000 }
|
|
3598
|
+
}
|
|
3599
|
+
add_entry = {
|
|
3600
|
+
name = DIPLO_BORDER_DISTANCE_TT
|
|
3601
|
+
export_to_variable = {
|
|
3602
|
+
variable_name = ai_value
|
|
3603
|
+
value = border_distance
|
|
3604
|
+
who = FROM
|
|
3605
|
+
with = ROOT
|
|
3606
|
+
}
|
|
3607
|
+
#4 units = -1
|
|
3608
|
+
multiply_variable = {
|
|
3609
|
+
which = ai_value
|
|
3610
|
+
value = -0.25
|
|
3611
|
+
}
|
|
3612
|
+
}
|
|
3613
|
+
add_entry = {
|
|
3614
|
+
name = ADDITIONAL_REASONS_FROM_EVENTS_AND_MISSIONS_TO_ACCEPT_TT
|
|
3615
|
+
limit = { has_country_flag = easier_to_get_into_persian_sphere }
|
|
3616
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
3617
|
+
multiply_variable = { which = ai_value value = 25 }
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
# Create Vassal out of Influenced Country
|
|
3623
|
+
elevate_influenced_country_to_vassal = {
|
|
3624
|
+
category = influence
|
|
3625
|
+
|
|
3626
|
+
alert_index = 61
|
|
3627
|
+
alert_tooltip = elevate_influenced_country_to_vassal_alert_tooltip
|
|
3628
|
+
|
|
3629
|
+
require_acceptance = yes
|
|
3630
|
+
|
|
3631
|
+
is_visible = {
|
|
3632
|
+
has_government_mechanic = persian_influence_mechanic
|
|
3633
|
+
FROM = {
|
|
3634
|
+
is_subject_of = ROOT
|
|
3635
|
+
is_subject_of_type = cultural_sphere_of_influence_subject
|
|
3636
|
+
}
|
|
3637
|
+
}
|
|
3638
|
+
is_allowed = {
|
|
3639
|
+
if = {
|
|
3640
|
+
limit = {
|
|
3641
|
+
FROM = { liberty_desire = 50 }
|
|
3642
|
+
}
|
|
3643
|
+
custom_trigger_tooltip = {
|
|
3644
|
+
tooltip = FROM_IS_REBELLIOUS_TT
|
|
3645
|
+
FROM = { liberty_desire = 50 }
|
|
3646
|
+
}
|
|
3647
|
+
}
|
|
3648
|
+
if = {
|
|
3649
|
+
limit = {
|
|
3650
|
+
has_global_modifier_value = {
|
|
3651
|
+
which = influence_to_vassal_elevation_cost
|
|
3652
|
+
value = 100
|
|
3653
|
+
}
|
|
3654
|
+
}
|
|
3655
|
+
custom_trigger_tooltip = {
|
|
3656
|
+
tooltip = COST_HIGHER_THAN_OUR_MAX_INFLUENCE_TT
|
|
3657
|
+
NOT = {
|
|
3658
|
+
has_global_modifier_value = {
|
|
3659
|
+
which = influence_to_vassal_elevation_cost
|
|
3660
|
+
value = 100
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3665
|
+
if = {
|
|
3666
|
+
limit = {
|
|
3667
|
+
FROM = { NOT = { primary_culture = root } }
|
|
3668
|
+
}
|
|
3669
|
+
custom_trigger_tooltip = {
|
|
3670
|
+
tooltip = FROM_HAS_NOT_OUR_PRIMARY_CULTURE_TT
|
|
3671
|
+
FROM = { primary_culture = root }
|
|
3672
|
+
}
|
|
3673
|
+
}
|
|
3674
|
+
if = {
|
|
3675
|
+
limit = { NOT = { has_enough_persian_influence_to_elevate = yes } }
|
|
3676
|
+
custom_trigger_tooltip = {
|
|
3677
|
+
tooltip = HAS_ENOUGH_PERSIAN_INFLUENCE_TT
|
|
3678
|
+
has_enough_persian_influence_to_elevate = yes
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3682
|
+
on_accept = {
|
|
3683
|
+
export_to_variable = {
|
|
3684
|
+
which = PERSIAN_INFLUENCE_COST
|
|
3685
|
+
value = modifier:influence_to_vassal_elevation_cost
|
|
3686
|
+
}
|
|
3687
|
+
while = {
|
|
3688
|
+
limit = {
|
|
3689
|
+
check_variable = {
|
|
3690
|
+
which = PERSIAN_INFLUENCE_COST
|
|
3691
|
+
value = 1
|
|
3692
|
+
}
|
|
3693
|
+
}
|
|
3694
|
+
subtract_variable = {
|
|
3695
|
+
which = PERSIAN_INFLUENCE_COST
|
|
3696
|
+
value = 1
|
|
3697
|
+
}
|
|
3698
|
+
add_government_power = {
|
|
3699
|
+
mechanic_type = persian_influence_mechanic
|
|
3700
|
+
power_type = persian_influence
|
|
3701
|
+
value = -1
|
|
3702
|
+
scaled_with_gain_modifier = no
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3705
|
+
consume_persian_influence_reduction = yes
|
|
3706
|
+
change_variable = {
|
|
3707
|
+
which = persian_influence_elevation_counter
|
|
3708
|
+
value = 1
|
|
3709
|
+
}
|
|
3710
|
+
from = {
|
|
3711
|
+
country_event = {
|
|
3712
|
+
id = persian_influence_events.100
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
if = {
|
|
3716
|
+
limit = { has_country_flag = improved_elevation_effect }
|
|
3717
|
+
add_historical_friend = from
|
|
3718
|
+
from = { add_historical_friend = root }
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
on_decline = {
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
ai_will_do = { # this is a trigger
|
|
3725
|
+
always = yes #There is never a reason for the Ottomans to not want to integrate their eyalets
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
ai_acceptance = {
|
|
3729
|
+
add_entry = {
|
|
3730
|
+
name = DIPLO_OPPINION
|
|
3731
|
+
export_to_variable = {
|
|
3732
|
+
variable_name = ai_value
|
|
3733
|
+
value = opinion
|
|
3734
|
+
who = FROM
|
|
3735
|
+
with = ROOT
|
|
3736
|
+
}
|
|
3737
|
+
multiply_variable = {
|
|
3738
|
+
which = ai_value
|
|
3739
|
+
value = 0.2
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
add_entry = {
|
|
3743
|
+
name = AI_TRUST_TOWARDS_ROOT
|
|
3744
|
+
export_to_variable = {
|
|
3745
|
+
variable_name = ai_value
|
|
3746
|
+
value = trust
|
|
3747
|
+
who = FROM
|
|
3748
|
+
with = ROOT
|
|
3749
|
+
}
|
|
3750
|
+
subtract_variable = {
|
|
3751
|
+
which = ai_value
|
|
3752
|
+
value = 50
|
|
3753
|
+
}
|
|
3754
|
+
#1 trust = +4 ai points
|
|
3755
|
+
multiply_variable = {
|
|
3756
|
+
which = ai_value
|
|
3757
|
+
value = 0.4
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
add_entry = {
|
|
3761
|
+
name = AI_DIPLOMATIC_REPUTATION
|
|
3762
|
+
export_to_variable = {
|
|
3763
|
+
variable_name = ai_value
|
|
3764
|
+
value = trigger_value:diplomatic_reputation
|
|
3765
|
+
}
|
|
3766
|
+
#1 rep = 4
|
|
3767
|
+
multiply_variable = {
|
|
3768
|
+
which = ai_value
|
|
3769
|
+
value = 4
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
add_entry = {
|
|
3773
|
+
name = AI_TOTAL_DEVELOPMENT
|
|
3774
|
+
export_to_variable = {
|
|
3775
|
+
variable_name = ai_value
|
|
3776
|
+
value = total_development
|
|
3777
|
+
who = FROM
|
|
3778
|
+
}
|
|
3779
|
+
#4 dev = -1
|
|
3780
|
+
multiply_variable = {
|
|
3781
|
+
which = ai_value
|
|
3782
|
+
value = -0.25
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
add_entry = {
|
|
3786
|
+
name = HAS_BONUS_REIGN_IN_REASON
|
|
3787
|
+
limit = {
|
|
3788
|
+
has_country_flag = tur_reduced_requirements_for_core_eyalet
|
|
3789
|
+
}
|
|
3790
|
+
export_to_variable = {
|
|
3791
|
+
variable_name = ai_value
|
|
3792
|
+
value = 1
|
|
3793
|
+
}
|
|
3794
|
+
multiply_variable = {
|
|
3795
|
+
which = ai_value
|
|
3796
|
+
value = 20
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
add_entry = {
|
|
3800
|
+
name = AI_LIBERTY_DESIRE
|
|
3801
|
+
export_to_variable = {
|
|
3802
|
+
variable_name = ai_value
|
|
3803
|
+
value = liberty_desire
|
|
3804
|
+
who = FROM
|
|
3805
|
+
}
|
|
3806
|
+
multiply_variable = {
|
|
3807
|
+
which = ai_value
|
|
3808
|
+
value = -1
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
# Fabricate Spread the True Faith cb
|
|
3815
|
+
fabricate_spread_the_true_faith_cb = {
|
|
3816
|
+
category = covert
|
|
3817
|
+
|
|
3818
|
+
require_acceptance = no
|
|
3819
|
+
|
|
3820
|
+
is_visible = {
|
|
3821
|
+
has_unlocked_diplomatic_action = { type = fabricate_spread_the_true_faith_cb }
|
|
3822
|
+
NOT = { religion = from }
|
|
3823
|
+
}
|
|
3824
|
+
is_allowed = {
|
|
3825
|
+
if = {
|
|
3826
|
+
limit = {
|
|
3827
|
+
NOT = {
|
|
3828
|
+
has_spy_network_in = {
|
|
3829
|
+
who = FROM
|
|
3830
|
+
value = 30
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
NOT = { full_idea_group = spy_ideas }
|
|
3834
|
+
NOT = { has_country_flag = reduced_spread_faith_cb_spy_cost }
|
|
3835
|
+
}
|
|
3836
|
+
custom_trigger_tooltip = {
|
|
3837
|
+
tooltip = REQUIRES_30_SPY_NETWORK_TT
|
|
3838
|
+
has_spy_network_in = {
|
|
3839
|
+
who = FROM
|
|
3840
|
+
value = 30
|
|
3841
|
+
}
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3844
|
+
if = {
|
|
3845
|
+
limit = {
|
|
3846
|
+
NOT = {
|
|
3847
|
+
has_spy_network_in = {
|
|
3848
|
+
who = FROM
|
|
3849
|
+
value = 24
|
|
3850
|
+
}
|
|
3851
|
+
}
|
|
3852
|
+
full_idea_group = spy_ideas
|
|
3853
|
+
NOT = { has_country_flag = reduced_spread_faith_cb_spy_cost }
|
|
3854
|
+
}
|
|
3855
|
+
custom_trigger_tooltip = {
|
|
3856
|
+
tooltip = REQUIRES_24_SPY_NETWORK_TT
|
|
3857
|
+
has_spy_network_in = {
|
|
3858
|
+
who = FROM
|
|
3859
|
+
value = 24
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
}
|
|
3863
|
+
if = {
|
|
3864
|
+
limit = {
|
|
3865
|
+
NOT = {
|
|
3866
|
+
has_spy_network_in = {
|
|
3867
|
+
who = FROM
|
|
3868
|
+
value = 10
|
|
3869
|
+
}
|
|
3870
|
+
}
|
|
3871
|
+
NOT = { full_idea_group = spy_ideas }
|
|
3872
|
+
has_country_flag = reduced_spread_faith_cb_spy_cost
|
|
3873
|
+
}
|
|
3874
|
+
custom_trigger_tooltip = {
|
|
3875
|
+
tooltip = REQUIRES_10_SPY_NETWORK_TT
|
|
3876
|
+
has_spy_network_in = {
|
|
3877
|
+
who = FROM
|
|
3878
|
+
value = 10
|
|
3879
|
+
}
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
if = {
|
|
3883
|
+
limit = {
|
|
3884
|
+
NOT = {
|
|
3885
|
+
has_spy_network_in = {
|
|
3886
|
+
who = FROM
|
|
3887
|
+
value = 8
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
full_idea_group = spy_ideas
|
|
3891
|
+
has_country_flag = reduced_spread_faith_cb_spy_cost
|
|
3892
|
+
}
|
|
3893
|
+
custom_trigger_tooltip = {
|
|
3894
|
+
tooltip = REQUIRES_8_SPY_NETWORK_TT
|
|
3895
|
+
has_spy_network_in = {
|
|
3896
|
+
who = FROM
|
|
3897
|
+
value = 8
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3900
|
+
}
|
|
3901
|
+
if = {
|
|
3902
|
+
limit = {
|
|
3903
|
+
has_casus_belli = {
|
|
3904
|
+
type = cb_spread_the_true_faith
|
|
3905
|
+
target = FROM
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3908
|
+
custom_trigger_tooltip = {
|
|
3909
|
+
tooltip = HAS_SPREAD_THE_TRUE_FAITH_CB_ALREADY_TT
|
|
3910
|
+
NOT = {
|
|
3911
|
+
has_casus_belli = {
|
|
3912
|
+
type = cb_spread_the_true_faith
|
|
3913
|
+
target = FROM
|
|
3914
|
+
}
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3917
|
+
}
|
|
3918
|
+
if = {
|
|
3919
|
+
limit = {
|
|
3920
|
+
FROM = { is_subject = yes }
|
|
3921
|
+
}
|
|
3922
|
+
custom_trigger_tooltip = {
|
|
3923
|
+
tooltip = CANNOT_DO_ACTION_TO_SUBJECTS_TT
|
|
3924
|
+
FROM = { is_subject = no }
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
if = {
|
|
3928
|
+
limit = {
|
|
3929
|
+
NOT = {
|
|
3930
|
+
FROM = {
|
|
3931
|
+
capital_scope = {
|
|
3932
|
+
trade_range = ROOT
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3936
|
+
}
|
|
3937
|
+
custom_trigger_tooltip = {
|
|
3938
|
+
tooltip = REQUIRES_CAPITAL_IN_TRADE_RANGE_TT
|
|
3939
|
+
FROM = {
|
|
3940
|
+
capital_scope = {
|
|
3941
|
+
trade_range = ROOT
|
|
3942
|
+
}
|
|
3943
|
+
}
|
|
3944
|
+
}
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
on_accept = {
|
|
3948
|
+
if = {
|
|
3949
|
+
limit = {
|
|
3950
|
+
full_idea_group = spy_ideas
|
|
3951
|
+
has_country_flag = reduced_spread_faith_cb_spy_cost
|
|
3952
|
+
}
|
|
3953
|
+
add_spy_network_in = {
|
|
3954
|
+
who = FROM
|
|
3955
|
+
value = -8
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
else_if = {
|
|
3959
|
+
limit = {
|
|
3960
|
+
NOT = { full_idea_group = spy_ideas }
|
|
3961
|
+
has_country_flag = reduced_spread_faith_cb_spy_cost
|
|
3962
|
+
}
|
|
3963
|
+
add_spy_network_in = {
|
|
3964
|
+
who = FROM
|
|
3965
|
+
value = -10
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
else_if = {
|
|
3969
|
+
limit = {
|
|
3970
|
+
full_idea_group = spy_ideas
|
|
3971
|
+
NOT = { has_country_flag = reduced_spread_faith_cb_spy_cost }
|
|
3972
|
+
}
|
|
3973
|
+
add_spy_network_in = {
|
|
3974
|
+
who = FROM
|
|
3975
|
+
value = -24
|
|
3976
|
+
}
|
|
3977
|
+
}
|
|
3978
|
+
else = {
|
|
3979
|
+
add_spy_network_in = {
|
|
3980
|
+
who = FROM
|
|
3981
|
+
value = -30
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
add_casus_belli = {
|
|
3985
|
+
target = FROM
|
|
3986
|
+
type = cb_spread_the_true_faith
|
|
3987
|
+
months = 60
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
on_decline = {
|
|
3991
|
+
}
|
|
3992
|
+
|
|
3993
|
+
ai_will_do = { # this is a trigger
|
|
3994
|
+
has_spy_network_in = {
|
|
3995
|
+
who = FROM
|
|
3996
|
+
value = 50
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
3999
|
+
}
|
|
4000
|
+
|
|
4001
|
+
# Change primary culture of target
|
|
4002
|
+
promote_primary_culture = {
|
|
4003
|
+
category = influence
|
|
4004
|
+
|
|
4005
|
+
alert_index = 65
|
|
4006
|
+
alert_tooltip = promote_primary_culture_alert_tooltip
|
|
4007
|
+
|
|
4008
|
+
require_acceptance = yes
|
|
4009
|
+
|
|
4010
|
+
is_visible = {
|
|
4011
|
+
has_government_mechanic = persian_influence_mechanic
|
|
4012
|
+
}
|
|
4013
|
+
is_allowed = {
|
|
4014
|
+
if = {
|
|
4015
|
+
limit = {
|
|
4016
|
+
FROM = { primary_culture = root }
|
|
4017
|
+
}
|
|
4018
|
+
custom_trigger_tooltip = {
|
|
4019
|
+
tooltip = FROM_HAS_OUR_PRIMARY_CULTURE_TT
|
|
4020
|
+
FROM = { NOT = { primary_culture = root } }
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
if = {
|
|
4024
|
+
limit = { NOT = { has_government_power = { mechanic_type = persian_influence_mechanic power_type = persian_influence value = 10 } } }
|
|
4025
|
+
custom_trigger_tooltip = {
|
|
4026
|
+
tooltip = HAS_NOT_10_PERSIAN_INFLUENCE_TT
|
|
4027
|
+
has_government_power = { mechanic_type = persian_influence_mechanic power_type = persian_influence value = 10 }
|
|
4028
|
+
}
|
|
4029
|
+
}
|
|
4030
|
+
if = {
|
|
4031
|
+
limit = { FROM = { NOT = { is_subject_of = root } NOT = { guaranteed_by = root } } }
|
|
4032
|
+
custom_trigger_tooltip = {
|
|
4033
|
+
tooltip = FROM_IS_NEITHER_GUARANTEED_NOR_SUBJECT_TT
|
|
4034
|
+
FROM = {
|
|
4035
|
+
OR = {
|
|
4036
|
+
is_subject_of = root
|
|
4037
|
+
guaranteed_by = root
|
|
4038
|
+
}
|
|
4039
|
+
}
|
|
4040
|
+
}
|
|
4041
|
+
}
|
|
4042
|
+
if = {
|
|
4043
|
+
limit = { war_with = from }
|
|
4044
|
+
custom_trigger_tooltip = {
|
|
4045
|
+
tooltip = WAR_WITH_FROM_TT
|
|
4046
|
+
NOT = { war_with = from }
|
|
4047
|
+
}
|
|
4048
|
+
}
|
|
4049
|
+
}
|
|
4050
|
+
on_accept = {
|
|
4051
|
+
change_variable = {
|
|
4052
|
+
which = num_of_forced_culture_conversions
|
|
4053
|
+
value = 1
|
|
4054
|
+
}
|
|
4055
|
+
from = {
|
|
4056
|
+
change_primary_culture = root
|
|
4057
|
+
}
|
|
4058
|
+
add_government_power = {
|
|
4059
|
+
mechanic_type = persian_influence_mechanic
|
|
4060
|
+
power_type = persian_influence
|
|
4061
|
+
value = -10
|
|
4062
|
+
scaled_with_gain_modifier = no
|
|
4063
|
+
}
|
|
4064
|
+
}
|
|
4065
|
+
on_decline = {
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
ai_will_do = { # this is a trigger
|
|
4069
|
+
has_government_power = {
|
|
4070
|
+
mechanic_type = persian_influence_mechanic
|
|
4071
|
+
power_type = persian_influence
|
|
4072
|
+
value = 100
|
|
4073
|
+
}
|
|
4074
|
+
OR = {
|
|
4075
|
+
ai_attitude = {
|
|
4076
|
+
who = FROM
|
|
4077
|
+
attitude = attitude_friendly
|
|
4078
|
+
}
|
|
4079
|
+
ai_attitude = {
|
|
4080
|
+
who = FROM
|
|
4081
|
+
attitude = attitude_protective
|
|
4082
|
+
}
|
|
4083
|
+
FROM = {
|
|
4084
|
+
any_neighbor_country = {
|
|
4085
|
+
NOT = { tag = ROOT }
|
|
4086
|
+
FROM = {
|
|
4087
|
+
ai_attitude = {
|
|
4088
|
+
who = PREV
|
|
4089
|
+
attitude = attitude_threatened
|
|
4090
|
+
}
|
|
4091
|
+
}
|
|
4092
|
+
}
|
|
4093
|
+
}
|
|
4094
|
+
FROM = {
|
|
4095
|
+
ai_attitude = {
|
|
4096
|
+
who = ROOT
|
|
4097
|
+
attitude = attitude_threatened
|
|
4098
|
+
}
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
NOT = {
|
|
4102
|
+
ai_attitude = {
|
|
4103
|
+
who = FROM
|
|
4104
|
+
attitude = attitude_domineering
|
|
4105
|
+
}
|
|
4106
|
+
}
|
|
4107
|
+
NOT = {
|
|
4108
|
+
ai_attitude = {
|
|
4109
|
+
who = FROM
|
|
4110
|
+
attitude = attitude_hostile
|
|
4111
|
+
}
|
|
4112
|
+
}
|
|
4113
|
+
NOT = {
|
|
4114
|
+
ai_attitude = {
|
|
4115
|
+
who = FROM
|
|
4116
|
+
attitude = attitude_outraged
|
|
4117
|
+
}
|
|
4118
|
+
}
|
|
4119
|
+
NOT = {
|
|
4120
|
+
ai_attitude = {
|
|
4121
|
+
who = FROM
|
|
4122
|
+
attitude = attitude_rebellious
|
|
4123
|
+
}
|
|
4124
|
+
}
|
|
4125
|
+
NOT = {
|
|
4126
|
+
ai_attitude = {
|
|
4127
|
+
who = FROM
|
|
4128
|
+
attitude = attitude_disloyal
|
|
4129
|
+
}
|
|
4130
|
+
}
|
|
4131
|
+
has_opinion = {
|
|
4132
|
+
who = FROM
|
|
4133
|
+
value = 100
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4137
|
+
ai_acceptance = {
|
|
4138
|
+
add_entry = {
|
|
4139
|
+
name = DIPLO_OPPINION
|
|
4140
|
+
export_to_variable = {
|
|
4141
|
+
variable_name = ai_value
|
|
4142
|
+
value = opinion
|
|
4143
|
+
who = FROM
|
|
4144
|
+
with = ROOT
|
|
4145
|
+
}
|
|
4146
|
+
multiply_variable = {
|
|
4147
|
+
which = ai_value
|
|
4148
|
+
value = 0.2
|
|
4149
|
+
}
|
|
4150
|
+
}
|
|
4151
|
+
add_entry = {
|
|
4152
|
+
name = AI_TRUST_TOWARDS_ROOT
|
|
4153
|
+
export_to_variable = {
|
|
4154
|
+
variable_name = ai_value
|
|
4155
|
+
value = trust
|
|
4156
|
+
who = FROM
|
|
4157
|
+
with = ROOT
|
|
4158
|
+
}
|
|
4159
|
+
subtract_variable = {
|
|
4160
|
+
which = ai_value
|
|
4161
|
+
value = 50
|
|
4162
|
+
}
|
|
4163
|
+
#1 trust = +4 ai points
|
|
4164
|
+
multiply_variable = {
|
|
4165
|
+
which = ai_value
|
|
4166
|
+
value = 0.4
|
|
4167
|
+
}
|
|
4168
|
+
}
|
|
4169
|
+
add_entry = {
|
|
4170
|
+
name = AI_DIPLOMATIC_REPUTATION
|
|
4171
|
+
export_to_variable = {
|
|
4172
|
+
variable_name = ai_value
|
|
4173
|
+
value = trigger_value:diplomatic_reputation
|
|
4174
|
+
}
|
|
4175
|
+
#1 rep = 4
|
|
4176
|
+
multiply_variable = {
|
|
4177
|
+
which = ai_value
|
|
4178
|
+
value = 4
|
|
4179
|
+
}
|
|
4180
|
+
}
|
|
4181
|
+
add_entry = {
|
|
4182
|
+
name = AI_TOTAL_DEVELOPMENT
|
|
4183
|
+
export_to_variable = {
|
|
4184
|
+
variable_name = ai_value
|
|
4185
|
+
value = total_development
|
|
4186
|
+
who = FROM
|
|
4187
|
+
}
|
|
4188
|
+
#4 dev = -1
|
|
4189
|
+
multiply_variable = {
|
|
4190
|
+
which = ai_value
|
|
4191
|
+
value = -0.25
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
add_entry = {
|
|
4195
|
+
name = attitude_neutral_DIPLO_ATTITUDE_TT
|
|
4196
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_neutral } } }
|
|
4197
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4198
|
+
multiply_variable = { which = ai_value value = -20 }
|
|
4199
|
+
}
|
|
4200
|
+
add_entry = {
|
|
4201
|
+
name = attitude_rivalry_DIPLO_ATTITUDE_TT
|
|
4202
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rivalry } } }
|
|
4203
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4204
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4205
|
+
}
|
|
4206
|
+
add_entry = {
|
|
4207
|
+
name = attitude_hostile_DIPLO_ATTITUDE_TT
|
|
4208
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_hostile } } }
|
|
4209
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4210
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4211
|
+
}
|
|
4212
|
+
add_entry = {
|
|
4213
|
+
name = attitude_friendly_DIPLO_ATTITUDE_TT
|
|
4214
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_friendly } } }
|
|
4215
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4216
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
4217
|
+
}
|
|
4218
|
+
add_entry = {
|
|
4219
|
+
name = attitude_threatened_DIPLO_ATTITUDE_TT
|
|
4220
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_threatened } } }
|
|
4221
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4222
|
+
multiply_variable = { which = ai_value value = 50 }
|
|
4223
|
+
}
|
|
4224
|
+
add_entry = {
|
|
4225
|
+
name = attitude_outraged_DIPLO_ATTITUDE_TT
|
|
4226
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_outraged } } }
|
|
4227
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4228
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4229
|
+
}
|
|
4230
|
+
add_entry = {
|
|
4231
|
+
name = attitude_domineering_DIPLO_ATTITUDE_TT
|
|
4232
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_domineering } } }
|
|
4233
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4234
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4235
|
+
}
|
|
4236
|
+
add_entry = {
|
|
4237
|
+
name = attitude_rebellious_DIPLO_ATTITUDE_TT
|
|
4238
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rebellious } } }
|
|
4239
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4240
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4241
|
+
}
|
|
4242
|
+
add_entry = {
|
|
4243
|
+
name = attitude_disloyal_DIPLO_ATTITUDE_TT
|
|
4244
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_disloyal } } }
|
|
4245
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4246
|
+
multiply_variable = { which = ai_value value = -100 }
|
|
4247
|
+
}
|
|
4248
|
+
add_entry = {
|
|
4249
|
+
name = AI_LIBERTY_DESIRE
|
|
4250
|
+
limit = {
|
|
4251
|
+
FROM = { is_subject_of = root liberty_desire = 50 }
|
|
4252
|
+
}
|
|
4253
|
+
export_to_variable = {
|
|
4254
|
+
variable_name = ai_value
|
|
4255
|
+
value = 1
|
|
4256
|
+
}
|
|
4257
|
+
multiply_variable = {
|
|
4258
|
+
which = ai_value
|
|
4259
|
+
value = -1000
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4265
|
+
send_royal_ambassador = {
|
|
4266
|
+
category = covert
|
|
4267
|
+
|
|
4268
|
+
require_acceptance = no
|
|
4269
|
+
|
|
4270
|
+
is_visible = {
|
|
4271
|
+
OR = {
|
|
4272
|
+
has_government_mechanic = persian_influence_mechanic
|
|
4273
|
+
has_government_mechanic = the_three_royal_fires_mechanic
|
|
4274
|
+
}
|
|
4275
|
+
has_unlocked_diplomatic_action = { type = send_royal_ambassador }
|
|
4276
|
+
}
|
|
4277
|
+
is_allowed = {
|
|
4278
|
+
if = {
|
|
4279
|
+
limit = {
|
|
4280
|
+
has_government_mechanic = persian_influence_mechanic
|
|
4281
|
+
NOT = { has_government_power = { mechanic_type = persian_influence_mechanic power_type = persian_influence value = 25 } }
|
|
4282
|
+
}
|
|
4283
|
+
custom_trigger_tooltip = {
|
|
4284
|
+
tooltip = HAS_NOT_25_PERSIAN_INFLUENCE_TT
|
|
4285
|
+
has_government_power = { mechanic_type = persian_influence_mechanic power_type = persian_influence value = 25 }
|
|
4286
|
+
}
|
|
4287
|
+
}
|
|
4288
|
+
if = {
|
|
4289
|
+
limit = {
|
|
4290
|
+
has_government_mechanic = the_three_royal_fires_mechanic
|
|
4291
|
+
NOT = { has_government_power = { mechanic_type = the_three_royal_fires_mechanic power_type = asha_vahishta value = 25 } }
|
|
4292
|
+
}
|
|
4293
|
+
custom_trigger_tooltip = {
|
|
4294
|
+
tooltip = HAS_NOT_25_ASHA_VAHISHTA_TT
|
|
4295
|
+
has_government_power = { mechanic_type = the_three_royal_fires_mechanic power_type = asha_vahishta value = 25 }
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
if = {
|
|
4299
|
+
limit = { war_with = from }
|
|
4300
|
+
custom_trigger_tooltip = {
|
|
4301
|
+
tooltip = WAR_WITH_FROM_TT
|
|
4302
|
+
NOT = { war_with = from }
|
|
4303
|
+
}
|
|
4304
|
+
}
|
|
4305
|
+
#if = {
|
|
4306
|
+
# limit = {
|
|
4307
|
+
# FROM = { is_subject = yes }
|
|
4308
|
+
# }
|
|
4309
|
+
# custom_trigger_tooltip = {
|
|
4310
|
+
# tooltip = CANNOT_DO_ACTION_TO_SUBJECTS_TT
|
|
4311
|
+
# FROM = { is_subject = no }
|
|
4312
|
+
# }
|
|
4313
|
+
#}
|
|
4314
|
+
if = {
|
|
4315
|
+
limit = {
|
|
4316
|
+
FROM = { has_opinion_modifier = { who = root modifier = royal_ambassador_visit } }
|
|
4317
|
+
}
|
|
4318
|
+
custom_trigger_tooltip = {
|
|
4319
|
+
tooltip = FROM_WAS_VISITED_BY_ROYAL_AMBASSADORS_TT
|
|
4320
|
+
FROM = { NOT = { has_opinion_modifier = { who = root modifier = royal_ambassador_visit } } }
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4324
|
+
on_accept = {
|
|
4325
|
+
reverse_add_opinion = {
|
|
4326
|
+
who = from
|
|
4327
|
+
modifier = royal_ambassador_visit
|
|
4328
|
+
}
|
|
4329
|
+
add_government_power = {
|
|
4330
|
+
mechanic_type = persian_influence_mechanic
|
|
4331
|
+
power_type = persian_influence
|
|
4332
|
+
value = -25
|
|
4333
|
+
scaled_with_gain_modifier = no
|
|
4334
|
+
}
|
|
4335
|
+
add_government_power = {
|
|
4336
|
+
mechanic_type = the_three_royal_fires_mechanic
|
|
4337
|
+
power_type = asha_vahishta
|
|
4338
|
+
value = -25
|
|
4339
|
+
}
|
|
4340
|
+
}
|
|
4341
|
+
on_decline = {
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
ai_will_do = { # this is a trigger
|
|
4345
|
+
always = no
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
invite_to_zoroastrian_community = {
|
|
4350
|
+
category = influence
|
|
4351
|
+
require_acceptance = yes
|
|
4352
|
+
|
|
4353
|
+
alert_index = 62
|
|
4354
|
+
alert_tooltip = invite_to_zoroastrian_community_alert_tooltip
|
|
4355
|
+
|
|
4356
|
+
is_visible = {
|
|
4357
|
+
has_government_mechanic = the_three_royal_fires_mechanic
|
|
4358
|
+
is_subject = no
|
|
4359
|
+
FROM = { is_subject = no }
|
|
4360
|
+
NOT = { religion = from }
|
|
4361
|
+
}
|
|
4362
|
+
is_allowed = {
|
|
4363
|
+
if = {
|
|
4364
|
+
limit = {
|
|
4365
|
+
NOT = {
|
|
4366
|
+
FROM = {
|
|
4367
|
+
capital_scope = {
|
|
4368
|
+
trade_range = ROOT
|
|
4369
|
+
}
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
}
|
|
4373
|
+
custom_trigger_tooltip = {
|
|
4374
|
+
tooltip = REQUIRES_CAPITAL_IN_TRADE_RANGE_TT
|
|
4375
|
+
FROM = {
|
|
4376
|
+
capital_scope = {
|
|
4377
|
+
trade_range = ROOT
|
|
4378
|
+
}
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4381
|
+
}
|
|
4382
|
+
if = {
|
|
4383
|
+
limit = {
|
|
4384
|
+
FROM = { is_at_war = yes }
|
|
4385
|
+
}
|
|
4386
|
+
custom_trigger_tooltip = {
|
|
4387
|
+
tooltip = FROM_IS_AT_WAR_TT
|
|
4388
|
+
FROM = { is_at_war = no }
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4391
|
+
if = {
|
|
4392
|
+
limit = {
|
|
4393
|
+
is_at_war = yes
|
|
4394
|
+
}
|
|
4395
|
+
custom_trigger_tooltip = {
|
|
4396
|
+
tooltip = ROOT_IS_AT_WAR_TT
|
|
4397
|
+
is_at_war = no
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
if = {
|
|
4401
|
+
limit = { FROM = { total_development = root } }
|
|
4402
|
+
custom_trigger_tooltip = {
|
|
4403
|
+
tooltip = FROM_MORE_DEV_THAN_ROOT_TT
|
|
4404
|
+
FROM = { NOT = { total_development = root } }
|
|
4405
|
+
}
|
|
4406
|
+
}
|
|
4407
|
+
if = {
|
|
4408
|
+
limit = { FROM = { tag = PAP } }
|
|
4409
|
+
custom_trigger_tooltip = {
|
|
4410
|
+
tooltip = FROM_IS_THE_POPE_TT
|
|
4411
|
+
FROM = { NOT = { tag = PAP } }
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
if = {
|
|
4415
|
+
limit = { OR = { NOT = { has_country_flag = gained_first_invitation_charge } NOT = { check_variable = { which = zoroastrian_invitation_charges value = 1 } } } }
|
|
4416
|
+
custom_trigger_tooltip = {
|
|
4417
|
+
tooltip = ROOT_HAS_NO_INVITATION_CHARGES_TT
|
|
4418
|
+
check_variable = {
|
|
4419
|
+
which = zoroastrian_invitation_charges
|
|
4420
|
+
value = 1
|
|
4421
|
+
}
|
|
4422
|
+
has_country_flag = gained_first_invitation_charge
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
on_accept = {
|
|
4427
|
+
change_variable = {
|
|
4428
|
+
which = zoroastrian_invitation_charges
|
|
4429
|
+
value = -1
|
|
4430
|
+
}
|
|
4431
|
+
change_variable = {
|
|
4432
|
+
which = num_of_forced_conversions
|
|
4433
|
+
value = 1
|
|
4434
|
+
}
|
|
4435
|
+
FROM = {
|
|
4436
|
+
change_religion = root
|
|
4437
|
+
country_event = {
|
|
4438
|
+
id = flavor_per.72
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
}
|
|
4442
|
+
on_decline = {
|
|
4443
|
+
FROM = {
|
|
4444
|
+
add_country_modifier = {
|
|
4445
|
+
name = just_asked_to_convert_timer
|
|
4446
|
+
duration = 18250
|
|
4447
|
+
}
|
|
4448
|
+
}
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
ai_will_do = { # this is a trigger
|
|
4452
|
+
OR = {
|
|
4453
|
+
ai_attitude = {
|
|
4454
|
+
who = FROM
|
|
4455
|
+
attitude = attitude_friendly
|
|
4456
|
+
}
|
|
4457
|
+
ai_attitude = {
|
|
4458
|
+
who = FROM
|
|
4459
|
+
attitude = attitude_protective
|
|
4460
|
+
}
|
|
4461
|
+
FROM = {
|
|
4462
|
+
any_neighbor_country = {
|
|
4463
|
+
NOT = { tag = ROOT }
|
|
4464
|
+
FROM = {
|
|
4465
|
+
ai_attitude = {
|
|
4466
|
+
who = PREV
|
|
4467
|
+
attitude = attitude_threatened
|
|
4468
|
+
}
|
|
4469
|
+
}
|
|
4470
|
+
}
|
|
4471
|
+
}
|
|
4472
|
+
FROM = {
|
|
4473
|
+
ai_attitude = {
|
|
4474
|
+
who = ROOT
|
|
4475
|
+
attitude = attitude_threatened
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4479
|
+
NOT = {
|
|
4480
|
+
ai_attitude = {
|
|
4481
|
+
who = FROM
|
|
4482
|
+
attitude = attitude_domineering
|
|
4483
|
+
}
|
|
4484
|
+
}
|
|
4485
|
+
NOT = {
|
|
4486
|
+
ai_attitude = {
|
|
4487
|
+
who = FROM
|
|
4488
|
+
attitude = attitude_hostile
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
NOT = {
|
|
4492
|
+
ai_attitude = {
|
|
4493
|
+
who = FROM
|
|
4494
|
+
attitude = attitude_outraged
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
has_opinion = {
|
|
4498
|
+
who = FROM
|
|
4499
|
+
value = 50
|
|
4500
|
+
}
|
|
4501
|
+
NOT = {
|
|
4502
|
+
FROM = {
|
|
4503
|
+
has_country_modifier = just_asked_to_convert_timer
|
|
4504
|
+
}
|
|
4505
|
+
}
|
|
4506
|
+
}
|
|
4507
|
+
|
|
4508
|
+
ai_acceptance = {
|
|
4509
|
+
add_entry = {
|
|
4510
|
+
name = DIPLO_OPPINION
|
|
4511
|
+
export_to_variable = {
|
|
4512
|
+
variable_name = ai_value
|
|
4513
|
+
value = opinion
|
|
4514
|
+
who = FROM
|
|
4515
|
+
with = ROOT
|
|
4516
|
+
}
|
|
4517
|
+
multiply_variable = {
|
|
4518
|
+
which = ai_value
|
|
4519
|
+
value = 0.125
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4522
|
+
add_entry = {
|
|
4523
|
+
name = AI_TRUST_TOWARDS_ROOT
|
|
4524
|
+
export_to_variable = {
|
|
4525
|
+
variable_name = ai_value
|
|
4526
|
+
value = trust
|
|
4527
|
+
who = FROM
|
|
4528
|
+
with = ROOT
|
|
4529
|
+
}
|
|
4530
|
+
subtract_variable = {
|
|
4531
|
+
which = ai_value
|
|
4532
|
+
value = 50
|
|
4533
|
+
}
|
|
4534
|
+
#1 trust = +4 ai points
|
|
4535
|
+
multiply_variable = {
|
|
4536
|
+
which = ai_value
|
|
4537
|
+
value = 0.4
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4540
|
+
add_entry = {
|
|
4541
|
+
name = AI_DIPLOMATIC_REPUTATION
|
|
4542
|
+
export_to_variable = {
|
|
4543
|
+
variable_name = ai_value
|
|
4544
|
+
value = trigger_value:diplomatic_reputation
|
|
4545
|
+
}
|
|
4546
|
+
#1 rep = 3
|
|
4547
|
+
multiply_variable = {
|
|
4548
|
+
which = ai_value
|
|
4549
|
+
value = 3
|
|
4550
|
+
}
|
|
4551
|
+
}
|
|
4552
|
+
add_entry = {
|
|
4553
|
+
name = AI_TOTAL_DEVELOPMENT
|
|
4554
|
+
export_to_variable = {
|
|
4555
|
+
variable_name = ai_value
|
|
4556
|
+
value = total_development
|
|
4557
|
+
who = FROM
|
|
4558
|
+
}
|
|
4559
|
+
#4 dev = -1
|
|
4560
|
+
multiply_variable = {
|
|
4561
|
+
which = ai_value
|
|
4562
|
+
value = -0.25
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
add_entry = {
|
|
4566
|
+
name = attitude_neutral_DIPLO_ATTITUDE_TT
|
|
4567
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_neutral } } }
|
|
4568
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4569
|
+
multiply_variable = { which = ai_value value = -10 }
|
|
4570
|
+
}
|
|
4571
|
+
add_entry = {
|
|
4572
|
+
name = attitude_rivalry_DIPLO_ATTITUDE_TT
|
|
4573
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rivalry } } }
|
|
4574
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4575
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4576
|
+
}
|
|
4577
|
+
add_entry = {
|
|
4578
|
+
name = attitude_hostile_DIPLO_ATTITUDE_TT
|
|
4579
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_hostile } } }
|
|
4580
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4581
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4582
|
+
}
|
|
4583
|
+
add_entry = {
|
|
4584
|
+
name = attitude_friendly_DIPLO_ATTITUDE_TT
|
|
4585
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_friendly } } }
|
|
4586
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4587
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
4588
|
+
}
|
|
4589
|
+
add_entry = {
|
|
4590
|
+
name = attitude_threatened_DIPLO_ATTITUDE_TT
|
|
4591
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_threatened } } }
|
|
4592
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4593
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
4594
|
+
}
|
|
4595
|
+
add_entry = {
|
|
4596
|
+
name = attitude_outraged_DIPLO_ATTITUDE_TT
|
|
4597
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_outraged } } }
|
|
4598
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4599
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4600
|
+
}
|
|
4601
|
+
add_entry = {
|
|
4602
|
+
name = attitude_domineering_DIPLO_ATTITUDE_TT
|
|
4603
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_domineering } } }
|
|
4604
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4605
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4606
|
+
}
|
|
4607
|
+
add_entry = {
|
|
4608
|
+
name = DIPLO_BORDER_DISTANCE_TT
|
|
4609
|
+
export_to_variable = {
|
|
4610
|
+
variable_name = ai_value
|
|
4611
|
+
value = border_distance
|
|
4612
|
+
who = FROM
|
|
4613
|
+
with = ROOT
|
|
4614
|
+
}
|
|
4615
|
+
#4 units = -1
|
|
4616
|
+
multiply_variable = {
|
|
4617
|
+
which = ai_value
|
|
4618
|
+
value = -0.25
|
|
4619
|
+
}
|
|
4620
|
+
}
|
|
4621
|
+
add_entry = {
|
|
4622
|
+
name = ADDITIONAL_REASONS_FROM_EVENTS_AND_MISSIONS_TO_ACCEPT_TT
|
|
4623
|
+
limit = { FROM = { has_country_flag = easier_to_get_into_persian_sphere } }
|
|
4624
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4625
|
+
multiply_variable = { which = ai_value value = 25 }
|
|
4626
|
+
}
|
|
4627
|
+
}
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
mam_export_grain = {
|
|
4631
|
+
category = economy
|
|
4632
|
+
|
|
4633
|
+
require_acceptance = yes
|
|
4634
|
+
|
|
4635
|
+
alert_index = 63
|
|
4636
|
+
alert_tooltip = export_grain_alert_tooltip
|
|
4637
|
+
|
|
4638
|
+
is_visible = {
|
|
4639
|
+
has_country_flag = enable_export_grain_dip_action_flag
|
|
4640
|
+
owns = 362
|
|
4641
|
+
owns = 363
|
|
4642
|
+
owns = 2316
|
|
4643
|
+
owns = 4316
|
|
4644
|
+
}
|
|
4645
|
+
is_allowed = {
|
|
4646
|
+
if = {
|
|
4647
|
+
limit = {
|
|
4648
|
+
NOT = {
|
|
4649
|
+
OR = {
|
|
4650
|
+
alliance_with = FROM
|
|
4651
|
+
FROM = { is_subject_of = ROOT }
|
|
4652
|
+
}
|
|
4653
|
+
}
|
|
4654
|
+
}
|
|
4655
|
+
custom_trigger_tooltip = {
|
|
4656
|
+
tooltip = REQUIRES_ALLIANCE_OR_SUBJECT_TT
|
|
4657
|
+
OR = {
|
|
4658
|
+
alliance_with = FROM
|
|
4659
|
+
FROM = { is_subject_of = ROOT }
|
|
4660
|
+
}
|
|
4661
|
+
}
|
|
4662
|
+
}
|
|
4663
|
+
if = {
|
|
4664
|
+
limit = {
|
|
4665
|
+
FROM = { has_ruler_flag = trading_grain_exports_flag }
|
|
4666
|
+
}
|
|
4667
|
+
custom_trigger_tooltip = {
|
|
4668
|
+
tooltip = is_already_trading_grain_tt
|
|
4669
|
+
FROM = {
|
|
4670
|
+
NOT = { has_ruler_flag = trading_grain_exports_flag }
|
|
4671
|
+
}
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
if = {
|
|
4675
|
+
limit = {
|
|
4676
|
+
NOT = {
|
|
4677
|
+
any_owned_province = {
|
|
4678
|
+
province_distance = {
|
|
4679
|
+
who = FROM
|
|
4680
|
+
distance = 150
|
|
4681
|
+
}
|
|
4682
|
+
}
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
custom_trigger_tooltip = {
|
|
4686
|
+
tooltip = must_be_within_distance_tt
|
|
4687
|
+
any_owned_province = {
|
|
4688
|
+
province_distance = {
|
|
4689
|
+
who = FROM
|
|
4690
|
+
distance = 150
|
|
4691
|
+
}
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4694
|
+
}
|
|
4695
|
+
if = {
|
|
4696
|
+
limit = {
|
|
4697
|
+
calc_true_if = {
|
|
4698
|
+
all_country = {
|
|
4699
|
+
has_ruler_flag = trading_grain_exports_flag
|
|
4700
|
+
}
|
|
4701
|
+
amount = 4
|
|
4702
|
+
}
|
|
4703
|
+
NOT = { has_country_flag = increase_exports_to_6_flag }
|
|
4704
|
+
}
|
|
4705
|
+
custom_trigger_tooltip = {
|
|
4706
|
+
tooltip = mam_no_more_than_4_trades_tt
|
|
4707
|
+
NOT = {
|
|
4708
|
+
calc_true_if = {
|
|
4709
|
+
all_country = {
|
|
4710
|
+
has_ruler_flag = trading_grain_exports_flag
|
|
4711
|
+
}
|
|
4712
|
+
amount = 4
|
|
4713
|
+
}
|
|
4714
|
+
}
|
|
4715
|
+
}
|
|
4716
|
+
}
|
|
4717
|
+
else = {
|
|
4718
|
+
custom_trigger_tooltip = {
|
|
4719
|
+
tooltip = mam_no_more_than_6_trades_tt
|
|
4720
|
+
NOT = {
|
|
4721
|
+
calc_true_if = {
|
|
4722
|
+
all_country = {
|
|
4723
|
+
has_ruler_flag = trading_grain_exports_flag
|
|
4724
|
+
}
|
|
4725
|
+
amount = 6
|
|
4726
|
+
}
|
|
4727
|
+
}
|
|
4728
|
+
}
|
|
4729
|
+
}
|
|
4730
|
+
if = {
|
|
4731
|
+
limit = {
|
|
4732
|
+
NOT = { adm_power = 50 }
|
|
4733
|
+
}
|
|
4734
|
+
custom_trigger_tooltip = {
|
|
4735
|
+
tooltip = NOT_ENOUGH_RESOURCES
|
|
4736
|
+
adm_power = 50
|
|
4737
|
+
}
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
on_accept = {
|
|
4741
|
+
FROM = {
|
|
4742
|
+
set_ruler_flag = trading_grain_exports_flag
|
|
4743
|
+
add_ruler_modifier = {
|
|
4744
|
+
name = grain_trade_imports_modifier
|
|
4745
|
+
duration = -1
|
|
4746
|
+
}
|
|
4747
|
+
add_opinion = {
|
|
4748
|
+
who = ROOT
|
|
4749
|
+
modifier = engaged_in_grain_trade_modifier
|
|
4750
|
+
}
|
|
4751
|
+
}
|
|
4752
|
+
if = {
|
|
4753
|
+
limit = {
|
|
4754
|
+
NOT = { has_country_flag = exported_grain_in_europe }
|
|
4755
|
+
FROM = {
|
|
4756
|
+
capital_scope = {
|
|
4757
|
+
continent = europe
|
|
4758
|
+
}
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
set_country_flag = exported_grain_in_europe
|
|
4762
|
+
}
|
|
4763
|
+
if = {
|
|
4764
|
+
limit = {
|
|
4765
|
+
NOT = { has_country_flag = exported_grain_in_oceania }
|
|
4766
|
+
FROM = {
|
|
4767
|
+
capital_scope = {
|
|
4768
|
+
continent = oceania
|
|
4769
|
+
}
|
|
4770
|
+
}
|
|
4771
|
+
}
|
|
4772
|
+
set_country_flag = exported_grain_in_oceania
|
|
4773
|
+
}
|
|
4774
|
+
if = {
|
|
4775
|
+
limit = {
|
|
4776
|
+
NOT = { has_country_flag = exported_grain_in_north_america }
|
|
4777
|
+
FROM = {
|
|
4778
|
+
capital_scope = {
|
|
4779
|
+
continent = north_america
|
|
4780
|
+
}
|
|
4781
|
+
}
|
|
4782
|
+
|
|
4783
|
+
}
|
|
4784
|
+
set_country_flag = exported_grain_in_north_america
|
|
4785
|
+
}
|
|
4786
|
+
if = {
|
|
4787
|
+
limit = {
|
|
4788
|
+
NOT = { has_country_flag = exported_grain_in_south_america }
|
|
4789
|
+
FROM = {
|
|
4790
|
+
capital_scope = {
|
|
4791
|
+
continent = south_america
|
|
4792
|
+
}
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
}
|
|
4796
|
+
set_country_flag = exported_grain_in_south_america
|
|
4797
|
+
}
|
|
4798
|
+
if = {
|
|
4799
|
+
limit = {
|
|
4800
|
+
NOT = { has_country_flag = exported_grain_in_africa }
|
|
4801
|
+
FROM = {
|
|
4802
|
+
capital_scope = {
|
|
4803
|
+
continent = africa
|
|
4804
|
+
}
|
|
4805
|
+
}
|
|
4806
|
+
}
|
|
4807
|
+
set_country_flag = exported_grain_in_africa
|
|
4808
|
+
}
|
|
4809
|
+
if = {
|
|
4810
|
+
limit = {
|
|
4811
|
+
NOT = { has_country_flag = exported_grain_in_asia }
|
|
4812
|
+
FROM = {
|
|
4813
|
+
capital_scope = {
|
|
4814
|
+
continent = asia
|
|
4815
|
+
}
|
|
4816
|
+
}
|
|
4817
|
+
}
|
|
4818
|
+
set_country_flag = exported_grain_in_asia
|
|
4819
|
+
}
|
|
4820
|
+
add_adm_power = -50
|
|
4821
|
+
add_mercantilism = 2
|
|
4822
|
+
}
|
|
4823
|
+
on_decline = {
|
|
4824
|
+
add_prestige_or_monarch_power = { amount = -10 }
|
|
4825
|
+
FROM = {
|
|
4826
|
+
add_country_modifier = {
|
|
4827
|
+
name = just_asked_to_convert_timer
|
|
4828
|
+
duration = 18250
|
|
4829
|
+
}
|
|
4830
|
+
}
|
|
4831
|
+
}
|
|
4832
|
+
|
|
4833
|
+
ai_will_do = { # this is a trigger
|
|
4834
|
+
NOT = {
|
|
4835
|
+
FROM = {
|
|
4836
|
+
has_country_modifier = just_asked_to_convert_timer
|
|
4837
|
+
}
|
|
4838
|
+
}
|
|
4839
|
+
OR = {
|
|
4840
|
+
ai_attitude = {
|
|
4841
|
+
who = FROM
|
|
4842
|
+
attitude = attitude_friendly
|
|
4843
|
+
}
|
|
4844
|
+
ai_attitude = {
|
|
4845
|
+
who = FROM
|
|
4846
|
+
attitude = attitude_loyal
|
|
4847
|
+
}
|
|
4848
|
+
ai_attitude = {
|
|
4849
|
+
who = FROM
|
|
4850
|
+
attitude = attitude_allied
|
|
4851
|
+
}
|
|
4852
|
+
ai_attitude = {
|
|
4853
|
+
who = FROM
|
|
4854
|
+
attitude = attitude_protective
|
|
4855
|
+
}
|
|
4856
|
+
}
|
|
4857
|
+
NOT = {
|
|
4858
|
+
ai_attitude = {
|
|
4859
|
+
who = FROM
|
|
4860
|
+
attitude = attitude_domineering
|
|
4861
|
+
}
|
|
4862
|
+
}
|
|
4863
|
+
NOT = {
|
|
4864
|
+
ai_attitude = {
|
|
4865
|
+
who = FROM
|
|
4866
|
+
attitude = attitude_hostile
|
|
4867
|
+
}
|
|
4868
|
+
}
|
|
4869
|
+
NOT = {
|
|
4870
|
+
ai_attitude = {
|
|
4871
|
+
who = FROM
|
|
4872
|
+
attitude = attitude_outraged
|
|
4873
|
+
}
|
|
4874
|
+
}
|
|
4875
|
+
has_opinion = {
|
|
4876
|
+
who = FROM
|
|
4877
|
+
value = 50
|
|
4878
|
+
}
|
|
4879
|
+
}
|
|
4880
|
+
|
|
4881
|
+
ai_acceptance = {
|
|
4882
|
+
add_entry = {
|
|
4883
|
+
name = DIPLO_OPPINION
|
|
4884
|
+
export_to_variable = {
|
|
4885
|
+
variable_name = ai_value
|
|
4886
|
+
value = opinion
|
|
4887
|
+
who = FROM
|
|
4888
|
+
with = ROOT
|
|
4889
|
+
}
|
|
4890
|
+
multiply_variable = {
|
|
4891
|
+
which = ai_value
|
|
4892
|
+
value = 0.125
|
|
4893
|
+
}
|
|
4894
|
+
}
|
|
4895
|
+
add_entry = {
|
|
4896
|
+
name = AI_TRUST_TOWARDS_ROOT
|
|
4897
|
+
export_to_variable = {
|
|
4898
|
+
variable_name = ai_value
|
|
4899
|
+
value = trust
|
|
4900
|
+
who = FROM
|
|
4901
|
+
with = ROOT
|
|
4902
|
+
}
|
|
4903
|
+
subtract_variable = {
|
|
4904
|
+
which = ai_value
|
|
4905
|
+
value = 50
|
|
4906
|
+
}
|
|
4907
|
+
#1 trust = +4 ai points
|
|
4908
|
+
multiply_variable = {
|
|
4909
|
+
which = ai_value
|
|
4910
|
+
value = 0.4
|
|
4911
|
+
}
|
|
4912
|
+
}
|
|
4913
|
+
add_entry = {
|
|
4914
|
+
name = AI_DIPLOMATIC_REPUTATION
|
|
4915
|
+
export_to_variable = {
|
|
4916
|
+
variable_name = ai_value
|
|
4917
|
+
value = trigger_value:diplomatic_reputation
|
|
4918
|
+
}
|
|
4919
|
+
#1 rep = 3
|
|
4920
|
+
multiply_variable = {
|
|
4921
|
+
which = ai_value
|
|
4922
|
+
value = 3
|
|
4923
|
+
}
|
|
4924
|
+
}
|
|
4925
|
+
add_entry = {
|
|
4926
|
+
name = attitude_neutral_DIPLO_ATTITUDE_TT
|
|
4927
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_neutral } } }
|
|
4928
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4929
|
+
multiply_variable = { which = ai_value value = -10 }
|
|
4930
|
+
}
|
|
4931
|
+
add_entry = {
|
|
4932
|
+
name = attitude_rivalry_DIPLO_ATTITUDE_TT
|
|
4933
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rivalry } } }
|
|
4934
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4935
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4936
|
+
}
|
|
4937
|
+
add_entry = {
|
|
4938
|
+
name = attitude_hostile_DIPLO_ATTITUDE_TT
|
|
4939
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_hostile } } }
|
|
4940
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4941
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4942
|
+
}
|
|
4943
|
+
add_entry = {
|
|
4944
|
+
name = attitude_friendly_DIPLO_ATTITUDE_TT
|
|
4945
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_friendly } } }
|
|
4946
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4947
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
4948
|
+
}
|
|
4949
|
+
add_entry = {
|
|
4950
|
+
name = attitude_threatened_DIPLO_ATTITUDE_TT
|
|
4951
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_threatened } } }
|
|
4952
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4953
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
4954
|
+
}
|
|
4955
|
+
add_entry = {
|
|
4956
|
+
name = attitude_outraged_DIPLO_ATTITUDE_TT
|
|
4957
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_outraged } } }
|
|
4958
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4959
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4960
|
+
}
|
|
4961
|
+
add_entry = {
|
|
4962
|
+
name = attitude_domineering_DIPLO_ATTITUDE_TT
|
|
4963
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_domineering } } }
|
|
4964
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
4965
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
4966
|
+
}
|
|
4967
|
+
add_entry = {
|
|
4968
|
+
name = DIPLO_BORDER_DISTANCE_TT
|
|
4969
|
+
export_to_variable = {
|
|
4970
|
+
variable_name = ai_value
|
|
4971
|
+
value = border_distance
|
|
4972
|
+
who = FROM
|
|
4973
|
+
with = ROOT
|
|
4974
|
+
}
|
|
4975
|
+
#5 units = -1
|
|
4976
|
+
multiply_variable = {
|
|
4977
|
+
which = ai_value
|
|
4978
|
+
value = -0.2
|
|
4979
|
+
}
|
|
4980
|
+
}
|
|
4981
|
+
}
|
|
4982
|
+
}
|
|
4983
|
+
|
|
4984
|
+
mam_sponsor_hajj = {
|
|
4985
|
+
category = influence
|
|
4986
|
+
require_acceptance = yes
|
|
4987
|
+
|
|
4988
|
+
alert_index = 64
|
|
4989
|
+
alert_tooltip = sponsor_hajj_alert_tooltip
|
|
4990
|
+
|
|
4991
|
+
is_visible = {
|
|
4992
|
+
has_country_flag = sponsor_hajj_dip_action_flag
|
|
4993
|
+
384 = {
|
|
4994
|
+
country_or_non_sovereign_subject_holds = ROOT
|
|
4995
|
+
}
|
|
4996
|
+
385 = {
|
|
4997
|
+
country_or_non_sovereign_subject_holds = ROOT
|
|
4998
|
+
}
|
|
4999
|
+
is_subject = no
|
|
5000
|
+
}
|
|
5001
|
+
is_allowed = {
|
|
5002
|
+
if = {
|
|
5003
|
+
limit = {
|
|
5004
|
+
NOT = {
|
|
5005
|
+
religion_group = muslim
|
|
5006
|
+
}
|
|
5007
|
+
}
|
|
5008
|
+
custom_trigger_tooltip = {
|
|
5009
|
+
tooltip = REQUIRES_ROOT_BEING_MUSLIM_TT
|
|
5010
|
+
religion_group = muslim
|
|
5011
|
+
}
|
|
5012
|
+
}
|
|
5013
|
+
if = {
|
|
5014
|
+
limit = {
|
|
5015
|
+
NOT = {
|
|
5016
|
+
FROM = { religion_group = muslim }
|
|
5017
|
+
}
|
|
5018
|
+
}
|
|
5019
|
+
custom_trigger_tooltip = {
|
|
5020
|
+
tooltip = REQUIRES_FROM_BEING_MUSLIM_TT
|
|
5021
|
+
FROM = { religion_group = muslim }
|
|
5022
|
+
}
|
|
5023
|
+
}
|
|
5024
|
+
if = {
|
|
5025
|
+
limit = {
|
|
5026
|
+
FROM = { has_ruler_flag = performed_hajj_already_flag }
|
|
5027
|
+
}
|
|
5028
|
+
custom_trigger_tooltip = {
|
|
5029
|
+
tooltip = from_has_performed_hajj_already_tt
|
|
5030
|
+
FROM = {
|
|
5031
|
+
NOT = { has_ruler_flag = performed_hajj_already_flag }
|
|
5032
|
+
}
|
|
5033
|
+
}
|
|
5034
|
+
}
|
|
5035
|
+
if = {
|
|
5036
|
+
limit = { war_with = FROM }
|
|
5037
|
+
custom_trigger_tooltip = {
|
|
5038
|
+
tooltip = WAR_WITH_FROM_TT
|
|
5039
|
+
NOT = { war_with = FROM }
|
|
5040
|
+
}
|
|
5041
|
+
}
|
|
5042
|
+
if = {
|
|
5043
|
+
limit = {
|
|
5044
|
+
OR = {
|
|
5045
|
+
is_rival = FROM
|
|
5046
|
+
is_enemy = FROM
|
|
5047
|
+
}
|
|
5048
|
+
}
|
|
5049
|
+
custom_trigger_tooltip = {
|
|
5050
|
+
tooltip = NOT_RIVAL_OR_ENEMY_TT
|
|
5051
|
+
NOT = {
|
|
5052
|
+
is_rival = FROM
|
|
5053
|
+
is_enemy = FROM
|
|
5054
|
+
}
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
if = {
|
|
5058
|
+
limit = {
|
|
5059
|
+
calc_true_if = {
|
|
5060
|
+
all_country = {
|
|
5061
|
+
has_ruler_flag = performed_hajj_already_flag
|
|
5062
|
+
}
|
|
5063
|
+
amount = 4
|
|
5064
|
+
}
|
|
5065
|
+
}
|
|
5066
|
+
custom_trigger_tooltip = {
|
|
5067
|
+
tooltip = mam_no_more_than_4_hajj_tt
|
|
5068
|
+
NOT = {
|
|
5069
|
+
calc_true_if = {
|
|
5070
|
+
all_country = {
|
|
5071
|
+
has_ruler_flag = performed_hajj_already_flag
|
|
5072
|
+
}
|
|
5073
|
+
amount = 4
|
|
5074
|
+
}
|
|
5075
|
+
}
|
|
5076
|
+
}
|
|
5077
|
+
}
|
|
5078
|
+
if = {
|
|
5079
|
+
limit = {
|
|
5080
|
+
NOT = { treasury = 200 }
|
|
5081
|
+
}
|
|
5082
|
+
custom_trigger_tooltip = {
|
|
5083
|
+
tooltip = NOT_ENOUGH_RESOURCES_TREASURY_200
|
|
5084
|
+
treasury = 200
|
|
5085
|
+
}
|
|
5086
|
+
}
|
|
5087
|
+
if = {
|
|
5088
|
+
limit = {
|
|
5089
|
+
NOT = { dip_power = 50 }
|
|
5090
|
+
}
|
|
5091
|
+
custom_trigger_tooltip = {
|
|
5092
|
+
tooltip = NOT_ENOUGH_RESOURCES_DIP_50
|
|
5093
|
+
dip_power = 50
|
|
5094
|
+
}
|
|
5095
|
+
}
|
|
5096
|
+
}
|
|
5097
|
+
on_accept = {
|
|
5098
|
+
FROM = { set_ruler_flag = performed_hajj_already_flag }
|
|
5099
|
+
if = {
|
|
5100
|
+
limit = {
|
|
5101
|
+
has_dlc = "Cradle of Civilization"
|
|
5102
|
+
}
|
|
5103
|
+
FROM = {
|
|
5104
|
+
if = {
|
|
5105
|
+
limit = {
|
|
5106
|
+
NOT = { has_religious_school_of = ROOT }
|
|
5107
|
+
NOT = {
|
|
5108
|
+
school_opinion = {
|
|
5109
|
+
who = ROOT
|
|
5110
|
+
opinion = 1
|
|
5111
|
+
}
|
|
5112
|
+
}
|
|
5113
|
+
}
|
|
5114
|
+
if = {
|
|
5115
|
+
limit = {
|
|
5116
|
+
NOT = {
|
|
5117
|
+
school_opinion = {
|
|
5118
|
+
who = ROOT
|
|
5119
|
+
opinion = 0
|
|
5120
|
+
}
|
|
5121
|
+
}
|
|
5122
|
+
}
|
|
5123
|
+
set_school_opinion = {
|
|
5124
|
+
who = ROOT
|
|
5125
|
+
opinion = 0
|
|
5126
|
+
}
|
|
5127
|
+
}
|
|
5128
|
+
else = {
|
|
5129
|
+
set_school_opinion = {
|
|
5130
|
+
who = ROOT
|
|
5131
|
+
opinion = 1
|
|
5132
|
+
}
|
|
5133
|
+
}
|
|
5134
|
+
}
|
|
5135
|
+
if = {
|
|
5136
|
+
limit = {
|
|
5137
|
+
piety = 0
|
|
5138
|
+
}
|
|
5139
|
+
add_piety = 0.25
|
|
5140
|
+
}
|
|
5141
|
+
else = { add_piety = -0.25 }
|
|
5142
|
+
}
|
|
5143
|
+
}
|
|
5144
|
+
FROM = {
|
|
5145
|
+
add_legitimacy = 10
|
|
5146
|
+
add_devotion = 10
|
|
5147
|
+
add_opinion = {
|
|
5148
|
+
who = ROOT
|
|
5149
|
+
modifier = performed_hajj_modifier
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
add_trust = {
|
|
5153
|
+
who = FROM
|
|
5154
|
+
value = 10
|
|
5155
|
+
mutual = yes
|
|
5156
|
+
}
|
|
5157
|
+
add_estate_loyalty = {
|
|
5158
|
+
estate = estate_church
|
|
5159
|
+
loyalty = 20
|
|
5160
|
+
}
|
|
5161
|
+
add_dip_power = -50
|
|
5162
|
+
add_treasury = -200
|
|
5163
|
+
}
|
|
5164
|
+
on_decline = {
|
|
5165
|
+
FROM = {
|
|
5166
|
+
add_country_modifier = {
|
|
5167
|
+
name = just_asked_to_convert_timer
|
|
5168
|
+
duration = 18250
|
|
5169
|
+
}
|
|
5170
|
+
}
|
|
5171
|
+
}
|
|
5172
|
+
|
|
5173
|
+
ai_will_do = { # this is a trigger
|
|
5174
|
+
NOT = {
|
|
5175
|
+
FROM = {
|
|
5176
|
+
has_country_modifier = just_asked_to_convert_timer
|
|
5177
|
+
}
|
|
5178
|
+
}
|
|
5179
|
+
OR = {
|
|
5180
|
+
ai_attitude = {
|
|
5181
|
+
who = FROM
|
|
5182
|
+
attitude = attitude_friendly
|
|
5183
|
+
}
|
|
5184
|
+
ai_attitude = {
|
|
5185
|
+
who = FROM
|
|
5186
|
+
attitude = attitude_loyal
|
|
5187
|
+
}
|
|
5188
|
+
ai_attitude = {
|
|
5189
|
+
who = FROM
|
|
5190
|
+
attitude = attitude_allied
|
|
5191
|
+
}
|
|
5192
|
+
ai_attitude = {
|
|
5193
|
+
who = FROM
|
|
5194
|
+
attitude = attitude_protective
|
|
5195
|
+
}
|
|
5196
|
+
}
|
|
5197
|
+
NOT = {
|
|
5198
|
+
ai_attitude = {
|
|
5199
|
+
who = FROM
|
|
5200
|
+
attitude = attitude_domineering
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
NOT = {
|
|
5204
|
+
ai_attitude = {
|
|
5205
|
+
who = FROM
|
|
5206
|
+
attitude = attitude_hostile
|
|
5207
|
+
}
|
|
5208
|
+
}
|
|
5209
|
+
NOT = {
|
|
5210
|
+
ai_attitude = {
|
|
5211
|
+
who = FROM
|
|
5212
|
+
attitude = attitude_outraged
|
|
5213
|
+
}
|
|
5214
|
+
}
|
|
5215
|
+
has_opinion = {
|
|
5216
|
+
who = FROM
|
|
5217
|
+
value = 50
|
|
5218
|
+
}
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
ai_acceptance = {
|
|
5222
|
+
add_entry = {
|
|
5223
|
+
name = DIPLO_OPPINION
|
|
5224
|
+
export_to_variable = {
|
|
5225
|
+
variable_name = ai_value
|
|
5226
|
+
value = opinion
|
|
5227
|
+
who = FROM
|
|
5228
|
+
with = ROOT
|
|
5229
|
+
}
|
|
5230
|
+
multiply_variable = {
|
|
5231
|
+
which = ai_value
|
|
5232
|
+
value = 0.125
|
|
5233
|
+
}
|
|
5234
|
+
}
|
|
5235
|
+
add_entry = {
|
|
5236
|
+
name = AI_TRUST_TOWARDS_ROOT
|
|
5237
|
+
export_to_variable = {
|
|
5238
|
+
variable_name = ai_value
|
|
5239
|
+
value = trust
|
|
5240
|
+
who = FROM
|
|
5241
|
+
with = ROOT
|
|
5242
|
+
}
|
|
5243
|
+
subtract_variable = {
|
|
5244
|
+
which = ai_value
|
|
5245
|
+
value = 50
|
|
5246
|
+
}
|
|
5247
|
+
#1 trust = +4 ai points
|
|
5248
|
+
multiply_variable = {
|
|
5249
|
+
which = ai_value
|
|
5250
|
+
value = 0.4
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5253
|
+
add_entry = {
|
|
5254
|
+
name = AI_DIPLOMATIC_REPUTATION
|
|
5255
|
+
export_to_variable = {
|
|
5256
|
+
variable_name = ai_value
|
|
5257
|
+
value = trigger_value:diplomatic_reputation
|
|
5258
|
+
}
|
|
5259
|
+
#1 rep = 3
|
|
5260
|
+
multiply_variable = {
|
|
5261
|
+
which = ai_value
|
|
5262
|
+
value = 3
|
|
5263
|
+
}
|
|
5264
|
+
}
|
|
5265
|
+
add_entry = {
|
|
5266
|
+
name = attitude_neutral_DIPLO_ATTITUDE_TT
|
|
5267
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_neutral } } }
|
|
5268
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5269
|
+
multiply_variable = { which = ai_value value = -10 }
|
|
5270
|
+
}
|
|
5271
|
+
add_entry = {
|
|
5272
|
+
name = attitude_rivalry_DIPLO_ATTITUDE_TT
|
|
5273
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rivalry } } }
|
|
5274
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5275
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5276
|
+
}
|
|
5277
|
+
add_entry = {
|
|
5278
|
+
name = attitude_hostile_DIPLO_ATTITUDE_TT
|
|
5279
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_hostile } } }
|
|
5280
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5281
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5282
|
+
}
|
|
5283
|
+
add_entry = {
|
|
5284
|
+
name = attitude_friendly_DIPLO_ATTITUDE_TT
|
|
5285
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_friendly } } }
|
|
5286
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5287
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
5288
|
+
}
|
|
5289
|
+
add_entry = {
|
|
5290
|
+
name = attitude_threatened_DIPLO_ATTITUDE_TT
|
|
5291
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_threatened } } }
|
|
5292
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5293
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
5294
|
+
}
|
|
5295
|
+
add_entry = {
|
|
5296
|
+
name = attitude_outraged_DIPLO_ATTITUDE_TT
|
|
5297
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_outraged } } }
|
|
5298
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5299
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5300
|
+
}
|
|
5301
|
+
add_entry = {
|
|
5302
|
+
name = attitude_domineering_DIPLO_ATTITUDE_TT
|
|
5303
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_domineering } } }
|
|
5304
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5305
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5306
|
+
}
|
|
5307
|
+
add_entry = {
|
|
5308
|
+
name = DIPLO_BORDER_DISTANCE_TT
|
|
5309
|
+
export_to_variable = {
|
|
5310
|
+
variable_name = ai_value
|
|
5311
|
+
value = border_distance
|
|
5312
|
+
who = FROM
|
|
5313
|
+
with = ROOT
|
|
5314
|
+
}
|
|
5315
|
+
#5 units = -1
|
|
5316
|
+
multiply_variable = {
|
|
5317
|
+
which = ai_value
|
|
5318
|
+
value = -0.2
|
|
5319
|
+
}
|
|
5320
|
+
}
|
|
5321
|
+
}
|
|
2659
5322
|
}
|