|
@@ -2157,11 +2157,11 @@ request_access_to_modern_ideas = {
|
|
|
2157
2157
|
is_allowed = {
|
|
2158
2158
|
if = {
|
|
2159
2159
|
limit = {
|
|
2160
|
-
FROM = { NOT = { tech_difference =
|
|
2160
|
+
FROM = { NOT = { tech_difference = 1 } }
|
|
2161
2161
|
}
|
|
2162
2162
|
custom_trigger_tooltip = {
|
|
2163
2163
|
tooltip = FROM_HAS_LESS_THAN_ROOT_TECHNOLOGY
|
|
2164
|
-
FROM = { tech_difference =
|
|
2164
|
+
FROM = { tech_difference = 1 }
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
2167
|
if = {
|
|
@@ -2184,13 +2184,9 @@ request_access_to_modern_ideas = {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
2186
|
on_accept = {
|
|
2187
|
-
if = {
|
|
2188
|
-
limit = { FROM = { tech_difference = 0 } }
|
|
2189
|
-
add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 2.0 }
|
|
2190
|
-
}
|
|
2191
2187
|
if = {
|
|
2192
2188
|
limit = { FROM = { tech_difference = 1 } }
|
|
2193
|
-
add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 0
|
|
2189
|
+
add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 2.0 }
|
|
2194
2190
|
}
|
|
2195
2191
|
if = {
|
|
2196
2192
|
limit = { FROM = { tech_difference = 2 } }
|
|
@@ -2212,6 +2208,10 @@ request_access_to_modern_ideas = {
|
|
|
2212
2208
|
limit = { FROM = { tech_difference = 6 } }
|
|
2213
2209
|
add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 0.5 }
|
|
2214
2210
|
}
|
|
2211
|
+
if = {
|
|
2212
|
+
limit = { FROM = { tech_difference = 7 } }
|
|
2213
|
+
add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 0.5 }
|
|
2214
|
+
}
|
|
2215
2215
|
FROM = {
|
|
2216
2216
|
country_event = {
|
|
2217
2217
|
id = flavor_rus.294
|
|
@@ -2458,11 +2458,11 @@ share_modern_ideas = {
|
|
|
2458
2458
|
is_allowed = {
|
|
2459
2459
|
if = {
|
|
2460
2460
|
limit = {
|
|
2461
|
-
FROM = {
|
|
2461
|
+
FROM = { tech_difference = 1 }
|
|
2462
2462
|
}
|
|
2463
2463
|
custom_trigger_tooltip = {
|
|
2464
2464
|
tooltip = ROOT_HAS_LESS_THAN_ROOT_TECHNOLOGY
|
|
2465
|
-
FROM = {
|
|
2465
|
+
FROM = { NOT = { tech_difference = 1 } }
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
2468
|
if = {
|
|
@@ -2474,13 +2474,9 @@ share_modern_ideas = {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
2476
|
on_accept = {
|
|
2477
|
-
if = {
|
|
2478
|
-
limit = { FROM = { ROOT = { tech_difference = 0 } } }
|
|
2479
|
-
FROM = { add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 2.0 } }
|
|
2480
|
-
}
|
|
2481
2477
|
if = {
|
|
2482
2478
|
limit = { FROM = { ROOT = { tech_difference = 1 } } }
|
|
2483
|
-
FROM = { add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 0
|
|
2479
|
+
FROM = { add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 2.0 } }
|
|
2484
2480
|
}
|
|
2485
2481
|
if = {
|
|
2486
2482
|
limit = { FROM = { ROOT = { tech_difference = 2 } } }
|
|
@@ -2502,6 +2498,10 @@ share_modern_ideas = {
|
|
|
2502
2498
|
limit = { FROM = { ROOT = { tech_difference = 6 } } }
|
|
2503
2499
|
FROM = { add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 0.5 } }
|
|
2504
2500
|
}
|
|
2501
|
+
if = {
|
|
2502
|
+
limit = { FROM = { ROOT = { tech_difference = 7 } } }
|
|
2503
|
+
FROM = { add_government_power = { mechanic_type = russian_modernization_mechanic power_type = russian_modernization value = 0.5 } }
|
|
2504
|
+
}
|
|
2505
2505
|
FROM = {
|
|
2506
2506
|
country_event = {
|
|
2507
2507
|
id = flavor_rus.297
|
|
@@ -2588,6 +2588,18 @@ share_modern_ideas = {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
|
|
2590
2590
|
ai_acceptance = {
|
|
2591
|
+
add_entry = {
|
|
2592
|
+
name = all_nations #"Base", using this loc key
|
|
2593
|
+
limit = { always = yes }
|
|
2594
|
+
export_to_variable = {
|
|
2595
|
+
variable_name = ai_value
|
|
2596
|
+
value = 1
|
|
2597
|
+
}
|
|
2598
|
+
multiply_variable = {
|
|
2599
|
+
which = ai_value
|
|
2600
|
+
value = 25
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2591
2603
|
add_entry = {
|
|
2592
2604
|
name = HAS_DEFICIT
|
|
2593
2605
|
limit = {
|
|
@@ -5093,6 +5105,13 @@ mam_sponsor_hajj = {
|
|
|
5093
5105
|
dip_power = 50
|
|
5094
5106
|
}
|
|
5095
5107
|
}
|
|
5108
|
+
if = {
|
|
5109
|
+
limit = { war_with = FROM }
|
|
5110
|
+
custom_trigger_tooltip = {
|
|
5111
|
+
tooltip = sell_indulgence_war
|
|
5112
|
+
NOT = { war_with = FROM }
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5096
5115
|
}
|
|
5097
5116
|
on_accept = {
|
|
5098
5117
|
FROM = { set_ruler_flag = performed_hajj_already_flag }
|
|
@@ -5319,4 +5338,861 @@ mam_sponsor_hajj = {
|
|
|
5319
5338
|
}
|
|
5320
5339
|
}
|
|
5321
5340
|
}
|
|
5341
|
+
}
|
|
5342
|
+
|
|
5343
|
+
incorporate_vassal = {
|
|
5344
|
+
category = influence
|
|
5345
|
+
|
|
5346
|
+
alert_index = 17 #doesn't matter. it is forced onto the subject
|
|
5347
|
+
alert_tooltip = sell_indulgence_alert_tooltip #doesn't matter. it is forced onto the subject
|
|
5348
|
+
|
|
5349
|
+
require_acceptance = no
|
|
5350
|
+
|
|
5351
|
+
is_visible = {
|
|
5352
|
+
can_have_incorporated_vassals = yes
|
|
5353
|
+
FROM = {
|
|
5354
|
+
is_subject_of = ROOT
|
|
5355
|
+
is_subject_of_type = vassal
|
|
5356
|
+
}
|
|
5357
|
+
}
|
|
5358
|
+
is_allowed = {
|
|
5359
|
+
|
|
5360
|
+
}
|
|
5361
|
+
on_accept = {
|
|
5362
|
+
create_subject = {
|
|
5363
|
+
subject_type = incorporated_vassal
|
|
5364
|
+
subject = FROM
|
|
5365
|
+
keep_liberty_desire = yes
|
|
5366
|
+
}
|
|
5367
|
+
}
|
|
5368
|
+
|
|
5369
|
+
ai_will_do = {
|
|
5370
|
+
always = yes
|
|
5371
|
+
}
|
|
5372
|
+
}
|
|
5373
|
+
|
|
5374
|
+
recruit_foreign_general = {
|
|
5375
|
+
category = relation
|
|
5376
|
+
|
|
5377
|
+
alert_index = 56
|
|
5378
|
+
alert_tooltip = recruit_foreign_general_alert_tooltip
|
|
5379
|
+
|
|
5380
|
+
require_acceptance = yes # Whether the recipient gets an option to decline
|
|
5381
|
+
|
|
5382
|
+
is_visible = {
|
|
5383
|
+
has_government_attribute = enables_recruit_foreign_generals
|
|
5384
|
+
}
|
|
5385
|
+
is_allowed = {
|
|
5386
|
+
years_of_income = 1
|
|
5387
|
+
if = {
|
|
5388
|
+
limit = {
|
|
5389
|
+
FROM = {
|
|
5390
|
+
OR = {
|
|
5391
|
+
NOT = { is_subject_of = ROOT }
|
|
5392
|
+
NOT = { alliance_with = ROOT }
|
|
5393
|
+
}
|
|
5394
|
+
}
|
|
5395
|
+
}
|
|
5396
|
+
custom_trigger_tooltip = {
|
|
5397
|
+
tooltip = FROM_IS_SUBJECT_OR_ALLY_TT
|
|
5398
|
+
FROM = {
|
|
5399
|
+
OR = {
|
|
5400
|
+
is_subject_of = ROOT
|
|
5401
|
+
alliance_with = ROOT
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
5404
|
+
}
|
|
5405
|
+
}
|
|
5406
|
+
if = {
|
|
5407
|
+
limit = {
|
|
5408
|
+
FROM = {
|
|
5409
|
+
NOT = { army_tradition = 10 }
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
custom_trigger_tooltip = {
|
|
5413
|
+
tooltip = FROM_10_AT_TT
|
|
5414
|
+
FROM = {
|
|
5415
|
+
army_tradition = 10
|
|
5416
|
+
}
|
|
5417
|
+
}
|
|
5418
|
+
}
|
|
5419
|
+
if = {
|
|
5420
|
+
limit = {
|
|
5421
|
+
ROOT = {
|
|
5422
|
+
has_country_flag = feo_recruit_general_cooldown
|
|
5423
|
+
NOT = {
|
|
5424
|
+
had_country_flag = {
|
|
5425
|
+
flag = feo_recruit_general_cooldown
|
|
5426
|
+
days = 3650
|
|
5427
|
+
}
|
|
5428
|
+
}
|
|
5429
|
+
}
|
|
5430
|
+
}
|
|
5431
|
+
custom_trigger_tooltip = {
|
|
5432
|
+
tooltip = ROOT_10_YEAR_CD_TT
|
|
5433
|
+
ROOT = {
|
|
5434
|
+
had_country_flag = {
|
|
5435
|
+
flag = feo_recruit_general_cooldown
|
|
5436
|
+
days = 3650
|
|
5437
|
+
}
|
|
5438
|
+
}
|
|
5439
|
+
}
|
|
5440
|
+
}
|
|
5441
|
+
}
|
|
5442
|
+
on_accept = {
|
|
5443
|
+
clr_country_flag = feo_recruit_general_cooldown
|
|
5444
|
+
set_country_flag = feo_recruit_general_cooldown
|
|
5445
|
+
#add all variables, then determine the general
|
|
5446
|
+
FROM = {
|
|
5447
|
+
add_army_tradition = -10
|
|
5448
|
+
}
|
|
5449
|
+
add_army_tradition = 10
|
|
5450
|
+
hidden_effect = { #Pays the Money
|
|
5451
|
+
set_variable = {
|
|
5452
|
+
which = MoneyToPay
|
|
5453
|
+
value = years_of_income
|
|
5454
|
+
}
|
|
5455
|
+
while = {
|
|
5456
|
+
limit = {
|
|
5457
|
+
check_variable = {
|
|
5458
|
+
which = MoneyToPay
|
|
5459
|
+
value = 1
|
|
5460
|
+
}
|
|
5461
|
+
}
|
|
5462
|
+
FROM = {
|
|
5463
|
+
add_treasury = 1
|
|
5464
|
+
}
|
|
5465
|
+
add_treasury = -1
|
|
5466
|
+
subtract_variable = {
|
|
5467
|
+
which = MoneyToPay
|
|
5468
|
+
value = -1
|
|
5469
|
+
}
|
|
5470
|
+
}
|
|
5471
|
+
}
|
|
5472
|
+
if = {
|
|
5473
|
+
limit = {
|
|
5474
|
+
mission_completed = feo_gavras_triumphant
|
|
5475
|
+
}
|
|
5476
|
+
define_advisor = {
|
|
5477
|
+
type = commandant
|
|
5478
|
+
religion = FROM
|
|
5479
|
+
culture = FROM
|
|
5480
|
+
cost_multiplier = 0.75
|
|
5481
|
+
}
|
|
5482
|
+
}
|
|
5483
|
+
#Final Army Tradition = ArmyTradtionOfFROM * (OpinionOfFROM / 200)
|
|
5484
|
+
#Example:
|
|
5485
|
+
#Final Army Tradition = 75 * (150 / 200)
|
|
5486
|
+
#Final Army Tradition = 75 * 0.75
|
|
5487
|
+
#Final Army Tradition = 56
|
|
5488
|
+
#In the feo_create_general_diplomatic_action_effect scripted effect, this would mean it generates a general of 50 Army Tradition
|
|
5489
|
+
export_to_variable = {
|
|
5490
|
+
which = ArmyTradtionOfFROM
|
|
5491
|
+
value = army_tradition
|
|
5492
|
+
who = FROM
|
|
5493
|
+
}
|
|
5494
|
+
export_to_variable = {
|
|
5495
|
+
which = OpinionOfFROM
|
|
5496
|
+
value = opinion
|
|
5497
|
+
who = FROM
|
|
5498
|
+
}
|
|
5499
|
+
divide_variable = {
|
|
5500
|
+
which = OpinionOfFROM
|
|
5501
|
+
value = 200
|
|
5502
|
+
}
|
|
5503
|
+
multiply_variable = {
|
|
5504
|
+
which = ArmyTradtionOfFROM
|
|
5505
|
+
value = OpinionOfFROM
|
|
5506
|
+
}
|
|
5507
|
+
feo_create_general_diplomatic_action_effect = yes
|
|
5508
|
+
}
|
|
5509
|
+
on_decline = {
|
|
5510
|
+
}
|
|
5511
|
+
|
|
5512
|
+
ai_acceptance = { # This works similarly to variable_arithmetic_trigger, but does not support triggers generally. Instead, "limit" will be evaluated first and the rest ignored if it isn't passed.
|
|
5513
|
+
add_entry = {
|
|
5514
|
+
name = TRUST
|
|
5515
|
+
export_to_variable = {
|
|
5516
|
+
variable_name = ai_value
|
|
5517
|
+
value = trust
|
|
5518
|
+
who = FROM
|
|
5519
|
+
with = ROOT
|
|
5520
|
+
}
|
|
5521
|
+
subtract_variable = {
|
|
5522
|
+
which = ai_value
|
|
5523
|
+
value = 50
|
|
5524
|
+
}
|
|
5525
|
+
#1 trust = +3 ai points
|
|
5526
|
+
multiply_variable = {
|
|
5527
|
+
which = ai_value
|
|
5528
|
+
value = 0.3
|
|
5529
|
+
}
|
|
5530
|
+
}
|
|
5531
|
+
add_entry = {
|
|
5532
|
+
name = OPINION
|
|
5533
|
+
export_to_variable = {
|
|
5534
|
+
variable_name = ai_value
|
|
5535
|
+
value = opinion
|
|
5536
|
+
who = FROM
|
|
5537
|
+
with = ROOT
|
|
5538
|
+
}
|
|
5539
|
+
multiply_variable = {
|
|
5540
|
+
which = ai_value
|
|
5541
|
+
value = 0.2
|
|
5542
|
+
}
|
|
5543
|
+
}
|
|
5544
|
+
add_entry = {
|
|
5545
|
+
name = DIPLO_IS_RIVAL
|
|
5546
|
+
limit = {
|
|
5547
|
+
FROM = {
|
|
5548
|
+
ai_attitude = {
|
|
5549
|
+
who = ROOT
|
|
5550
|
+
attitude = attitude_rivalry
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5553
|
+
}
|
|
5554
|
+
export_to_variable = {
|
|
5555
|
+
variable_name = ai_value
|
|
5556
|
+
value = 1
|
|
5557
|
+
}
|
|
5558
|
+
|
|
5559
|
+
multiply_variable = {
|
|
5560
|
+
which = ai_value
|
|
5561
|
+
value = -1000
|
|
5562
|
+
}
|
|
5563
|
+
}
|
|
5564
|
+
add_entry = {
|
|
5565
|
+
name = diplomatic_reputation
|
|
5566
|
+
limit = { }
|
|
5567
|
+
export_to_variable = {
|
|
5568
|
+
variable_name = ai_value
|
|
5569
|
+
value = trigger_value:diplomatic_reputation
|
|
5570
|
+
}
|
|
5571
|
+
#1 rep = 1
|
|
5572
|
+
multiply_variable = {
|
|
5573
|
+
which = ai_value
|
|
5574
|
+
value = 1
|
|
5575
|
+
}
|
|
5576
|
+
}
|
|
5577
|
+
add_entry = {
|
|
5578
|
+
name = attitude_neutral_DIPLO_ATTITUDE_TT
|
|
5579
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_neutral } } }
|
|
5580
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5581
|
+
multiply_variable = { which = ai_value value = -5 }
|
|
5582
|
+
}
|
|
5583
|
+
add_entry = {
|
|
5584
|
+
name = attitude_rivalry_DIPLO_ATTITUDE_TT
|
|
5585
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rivalry } } }
|
|
5586
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5587
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5588
|
+
}
|
|
5589
|
+
add_entry = {
|
|
5590
|
+
name = attitude_hostile_DIPLO_ATTITUDE_TT
|
|
5591
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_hostile } } }
|
|
5592
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5593
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5594
|
+
}
|
|
5595
|
+
add_entry = {
|
|
5596
|
+
name = attitude_friendly_DIPLO_ATTITUDE_TT
|
|
5597
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_friendly } } }
|
|
5598
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5599
|
+
multiply_variable = { which = ai_value value = 10 }
|
|
5600
|
+
}
|
|
5601
|
+
add_entry = {
|
|
5602
|
+
name = attitude_threatened_DIPLO_ATTITUDE_TT
|
|
5603
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_threatened } } }
|
|
5604
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5605
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5606
|
+
}
|
|
5607
|
+
add_entry = {
|
|
5608
|
+
name = attitude_outraged_DIPLO_ATTITUDE_TT
|
|
5609
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_outraged } } }
|
|
5610
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5611
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5612
|
+
}
|
|
5613
|
+
add_entry = {
|
|
5614
|
+
name = attitude_domineering_DIPLO_ATTITUDE_TT
|
|
5615
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_domineering } } }
|
|
5616
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5617
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5618
|
+
}
|
|
5619
|
+
add_entry = {
|
|
5620
|
+
name = DIPLO_BORDER_DISTANCE_TT
|
|
5621
|
+
export_to_variable = {
|
|
5622
|
+
variable_name = ai_value
|
|
5623
|
+
value = border_distance
|
|
5624
|
+
who = FROM
|
|
5625
|
+
with = ROOT
|
|
5626
|
+
}
|
|
5627
|
+
#2 units = -1
|
|
5628
|
+
multiply_variable = {
|
|
5629
|
+
which = ai_value
|
|
5630
|
+
value = -0.1
|
|
5631
|
+
}
|
|
5632
|
+
}
|
|
5633
|
+
}
|
|
5634
|
+
|
|
5635
|
+
ai_will_do = { # this is a trigger
|
|
5636
|
+
has_opinion = {
|
|
5637
|
+
who = FROM
|
|
5638
|
+
value = 50
|
|
5639
|
+
}
|
|
5640
|
+
FROM = {
|
|
5641
|
+
NOT = { stability = 2 }
|
|
5642
|
+
}
|
|
5643
|
+
NOT = { is_rival = FROM }
|
|
5644
|
+
NOT = { is_enemy = FROM }
|
|
5645
|
+
trust = {
|
|
5646
|
+
who = FROM
|
|
5647
|
+
value = 65
|
|
5648
|
+
}
|
|
5649
|
+
}
|
|
5650
|
+
}
|
|
5651
|
+
|
|
5652
|
+
create_european_colony = {
|
|
5653
|
+
category = influence
|
|
5654
|
+
require_acceptance = no
|
|
5655
|
+
is_visible = {
|
|
5656
|
+
can_be_overlord = european_colony
|
|
5657
|
+
FROM = {
|
|
5658
|
+
is_overseas_subject = yes
|
|
5659
|
+
NOT = { is_subject_of_type = tributary_state }
|
|
5660
|
+
NOT = { is_subject_of_type = european_colony }
|
|
5661
|
+
is_subject_of = ROOT
|
|
5662
|
+
}
|
|
5663
|
+
NOT = {
|
|
5664
|
+
any_subject_country = {
|
|
5665
|
+
is_subject_of_type = european_colony
|
|
5666
|
+
capital_scope = {
|
|
5667
|
+
region_for_scope_province = {
|
|
5668
|
+
FROM = {
|
|
5669
|
+
capital_scope = {
|
|
5670
|
+
province_id = PREV_PREV
|
|
5671
|
+
}
|
|
5672
|
+
}
|
|
5673
|
+
}
|
|
5674
|
+
}
|
|
5675
|
+
}
|
|
5676
|
+
}
|
|
5677
|
+
}
|
|
5678
|
+
is_allowed = {
|
|
5679
|
+
FROM = {
|
|
5680
|
+
NOT = { liberty_desire = 50 }
|
|
5681
|
+
}
|
|
5682
|
+
}
|
|
5683
|
+
on_accept = {
|
|
5684
|
+
create_subject = {
|
|
5685
|
+
subject_type = european_colony
|
|
5686
|
+
subject = FROM
|
|
5687
|
+
}
|
|
5688
|
+
}
|
|
5689
|
+
ai_will_do = {
|
|
5690
|
+
always = no
|
|
5691
|
+
}
|
|
5692
|
+
}
|
|
5693
|
+
|
|
5694
|
+
demand_sacrifices = {
|
|
5695
|
+
category = influence
|
|
5696
|
+
require_acceptance = no
|
|
5697
|
+
is_visible = {
|
|
5698
|
+
FROM = {
|
|
5699
|
+
is_subject_of = ROOT
|
|
5700
|
+
}
|
|
5701
|
+
religion = nahuatl
|
|
5702
|
+
is_primitive = yes
|
|
5703
|
+
}
|
|
5704
|
+
is_allowed = {
|
|
5705
|
+
FROM = {
|
|
5706
|
+
NOT = { liberty_desire = 50 }
|
|
5707
|
+
}
|
|
5708
|
+
}
|
|
5709
|
+
on_accept = {
|
|
5710
|
+
add_doom = -10
|
|
5711
|
+
every_subject_country = {
|
|
5712
|
+
add_liberty_desire = 10
|
|
5713
|
+
}
|
|
5714
|
+
}
|
|
5715
|
+
ai_will_do = {
|
|
5716
|
+
always = no
|
|
5717
|
+
}
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
heathen_royal_marriage = {
|
|
5721
|
+
category = dynasty
|
|
5722
|
+
|
|
5723
|
+
alert_index = 1
|
|
5724
|
+
alert_tooltip = ICON_RM
|
|
5725
|
+
|
|
5726
|
+
require_acceptance = yes
|
|
5727
|
+
|
|
5728
|
+
is_visible = {
|
|
5729
|
+
FROM = {
|
|
5730
|
+
NOT = { religion_group = ROOT }
|
|
5731
|
+
NOT = { marriage_with = ROOT }
|
|
5732
|
+
}
|
|
5733
|
+
OR = {
|
|
5734
|
+
AND = {
|
|
5735
|
+
has_government_attribute = can_royal_marry_heathens
|
|
5736
|
+
religion_group = christian
|
|
5737
|
+
}
|
|
5738
|
+
FROM = {
|
|
5739
|
+
has_government_attribute = can_royal_marry_heathens
|
|
5740
|
+
religion_group = christian
|
|
5741
|
+
}
|
|
5742
|
+
}
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5745
|
+
is_allowed = {
|
|
5746
|
+
hidden_trigger = {
|
|
5747
|
+
FROM = {
|
|
5748
|
+
NOT = { religion_group = ROOT }
|
|
5749
|
+
NOT = { marriage_with = ROOT }
|
|
5750
|
+
}
|
|
5751
|
+
OR = {
|
|
5752
|
+
AND = {
|
|
5753
|
+
has_government_attribute = can_royal_marry_heathens
|
|
5754
|
+
religion_group = christian
|
|
5755
|
+
}
|
|
5756
|
+
FROM = {
|
|
5757
|
+
has_government_attribute = can_royal_marry_heathens
|
|
5758
|
+
religion_group = christian
|
|
5759
|
+
}
|
|
5760
|
+
}
|
|
5761
|
+
}
|
|
5762
|
+
if = {
|
|
5763
|
+
limit = { war_with = FROM }
|
|
5764
|
+
custom_trigger_tooltip = {
|
|
5765
|
+
tooltip = HEATHEN_MARWAR
|
|
5766
|
+
NOT = { war_with = FROM }
|
|
5767
|
+
}
|
|
5768
|
+
}
|
|
5769
|
+
|
|
5770
|
+
if = {
|
|
5771
|
+
limit = { FROM = { is_subject_other_than_tributary_trigger = yes is_lesser_in_union = no } }
|
|
5772
|
+
custom_trigger_tooltip = {
|
|
5773
|
+
tooltip = HEATHEN_MARVAS
|
|
5774
|
+
NOT = { FROM = { is_subject_other_than_tributary_trigger = yes } }
|
|
5775
|
+
}
|
|
5776
|
+
}
|
|
5777
|
+
|
|
5778
|
+
if = {
|
|
5779
|
+
limit = { FROM = { is_lesser_in_union = yes } }
|
|
5780
|
+
custom_trigger_tooltip = {
|
|
5781
|
+
tooltip = HEATHEN_MARJUN
|
|
5782
|
+
NOT = { FROM = { is_lesser_in_union = yes } }
|
|
5783
|
+
}
|
|
5784
|
+
}
|
|
5785
|
+
|
|
5786
|
+
}
|
|
5787
|
+
|
|
5788
|
+
on_accept = {
|
|
5789
|
+
force_create_marriage = FROM
|
|
5790
|
+
}
|
|
5791
|
+
|
|
5792
|
+
on_decline = {
|
|
5793
|
+
add_opinion = {
|
|
5794
|
+
who = FROM
|
|
5795
|
+
modifier = opinion_refused_marriage
|
|
5796
|
+
}
|
|
5797
|
+
}
|
|
5798
|
+
|
|
5799
|
+
ai_acceptance = {
|
|
5800
|
+
add_entry = {
|
|
5801
|
+
name = attitude_friendly_DIPLO_ATTITUDE_TT
|
|
5802
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_friendly } } }
|
|
5803
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5804
|
+
multiply_variable = { which = ai_value value = 40 }
|
|
5805
|
+
}
|
|
5806
|
+
add_entry = {
|
|
5807
|
+
name = attitude_protective_DIPLO_ATTITUDE_TT
|
|
5808
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_protective } } }
|
|
5809
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5810
|
+
multiply_variable = { which = ai_value value = 40 }
|
|
5811
|
+
}
|
|
5812
|
+
add_entry = {
|
|
5813
|
+
name = attitude_threatened_DIPLO_ATTITUDE_TT
|
|
5814
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_threatened } } }
|
|
5815
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5816
|
+
multiply_variable = { which = ai_value value = 10 }
|
|
5817
|
+
}
|
|
5818
|
+
add_entry = {
|
|
5819
|
+
name = attitude_neutral_DIPLO_ATTITUDE_TT
|
|
5820
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_neutral } } }
|
|
5821
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5822
|
+
multiply_variable = { which = ai_value value = -20 }
|
|
5823
|
+
}
|
|
5824
|
+
add_entry = {
|
|
5825
|
+
name = attitude_domineering_DIPLO_ATTITUDE_TT
|
|
5826
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_domineering } } }
|
|
5827
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5828
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5829
|
+
}
|
|
5830
|
+
add_entry = {
|
|
5831
|
+
name = attitude_hostile_DIPLO_ATTITUDE_TT
|
|
5832
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_hostile } } }
|
|
5833
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5834
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5835
|
+
}
|
|
5836
|
+
add_entry = {
|
|
5837
|
+
name = attitude_outraged_DIPLO_ATTITUDE_TT
|
|
5838
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_outraged } } }
|
|
5839
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5840
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5841
|
+
}
|
|
5842
|
+
add_entry = {
|
|
5843
|
+
name = attitude_rivalry_DIPLO_ATTITUDE_TT
|
|
5844
|
+
limit = { FROM = { ai_attitude = { who = ROOT attitude = attitude_rivalry } } }
|
|
5845
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5846
|
+
multiply_variable = { which = ai_value value = -1000 }
|
|
5847
|
+
}
|
|
5848
|
+
add_entry = {
|
|
5849
|
+
name = AI_DIPLOMATIC_REPUTATION
|
|
5850
|
+
export_to_variable = {
|
|
5851
|
+
variable_name = ai_value
|
|
5852
|
+
value = trigger_value:diplomatic_reputation
|
|
5853
|
+
}
|
|
5854
|
+
#1 rep = 3
|
|
5855
|
+
multiply_variable = {
|
|
5856
|
+
which = ai_value
|
|
5857
|
+
value = 5
|
|
5858
|
+
}
|
|
5859
|
+
}
|
|
5860
|
+
add_entry = {
|
|
5861
|
+
name = DIPLO_OPPINION
|
|
5862
|
+
export_to_variable = {
|
|
5863
|
+
variable_name = ai_value
|
|
5864
|
+
value = opinion
|
|
5865
|
+
who = FROM
|
|
5866
|
+
with = ROOT
|
|
5867
|
+
}
|
|
5868
|
+
multiply_variable = {
|
|
5869
|
+
which = ai_value
|
|
5870
|
+
value = 0.25
|
|
5871
|
+
}
|
|
5872
|
+
}
|
|
5873
|
+
add_entry = {
|
|
5874
|
+
name = DIPLO_SAME_CULTURE_GROUP
|
|
5875
|
+
limit = { FROM = { culture_group = ROOT } }
|
|
5876
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5877
|
+
multiply_variable = { which = ai_value value = 20 }
|
|
5878
|
+
}
|
|
5879
|
+
add_entry = {
|
|
5880
|
+
name = DIPLO_SAME_RELIGION
|
|
5881
|
+
limit = { FROM = { religion = ROOT } }
|
|
5882
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5883
|
+
multiply_variable = { which = ai_value value = 5 }
|
|
5884
|
+
}
|
|
5885
|
+
add_entry = {
|
|
5886
|
+
name = DIPLO_MSG_FILTER_NEIGHBOURS
|
|
5887
|
+
limit = { FROM = { is_neighbor_of = ROOT } }
|
|
5888
|
+
export_to_variable = { variable_name = ai_value value = 1 }
|
|
5889
|
+
multiply_variable = { which = ai_value value = 5 }
|
|
5890
|
+
}
|
|
5891
|
+
add_entry = {
|
|
5892
|
+
name = DIPLO_BORDER_DISTANCE_TT
|
|
5893
|
+
export_to_variable = {
|
|
5894
|
+
variable_name = ai_value
|
|
5895
|
+
value = border_distance
|
|
5896
|
+
who = FROM
|
|
5897
|
+
with = ROOT
|
|
5898
|
+
}
|
|
5899
|
+
#2 units = -1
|
|
5900
|
+
multiply_variable = {
|
|
5901
|
+
which = ai_value
|
|
5902
|
+
value = -0.1
|
|
5903
|
+
}
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5906
|
+
|
|
5907
|
+
ai_will_do = {
|
|
5908
|
+
OR = {
|
|
5909
|
+
num_of_free_diplomatic_relations = 1
|
|
5910
|
+
alliance_with = FROM
|
|
5911
|
+
has_guaranteed = FROM
|
|
5912
|
+
FROM = { is_subject_of = ROOT }
|
|
5913
|
+
}
|
|
5914
|
+
OR = {
|
|
5915
|
+
ai_attitude = {
|
|
5916
|
+
who = FROM
|
|
5917
|
+
attitude = attitude_friendly
|
|
5918
|
+
}
|
|
5919
|
+
ai_attitude = {
|
|
5920
|
+
who = FROM
|
|
5921
|
+
attitude = attitude_loyal
|
|
5922
|
+
}
|
|
5923
|
+
ai_attitude = {
|
|
5924
|
+
who = FROM
|
|
5925
|
+
attitude = attitude_allied
|
|
5926
|
+
}
|
|
5927
|
+
ai_attitude = {
|
|
5928
|
+
who = FROM
|
|
5929
|
+
attitude = attitude_protective
|
|
5930
|
+
}
|
|
5931
|
+
}
|
|
5932
|
+
NOT = {
|
|
5933
|
+
ai_attitude = {
|
|
5934
|
+
who = FROM
|
|
5935
|
+
attitude = attitude_domineering
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5938
|
+
NOT = {
|
|
5939
|
+
ai_attitude = {
|
|
5940
|
+
who = FROM
|
|
5941
|
+
attitude = attitude_hostile
|
|
5942
|
+
}
|
|
5943
|
+
}
|
|
5944
|
+
NOT = {
|
|
5945
|
+
ai_attitude = {
|
|
5946
|
+
who = FROM
|
|
5947
|
+
attitude = attitude_outraged
|
|
5948
|
+
}
|
|
5949
|
+
}
|
|
5950
|
+
has_opinion = {
|
|
5951
|
+
who = FROM
|
|
5952
|
+
value = 50
|
|
5953
|
+
}
|
|
5954
|
+
}
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
# Create Incorporated Personal Union
|
|
5958
|
+
convert_to_core_personal_union = {
|
|
5959
|
+
category = influence
|
|
5960
|
+
|
|
5961
|
+
require_acceptance = no
|
|
5962
|
+
|
|
5963
|
+
is_visible = {
|
|
5964
|
+
has_country_flag = hab_integrated_vassals_flag
|
|
5965
|
+
FROM = {
|
|
5966
|
+
is_subject_of = ROOT
|
|
5967
|
+
is_subject_of_type = personal_union
|
|
5968
|
+
}
|
|
5969
|
+
}
|
|
5970
|
+
is_allowed = {
|
|
5971
|
+
FROM = { NOT = { liberty_desire = 25 } }
|
|
5972
|
+
NOT = {
|
|
5973
|
+
integrated_personal_union = 5
|
|
5974
|
+
}
|
|
5975
|
+
OR = {
|
|
5976
|
+
NOT = {
|
|
5977
|
+
has_country_flag = convert_subject_to_incorporated_subject_cooldown_flag
|
|
5978
|
+
}
|
|
5979
|
+
had_country_flag = {
|
|
5980
|
+
flag = convert_subject_to_incorporated_subject_cooldown_flag
|
|
5981
|
+
days = 3650
|
|
5982
|
+
}
|
|
5983
|
+
}
|
|
5984
|
+
}
|
|
5985
|
+
on_accept = {
|
|
5986
|
+
create_subject = {
|
|
5987
|
+
subject_type = integrated_personal_union
|
|
5988
|
+
subject = FROM
|
|
5989
|
+
keep_liberty_desire = yes
|
|
5990
|
+
}
|
|
5991
|
+
clr_country_flag = convert_subject_to_incorporated_subject_cooldown_flag
|
|
5992
|
+
set_country_flag = convert_subject_to_incorporated_subject_cooldown_flag
|
|
5993
|
+
}
|
|
5994
|
+
on_decline = {
|
|
5995
|
+
}
|
|
5996
|
+
|
|
5997
|
+
ai_will_do = { # this is a trigger
|
|
5998
|
+
always = no
|
|
5999
|
+
}
|
|
6000
|
+
}
|
|
6001
|
+
|
|
6002
|
+
create_soyurghal = {
|
|
6003
|
+
category = influence
|
|
6004
|
+
|
|
6005
|
+
alert_index = 17 #doesn't matter. it is forced onto the subject
|
|
6006
|
+
alert_tooltip = sell_indulgence_alert_tooltip #doesn't matter. it is forced onto the subject
|
|
6007
|
+
|
|
6008
|
+
require_acceptance = no
|
|
6009
|
+
|
|
6010
|
+
is_visible = {
|
|
6011
|
+
has_country_flag = TIM_soyurghals_flag
|
|
6012
|
+
FROM = {
|
|
6013
|
+
is_subject_of = ROOT
|
|
6014
|
+
NOT = {
|
|
6015
|
+
is_subject_of_type = soyurghal_subject_type
|
|
6016
|
+
}
|
|
6017
|
+
is_subject_other_than_tributary_trigger = yes
|
|
6018
|
+
}
|
|
6019
|
+
}
|
|
6020
|
+
is_allowed = {
|
|
6021
|
+
if = {
|
|
6022
|
+
limit = { TIM_reached_soyurghal_slot_limit = yes }
|
|
6023
|
+
custom_trigger_tooltip = {
|
|
6024
|
+
tooltip = TIM_not_enough_free_soyurghal_slots
|
|
6025
|
+
TIM_enough_soyurghal_slots = yes
|
|
6026
|
+
}
|
|
6027
|
+
}
|
|
6028
|
+
if = {
|
|
6029
|
+
limit = { from = { total_development = 100 } }
|
|
6030
|
+
custom_trigger_tooltip = {
|
|
6031
|
+
tooltip = FROM_HAS_NOT_100_TOTAL_DEV
|
|
6032
|
+
from = { not = { total_development = 100 } }
|
|
6033
|
+
}
|
|
6034
|
+
}
|
|
6035
|
+
if = {
|
|
6036
|
+
limit = { from = { not = { government = monarchy } } }
|
|
6037
|
+
custom_trigger_tooltip = {
|
|
6038
|
+
tooltip = FROM_IS_NOT_MONARCHY
|
|
6039
|
+
from = { government = monarchy }
|
|
6040
|
+
}
|
|
6041
|
+
}
|
|
6042
|
+
if = {
|
|
6043
|
+
limit = {
|
|
6044
|
+
from = {
|
|
6045
|
+
not = { is_subject_of_type = vassal }
|
|
6046
|
+
not = { is_subject_of_type = client_vassal }
|
|
6047
|
+
}
|
|
6048
|
+
}
|
|
6049
|
+
custom_trigger_tooltip = {
|
|
6050
|
+
tooltip = FROM_IS_NOT_VASSAL_OF_ROOT
|
|
6051
|
+
FROM = {
|
|
6052
|
+
OR = {
|
|
6053
|
+
is_subject_of_type = vassal
|
|
6054
|
+
is_subject_of_type = client_vassal
|
|
6055
|
+
}
|
|
6056
|
+
}
|
|
6057
|
+
}
|
|
6058
|
+
}
|
|
6059
|
+
}
|
|
6060
|
+
on_accept = {
|
|
6061
|
+
from = { grant_independence = { keep_liberty_desire = yes } }
|
|
6062
|
+
hidden_effect = {
|
|
6063
|
+
FROM = {
|
|
6064
|
+
set_saved_name = {
|
|
6065
|
+
key = timurid_noble
|
|
6066
|
+
type = advisor
|
|
6067
|
+
scope = ROOT
|
|
6068
|
+
}
|
|
6069
|
+
define_ruler = {
|
|
6070
|
+
name = timurid_noble
|
|
6071
|
+
change_mil = 3
|
|
6072
|
+
change_adm = 1
|
|
6073
|
+
change_dip = 2
|
|
6074
|
+
min_age = 35
|
|
6075
|
+
male = yes
|
|
6076
|
+
religion = ROOT
|
|
6077
|
+
culture = ROOT
|
|
6078
|
+
}
|
|
6079
|
+
if = {
|
|
6080
|
+
limit = {
|
|
6081
|
+
has_heir = yes
|
|
6082
|
+
}
|
|
6083
|
+
kill_heir = { allow_new_heir = no }
|
|
6084
|
+
}
|
|
6085
|
+
}
|
|
6086
|
+
}
|
|
6087
|
+
create_subject = {
|
|
6088
|
+
subject_type = soyurghal_subject_type
|
|
6089
|
+
subject = FROM
|
|
6090
|
+
keep_liberty_desire = yes
|
|
6091
|
+
}
|
|
6092
|
+
}
|
|
6093
|
+
|
|
6094
|
+
ai_will_do = {
|
|
6095
|
+
always = no
|
|
6096
|
+
}
|
|
6097
|
+
}
|
|
6098
|
+
release_soyurghal = {
|
|
6099
|
+
category = influence
|
|
6100
|
+
require_acceptance = no
|
|
6101
|
+
is_visible = {
|
|
6102
|
+
FROM = {
|
|
6103
|
+
is_subject_of = ROOT
|
|
6104
|
+
is_subject_of_type = soyurghal_subject_type
|
|
6105
|
+
}
|
|
6106
|
+
}
|
|
6107
|
+
is_allowed = {
|
|
6108
|
+
always = yes
|
|
6109
|
+
}
|
|
6110
|
+
on_accept = {
|
|
6111
|
+
from = {
|
|
6112
|
+
if = {
|
|
6113
|
+
limit = { not = { liberty_desire = 50 } }
|
|
6114
|
+
add_opinion = {
|
|
6115
|
+
who = root
|
|
6116
|
+
modifier = vassal_abandoned
|
|
6117
|
+
}
|
|
6118
|
+
}
|
|
6119
|
+
grant_independence = yes
|
|
6120
|
+
every_owned_province = {
|
|
6121
|
+
limit = {
|
|
6122
|
+
or = {
|
|
6123
|
+
is_claim = root
|
|
6124
|
+
is_permanent_claim = root
|
|
6125
|
+
is_core = root
|
|
6126
|
+
}
|
|
6127
|
+
}
|
|
6128
|
+
if = {
|
|
6129
|
+
limit = { is_permanent_claim = root }
|
|
6130
|
+
remove_claim = root
|
|
6131
|
+
}
|
|
6132
|
+
if = {
|
|
6133
|
+
limit = { is_claim = root }
|
|
6134
|
+
remove_claim = root
|
|
6135
|
+
}
|
|
6136
|
+
if = {
|
|
6137
|
+
limit = { is_core = root }
|
|
6138
|
+
remove_core = root
|
|
6139
|
+
}
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6142
|
+
add_prestige = -25
|
|
6143
|
+
}
|
|
6144
|
+
ai_will_do = {
|
|
6145
|
+
always = no
|
|
6146
|
+
}
|
|
6147
|
+
}
|
|
6148
|
+
|
|
6149
|
+
release_nahuatl_tributary = {
|
|
6150
|
+
category = influence
|
|
6151
|
+
require_acceptance = no
|
|
6152
|
+
is_visible = {
|
|
6153
|
+
FROM = {
|
|
6154
|
+
is_subject_of = ROOT
|
|
6155
|
+
is_subject_of_type = nahuatl_tributary
|
|
6156
|
+
}
|
|
6157
|
+
}
|
|
6158
|
+
is_allowed = {
|
|
6159
|
+
always = yes
|
|
6160
|
+
}
|
|
6161
|
+
on_accept = {
|
|
6162
|
+
from = {
|
|
6163
|
+
if = {
|
|
6164
|
+
limit = { not = { liberty_desire = 50 } }
|
|
6165
|
+
add_opinion = {
|
|
6166
|
+
who = root
|
|
6167
|
+
modifier = vassal_abandoned
|
|
6168
|
+
}
|
|
6169
|
+
}
|
|
6170
|
+
grant_independence = yes
|
|
6171
|
+
every_owned_province = {
|
|
6172
|
+
limit = {
|
|
6173
|
+
or = {
|
|
6174
|
+
is_claim = root
|
|
6175
|
+
is_permanent_claim = root
|
|
6176
|
+
is_core = root
|
|
6177
|
+
}
|
|
6178
|
+
}
|
|
6179
|
+
if = {
|
|
6180
|
+
limit = { is_permanent_claim = root }
|
|
6181
|
+
remove_claim = root
|
|
6182
|
+
}
|
|
6183
|
+
if = {
|
|
6184
|
+
limit = { is_claim = root }
|
|
6185
|
+
remove_claim = root
|
|
6186
|
+
}
|
|
6187
|
+
if = {
|
|
6188
|
+
limit = { is_core = root }
|
|
6189
|
+
remove_core = root
|
|
6190
|
+
}
|
|
6191
|
+
}
|
|
6192
|
+
}
|
|
6193
|
+
add_prestige = -25
|
|
6194
|
+
}
|
|
6195
|
+
ai_will_do = {
|
|
6196
|
+
always = no
|
|
6197
|
+
}
|
|
5322
6198
|
}
|