-
Notifications
You must be signed in to change notification settings - Fork 20
/
2.4.1_game_triggers.txt
5091 lines (4112 loc) · 189 KB
/
2.4.1_game_triggers.txt
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
[20:54:29][game_application.cpp:350]: Game Version: Lee v2.4.1
[20:54:29][defines.cpp:123]: 1188 defines loaded
[20:54:57][consolecmdimpl.cpp:2484]:
== TRIGGER DOCUMENTATION ==
text - For 'desc={trigger={' use. Shows custom text
text = <text>
Supported Scopes: all
Supported Targets: none
custom_tooltip - Replaces the tooltips for the enclosed triggers with a custom text
custom_tooltip = {
text = <text used as fallback for both fails and successes>
fail_text = <text used for fails["string"/default/none]>
success_text = <text used for seccesses["string"/default/none]>
<triggers>
}
Supported Scopes: all
Supported Targets: none
if - Evaluates the triggers if the display_triggers of the limit are met
if = { limit = { <display_triggers> } <triggers> }
Supported Scopes: all
Supported Targets: none
any_playable_country - Checks if any playable country meet the specified criteria
any_playable_country = { <triggers> }
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_mission - Checks if the observation post has a specific mission
has_mission = technological_enlightenment_4
Supported Scopes: fleet
Supported Targets: none
switch - Switch case for a trigger
switch = {
trigger = pop_has_ethic
ethic_xenophile = { <trigger> }
ethic_xenophobe = { <trigger> }
default = { <trigger> }
}
Supported Scopes: all
Supported Targets: ???
num_fleets - Checks the country's number of fleets
num_fleets < 8
Supported Scopes: country
Supported Targets: ???
num_ships - Checks the country/fleet's number of ships
num_ships > 39
Supported Scopes: country fleet
Supported Targets: ???
research_leader - Checks if the country's researcher in a specific field meets the specified criteria
research_leader = { area = engineering <triggers> }
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_fleet_order - Checks if the ship/fleet has a specific fleet order
has_fleet_order = survey_planet_order
Supported Scopes: ship fleet
Supported Targets: none
closest_system - Checks if any close-by systems meet the criteria
closest_system = { min_steps = 2 max_steps = 20 <triggers> }
Supported Scopes: all
Supported Targets: ???
any_owned_fleet - Checks if any of the country's owned fleets meet the specified criteria
any_owned_fleet = { <targets> }
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_orbital_station - Checks if the planet has any kind of orbital station
has_orbital_station = yes
Supported Scopes: planet
Supported Targets: none
any_orbital_station - Checks if the planet's orbital station meets the specified criteria
any_orbital_station = { <triggers> }
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
else_if - Evaluates the enclosed triggers if the display_triggers of the preceding `if` or `else_if` is not met and its own display_trigger of the limit is met
if = { limit = { <display_triggers> } <triggers> }
else_if = { limit = { <display_triggers> } <triggers> }
Supported Scopes: all
Supported Targets: none
happiness - Checks the pop's happiness percentage
happiness < 90
Supported Scopes: pop
Supported Targets: none
is_half_species - Check if scoped species is half species of specific/any species
is_half_species = <target/any>
Supported Scopes: species
Supported Targets: none
faction_approval - Checks the scoped faction's approval percentage
faction_approval < 0.9
Supported Scopes: pop_faction
Supported Targets: none
has_designation - Checks if the colony has a certain designation
has_designation = col_rural
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
colony_type - Checks if the colony is of a certain type
colony_type = col_rural
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
last_building_changed - Checks if the last building queued/unqueued/built/demolished/upgraded was the specified building
last_building_changed = building_capitol
Supported Scopes: planet
Supported Targets: none
empire_size - Checks the empire's size
empire_size < 20
Supported Scopes: country
Supported Targets: ???
last_district_changed - Checks if the last district queued/unqueued/built/demolished/upgraded was the specified district
last_district_changed = district_capitol
Supported Scopes: planet
Supported Targets: none
has_ring - Checks if the planet has a planetary ring
has_ring = yes
Supported Scopes: planet
Supported Targets: none
is_moon - Checks if the planet is the moon of another planet
is_moon = yes
Supported Scopes: planet
Supported Targets: none
opinion - Checks the country's opinion of the target country
opinion = { who = <target> value = -70 }
Supported Scopes: country
Supported Targets: ???
ideal_planet_class - Checks if the country's ideal planet class is a specific class
ideal_planet_class = pc_tundra
Supported Scopes: country
Supported Targets: none
ethos - Checks the average ethics divergence on the planet
ethos < 0.4
Supported Scopes: planet
Supported Targets: none
distance - Checks the ship/fleet/planet/leader/pop/system's galaxy map distance to target in absolute units
distance = { source = <target> min = 50 max = 120 type=<hyperlane/euclidean> uses_bypass=<yes/no> bypass_empire=<empire> min_jumps = 2 max_jumps = 10 }
Supported Scopes: planet ship pop fleet galactic_object leader archaeological_site
Supported Targets: none
is_pirate - Checks if the country is a pirate country
is_pirate = yes
Supported Scopes: country
Supported Targets: none
planet_size - Checks the planet's size
planet_size < 20
Supported Scopes: planet
Supported Targets: ???
gender - Checks the leader's gender
gender = female
Supported Scopes: leader
Supported Targets: ???
any_planet_within_border - Checks if any planets within the country's borders meet the specified criteria
any_planet_within_border = { <triggers> }
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
any_owned_ship - Checks if any of the country's ships meet the specified criteria
any_owned_ship = { <triggers> }
Supported Scopes: country fleet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
any_ship - Checks if any ships in the game meet the specified criteria
any_ship = { <triggers> }
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
pop_has_ethic - Checks if the pop has a specific ethos
pop_has_ethic = ethic_fanatic_xenophile
Supported Scopes: pop
Supported Targets: none
pop_has_trait - Checks if the pop has a specific trait
pop_has_trait = trait_decadent
Supported Scopes: pop
Supported Targets: none
has_observation_outpost - Checks if the planet has an observation post
has_observation_outpost = yes
Supported Scopes: planet
Supported Targets: none
starting_system - Checks if the system is the starting system for any country
starting_system = yes
Supported Scopes: galactic_object
Supported Targets: none
graphical_culture - Checks if the country has specific graphical culture
graphical_culture = fungoid_01
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
vassals - Checks the country's number of vassals
vassals > 0
Supported Scopes: country
Supported Targets: ???
exists - Checks if a target scope exists
exists = <target>
Supported Scopes: all
Supported Targets: ???
has_edict - Checks if the country has a specific edict enabled
has_edict = crystal_sonar
Supported Scopes: country
Supported Targets: ???
is_designable - Checks if the scoped ship design, ship or fleet (all ships) has a designable ship size.
is_designable = yes
Supported Scopes: ship fleet design
Supported Targets: none
is_in_cluster - Checks if the planet/system belongs to a specific spawning cluster
is_in_cluster = resource_cluster_3
Supported Scopes: planet galactic_object
Supported Targets: ???
any_moon - Checks if any of the planet's moons meet the specified criteria
any_moon = { <triggers> }
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
num_empires - Checks the number of regular empires in the galaxy
num_empires > 3
Supported Scopes: country
Supported Targets: none
leader_class - Checks if the leader is of a specific class
leader_class = scientist
Supported Scopes: leader
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
observation_outpost_owner - Checks if the planet's observation post's owner meets the specified criteria
observation_outpost_owner = { <triggers> }
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
observation_outpost - Checks if the planet's observation post meets the specified criteria
observation_outpost = { <triggers> }
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_deposit - Checks if the planet has any, or a specific, deposit
has_deposit = yes
has_deposit = d_immense_engineering_deposit
Supported Scopes: planet deposit
Supported Targets: none
is_same_value - Checks if the current scope and the target scope are the same thing
is_same_value = <target>
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_pop_faction_flag - Checks if the pop faction has a specific flag
has_pop_faction_flag = <flag>
Supported Scopes: pop pop_faction
Supported Targets: none
num_communications - Checks the country's number of established communications
num_communications > 3
Supported Scopes: country
Supported Targets: none
last_changed_policy - Checks if the last policy changed by the country was a specific policy
last_changed_policy = slavery
Supported Scopes: country
Supported Targets: ???
is_species - Checks if the pop/country's founder species is of a specific pre-defined species
is_species = ROBOT_POP_SPECIES_2
Supported Scopes: pop leader species
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
last_increased_tech - Checks if the country's last researched technology was a specific tech
last_increased_tech = tech_gene_expressions
Supported Scopes: country
Supported Targets: ???
any_war - Checks if any wars meet the specified criteria
any_war = { <triggers> }
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
any_defender - Checks if any of the defenders in the war meet the specified criteria
any_defender = { <triggers> }
Supported Scopes: war
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
any_attacker - Checks if any attackers in the war meet the specified criteria
any_attacker = { <triggers> }
Supported Scopes: war
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
original_owner - Checks if the planet is still owned by its first colonizer
original owner = yes
Supported Scopes: planet
Supported Targets: none
tech_unlocked_ratio - Checks the relative amount of already-researched tech between the country and target country
tech_unlocked_ratio = { who = <target> ratio = 0.4 }
Supported Scopes: country
Supported Targets: ???
can_colonize - Checks if the planet can be colonized by target country
can_colonize = { who = <target> status = yes }
Supported Scopes: planet
Supported Targets: none
has_special_project - Checks if the country has a specific special project available
has_special_project = EMERGENCY_BUOY_PROJECT
Supported Scopes: country
Supported Targets: none
is_subspecies - Checks if the pop/country/species is a subspecies of the target pop/country/species
is_subspecies = <target>
Supported Scopes: country pop species
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
is_valid - Checks to see if target scope is valid for the country/planet/army
is_valid = <target>
Supported Scopes: planet country army
Supported Targets: ???
check_pop_faction_parameter - Checks if one of the faction's parameters is the same as target scope
check_pop_faction_parameter = { which = <parameter> value = <target> }
Supported Scopes: pop_faction
Supported Targets: none
is_robot_pop - Checks if the pop is a robot
is_robot_pop = yes
Supported Scopes: pop
Supported Targets: none
num_fallen_empires - Checks the number of fallen empires in the galaxy
num_fallen_empires > 3
Supported Scopes: country
Supported Targets: none
is_preferred_weapons - Checks if the country's AI prefers weapons using this component tag
is_preferred_weapons = weapon_type_energy
Supported Scopes: country
Supported Targets: none
has_access_fleet - Checks if the system is accessible to the target country with construction vessels
has_access_construction = <target>
Supported Scopes: galactic_object
Supported Targets: ???
is_point_of_interest - Checks if the planet/country/ship/system/ambient object has a specific point of interest for a specific event chain for a specific country
is_point_of_interest = { id = <id> event_chain = <event_chain> owner = <target> }
Supported Scopes: planet country ship galactic_object ambient_object
Supported Targets: ???
terraformed_by - Checks if planet is terraformed by country.
Supported Scopes: planet
Supported Targets: none
has_megastructure - Checks if a country or star has a mega structure.
Supported Scopes: country galactic_object
Supported Targets: none
recently_lost_war - Checks if the country is at war
is_at_war = yes
Supported Scopes: country
Supported Targets: none
count_diplo_ties - Checks the number of diplomatic in the scope that fulfill the specified criteria
count_countries = { count < 6 limit = { <triggers> } }
Supported Scopes: country
Supported Targets: none
has_research_agreement - Checks if two countries have a research agreement.
Supported Scopes: country
Supported Targets: none
has_tributary - Checks if two countries have a research agreement.
Supported Scopes: country
Supported Targets: none
upgrade_days_left - Checks a mega structure amount of upgrade days left.
upgrade_days_left > 360
Supported Scopes: megastructure
Supported Targets: none
has_any_megastructure - Checks if the scope has a megastructure
has_any_megastructure = yes
Supported Scopes: planet galactic_object
Supported Targets: none
former_living_standard_type - Compares the former living standard type with the given one.
former_living_standard_type = living_standard_normal
Supported Scopes: pop
Supported Targets: none
former_citizenship_type - Compares the former citizenship type with the given one.
former_citizenship_type = citizenship_full
Supported Scopes: pop
Supported Targets: none
former_military_service_type - Compares the former military service type with the given one.
former_military_service_type = military_service_full
Supported Scopes: pop
Supported Targets: none
former_slavery_type - Compares the former slavery type with the given one.
former_slavery_type = slavery_normal
Supported Scopes: pop
Supported Targets: none
former_purge_type - Compares the former purge type with the given one.
former_purge_type = purge_normal
Supported Scopes: pop
Supported Targets: none
former_population_control_type - Compares the former population control type with the given one.
former_population_control_type = population_control_yes
Supported Scopes: pop
Supported Targets: none
former_migration_control_type - Compares the former migration control type with the given one.
former_migration_control_type = migration_control_yes
Supported Scopes: pop
Supported Targets: none
is_alliance_fleet - Checks if the scoped fleet is an alliance fleet.
is_alliance_fleet = <yes/no>
Supported Scopes: fleet
Supported Targets: none
is_researching_special_project - Checks if the country is currently researching a specific special project
is_researching_special_project = special_project_name
Supported Scopes: country leader
Supported Targets: none
last_activated_relic - Checks if the specified relic was the last activated one
last_activated_relic = <relic_key>
Supported Scopes: country
Supported Targets: none
any_system_planet - Checks if any planet in the system meets the specified criteria
any_planet = { <triggers> }
Supported Scopes: galactic_object
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
is_scope_type - Checks currently in the specified scope:
is_scope_type = fleet
valid tokens are: none, megastructure, planet, country, ship, pop, fleet, galactic_object, leader, army, ambient_object, species, design,pop_faction, war, alliance, starbase,deposit,observer, sector.
Supported Scopes: all
Supported Targets: none
has_unlocked_all_traditions - Checks if the country has unlocked all traditions
has_unlocked_all_traditions = yes/no
Supported Scopes: country
Supported Targets: ???
has_potential_claims - Checks if the country has any potential claims they can make.
has_potential_claims = yes/no
Supported Scopes: country
Supported Targets: ???
and - all inside trigger must be true
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
or - At least one entry inside the trigger must be true
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
not - An inverted trigger
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
any_planet - Checks if any planet ANYWHERE meets the specified criteria
any_planet = { <triggers> }
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
is_star - Checks if the planet is a star
is_star = yes
Supported Scopes: planet
Supported Targets: none
is_asteroid - Checks if the planet is an asteroid
is_asteroid = yes
Supported Scopes: planet
Supported Targets: none
species_portrait - Checks if the species (or pop/empire's dominant species) uses a certain portrait
species_portrait = rep13
Supported Scopes: country pop species
Supported Targets: none
is_neutral_to - Checks if the country has a neutral attitude towards target country
is_neutral_to = <target>
Supported Scopes: country
Supported Targets: none
trust - Checks the country's trust of the target country
trust = { who = <target> value = 50 }
Supported Scopes: country
Supported Targets: ???
hidden_trigger - Hides the tooltip for the triggers within
hidden_trigger = { <triggers> }
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_district - Checks if the planet has any, or a specific, district
has_district = yes
has_district = district_mining
Supported Scopes: planet
Supported Targets: none
free_district_slots - Checks the planet's number of slots available for new constructions
free_district_slots > 2
Supported Scopes: planet
Supported Targets: ???
has_owner - Checks if the planet/system is colonized
has_owner = yes
Supported Scopes: planet galactic_object
Supported Targets: none
any_owned_planet - Checks if any of the country's owned planets meet the specified criteria
any_owned_planet = { <triggers> }
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
free_housing - Checks the planet's available housing
free_housing > 5
Supported Scopes: planet
Supported Targets: ???
any_controlled_planet - Checks if any of the country's controlled planets meet the specified criteria
any_controlled_planet = { <triggers> }
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
is_ai - Checks if the country is played by the AI
is_ai = no
Supported Scopes: country
Supported Targets: none
always - Sets trigger to be either always true or false
always = yes
Supported Scopes: all
Supported Targets: none
has_trait - Checks if a pop/leader/species/country's dominant species has a certain trait
has_trait = leader_trait_carefree
Supported Scopes: country pop leader species
Supported Targets: none
has_ethic - Checks if a country has a certain ethos
has_ethic = ethic_fanatic_pacifist
Supported Scopes: country pop
Supported Targets: none
is_owned_by - Checks if the planet/system/army/ship is owned by the target country
is_owned_by = <target>
Supported Scopes: planet ship galactic_object army
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
pop_can_live_on_planet - Checks if the pop's species is allowed to live on its planet
pop_can_live_on_planet = yes
Supported Scopes: pop
Supported Targets: none
days_passed - Checks the number of in-game days passed since the 2200.1.1 start
days_passed < 15
Supported Scopes: all
Supported Targets: none
free_amenities - Checks the planet's available amenities
free_amenities > 5
Supported Scopes: planet
Supported Targets: ???
has_deficit - Checks if the country has a deficit of the defined resource
has_deficit = minerals
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_commercial_pact - Check if the country has a commercial pact with target country
has_commercial_pact = <target>
Supported Scopes: country
Supported Targets: none
is_being_assimilated - Checks if the pop is being purged
is_being_assimilated = yes
Supported Scopes: pop
Supported Targets: none
num_guaranteed_colonies - Checks the number of guaranteed colonies defined in setup
num_guaranteed_colonies > 1
Supported Scopes: all
Supported Targets: none
num_owned_relics - Checks the number of relics owned by the scoped country
num_owned_relics > 1
Supported Scopes: country
Supported Targets: none
has_branch_office - Check if the planet has a branch office owned by target country/any country/no country
has_branch_office = <target/yes/no>
Supported Scopes: planet
Supported Targets: none
is_same_species - checks if the scoped object is of the same species as another object
is_same_species = <target>
Supported Scopes: country ship pop leader army species
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
is_criminal_syndicate - Checks if the country is a criminal syndicate
is_criminal_syndicate = yes
Supported Scopes: country
Supported Targets: none
is_blocker - Checks if scoped deposit is a blocker-type
is_blocker = yes
Supported Scopes: deposit
Supported Targets: none
is_same_empire - Checks if the country is the same as another, target country
is_same_empire = <target>
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
free_branch_office_building_slots - Checks the planet's number of branch office slots available for new constructions
free_building_slots > 2
Supported Scopes: planet
Supported Targets: ???
branch_office_value - Checks the planet's branch officevalue
branch_office_value = { who = <target> value > 10 }
Supported Scopes: planet
Supported Targets: ???
free_jobs - Checks the number of jobs compared to pops on the planet
free_jobs > 12
Supported Scopes: planet
Supported Targets: none
is_planet_class - Checks if the planet is of a certain class
is_planet_class = pc_tundra
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_strategic_resource - Checks if the planet has any strategic resource
has_strategic_resource = yes
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
is_star_class - Checks if the system/planet(star) is of a certain class
is_star_class = sc_black_hole
Supported Scopes: planet galactic_object
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_technology - Checks if the country has a technology (of at least a specific level)
has_technology = tech_spaceport_4
Supported Scopes: country
Supported Targets: none
any_fleet_in_orbit - Checks if any fleet in orbit of the planet meet the specified criteria
any_fleet_in_orbit = { <triggers> }
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
planet_devastation - Checks the planet's devastation
planet_devastation > 10
Supported Scopes: planet
Supported Targets: ???
is_pop_category - Checks if the pop has the chosen pop category
is_pop_category = <key>
Supported Scopes: pop
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
won_the_game - Checks if scoped country won the game
won_the_game = yes
Supported Scopes: country
Supported Targets: none
planet_stability - Compares the stability present on the planet with the given value
planet_stability > 50
Supported Scopes: planet
Supported Targets: none
perc_communications_with_playable - Checks the country's percentage of communications with playable empires
num_communications > 3
Supported Scopes: country
Supported Targets: none
planet_crime - Compares the crime present on the planet with the given value
planet_crime > 50
Supported Scopes: planet
Supported Targets: none
has_job - Checks if the pop has a specific job, or any job if set to yes
has_job = <key/yes>
Supported Scopes: pop
Supported Targets: none
has_planet_modifier - Checks if the planet has a specific planet modifier
has_planet_modifier = pm_titanic_life
Supported Scopes: planet
Supported Targets: none
is_deposit_type - Checks if deposit is specified type
is_deposit_type = d_immense_engineering_deposit
Supported Scopes: deposit
Supported Targets: none
has_built_species - Checks if country has a built species defined
has_built_species = yes/no
Supported Scopes: country
Supported Targets: ???
num_buildings - Checks the number the planet has of any, or a specific, building
num_buildings = { type = <key/any> value > 2 }
Supported Scopes: planet
Supported Targets: none
num_districts - Checks the number the planet has of any, or a specific, district
num_districts = { type = <key/any> value > 2 }
Supported Scopes: planet
Supported Targets: none
num_free_districts - Checks the number of available slots the planet has of any, or a specific, district
num_free_districts = { type = <key/any> value > 2 }
Supported Scopes: planet
Supported Targets: none
has_planet_flag - Checks if the planet has a specific flag
has_planet_flag = <flag>
Supported Scopes: planet
Supported Targets: none
has_country_flag - Checks if the empire has a specific flag
has_country_flag = <flag>
Supported Scopes: country
Supported Targets: none
has_fleet_flag - Checks if the fleet has a specific flag
has_fleet_flag = <flag>
Supported Scopes: fleet
Supported Targets: none
has_ship_flag - Checks if the ship has a specific flag
ships_flag = <flag>
Supported Scopes: ship
Supported Targets: none
is_ship_class - Checks if the ship/fleet/design is a specific class
is_ship_class = shipclass_colonizer
Supported Scopes: ship fleet design
Supported Targets: none
is_ship_size - Checks if the ship/fleet/design is a specific ship size
is_ship_size = mining_station
Supported Scopes: ship fleet design
Supported Targets: none
is_capital - Checks if the planet is its owner's capital
is_capital = yes
Supported Scopes: planet
Supported Targets: none
has_ground_combat - Checks if ground combat is taking place on the planet
has_ground_combat = yes
Supported Scopes: planet
Supported Targets: none
is_at_war - Checks if the country is at war
is_at_war = yes
Supported Scopes: country
Supported Targets: none
num_owned_planets - Checks the country's number of owned planets
num_owned_planets < 8
Supported Scopes: country
Supported Targets: none
has_government - Checks if the country has a specific government type
has_government = despotic_hegemony
Supported Scopes: country
Supported Targets: none
num_pops - Checks the number of pops on the planet/country/pop faction
num_pops > 12
Supported Scopes: planet country pop_faction
Supported Targets: none
is_primitive - Checks if the country is a primitive, pre-FTL civilization
is_primitive = yes
Supported Scopes: country
Supported Targets: none
is_archetype - Checks if species has specified archetype:
is_archetype = PRESAPIENT
Supported Scopes: species
Supported Targets: none
is_inside_nebula - checks if the planet/ship/fleet/system is inside a nebula
is_inside_nebula = yes
Supported Scopes: planet ship fleet galactic_object
Supported Targets: none
is_in_frontier_space - checks if the planet/ship/fleet/system is in frontier space
is_in_frontier_space = yes
Supported Scopes: planet ship fleet galactic_object
Supported Targets: none
is_inside_border - Checks if the planet/ship/fleet/system is inside the borders of the target country
is_inside_border = <target>
Supported Scopes: planet ship fleet galactic_object
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
any_country - Iterate through all countries
any_country = { <count=<num/all>> <triggers> }
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
any_pop - Checks if any of the planet/species/pop faction pops meet the specified criteria
any_pop = { <triggers> }
Supported Scopes: planet species pop_faction
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
is_overlord - Checks if the country is the overlord of any subject countries
is_overlord = yes
Supported Scopes: country
Supported Targets: none
is_at_war_with - Checks if the country is at war with the target country
is_at_war_with = <target>
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
their_opinion - Checks target country's opinion value of the current country
their_opinion = { who = <target> value > 25 }
Supported Scopes: country
Supported Targets: ???
is_same_species_class - Checks if the pop/country is of the same species class as another pop/country
is_same_species_class = <target>
Supported Scopes: country pop
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
has_federation - Checks if the country is in a federation
has_federation = yes
Supported Scopes: country
Supported Targets: none
is_colonizable - Checks if the planet can theoretically be colonized
is_colonizable = yes
Supported Scopes: planet
Supported Targets: none
has_level - Checks if the leader has a specific experience level
has_level > 2
Supported Scopes: leader
Supported Targets: ???
num_minerals - Checks the planet's total amount of minerals
num_minerals < 20
Supported Scopes: planet
Supported Targets: none
num_physics - Checks the planet's total amount of physics research
num_physics = 8
Supported Scopes: planet
Supported Targets: none
num_society - Checks the planet's total amount of society research
num_society > 8
Supported Scopes: planet
Supported Targets: none
num_engineering - Checks the planet's total amount of engineering research
num_engineering < 8
Supported Scopes: planet
Supported Targets: none
num_modifiers - Checks the planet's number of modifiers
num_modifiers < 3
Supported Scopes: planet
Supported Targets: none
has_any_strategic_resource - Checks if the planet has any strategic resource
has_any_strategic_resource = yes
Supported Scopes: planet
Supported Targets: none
has_pop_flag - Checks if the pop has a specific flag
has_pop_flag = <flag>
Supported Scopes: pop
Supported Targets: none
is_occupied_flag - Checks if the planet is under military occupation
is_occupied_flag = yes
Supported Scopes: planet
Supported Targets: none
is_damaged - Checks if the ship is damaged
is_damaged = yes
Supported Scopes: ship
Supported Targets: none
has_hp - Checks the ship's hull points
has_hp > 200
Supported Scopes: ship
Supported Targets: none
is_surveyed - Checks if the planet/system has been survey by target country
is_surveyed = { who = <target> status = yes }
Supported Scopes: planet galactic_object
Supported Targets: none
has_global_flag - Checks if a Global Flag has been set
has_global_flag = <flag>
Supported Scopes: all
Supported Targets: none
check_variable - Checks a variable for the country/leader/planet/system/fleet
check_variable = { which = <variable> value < 4 }
Supported Scopes: planet country fleet galactic_object leader
Supported Targets: none
is_colony - Checks if the planet is colonized
is_colony = yes
Supported Scopes: planet
Supported Targets: none
habitability - Checks the planet's habitability (0 to 1) for target pop/species
habitability = { who = <target> value = 0.6 }
Supported Scopes: planet
Supported Targets: none
has_building - Checks if the planet has any, or a specific, building
has_building = yes
has_building = building_capital_3
Supported Scopes: planet
Supported Targets: none
is_controlled_by - Checks if the planet is controlled by the target country
is_controlled_by = <target>
Supported Scopes: planet
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
is_terraformed - Checks if the planet has ever been terraformed
is_terraformed = yes
Supported Scopes: planet
Supported Targets: none
is_terraforming - Checks if the planet is currently being terraformed
is_terraforming = yes
Supported Scopes: planet
Supported Targets: none
is_federation_leader - Checks if the country is the leader of their federation
is_federation_leader = yes
Supported Scopes: country
Supported Targets: none
has_star_flag - Checks if the solar system has a specific flag
has_star_flag = <flag>
Supported Scopes: galactic_object
Supported Targets: none
has_mining_station - Checks if the planet has an orbital mining station
has_mining_station = yes
Supported Scopes: planet
Supported Targets: none
has_research_station - Checks if the planet has an orbital researc station