forked from cwtools/cwtools-eu4-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
effects.cwt
4447 lines (3662 loc) · 162 KB
/
effects.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[effect:<scripted_effect>] = yes
## scope = any
###The scripted effect will draw the value of the right clause via $left_clause$.
#Todo: Make sure this works
alias[effect:<scripted_effect>] = {
## cardinality = 1..inf
enum[scripted_effect_params] = scalar
## cardinality = 1..inf
enum[scripted_effect_params] = scope_field
}
alias[effect:enum[scripted_effect_params_dollar]] = {
alias_name[effect] = alias_match_left[effect]
}
#Variables
## scope = any
alias[effect:export_to_variable] = {
enum[which_varname] = value_set[variable]
value = enum[export_to_variable_data]
value = modifier:<modifier>
## cardinality = 0..1
###Takes a country scope for country-level value and a province scope on province-level value
who = scope[country]
## cardinality = 0..1
###Takes a country scope for country-level value and a province scope on province-level value
who = enum[country_tags]
## cardinality = 0..1
###Takes a country scope for country-level value and a province scope on province-level value
who = scope[province]
## cardinality = 0..1
with = scope[country] #for when you use "trust"
}
## scope = any
alias[effect:multiply_variable] = {
## cardinality = 2..2
which = value[variable]
}
## scope = any
alias[effect:multiply_variable] = {
which = value[variable]
value = float
}
## scope = any
### Alternative without using which or value
alias[effect:multiply_variable] = {
## cardinality = 1..2
value[variable] = float
}
## scope = any
### Alternative
alias[effect:multiply_variable] = {
which = enum[export_to_variable_data]
value = enum[export_to_variable_data]
}
## scope = any
alias[effect:divide_variable] = {
## cardinality = 2..2
which = value[variable]
}
## scope = any
alias[effect:divide_variable] = {
which = value[variable]
value = float
}
## scope = any
### Alternative without using which or value
alias[effect:divide_variable] = {
## cardinality = 1..2
value[variable] = float
}
## scope = any
### Alternative
alias[effect:divide_variable] = {
which = enum[export_to_variable_data]
value = enum[export_to_variable_data]
}
## scope = any
### Paradox reports that which = is optional
alias[effect:change_variable] = {
## cardinality = 2..2
which = value_set[variable]
}
## scope = any
### Paradox reports that which = is optional
alias[effect:change_variable] = {
which = value_set[variable]
value = float
}
## scope = any
### Paradox reports that which = is optional
alias[effect:change_variable] = {
## cardinality = 1..2
value_set[variable] = float
}
## scope = any
alias[effect:subtract_variable] = {
## cardinality = 2..2
which = value[variable]
}
## scope = any
alias[effect:subtract_variable] = {
which = value[variable]
value = float
}
## scope = any
### Alternative without using which or value
alias[effect:subtract_variable] = {
## cardinality = 1..2
value[variable] = float
}
## scope = any
### Alternative
alias[effect:subtract_variable] = {
which = enum[export_to_variable_data]
value = enum[export_to_variable_data]
}
## scope = any
alias[effect:set_variable] = {
## cardinality = 1..2
which = value_set[variable]
## cardinality = 0..1
value = float
## cardinality = 0..1
value = value[variable]
## cardinality = 0..1
value = enum[export_to_variable_data]
}
## scope = any
### Alternative without using which or value
alias[effect:set_variable] = {
## cardinality = 1..2
value_set[variable] = float
}
## scope = any
###Defines a global flag.
alias[effect:set_global_flag] = value_set[global_flag]
## scope = any
###Clears a defined global flag.
alias[effect:clr_global_flag] = value[global_flag]
## scope = any
###Displays a localized key in the effect tooltip.
alias[effect:custom_tooltip] = localisation
## scope = any
###Displays a string (specified here in "") in the game.log when executed. Accepts all localization commands (i.e. [Root.GetName], etc)
alias[effect:log] = scalar
## scope = any
###Saves the current scope as a key to be used in further effects/triggers and in localisations. Is cleared once execution ends (i.e. end of event and any events subsequently triggered by this event). Use event_target:<key> to access the scope.
alias[effect:save_event_target_as] = value_set[event_target]
## scope = any
###Saves the current scope as a key to be used in further effects/triggers and in localisations. Is NOT cleared once execution ends, but rather is kept until cleared with clear_global_event_target. Use event_target:<key> to access the scope.
alias[effect:save_global_event_target_as] = value_set[global_event_target]
## scope = any
###Clears a specific global event target.
alias[effect:clear_global_event_target] = value[global_event_target]
## scope = any
###Clears all global event targets.
alias[effect:clear_global_event_targets] = yes
## scope = any
###Displays a hidden ambient object from the map/ambient_objects.txt file.
alias[effect:show_ambient_object] = <ambient_object>
## scope = any
###Hides a visible ambient object from the map/ambient_objects.txt file.
alias[effect:hide_ambient_object] = <ambient_object>
## scope = country
###Fire a country event for the current country scope. You cannot fire the same event within itself.
alias[effect:country_event] = {
id = <event.country>
## cardinality = 0..1
###The number of days to wait after the effect is executed to fire the event.
days = int
## cardinality = 0..1
###The max number of additional days that can be added to the days parameter for randomness.
random = int
## cardinality = 0..1
###The tooltip to display in the effect tooltip country_event is used in.
tooltip = localisation
}
## scope = country
###Adds modifier to the current scope as a country modifier.
alias[effect:add_country_modifier] = {
name = <event_modifier>
name = <static_modifier>
# ## cardinality = 0..1 #not having it means it lasts for one day!
###The number of days to add the country modifier for. If no duration it present it will last 1 day.
duration = int
## cardinality = 0..1
###If the modifier appears in the country modifier screen.
hidden = yes
## cardinality = 0..1
###The string used to override the automatic duration string.
desc = localisation
## cardinality = 0..1
message = enum[message_options]
## cardinality = 0..1
message_data = enum[message_data_options]
}
## scope = country
###Removes an already assigned country modifier from the current scope.
alias[effect:remove_country_modifier] = <event_modifier>
## scope = country
###Removes an already assigned country modifier from the current scope.
alias[effect:remove_country_modifier] = <static_modifier>
## scope = country
###A unique string to identify the country flag with. Flags can be appended with scopes or event targets: set_country_flag = my_flag@ROOT
alias[effect:set_country_flag] = value_set[country_flag]
## scope = country
###Clears a defined country flag for the current scope.
## severity = warning
alias[effect:clr_country_flag] = value[country_flag]
## scope = country
###Changes current scope to <scope> tag.
alias[effect:change_tag] = enum[country_tags]
## scope = country
###Changes current scope to <scope> tag.
alias[effect:change_tag] = scope[country]
## scope = country
###Switches the player view to <scope> tag. Original country becomes controlled by AI.
alias[effect:switch_tag] = enum[country_tags]
## scope = country
###Switches the player view to <scope> tag. Original country becomes controlled by AI.
alias[effect:switch_tag] = scope[country]
## scope = country
###Changes the current scope's graphical culture. Graphical culture determines the unit models, advisor portraits, etc that a country uses. Graphical cultures are found in /Europa Universalis IV/common/graphicalculturetype.txt.
alias[effect:change_graphical_culture] = enum[graphical_cultures]
## scope = country
###Adds Administrative power to the current scope.
alias[effect:add_adm_power] = int
## scope = country
###Adds Diplomatic power to the current scope.
alias[effect:add_dip_power] = int
## scope = country
###Adds Military power to the current scope.
alias[effect:add_mil_power] = int
## scope = { country province }
###Saves a name to an unique key for usage in other effects. Usable with define_admiral, define_explorer, define_conquistador, define_general, define_ruler, define_consort, define_heir, define_advisor and spawn_rebels. Note: Does not work with country tags as scope, also type = simple does not work with spawn_rebels.
alias[effect:set_saved_name] = {
key = value_set[saved_name]
type = advisor
type = simple
type = leader
## cardinality = 0..1
###Only with type = advisor
scope = scope[country]
## cardinality = 0..1
###Only with type = advisor
scope = scope[province]
## cardinality = 0..1
name = scalar
## cardinality = 0..1
female = bool
}
## scope = country
###Clears a saved name key. Use this after using the saved name in an effect.
alias[effect:clear_saved_name] = value[saved_name]
## scope = country
###Adds ducats equal to the years of income defined. 1 is equal to 1 year of income, based of a country's current monthly income.
alias[effect:add_years_of_income] = float
## scope = country
###Adds ducats to the current scope. Can also subtract.
alias[effect:add_treasury] = float
## scope = country
###Adds inflation to the current scope. Can also subtract.
alias[effect:add_inflation] = float
## scope = country
###Adds mercantilism to the current scope. Can also subtract.
alias[effect:add_mercantilism] = float
## scope = country
###Adds tariff value to to the current scope. Tariff value is the ducats sent to an overlord by subjects such as colonial nations. Can also subtract.
alias[effect:add_tariff_value] = float
## scope = country
###Changes the loan size of the current scope. Size is the number of months in monthly income that a single loan is equal to.
alias[effect:loan_size] = int[1..inf]
## scope = any
###Changes the price of a trade good globally. Tradegood prices are found in /Europa Universalis IV/common/prices/*.txt. The new price is the base price + (base price * value). Duration accepts -1 for unlimited duration.
alias[effect:change_price] = {
trade_goods = <trade_good>
###The localisation key to display in the Trade Good's price tooltip.
key = localisation
###The percentage to change the value by.
value = float
###The duration for the value to stay changed for. -1 = infinite.
duration = int
}
## scope = country
###Adds absolutism to the current scope. Can also subtract. No effect if Absolutism isn't active.
alias[effect:add_absolutism] = float
## scope = country
###Adds legitimacy to the current scope. Can also subtract. Target can be a country, in which case that country's legitimacy value is used. No effect if not a government monarchy.
#Should be 1.0..100.0 but parsing floats is bugged
alias[effect:add_legitimacy] = float
## scope = country
###Adds legitimacy to the current scope. Can also subtract. Target can be a country, in which case that country's legitimacy value is used. No effect if not a government monarchy.
alias[effect:add_legitimacy] = scope[country]
## scope = country
###Adds legitimacy to the current scope. Can also subtract. Target can be a country, in which case that country's legitimacy value is used. No effect if not a government monarchy.
alias[effect:add_legitimacy] = enum[country_tags]
## scope = country
###Adds republican tradition to the current scope. No effect if not a government using republic.
alias[effect:add_republican_tradition] = float
## scope = country
###Adds republican tradition to the current scope. Scales to the government's election cycle duration. No effect if not a government using republic.
alias[effect:add_scaled_republican_tradition] = float
## scope = country
###Adds devotion to the current scope. No effect if not a government using has_devotion.
alias[effect:add_devotion] = float
## scope = country
###Adds horde unity to the current scope. No effect if not a government using nomad.
alias[effect:add_horde_unity] = float
## scope = country
###Adds meritocracy to the current scope. No effect if not a government using has_meritocracy.
alias[effect:add_meritocracy] = float
## scope = country
###Sets the current meritocracy for the current scope. No effect if not a government using has_meritocracy.
alias[effect:set_meritocracy] = float
## scope = country
###Adds tribal allegiance to the current scope. No effect if not a government using tribal_federation_mechanic.
alias[effect:add_tribal_allegiance] = int
## scope = country
###Changes the Organist-Statist balance. Positive moves towards Orangist, negative moves towards Statists.
alias[effect:change_statists_vs_orangists] = float[-10.0..1.0]
## scope = country
###Changes the Organist-Monarchist balance. Positive (probably) moves towards Monarchist, negative (probably) moves towards Statists.
alias[effect:change_statists_vs_monarchists] = float[-2.0..2.0]
## scope = country
###Changes the government of the current scope. Governments are found in /Europa Universalis IV/common/governments/*.txt. In rebel_types, REB will make it pick the preferred rebel government.
alias[effect:change_government] = <government.normal>
## scope = country
###Changes the government of the current scope. Governments are found in /Europa Universalis IV/common/governments/*.txt. In rebel_types, REB will make it pick the preferred rebel government.
alias[effect:change_government] = enum[reb_nativesponsor]
## scope = country
###Changes the government rank of the current scope. Default range is 1 to 3.
alias[effect:set_government_rank] = int
## scope = country
###Changes the pool size of one of the power pools within a government mechanic.
alias[effect:add_government_power] = {
###Which government mechanic to add power to.
mechanic_type = <government_mechanic>
power_type = <government_mechanic_power>
value = float
## cardinality = 0..1
scaled_with_gain_modifier = bool
}
## scope = country
###Set the pool size of one of the power pools within a government mechanic.
alias[effect:set_government_power] = {
###Which government mechanic to add power to.
mechanic_type = <government_mechanic>
power_type = <government_mechanic_power>
value = float
}
## scope = country
###Freezes the pool size of one of the power pools within a government mechanic so it cannot changed until unfrozen.
alias[effect:freeze_government_power] = {
###Which government mechanic to add power to.
mechanic_type = <government_mechanic>
power_type = <government_mechanic_power>
}
## scope = country
###Freezes the pool size of one of the power pools within a government mechanic so it cannot changed until unfrozen.
alias[effect:unfreeze_government_power] = {
###Which government mechanic to add power to.
mechanic_type = <government_mechanic>
power_type = <government_mechanic_power>
}
## scope = country
###Changes the pool size of one of the power pools within a government mechanic, scaled to number of seats in parliament.
alias[effect:add_government_power_scaled_to_seats] = {
###Which government mechanic to add power to.
mechanic_type = <government_mechanic>
power_type = <government_mechanic_power>
value = int
## cardinality = 0..1
scaled_with_gain_modifier = bool
}
## scope = country
###Changes the current scope's government and rank at the same time. Governments are found in /Europa Universalis IV/common/governments/*.txt. Will respect that governments have fixed ranks and the maximum ranks for subject types.
alias[effect:set_government_and_rank] = {
government = <government>
rank = int
}
## scope = country
###Disables the Parliament mechanic. Only affects governments with has_parliament.
alias[effect:dissolve_parliament] = yes
## scope = country
###Re-enables the Parliament mechanic after dissolve_parliament. Only affects governments with has_parliament.
alias[effect:reinstate_parliament] = yes
## scope = country
###Adds a new accepted culture to the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:add_accepted_culture] = <culture>
## scope = country
###Adds a new accepted culture to the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:add_accepted_culture] = enum[culture_new_variables]
## scope = country
###Adds a new accepted culture to the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:add_accepted_culture] = scope[country]
## scope = country
###Adds a new accepted culture to the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:add_accepted_culture] = enum[country_tags]
## scope = country
###Adds a new accepted culture to the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:add_accepted_culture] = scope[province]
## scope = country
###Adds a new accepted culture to the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:add_accepted_culture] = <province_id>
## scope = country
###Changes the primary culture of the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:change_primary_culture] = <culture>
## scope = country
###Changes the primary culture of the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:change_primary_culture] = enum[culture_new_variables]
## scope = country
###Changes the primary culture of the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:change_primary_culture] = scope[country]
## scope = country
###Changes the primary culture of the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:change_primary_culture] = enum[country_tags]
## scope = country
###Changes the primary culture of the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:change_primary_culture] = scope[province]
## scope = country
###Changes the primary culture of the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:change_primary_culture] = <province_id>
## scope = country
###Removes an accepted culture from the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:remove_accepted_culture] = <culture>
## scope = country
###Removes an accepted culture from the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:remove_accepted_culture] = enum[culture_new_variables]
## scope = country
###Removes an accepted culture from the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:remove_accepted_culture] = scope[country]
## scope = country
###Removes an accepted culture from the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:remove_accepted_culture] = enum[country_tags]
## scope = country
###Removes an accepted culture from the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:remove_accepted_culture] = scope[province]
## scope = country
###Removes an accepted culture from the current scope. Cultures are found in /Europa Universalis IV/common/cultures/*.txt.
alias[effect:remove_accepted_culture] = <province_id>
## scope = { country province }
###Changes the religion of the current country/province scope. Religions are found in /Europa Universalis IV/common/religions/*.txt. Can utilise Event Scope Values.
alias[effect:change_religion] = <religion>
## scope = { country province }
###Changes the religion of the current country/province scope. Religions are found in /Europa Universalis IV/common/religions/*.txt. Can utilise Event Scope Values.
alias[effect:change_religion] = enum[religion_new_variables]
## scope = { country province }
###Changes the religion of the current country/province scope. Religions are found in /Europa Universalis IV/common/religions/*.txt. Can utilise Event Scope Values.
alias[effect:change_religion] = heretic
## scope = { country province }
###Changes the religion of the current country/province scope. Religions are found in /Europa Universalis IV/common/religions/*.txt. Can utilise Event Scope Values.
alias[effect:change_religion] = scope[country]
## scope = { country province }
###Changes the religion of the current country/province scope. Religions are found in /Europa Universalis IV/common/religions/*.txt. Can utilise Event Scope Values.
alias[effect:change_religion] = enum[country_tags]
## scope = { country province }
###Changes the religion of the current country/province scope. Religions are found in /Europa Universalis IV/common/religions/*.txt. Can utilise Event Scope Values.
alias[effect:change_religion] = scope[province]
## scope = { country province }
###Changes the religion of the current country/province scope. Religions are found in /Europa Universalis IV/common/religions/*.txt. Can utilise Event Scope Values.
alias[effect:change_religion] = <province_id>
## scope = { province country }
###Enables a religion that has been restricted with the date parameter. Religions are found in /Europa Universalis IV/common/religions/*.txt
alias[effect:enable_religion] = <religion>
## scope = country
###Sets whether the current scope has been force converted.
alias[effect:force_converted] = bool
## scope = country
###Adds authority to the current scope. Used in Religious Reforms that use authority. No effect if the country does not hold a religion using authority.
alias[effect:add_authority] = int
## scope = country
###Adds doom to the current scope. Used in Religious Reforms that use doom. No effect if the country does not hold a religion using doom.
alias[effect:add_doom] = int
## scope = country
###Removes taken religious reforms from the current scope. No effect if the country does not hold a religion using religious_reforms.
alias[effect:remove_religious_reforms] = int
## scope = country
###Adds Fervor to the current scope. No effect if the country does not hold a religion using fervor.
alias[effect:add_fervor] = int
## scope = country
###Adds Karma to the current scope. No effect if the country does not hold a religion using uses_karma.
alias[effect:add_karma] = float
## scope = country
###Sets the Karma value for the current scope. No effect if the country does not hold a religion using uses_karma.
alias[effect:set_karma] = int
## scope = country
###Adds Church Power to the current scope. No effect if the country does not hold a religion using uses_church_power.
alias[effect:add_church_power] = int[-200..200]
## scope = country
###Adds the defined aspect to the current scope. Church Aspects are found in /Europa Universalis IV/common/church_aspects/00_church_aspects.txt. No effect if the country does not hold a religion using uses_church_power and the aspect set in aspects. Does not work with Blessings.
alias[effect:add_church_aspect] = <aspects_and_blessings.church_aspect>
## scope = country
###Removes the defined aspect from the current scope. Church Aspects are found in /Europa Universalis IV/common/church_aspects/00_church_aspects.txt. No effect if the country does not hold a religion using uses_church_power and the aspect set in aspects. Does not work with Blessings.
alias[effect:remove_church_aspect] = <aspects_and_blessings.church_aspect>
## scope = country
###Removes the defined aspect from the current scope. Church Aspects are found in /Europa Universalis IV/common/church_aspects/00_church_aspects.txt. No effect if the country does not hold a religion using uses_church_power and the aspect set in aspects. Does not work with Blessings.
alias[effect:remove_church_aspect] = random
## scope = country
###Adds Papal Influence to the current scope. No effect if the country does not hold a religion using papacy.
alias[effect:add_papal_influence] = float
## scope = country
###Adds or subtracts Catholic Reform Desire.
alias[effect:add_reform_desire] = float
## scope = country
###Adds or subtracts Catholic Reform Desire.
alias[effect:add_reform_desire_scale] = float
## scope = country
###Excommunicates the defined scope. If already excommunicated, removes excommunication.
alias[effect:excommunicate] = scope[country]
## scope = country
###Excommunicates the defined scope. If already excommunicated, removes excommunication.
alias[effect:excommunicate] = enum[country_tags]
## scope = country
###Enables or disables the Papacy mechanic for the given religion.
alias[effect:set_religion_papacy_active] = {
religion = <religion>
active = bool
}
## scope = country
###Adds Piety to the current scope. No effect if the country does not hold a religion using uses_piety
alias[effect:add_piety] = float
## scope = country
###Changes the current scope's school opinion towards the defined scope's school. -1 for negative, 0 for netural and 1 for positive.
alias[effect:set_school_opinion] = {
who = scope[country]
who = enum[country_tags]
opinion = int[-1..1]
}
## scope = country
###Adds Patriarch Authority to the current scope. No effect if the country does not hold a religion using has_patriarchs.
alias[effect:add_patriarch_authority] = float #todo: from -1 to 1?
## scope = country
###Changes the current personal deity for the current scope. Personal Deities are found in /Europa Universalis IV/common/personal_deities/*.txt. No effect if the country does not hold a religion using personal_deity.
alias[effect:change_personal_deity] = <personal_deity>
# Only accepts int even though the interface shows 2 decimal places.
## scope = country
###Adds Harmony to the current scope. No effect if the country does not hold a religion using uses_harmony.
alias[effect:add_harmony] = int
## scope = country
###Adds a religion to the list of Harmonized religions for the current scope. No effect if the country does not hold a religion using uses_harmony.
alias[effect:add_harmonized_religion] = <religion>
## scope = country
###Adds a religion to the list of Harmonized religions for the current scope. No effect if the country does not hold a religion using uses_harmony.
alias[effect:add_harmonized_religion] = enum[religion_new_variables]
## scope = country
###Adds Harmonization Progress for the current harmonization target to the current scope. No effect if the country does not hold a religion using uses_harmony.
alias[effect:add_harmonization_progress] = int[-100..100]
## scope = country
###Adds the defined cult to the current scope. Cults can be found in /Europa Universalis IV/common/fetishist_cults/*.txt. No effect if the country does not hold a religion using fetishist_cult.
alias[effect:unlock_cult] = <cult>
## scope = country
###Adds Isolationism to the current scope. No effect if the country does not hold a religion using uses_isolationism.
alias[effect:add_isolationism] = int
## scope = country
###Sets Isolationism to the current scope. No effect if the country does not hold a religion using uses_isolationism.
alias[effect:set_isolationism] = int
## scope = country
###Changes the value of an Incident for the current scope. Incidents are found in /Europa Universalis IV/common/isolationism/*.txt
alias[effect:add_incident_variable_value] = {
incident = <incident>
value = int
}
## scope = country
###Sets the value of an Incident for the current scope. Incidents are found in /Europa Universalis IV/common/isolationism/*.txt
alias[effect:set_incident_variable_value] = {
incident = <incident>
value = int
}
## scope = country
###Adds an idea for the current scope. Ideas are found in /Europa Universalis IV/common/ideas/*.txt. Won't work if the idea isn't present in a National Idea set or a taken Idea groups set for the country
alias[effect:add_idea] = <idea>
## scope = country
###Adds an idea group for the current scope. Idea groups are found in /Europa Universalis IV/common/ideas/*.txt. Won't work if the country doesn't have any free idea group slots.
alias[effect:add_idea_group] = <idea_group>
## scope = country
###Adds a policy for the current scope. Policies are found in /Europa Universalis IV/common/policies/*.txt. Won't work if the policy triggers are not met by the country, or there are no free policy slots.
alias[effect:add_active_policy] = <policy>
## scope = country
###Changes the technology group of the current scope. Technology Groups are found in /Europa Universalis IV/common/technology.txt.. Doesn't change units, use change_unit_type.
alias[effect:change_technology_group] = <technology_group>
## scope = country
###Removes an idea for the current scope. Ideas are found in /Europa Universalis IV/common/ideas/*.txt.
alias[effect:remove_idea] = <idea>
## scope = country
###Removes an idea group for the current scope. Idea groups are found in /Europa Universalis IV/common/ideas/*.txt.
alias[effect:remove_idea_group] = <idea_group>
## scope = country
###Primitive status for the current scope. Primitive status controls whether a country has ships and if they can see Primitive-only mechanics, such as Religious Reforms.
alias[effect:set_primitive] = bool
## scope = country
###Re-evaluates the current scope's national idea set assignment, if they match a different set, they will switch to it. Used after tag changes to change National Idea sets.
alias[effect:swap_free_idea_group] = bool
## scope = province
###Adds embracement for the current progressing institution within the current scope. Institutions are found in /Europa Universalis IV/common/institutions/*.txt.
alias[effect:add_next_institution_embracement] = int[-100..100]
## scope = country
###Adds ADM technologies to the current scope. You cannot remove technologies.
alias[effect:add_adm_tech] = int
## scope = country
###Adds DIP technologies to the current scope. You cannot remove technologies.
alias[effect:add_dip_tech] = int
## scope = country
###Adds MIL technologies to the current scope. You cannot remove technologies.
alias[effect:add_mil_tech] = int
## scope = country
###Adds prestige to the current scope. Can also subtract.
alias[effect:add_prestige] = float
## scope = country
###Adds corruption to the current scope. Can also subtract.
alias[effect:add_corruption] = float
## scope = country
###Adds splendor to the current scope. Splendor is used to purchase Age abilities. Can also subtract.
alias[effect:add_splendor] = int
## scope = { country province }
###In country scope, adds the defined advisor to the current scope. Defaults the advisor's location to the capital, and religion and culture to the current scope's. In province scope, adds the defined advisor for the owner of the current province scope.
alias[effect:create_advisor] = <advisor_type>
## scope = country
###Kills a hired advisor for the current scope. Advisor types are found in /Europa Universalis IV/common/advisortypes/*.txt. Displays the advisor death message box when used. Only works for advisors that have been hired.
alias[effect:kill_advisor] = <advisor_type>
## scope = country
###Kills a hired advisor for the current scope. Advisor types are found in /Europa Universalis IV/common/advisortypes/*.txt. Displays the advisor death message box when used. Only works for advisors that have been hired.
alias[effect:kill_advisor] = random
## scope = country
###Kills a hired advisor for the current scope. Advisor types are found in /Europa Universalis IV/common/advisortypes/*.txt. Displays the advisor death message box when used. Only works for advisors that have been hired.
alias[effect:kill_advisor] = <advisor_id>
## scope = country
###Removes a hired advisor for the current scope. Advisor types are found in /Europa Universalis IV/common/advisortypes/*.txt. Does not display the advisor death message box when used. Only works for advisors that have been hired.
alias[effect:remove_advisor] = <advisor_type>
## scope = country
###Removes a hired advisor for the current scope. Advisor types are found in /Europa Universalis IV/common/advisortypes/*.txt. Does not display the advisor death message box when used. Only works for advisors that have been hired.
alias[effect:remove_advisor] = random
## scope = country
###Removes a hired advisor for the current scope. Advisor types are found in /Europa Universalis IV/common/advisortypes/*.txt. Does not display the advisor death message box when used. Only works for advisors that have been hired.
alias[effect:remove_advisor] = <advisor_id>
## scope = country
###Removes a hired advisor of a monarch power type for the current scope. Fires on_action for advisor being fired.
alias[effect:remove_advisor_by_category] = enum[power_categories]
## scope = country
###Adds the defined advisor to the current scope. Advisor types are found in /Europa Universalis IV/common/advisortypes/*.txt. Can utilise Event Scope Values for the culture and religion parameters. The name parameter can accept a saved name variable, see set_saved_name for more context.
alias[effect:define_advisor] = {
type = <advisor_type>
## cardinality = 0..1
skill = int[1..5]
## cardinality = 0..1
name = localisation_synced
## cardinality = 0..1
name = value[saved_name]
## cardinality = 0..1
cost_multiplier = float
## cardinality = 0..1
discount = yes
## 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 = <province_id>
## cardinality = 0..1
culture = scope[province]
## 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
location = scope[province]
## cardinality = 0..1
location = <province_id>
## cardinality = 0..1
female = bool
## cardinality = 0..1
age = int
## cardinality = 0..1
min_age = int
## cardinality = 0..1
max_age = int
}
## scope = country
###Adds stability to the current scope.
alias[effect:add_stability] = int
## scope = country
###Adds war exhaustion to the current scope.
alias[effect:add_war_exhaustion] = float
## scope = country
###Adds liberty desire to the current scope.
alias[effect:add_liberty_desire] = int
## scope = country
###Disbands all active rebels of the specified type in the provinces of the current scope. Rebel types are found in /Europa Universalis IV/common/rebel_types/*.txt
alias[effect:disband_rebels] = <rebel_type>
## scope = country
###Causes owned cores of the current scope to be released as nations and for them to take a percentage of the current scope's owned provinces.
alias[effect:collapse_nation] = yes
## scope = country
###Applies an event modifier to the current scope that is removed when the disaster is over, or the duration runs out. Disasters are found in /Europa Universalis IV/common/disasters/*.txt
alias[effect:add_disaster_modifier] = {
name = <event_modifier>
duration = int
disaster = <disaster>
}
## scope = country
###Adds progress towards an already declared (conditions for disaster are met since at least a month) disaster
alias[effect:add_disaster_progress] = {
value = int
disaster = <disaster>
}
## scope = country
###Immediately ends an active disaster for the current scope. Disasters are found in /Europa Universalis IV/common/disasters/*.txt
alias[effect:end_disaster] = <disaster>
## scope = country
###Adds Army Tradition to the current scope.
alias[effect:add_army_tradition] = float
## scope = country
###Adds Navy Tradition to the current scope.
alias[effect:add_navy_tradition] = float
## scope = country
###Adds Army Professionalism to the current scope. 1 is equal to 100 professionalism.
alias[effect:add_army_professionalism] = float[-1.0..1.0]
# Severity warning because M&T actually does use numbers above 1 million!
## severity = warning
## scope = country
###Adds manpower to the current scope. 1 is equal to 1000 manpower.
alias[effect:add_manpower] = float[-999.0..999.0] #I am assuming no one wants to add 1,000,000 manpower to a country
## scope = country
###Adds sailors to the current scope. 100 is equal to 100 sailors but 0-1 is read as a fraction of the total sailor cap of the country.
alias[effect:add_sailors] = int
## scope = country
###Adds sailors to the current scope. 100 is equal to 100 sailors but 0-1 is read as a fraction of the total sailor cap of the country.
alias[effect:add_sailors] = float[-1.0..1.0]
## scope = country
###Adds manpower to the current scope, as a percentage of total yearly manpower. 1 is equal to 100% of total yearly manpower.
alias[effect:add_yearly_manpower] = float
## scope = country
###Adds sailors to the current scope, as a percentage of total yearly sailors. 1 is equal to 100% of total yearly sailors.
alias[effect:add_yearly_sailors] = float[-10.0..20.0] #I am assuming no one wants to add more than 20 years of manpower to a country
## scope = country
###Generates an new admiral for the current scope. The number is the amount of navy tradition to use in generation.
alias[effect:create_admiral] = {
tradition = int[0..100]
## cardinality = 0..1
###Added to randomly generated value
add_fire = int
## cardinality = 0..1
###Added to randomly generated value
add_shock = int
## cardinality = 0..1
###Added to randomly generated value
add_manuever = int
## cardinality = 0..1
###Added to randomly generated value
add_siege = int
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = <culture>
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = enum[culture_new_variables]
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = scope[province]
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = <province_id>
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = scope[country]
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = enum[country_tags]
## cardinality = 0..1
name = localisation_synced
## cardinality = 0..1
female = bool
}
## scope = country
###Generates an new explorer for the current scope. The number is the amount of navy tradition to use in generation.
alias[effect:create_explorer] = {
tradition = int[0..100]
## cardinality = 0..1
###Added to randomly generated value
add_fire = int
## cardinality = 0..1
###Added to randomly generated value
add_shock = int
## cardinality = 0..1
###Added to randomly generated value
add_manuever = int
## cardinality = 0..1
###Added to randomly generated value
add_siege = int
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = <culture>
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = enum[culture_new_variables]
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = scope[province]
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = <province_id>
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = scope[country]
## cardinality = 0..1
###Gives the general a random name from the specified culture.
culture = enum[country_tags]
## cardinality = 0..1
name = localisation_synced
## cardinality = 0..1
female = bool
}
## scope = country
###Generates an new conquistador for the current scope. The number is the amount of army tradition to use in generation.
alias[effect:create_conquistador] = {
tradition = int[0..100]
## cardinality = 0..1
###Added to randomly generated value