-
Notifications
You must be signed in to change notification settings - Fork 12
/
triggers.cwt
5904 lines (4523 loc) · 211 KB
/
triggers.cwt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
## scope = any
alias[trigger:<scripted_trigger>] = bool
## scope = any
alias[trigger:<scripted_trigger>] = {
## cardinality = 1..inf
enum[scripted_effect_params] = scalar
## cardinality = 1..inf
enum[scripted_effect_params] = scope_field
}
alias[trigger:enum[scripted_effect_params_dollar]] = {
alias_name[trigger] = alias_match_left[trigger]
}
## scope = country
###Returns true if the country has hired an advisor of the specified type which has at least level X.
alias[trigger:<advisor_type>] = int[1..5]
## scope = country
###Returns true if the country has at least X buildings from the specified building type.
alias[trigger:<building>] = int
## scope = country
###Returns true if the country has at least X ideas from the specified idea group.
alias[trigger:<idea_group>] = int[0..8]
## scope = province
###Returns true if the support for the specified institution in the province is at least X.
alias[trigger:<institution>] = float
## scope = country
###Returns true if the country has a tolerance of at least X of the specified religion. Note: No correct localisation.
alias[trigger:<religion>] = int
## scope = country
###Returns true if the country has at least X provinces producing the specified trade good.
alias[trigger:<trade_good>] = int
## scope = country
###Returns true if the country has at least X absolutism.
alias[trigger:absolutism] = int
## scope = country
###Returns true if the country has at least X absolutism.
alias[trigger:absolutism] = scope[any]
## scope = country
###Returns true if the country accepts the specified culture.
alias[trigger:accepted_culture] = <culture>
## scope = country
###Returns true if the country accepts the specified culture.
alias[trigger:accepted_culture] = enum[culture_new_variables]
## scope = country
###Returns true if the country accepts the specified culture.
alias[trigger:accepted_culture] = scope[province]
## scope = country
###Returns true if X is the current mission of the country.
alias[trigger:active_major_mission] = <mission> #todo
## scope = country
###Returns true if the country has a ruler with administrative skill of at least X, or at least as high military skill as the ruler of the specified country.
alias[trigger:adm] = int
## scope = country
###Returns true if the country has a ruler with administrative skill of at least X, or at least as high military skill as the ruler of the specified country.
alias[trigger:adm] = scope[country]
## scope = country
###Returns true if the country has a ruler with administrative skill of at least X, or at least as high military skill as the ruler of the specified country.
alias[trigger:adm] = enum[country_tags]
## scope = country
###Returns true if the country has at least X administrative power, or at least as much as the specified country.
alias[trigger:adm_power] = int
## scope = country
###Returns true if the country has at least X administrative power, or at least as much as the specified country.
alias[trigger:adm_power] = scope[country]
## scope = country
###Returns true if the country has at least X administrative power, or at least as much as the specified country.
alias[trigger:adm_power] = enum[country_tags]
## scope = country
###Returns true if the country has an administrative technology of at least X, or at least as high as the specified country.
alias[trigger:adm_tech] = int[0..200]
## scope = country
###Returns true if the country has an administrative technology of at least X, or at least as high as the specified country.
alias[trigger:adm_tech] = scope[country]
## scope = country
###Returns true if the country has an administrative technology of at least X, or at least as high as the specified country.
alias[trigger:adm_tech] = enum[country_tags]
## scope = country
###Returns true if the country has an advisor of the specified type.
alias[trigger:advisor] = <advisor_type>
## scope = country
###Returns true if the advisor X exists.
alias[trigger:advisor_exists] = <advisor_id>
## scope = country
###Returns true if the country is controlled by the AI.
alias[trigger:ai] = bool
## scope = country
###Returns true if the country has the specified attitude towards country X.
alias[trigger:ai_attitude] = {
who = scope[country]
who = enum[country_tags]
attitude = enum[attitudes]
}
## scope = country
###Returns true if the country has an alliance with X.
alias[trigger:alliance_with] = scope[any]
## scope = country
###Returns true if the country has an alliance with X.
alias[trigger:alliance_with] = enum[country_tags]
## scope = any
###Returns true if females can become emperor.
alias[trigger:allows_female_emperor] = bool
## scope = any
###Returns true under all circumstances if set to yes, returns false under all circumstances if set to no.
alias[trigger:always] = bool
## scope = province
###Returns true if the province is part of the area X. Accepts province scope as target.
alias[trigger:area] = <area.used>
## scope = province
###Returns true if the province is part of the area X. Accepts province scope as target.
alias[trigger:area] = scope[province]
## scope = province
###Returns true if the province is part of the area X. Accepts province scope as target.
alias[trigger:area] = <province_id>
## scope = province
###Returns true if the province is part of the province_group X. Accepts province scope as target.
alias[trigger:province_group] = <province_group.used>
## scope = province
###Returns true if the province is part of the province_group X. Accepts province scope as target.
alias[trigger:province_group] = scope[province]
## scope = province
###Returns true if the province is part of the province_group X. Accepts province scope as target.
alias[trigger:province_group] = <province_id>
## scope = country
###Returns true if the country has an army of at least X k soldiers, or at least as many soldiers as the specified country.
alias[trigger:army_size] = int
## scope = country
###Returns true if the country has an army of at least X k soldiers, or at least as many soldiers as the specified country.
alias[trigger:army_size] = scope[country]
## scope = country
###Returns true if the country has an army of at least X k soldiers, or at least as many soldiers as the specified country.
alias[trigger:army_size] = enum[country_tags]
## scope = country
###Returns true if the total army size of the country is at least X% of its land force limit.
alias[trigger:army_size_percentage] = float[0.0..5.0]
## scope = country
###Returns true if the country's army size is at least the size of X times the army size of the specified country (done by army strength, somehow)
alias[trigger:army_strength] = {
who = scope[country]
who = enum[country_tags]
value = float
}
## scope = country
###Returns true if the country's army size is at least the size of X times the army size of the specified country (done by number of regiments)
alias[trigger:army_balance] = {
who = scope[country]
who = enum[country_tags]
value = float
}
## scope = country
###Returns true if the country has an army tradition of at least X, or at least as high as the specified country.
alias[trigger:army_tradition] = float[0.0..100.0]
## scope = country
###Returns true if the country has an army tradition of at least X, or at least as high as the specified country.
alias[trigger:army_tradition] = scope[country]
## scope = country
###Returns true if the country has an army tradition of at least X, or at least as high as the specified country.
alias[trigger:army_tradition] = enum[country_tags]
## scope = country
###Returns true if the ratio of the artillery fraction to the army size of the country is at least X.
alias[trigger:artillery_fraction] = float[0.0..1.0]
## scope = province
###Returns true if there are at least X artillery units in the province, or if there are artillery units from the specified country in the province.
alias[trigger:artillery_in_province] = int
## scope = province
###Returns true if there are at least X artillery units in the province, or if there are artillery units from the specified country in the province.
alias[trigger:artillery_in_province] = scope[country]
## scope = province
###Returns true if there are at least X artillery units in the province, or if there are artillery units from the specified country in the province.
alias[trigger:artillery_in_province] = enum[country_tags]
## scope = country
###Returns true if the country is at war with any country of a different religion.
alias[trigger:at_war_with_religious_enemy] = bool
## scope = country
###Returns true if the country has at least X authority, or if the country has at least as much authority as the specified country.
alias[trigger:authority] = int[0..100] #todo: What is authority? If it is imperial authority, it can be 0-100, but how can it be more for one country than for another?
## scope = country
###Returns true if the country has at least X authority, or if the country has at least as much authority as the specified country.
alias[trigger:authority] = scope[country]
## scope = country
###Returns true if the country has at least X authority, or if the country has at least as much authority as the specified country.
alias[trigger:authority] = enum[country_tags]
## scope = country
###Returns true if the country has an average autonomy in its provinces of at least X.
alias[trigger:average_autonomy] = int[0..100]
## scope = country
###TODO: Needs description
alias[trigger:average_autonomy_above_min] = int[0..100]
## scope = country
###TODO: Needs description
alias[trigger:average_effective_unrest] = int[0..100]
## scope = country
###Returns true if the country has an average autonomy in its provinces excluding overseas provinces is at least X.
alias[trigger:average_home_autonomy] = int[0..100]
## scope = country
###Returns true if the country has an average unrest in its provinces of at least X.
alias[trigger:average_unrest] = float
## scope = province
###Returns true if the base manpower of the province is at least X.
alias[trigger:base_manpower] = int[0..100]
## scope = province
###Returns true if the base manpower of the province is at least X.
alias[trigger:base_manpower] = value[variable]
## scope = province
###Returns true if the base production of the province is at least X.
alias[trigger:base_production] = int[0..100]
## scope = province
###Returns true if the base production of the province is at least X.
alias[trigger:base_production] = value[variable]
## scope = province
###Returns true if the base tax of the province is at least X.
alias[trigger:base_tax] = int[0..100]
## scope = province
###Returns true if the base tax of the province is at least X.
alias[trigger:base_tax] = value[variable]
## scope = country
###Returns true if the blockade penalty of the country is at least X%.
alias[trigger:blockade] = int[0..100]
## scope = country
###Returns true if distance between the borders of the countries is at least X.
alias[trigger:border_distance] = {
who = scope[country]
who = enum[country_tags]
distance = int
}
## scope = any
###Returns true if at least amount number of targets within the specified scope match the specified conditions. Use "all_x" scopes.
alias[trigger:calc_true_if] = {
## cardinality = 0..1
desc = localisation
alias_name[trigger] = alias_match_left[trigger]
amount = int
## cardinality = 0..1
## push_scope = province
all_owned_province_cumulative = {
alias_name[trigger] = alias_match_left[trigger]
}
}
## scope = country
###Returns true if country meets the conditions defined in the subject type's is_potential_overlord section.
alias[trigger:can_be_overlord] = <subject_type>
## scope = province
###Returns true if the specified building can be built in the province.
alias[trigger:can_build] = <building>
## scope = country
###Returns true if the country can create a vassal. Warning: Interprets anything after '=' as "yes". Note: Works only for independent countries.
alias[trigger:can_create_vassals] = yes #deliberate
## scope = country
###Returns true if the country's heir can potentially be the consort's child.
alias[trigger:can_heir_be_child_of_consort] = bool
## scope = country
###Returns true if the country can justify a trade conflict against country X.
alias[trigger:can_justify_trade_conflict] = scope[country]
## scope = country
###Returns true if the country can justify a trade conflict against country X.
alias[trigger:can_justify_trade_conflict] = enum[country_tags]
## scope = province
###Returns true if the specified rebel faction is a valid rebel faction of the province.
alias[trigger:can_spawn_rebels] = <rebel_type>
## scope = country
###Returns true if the country's capital is the province with the ID X.
alias[trigger:capital] = <province_id>
## scope = country
###Returns true if distance between the capitals of the countries is at least X.
alias[trigger:capital_distance] = {
who = scope[country]
who = enum[country_tags]
distance = int
}
## scope = country
###Returns true if the ratio of the cavalry fraction to the army size of the country is at least X.
alias[trigger:cavalry_fraction] = float[0.0..1.0]
## scope = province
###Returns true if there are at least X cavalry units in the province, or if there are cavalry units from the specified country in the province.
alias[trigger:cavalry_in_province] = int
## scope = province
###Returns true if there are at least X cavalry units in the province, or if there are cavalry units from the specified country in the province.
alias[trigger:cavalry_in_province] = scope[country]
## scope = province
###Returns true if there are at least X cavalry units in the province, or if there are cavalry units from the specified country in the province.
alias[trigger:cavalry_in_province] = enum[country_tags]
## scope = { province country }
###Returns true if the specified variable is at least X.
alias[trigger:check_variable] = {
## cardinality = 0..2
## severity = warning
which = value[variable]
## cardinality = 0..2
## severity = warning
value[variable]= float
## cardinality = 0..1
value = float
}
## scope = country
###Returns true if the country has at least X church power, or at least as much as the specified country.
alias[trigger:church_power] = int[0..200]
## scope = country
###Returns true if the country has at least X church power, or at least as much as the specified country.
alias[trigger:church_power] = scope[country]
## scope = country
###Returns true if the country has at least X church power, or at least as much as the specified country.
alias[trigger:church_power] = enum[country_tags]
## scope = country
###Returns true if the specified country is the target of a coalition by the scoped country.
alias[trigger:coalition_target] = scope[country]
## scope = country
###Returns true if the specified country is the target of a coalition by the scoped country.
alias[trigger:coalition_target] = enum[country_tags]
## scope = province
###Returns true if the scope province's colonial region been given as a colonial grant by any potential pope-like entities of the specified religion or country's religion.
alias[trigger:colonial_claim_by_anyone_of_religion] = <religion>
## scope = province
###Returns true if the scope province's colonial region been given as a colonial grant by any potential pope-like entities of the specified religion or country's religion.
alias[trigger:colonial_claim_by_anyone_of_religion] = enum[country_tags]
## scope = province
###Returns true if the scope province's colonial region been given as a colonial grant by any potential pope-like entities of the specified religion or country's religion.
alias[trigger:colonial_claim_by_anyone_of_religion] = scope[country]
## scope = province
###Returns true if the province is part of the colonial region X.
alias[trigger:colonial_region] = <colonial_region>
## scope = province
###Returns true if the province is part of the colonial region X.
alias[trigger:colonial_region] = scope[province]
## scope = country
### 1.31.5 counts number of colony subjects
alias[trigger:colony] = int
## scope = country
### 1.31.5 counts number of colony provinces
alias[trigger:num_of_colonies] = int
## scope = { province country }
###Returns true if the scoped country has a claim on a colony owned by the target country, or if the scoped colony province is claimed by the target country.
alias[trigger:colony_claim] = scope[country]
## scope = { province country }
###Returns true if the scoped country has a claim on a colony owned by the target country, or if the scoped colony province is claimed by the target country.
alias[trigger:colony_claim] = enum[country_tags]
## scope = province
###Returns true if colony is at least size X.
alias[trigger:colonysize] = int
## scope = country
###Returns true if the country has a consort with an administrative skill of at least X.
alias[trigger:consort_adm] = int
## scope = country
###Returns true if the country's consort has an age of at least X.
alias[trigger:consort_age] = int
## scope = country
###Returns true if the country has a consort with an diplomatic skill of at least X.
alias[trigger:consort_dip] = int
## scope = country
###Returns true if the country's consort has the specified culture. Can utilise Event Scope Values.
alias[trigger:consort_culture] = <culture>
## scope = country
###Returns true if the country's consort has the specified culture. Can utilise Event Scope Values.
alias[trigger:consort_culture] = enum[culture_new_variables]
## scope = country
###Returns true if the country's consort has the specified culture. Can utilise Event Scope Values.
alias[trigger:consort_culture] = scope[country]
## scope = country
###Returns true if the country's consort has the specified culture. Can utilise Event Scope Values.
alias[trigger:consort_culture] = enum[country_tags]
## scope = country
###Returns true if the country's consort has the specified culture. Can utilise Event Scope Values.
alias[trigger:consort_culture] = scope[province]
## scope = country
###Returns true if the country's consort has the specified culture. Can utilise Event Scope Values.
alias[trigger:consort_culture] = <province_id>
## scope = country
###Returns true if the country's consort has the specified personality.
alias[trigger:consort_has_personality] = <ruler_personality>
## scope = country
###Returns true if the country has a consort with an military skill of at least X.
alias[trigger:consort_mil] = int
## scope = country
###Returns true if the country's consort has the specified religion. Can utilise Event Scope Values.
alias[trigger:consort_religion] = <religion>
## scope = country
###Returns true if the country's consort has the specified religion. Can utilise Event Scope Values.
alias[trigger:consort_religion] = enum[religion_new_variables]
## scope = country
###Returns true if the country's consort has the specified religion. Can utilise Event Scope Values.
alias[trigger:consort_religion] = scope[country]
## scope = country
###Returns true if the country's consort has the specified religion. Can utilise Event Scope Values.
alias[trigger:consort_religion] = enum[country_tags]
## scope = country
###Returns true if the country's consort has the specified religion. Can utilise Event Scope Values.
alias[trigger:consort_religion] = scope[province]
## scope = country
###Returns true if the country's consort has the specified religion. Can utilise Event Scope Values.
alias[trigger:consort_religion] = <province_id>
## scope = province
###Returns true if the construction progress is at least X%.
alias[trigger:construction_progress] = float[0.0..1.0]
## scope = province
###Returns true if the province is located on continent X, or on the same continent as the (capital of the) specified scope.
alias[trigger:continent] = <continent>
## scope = province
###Returns true if the province is located on continent X, or on the same continent as the (capital of the) specified scope.
alias[trigger:continent] = scope[country]
## scope = province
###Returns true if the province is located on continent X, or on the same continent as the (capital of the) specified scope.
alias[trigger:continent] = scope[province]
## scope = province
###Returns true if the province is controlled by X.
alias[trigger:controlled_by] = scope[any]
## scope = province
###Returns true if the province is controlled by X.
alias[trigger:controlled_by] = enum[country_tags]
## scope = province
###Returns true if the province is controlled by X.
alias[trigger:controlled_by] = <rebel_type>
## scope = country
###Returns true if the province with id X is controlled by the country.
alias[trigger:controls] = <province_id>
## scope = country
###Returns true if the country has a core on any province owned by country X.
alias[trigger:core_claim] = scope[any]
## scope = country
###Returns true if the country has a core on any province owned by country X.
alias[trigger:core_claim] = enum[country_tags]
## scope = country
###Returns true if the country has cored at least X% of its provinces.
alias[trigger:core_percentage] = float[0.0..1.0]
## scope = country
###Returns true if the country has a corruption of at least X.
alias[trigger:corruption] = float
## scope = province
###Returns true if the province is part of the specified country or its subjects.
alias[trigger:country_or_vassal_holds] = scope[country]
## scope = province
###Returns true if the province is part of the specified country or its subjects.
alias[trigger:country_or_vassal_holds] = enum[country_tags]
## scope = province
###Returns true if the province is part of the specified country or its subjects.
alias[trigger:country_or_subject_holds] = scope[country]
## scope = province
###Returns true if the province is part of the specified country or its subjects.
alias[trigger:country_or_subject_holds] = enum[country_tags]
## scope = province
###Returns true if the province culture is X, or the same as the specified scope.
alias[trigger:culture] = <culture>
## scope = province
###Returns true if the province culture is X, or the same as the specified scope.
alias[trigger:culture] = enum[culture_new_variables]
## scope = province
###Returns true if the province culture is X, or the same as the specified scope.
alias[trigger:culture] = scope[country]
## scope = province
###Returns true if the province culture is X, or the same as the specified scope.
alias[trigger:culture] = scope[province]
## scope = province
###Returns true if the province culture is X, or the same as the specified scope.
alias[trigger:culture] = <province_id>
## scope = province
###Returns true if the province culture is X, or the same as the specified scope.
alias[trigger:culture] = enum[country_tags]
## scope = { country province }
###Returns true if the country/province has a culture of the specified culture group or the same culture group as the specified scope.
alias[trigger:culture_group] = <culture_group>
## scope = { country province }
###Returns true if the country/province has a culture of the specified culture group or the same culture group as the specified scope.
alias[trigger:culture_group] = scope[province]
## scope = { country province }
###Returns true if the country/province has a culture of the specified culture group or the same culture group as the specified scope.
alias[trigger:culture_group] = enum[culture_new_variables]
## scope = { country province }
###Returns true if the country/province has a culture of the specified culture group or the same culture group as the specified scope.
alias[trigger:culture_group] = scope[country]
## scope = { country province }
###Returns true if the country/province has a culture of the specified culture group or the same culture group as the specified scope.
alias[trigger:culture_group] = <province_id>
## scope = { country province }
###Returns true if the country/province has a culture of the specified culture group or the same culture group as the specified scope.
alias[trigger:culture_group] = enum[country_tags]
## scope = country
###Returns true if country's primary culture is the same culture group as any province owned by country X.
alias[trigger:culture_group_claim] = scope[country]
## scope = country
###Returns true if country's primary culture is the same culture group as any province owned by country X.
alias[trigger:culture_group_claim] = enum[country_tags]
## scope = any
###Returns true if the current age is X.
alias[trigger:current_age] = <game_age>
## scope = country
###Returns true if the parliament of the country debates about X.
alias[trigger:current_debate] = <parliament_issue>
## scope = country
###Returns true if the country has the specified (orthodox) icon.
alias[trigger:current_icon] = <orthodox_icon>
## scope = { country province }
###Returns true if the country/province has an institution growth of at least X for the first not embraced institution.
alias[trigger:current_institution_growth] = float
## scope = country
###Returns true if the parliament of the country has a least X seats.
alias[trigger:current_size_of_parliament] = int
## scope = any
###Hides the enclosed condition so that it is still required but cannot be seen by human players and displays the specified tooltip in its place.
alias[trigger:custom_trigger_tooltip] = {
tooltip = localisation
alias_name[trigger] = alias_match_left[trigger]
}
## scope = country
###Returns true if the country is in a defensive war with country X.
alias[trigger:defensive_war_with] = scope[any]
## scope = country
###Returns true if the country is in a defensive war with country X.
alias[trigger:defensive_war_with] = enum[country_tags]
## scope = province
###Returns true if the devastation of the province is at least X. decimal values can be used but the tooltip will round to the nearest whole number.
alias[trigger:devastation] = float
## scope = province
###Returns true if the development of the province is at least X, or at least as much as the specified province scope.
alias[trigger:development] = int
## scope = province
###Returns true if the development of the province is at least X, or at least as much as the specified province scope.
alias[trigger:development] = scope[province]
## scope = province
###Returns true if the development of the province is at least X, or at least as much as the specified province scope.
alias[trigger:development] = <province_id>
## scope = country
###Returns true if the country has X percent of its overlord's development
alias[trigger:development_of_overlord_fraction] = float[0.0..1.0]
## scope = country
###Returns true if the country has at least X devotion, or at least as much devotion as the specified country.
alias[trigger:devotion] = int
## scope = country
###Returns true if the country has at least X devotion, or at least as much devotion as the specified country.
alias[trigger:devotion] = scope[country]
## scope = country
###Returns true if the country has at least X devotion, or at least as much devotion as the specified country.
alias[trigger:devotion] = enum[country_tags]
## scope = country
###Returns true if the country has a ruler with diplomatic skill of at least X, or at least as high military skill as the ruler of the specified country.
alias[trigger:dip] = int
## scope = country
###Returns true if the country has a ruler with diplomatic skill of at least X, or at least as high military skill as the ruler of the specified country.
alias[trigger:dip] = scope[country]
## scope = country
###Returns true if the country has a ruler with diplomatic skill of at least X, or at least as high military skill as the ruler of the specified country.
alias[trigger:dip] = enum[country_tags]
## scope = country
###Returns true if the country has a diplomatic reputation of at least X, or at least as much diplomatic reputation as the specified country.
alias[trigger:diplomatic_reputation] = float
## scope = country
###Returns true if the country has a diplomatic reputation of at least X, or at least as much diplomatic reputation as the specified country.
alias[trigger:diplomatic_reputation] = scope[country]
## scope = country
###Returns true if the country has a diplomatic reputation of at least X, or at least as much diplomatic reputation as the specified country.
alias[trigger:diplomatic_reputation] = enum[country_tags]
## scope = country
###Returns true if the country has at least X diplomatic power, or at least as much diplomatic power as the specified country.
alias[trigger:dip_power] = int
## scope = country
###Returns true if the country has at least X diplomatic power, or at least as much diplomatic power as the specified country.
alias[trigger:dip_power] = scope[country]
## scope = country
###Returns true if the country has at least X diplomatic power, or at least as much diplomatic power as the specified country.
alias[trigger:dip_power] = enum[country_tags]
## scope = country
###Returns true if the country has an diplomatic technology of at least level X, or at least as high as the specified country.
alias[trigger:dip_tech] = int
## scope = country
###Returns true if the country has an diplomatic technology of at least level X, or at least as high as the specified country.
alias[trigger:dip_tech] = scope[country]
## scope = country
###Returns true if the country has an diplomatic technology of at least level X, or at least as high as the specified country.
alias[trigger:dip_tech] = enum[country_tags]
## scope = country
###Returns true if the dominant culture in the country is X or the same as the specified scope's.
alias[trigger:dominant_culture] = <culture> #todo: wiki says "capital"
## scope = country
###Returns true if the dominant culture in the country is X or the same as the specified scope's.
alias[trigger:dominant_culture] = enum[culture_new_variables]
## scope = country
###Returns true if the dominant culture in the country is X or the same as the specified scope's.
alias[trigger:dominant_culture] = scope[country]
## scope = country
###Returns true if the dominant culture in the country is X or the same as the specified scope's.
alias[trigger:dominant_culture] = scope[province]
## scope = country
###Returns true if the dominant culture in the country is X or the same as the specified scope's.
alias[trigger:dominant_culture] = enum[country_tags]
## scope = country
###Returns true if the dominant culture in the country is X or the same as the specified scope's.
alias[trigger:dominant_culture] = <province_id>
## scope = country
###Returns true if the dominant religion in the country is X or the same as the specified scope's.
alias[trigger:dominant_religion] = <religion>
## scope = country
###Returns true if the dominant religion in the country is X or the same as the specified scope's.
alias[trigger:dominant_religion] = enum[religion_new_variables]
## scope = country
###Returns true if the dominant religion in the country is X or the same as the specified scope's.
alias[trigger:dominant_religion] = scope[country]
## scope = country
###Returns true if the dominant religion in the country is X or the same as the specified scope's.
alias[trigger:dominant_religion] = scope[province]
## scope = country
###Returns true if the dominant religion in the country is X or the same as the specified scope's.
alias[trigger:dominant_religion] = enum[country_tags]
## scope = country
###Returns true if the dominant religion in the country is X or the same as the specified scope's.
alias[trigger:dominant_religion] = <province_id>
## scope = country
###Returns true if the dominant religion in the country is X or the same as the specified scope's.
alias[trigger:dominant_religion] = secondary
## scope = country
###Returns true if the country has at least X doom, or at least as much doom as the specified country.
alias[trigger:doom] = int
## scope = country
###Returns true if the country has at least X doom, or at least as much doom as the specified country.
alias[trigger:doom] = scope[country]
## scope = country
###Returns true if the country has at least X doom, or at least as much doom as the specified country.
alias[trigger:doom] = enum[country_tags]
## scope = country
###Returns true if the ruling dynasty of the country is X, or is the same as that of country X.
alias[trigger:dynasty] = localisation_synced #value[dynasty_name]
## scope = country
###Returns true if the ruling dynasty of the country is X, or is the same as that of country X.
alias[trigger:dynasty] = scope[country]
## scope = country
###Returns true if the ruling dynasty of the country is X, or is the same as that of country X.
alias[trigger:dynasty] = enum[country_tags]
## scope = country
###Returns true if the heirs dynasty of the country is X, or is the same as that of country X.
alias[trigger:heir_dynasty] = localisation_synced #value[dynasty_name]
## scope = country
###Returns true if the heirs dynasty of the country is X, or is the same as that of country X.
alias[trigger:heir_dynasty] = scope[country]
## scope = country
###Returns true if the heirs dynasty of the country is X, or is the same as that of country X.
alias[trigger:heir_dynasty] = enum[country_tags]
## scope = any
###Returns true if at least X Empire of China reforms are enacted. Works similar to hre_reform_level
alias[trigger:empire_of_china_reform_level] = int
## scope = country
###Returns true if the country has employed an advisor with the specified characteristics.
alias[trigger:employed_advisor] = {
## cardinality = 0..1
is_male = bool
## cardinality = 0..1
is_female = bool
## cardinality = 0..1
religion = <religion>
## cardinality = 0..1
religion = enum[religion_new_variables]
## cardinality = 0..1
religion = scope[country]
## cardinality = 0..1
religion = enum[country_tags]
## cardinality = 0..1
religion = scope[province]
## cardinality = 0..1
religion = <province_id>
## cardinality = 0..1
religion = heretic
## cardinality = 0..1
religion = heathen
## cardinality = 0..1
culture = <culture>
## cardinality = 0..1
culture = enum[culture_new_variables]
## cardinality = 0..1
culture = scope[country]
## cardinality = 0..1
culture = enum[country_tags]
## cardinality = 0..1
culture = scope[province]
## cardinality = 0..1
culture = <province_id>
## cardinality = 0..1
type = <advisor_type>
## cardinality = 0..1
category = enum[power_categories]
## cardinality = 0..1
skill = int[0..5]
## cardinality = 0..1
discounted = yes
## cardinality = 0..1
name = scalar
}
## scope = country
###Returns true if the estate X in the country has at least Y influence.
alias[trigger:estate_influence] = {
estate = <estate>
estate = all
## cardinality = 0..1
less_than = yes
influence = int[0..100]
}
## scope = country
###Returns true if the estate X in the country has at least Y loyalty.
alias[trigger:estate_loyalty] = {
estate = <estate>
loyalty = float[0..100]
}
alias[trigger:estate_loyalty] = {
estate = all
loyalty = float[0..100]
}
alias[trigger:estate_loyalty] = {
estate = <estate>
higher_than_influence = bool
}
alias[trigger:estate_loyalty] = {
estate = all
higher_than_influence = bool
}
## scope = country
###Returns true if the estate X in the country controls at least Y% of the total development.
alias[trigger:estate_territory] = {
estate = <estate>
territory = int[0..100]
}
## scope = any
###Returns true if country X or the scoped country exists.
alias[trigger:exists] = scope[country]
## scope = any
###Returns true if country X or the scoped country exists.
alias[trigger:exists] = enum[country_tags]
## scope = any
###Returns true if country X or the scoped country exists.
alias[trigger:exists] = bool
## scope = country
###Returns true if the faction in power of the country is X.
alias[trigger:faction_in_power] = <faction>
## scope = country
###Returns true if the faction X of the country has at least Y influence.
alias[trigger:faction_influence] = {
faction = <faction>
influence = int
}
## scope = country
###Returns true if the federation with the country has at least X members.
alias[trigger:federation_size] = int
## scope = country
###Returns true if the country has stored at least X fervor points.
alias[trigger:fervor] = int
## scope = province
###Returns true if the fort in the province has at least level X.
alias[trigger:fort_level] = int
## scope = country
###Returns true if the country has completed the X idea group.
alias[trigger:full_idea_group] = <idea_group>
## scope = country
###Returns true if the ratio of the galley fraction to the navy size of the country is at least X.
alias[trigger:galley_fraction] = float[0..1]
## scope = province
###Returns true if there are at least X galleys in the province, or if there are galleys from the specified country in the province.
alias[trigger:galleys_in_province] = int
## scope = province
###Returns true if there are at least X galleys in the province, or if there are galleys from the specified country in the province.
alias[trigger:galleys_in_province] = scope[country]
## scope = province
###Returns true if there are at least X galleys in the province, or if there are galleys from the specified country in the province.
alias[trigger:galleys_in_province] = enum[country_tags]
## scope = province
###Returns true if the garrison is at X men. Note: Misleading tooltip.
alias[trigger:garrison] = int
## scope = country
###Returns true if the country has an income from gold of at least X.
alias[trigger:gold_income] = float
## scope = country
###Returns true if in the country the proportion of income from gold is at least X.
alias[trigger:gold_income_percentage] = float[0.0..1.0]
## scope = country
###Returns true if the country has government type X. Includes "dictatorship", which checks whether the country has a government reform with the label "is_dictatorship = yes"
alias[trigger:government] = <government.normal>
## scope = country
###Returns true if the country has government type X. Includes "dictatorship", which checks whether the country has a government reform with the label "is_dictatorship = yes"
alias[trigger:government] = dictatorship
## scope = country
###Returns true if the country has government type X. Includes "dictatorship", which checks whether the country has a government reform with the label "is_dictatorship = yes"
alias[trigger:government] = has_harem
## scope = country
###Returns true if the country has a government rank of X or higher.
alias[trigger:government_rank] = int
## scope = { country province }
###Returns true if the country's or province's total development has grown by the specified amount