forked from Numahr/lux-invicta-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathway_of_life_decisions.txt
1123 lines (1040 loc) · 23.7 KB
/
way_of_life_decisions.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
# Targetted decisions are possible vs _all_ other characters and shown are in the Diplomacy View, not the Intrigue View. The taker is in the FROM scope.
#
# filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/spouse/liege/religious_head/rivals/society/all] ('self' MUST be set for decisions targetting only the taker, the other filter types can be set to lessen CPU load)
# ai_target_filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/spouse/liege/religious_head/rivals/society/all] (which characters for which the AI evaluates the decision.)
# court: all characters in the host court, including prisoners, and characters currently away (wards, prisoners, etc)
# home_court: all characters in the home court, including prisoners, and characters currently away (wards, prisoners, etc)
# vassals: direct vassal rulers of the AI's employer
# sub_realm: all characters below the AI's employer
# realm: all characters in the same top realm as the AI
# dynasty: all members of the same dynasty (but not yourself)
# rivals: your rivals plus any character you have an opinion modifier with 'crime = yes' set (the same set of characters the 'is_foe' trigger evaluates)
# society: the other members of your society (but not yourself)
# all: all living characters (Avoid if possible. VERY CPU-HEAVY!)
#
targetted_decisions = {
break_up_with_lover = {
ai_target_filter = court
from_potential = {
ai = no
has_dlc = "Way of Life"
has_lover = yes
}
potential = {
is_lover = FROM
NOT = { any_spouse = { character = FROM } }
NOT = { any_consort = { character = FROM } }
}
allow = {
always = yes
}
effect = {
FROM = { character_event = { id = WoL.1109 tooltip = EVTTOOLTIP64046 } }
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
}
}
seduce_decision = {
only_playable = yes
ai_target_filter = realm
ai_check_interval = 3
from_potential = {
has_focus = focus_seduction
is_marriage_adult = yes
NOT = { trait = incapable }
prisoner = no
NOT = { has_any_opinion_modifier = opinion_seducing }
OR = {
ai = no
AND = {
OR = {
is_female = no
AND = {
trait = homosexual
OR = {
is_married = yes
is_consort = yes
}
}
trait = lustful
any_spouse = {
trait = homosexual
}
any_consort = {
trait = homosexual
}
}
is_ill = no
NOT = { trait = eunuch }
NOT = { trait = infirm }
NOT = { trait = inbred }
NOT = { trait = imbecile }
NOT = { trait = chaste }
NOT = { trait = shy }
}
}
}
potential = {
is_marriage_adult = yes
NOT = { character = FROM }
NOT = { trait = incapable }
prisoner = no
NOT = { is_lover = FROM }
NOT = { is_former_lover = FROM }
NOT = { is_consort = FROM }
NOT = { any_spouse = { character = FROM } }
OR = {
AND = {
NOT = { is_child_of = FROM }
NOT = { mother_even_if_dead = { is_child_of = FROM } }
NOT = { father_even_if_dead = { is_child_of = FROM } }
FROM = {
NOT = { is_child_of = ROOT }
NOT = { mother_even_if_dead = { is_child_of = ROOT } }
NOT = { father_even_if_dead = { is_child_of = ROOT } }
}
}
close_relative_marriages_allowed_trigger = yes
}
OR = {
AND = {
FROM = { NOT = { trait = homosexual } }
NOT = { trait = homosexual }
NOT = { same_sex = FROM }
}
AND = {
FROM = { trait = homosexual }
trait = homosexual
same_sex = FROM
}
}
}
allow = {
NOR = {
has_opinion_modifier = { who = FROM modifier = opinion_seduced_refused }
has_character_modifier = dismissed_proposal
}
NOT = { trait = celibate }
NOT = { FROM = { trait = celibate } }
OR = {
religion_group = FROM
is_liege_or_above = FROM
}
is_within_diplo_range = FROM
}
effect = {
hidden_tooltip = {
FROM = {
opinion = {
who = ROOT
modifier = opinion_seducing
years = 1000
}
if = {
limit = {
is_close_relative = ROOT
close_relative_marriages_allowed_trigger = no
}
character_event = { id = WoL.102 days = 1 } # Warning - Incest scandal risk
break = yes
}
if = {
limit = {
same_sex = ROOT
}
character_event = { id = WoL.104 days = 1 } # Warning - Homosexual scandal risk
break = yes
}
if = {
limit = {
religion_group = christian
OR = {
is_priest = yes
is_ascetic_trigger = yes
ROOT = { is_priest = yes }
ROOT = { is_ascetic_trigger = yes }
}
}
character_event = { id = WoL.103 days = 1 } # Warning - Priest scandal risk
break = yes
}
if = {
limit = {
age_diff = {
who = ROOT
years = 25
}
}
character_event = { id = WoL.101 days = 1 } # Warning - Age scandal risk
break = yes
}
character_event = { id = WoL.100 days = 1 } # No warning - Let the chase begin!
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1 # 1 = 100% chance every month (for each allowed target!)
modifier = {
factor = 0.15
}
modifier = {
factor = 0
is_female = yes
age = 40
}
modifier = {
factor = 0
is_female = yes
has_character_modifier = lustful_affair_timer
}
modifier = {
factor = 0.5
FROM = {
is_female = no
num_of_children = 3
}
}
modifier = {
factor = 0.1
FROM = {
is_female = no
num_of_children = 6
}
}
modifier = {
factor = 0.5
FROM = {
is_female = no
num_of_children = 8
}
}
modifier = {
factor = 0
num_of_lovers = 1
NOT = { trait = lustful }
NOT = { trait = hedonist }
NOT = { trait = seducer }
NOT = { trait = seductress }
NOT = { has_focus = focus_seduction }
}
modifier = {
factor = 0.25
ai = no
}
modifier = {
factor = 0.1
is_ruler = no
OR = {
any_spouse = {
ai = no
}
any_consort = {
ai = no
}
}
}
modifier = {
factor = 10
FROM = {
OR = {
trait = lustful
trait = hedonist
trait = seducer
trait = seductress
}
}
}
modifier = {
factor = 0
OR = {
trait = chaste
trait = ugly
trait = dwarf
trait = inbred
trait = imbecile
trait = clubfooted
trait = harelip
trait = hunchback
trait = eunuch
is_ill = yes
is_pregnant = yes
}
}
modifier = {
factor = 0.25
is_close_relative = FROM
FROM = {
NOT = { trait = lustful }
NOT = { trait = arbitrary }
NOT = { trait = possessed }
NOT = { trait = lunatic }
}
}
modifier = {
factor = 2
trait = gregarious
}
modifier = {
factor = 5 # A more interesting quarry
OR = {
is_playable = yes
is_married = yes
father_even_if_dead = {
always = yes
}
mother_even_if_dead = {
always = yes
}
}
}
modifier = {
factor = 10
trait = fair
}
}
}
stop_seduce_decision = {
filter = self
ai_target_filter = self
potential = {
ai = no
is_marriage_adult = yes
has_focus = focus_seduction
OR = {
has_character_flag = seduction_confirmed
has_any_opinion_modifier = opinion_seducing
}
}
effect = {
random_opinion_modifier_target = {
limit = {
ROOT = {
has_opinion_modifier = {
who = PREV
modifier = opinion_seducing
}
}
}
save_event_target_as = target_seduced
ROOT = { character_event = { id = WoL.118 tooltip = stop_seduce_decision_tt } }
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
}
}
stop_seduce_decision_target = {
ai_target_filter = realm
from_potential = {
ai = no
is_marriage_adult = yes
has_focus = focus_seduction
OR = {
has_character_flag = seduction_confirmed
has_any_opinion_modifier = opinion_seducing
}
}
potential = {
FROM = {
has_opinion_modifier = {
who = ROOT
modifier = opinion_seducing
}
}
}
effect = {
save_event_target_as = target_seduced
hidden_tooltip = {
FROM = { character_event = { id = WoL.118 } }
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
}
}
decision_spy_on = {
only_playable = yes
ai_target_filter = realm
from_potential = {
is_playable = yes
has_focus = focus_intrigue
NOT = { trait = incapable }
prisoner = no
NOT = { has_any_opinion_modifier = opinion_spying_on }
NOT = { has_any_opinion_modifier = opinion_breaking_out }
}
potential = {
NOT = { trait = incapable }
same_realm = FROM
NOT = { character = FROM }
}
allow = {
prisoner = no
is_adult = yes
is_within_diplo_range = FROM
}
effect = {
hidden_tooltip = {
FROM = {
any_opinion_modifier_target = {
limit = {
reverse_has_opinion_modifier = {
who = PREV
modifier = opinion_spying_on
}
}
reverse_remove_opinion = {
who = PREV
modifier = opinion_spying_on
}
}
opinion = {
who = ROOT
modifier = opinion_spying_on
months = 12000
}
character_event = { id = WoL.2050 days = 1 }
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1 # 1 = 100% chance every month (for each allowed target!)
modifier = {
factor = 0.1
}
modifier = {
factor = 0
NOR = {
is_rival = FROM
is_married = FROM
AND = {
OR = {
is_ruler = yes
has_plot = yes
}
liege = { character = FROM }
}
AND = {
is_ruler = yes
same_liege = FROM
}
}
}
modifier = {
factor = 2.0
has_plot = yes
}
modifier = {
factor = 5.0
FROM = { trait = paranoid }
}
modifier = {
factor = 10.0
in_faction = yes
liege = { character = FROM }
}
modifier = {
factor = 10.0
FROM = { leads_faction = yes }
in_faction = no
same_liege = FROM
}
}
}
stop_spy_on_decision = {
filter = self
ai_target_filter = self
potential = {
ai = no
has_focus = focus_intrigue
has_any_opinion_modifier = opinion_spying_on
}
effect = {
random_opinion_modifier_target = {
limit = {
ROOT = {
has_opinion_modifier = {
who = PREV
modifier = opinion_spying_on
}
}
}
save_event_target_as = target_spy_on
ROOT = { character_event = { id = WoL.2069 tooltip = stop_spy_on_decision_tt } }
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
}
}
stop_spy_on_decision_target = {
ai_target_filter = realm
from_potential = {
ai = no
has_focus = focus_intrigue
has_any_opinion_modifier = opinion_spying_on
}
potential = {
FROM = {
has_opinion_modifier = {
who = ROOT
modifier = opinion_spying_on
}
}
}
effect = {
save_event_target_as = target_spy_on
hidden_tooltip = {
FROM = { character_event = { id = WoL.2069 } }
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
}
}
decision_break_free = {
only_playable = yes
is_high_prio = yes
ai_target_filter = dynasty
from_potential = {
is_playable = yes
has_focus = focus_intrigue
NOT = { trait = incapable }
NOT = { has_any_opinion_modifier = opinion_breaking_out }
NOT = { has_any_opinion_modifier = opinion_spying_on }
}
potential = {
NOT = { character = FROM }
OR = {
AND = {
prisoner = yes
liege = { character = FROM }
host = { NOT = { character = FROM } }
}
AND = {
is_female = yes
is_consort = yes
prisoner = no
consort = {
NOT = { character = FROM }
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_forced_consort
}
}
is_close_relative = FROM
}
AND = {
trait = slave
is_close_relative = FROM
liege = {
NOT = {
character = FROM
}
}
}
}
}
allow = {
NOT = { trait = incapable }
NOT = { has_character_modifier = failed_escape }
}
effect = {
hidden_tooltip = {
FROM = {
opinion = {
who = ROOT
modifier = opinion_breaking_out
months = 12000
}
if = {
limit = { ROOT = { prisoner = yes } }
character_event = { id = WoL.2200 days = 1 }
}
if = {
limit = { ROOT = { prisoner = no } }
character_event = { id = WoL.2201 days = 1 }
}
if = {
limit = {
ROOT = {
trait = slave
}
}
character_event = {
id = slavery.610 days = 1
}
}
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1 # 1 = 100% chance every month (for each allowed target!)
modifier = {
factor = 0.1
}
modifier = {
factor = 0
is_rival = FROM
}
modifier = {
factor = 0
trait = decadent
religion_group = muslim
}
}
}
invite_to_party = {
only_playable = yes
is_high_prio = yes
ai_target_filter = court
from_potential = {
is_playable = yes
is_adult = yes
has_focus = focus_carousing
prisoner = no
NOT = { trait = incapable }
NOT = { is_inaccessible_trigger = yes }
NOT = { had_character_flag = { flag = inviting_guests_to_party_timer days = 90 } }
NOT = { has_character_flag = party_host }
}
potential = {
is_adult = yes
prisoner = no
NOT = { is_inaccessible_trigger = yes }
NOT = { trait = incapable }
is_within_diplo_range = FROM
NOT = { has_character_flag = carousing_invite }
NOT = { character = FROM } # Can't do this decision on yourself...
}
allow = {
same_realm = FROM # Can only invite characters in same realm!
NOT = { has_character_modifier = organizing_party }
NOT = { has_character_modifier = party_carousing }
war = no
NOT = {
reverse_has_opinion_modifier = {
modifier = opinion_declined_party
who = FROM
}
}
ROOT = {
custom_tooltip = {
text = tooltip_not_busy
NOT = { has_character_flag = do_not_disturb }
}
}
FROM = {
war = no
NOT = { has_character_modifier = party_timer }
OR = {
NOT = { religion_group = muslim }
trait = decadent
trait = hedonist
trait = drunkard
}
}
}
effect = {
FROM = {
if = {
limit = {
NOT = { has_character_modifier = organizing_party }
}
add_character_modifier = {
modifier = organizing_party
duration = 120
}
hidden_tooltip = { character_event = { id = WoL.4010 days = 120 } } # Party to be held in four months
set_character_flag = inviting_guests_to_party_timer
}
set_character_flag = do_not_disturb # NOTE
}
hidden_tooltip = {
letter_event = { id = WoL.4000 days = 7 } # Invitee receives event - any number of invitees possible
}
set_character_flag = carousing_invite
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
modifier = {
factor = 0.5 #Slow it down
}
modifier = {
factor = 0
FROM = { has_character_modifier = organizing_party } # AI will only invite one person
}
modifier = {
factor = 0
OR = {
trait = leper
trait = has_bubonic_plague
trait = has_typhoid_fever
trait = has_typhus
trait = has_measles
trait = has_small_pox
}
}
}
}
duel_decision = {
only_playable = yes
is_high_prio = yes
#filter = rivals
ai_target_filter = rivals
from_potential = {
is_playable = yes
is_adult = yes
prisoner = no
has_dlc = "Way of Life"
has_focus = focus_war
has_regent = no
is_inaccessible_trigger = no
OR = {
ai = no
is_female = no
trait = brave
is_nomadic = yes
feminist_religions_trigger = yes
gender_equality_trigger = yes
}
}
potential = {
is_adult = yes
prisoner = no
NOT = { character = FROM }
is_inaccessible_trigger = no
OR = {
AND = {
OR = {
is_rival = FROM
is_foe = FROM
AND = {
FROM = { trait = zealous }
OR = {
AND = {
religion = FROM
trait = excommunicated
}
AND = {
FROM = { religion_group = muslim }
trait = decadent
}
}
}
has_game_rule = {
name = dueling
value = restricted
}
}
OR = {
is_female = no
#Both FROM and ROOT have gender equality
AND = {
OR = {
trait = brave
gender_equality_trigger = yes
is_nomadic = yes
feminist_religions_trigger = yes
}
FROM = {
OR = {
gender_equality_trigger = yes
is_nomadic = yes
feminist_religions_trigger = yes
}
}
}
}
}
has_game_rule = {
name = dueling
value = unrestricted
}
}
}
allow = {
OR = {
AND = {
#Valid reasons for duel
OR = {
custom_tooltip = {
text = duel_tooltip_rivals
is_rival = FROM
}
custom_tooltip = {
text = duel_tooltip_foes
is_foe = FROM
}
custom_tooltip = {
text = duel_tooltip_excommunicated
religion = FROM
FROM = { trait = zealous }
trait = excommunicated
}
custom_tooltip = {
text = duel_tooltip_decadent
FROM = { religion_group = muslim }
FROM = { trait = zealous }
trait = decadent
}
has_game_rule = {
name = dueling
value = restricted
}
}
#Both are healthy
custom_tooltip = {
text = duel_tooltip_sickness
FROM = {
NOR = {
trait = incapable
trait = infirm
trait = has_aztec_disease
trait = has_small_pox
trait = has_measles
trait = has_bubonic_plague
trait = has_typhus
trait = has_typhoid_fever
trait = has_tuberculosis
trait = leper
trait = pneumonic
}
}
ROOT = {
NOR = {
trait = incapable
trait = infirm
trait = has_aztec_disease
trait = has_small_pox
trait = has_measles
trait = has_bubonic_plague
trait = has_typhus
trait = has_typhoid_fever
trait = has_tuberculosis
trait = leper
trait = pneumonic
age = 70
}
}
}
#Checks gender and some religious stuff
custom_tooltip = {
text = duel_tooltip_valid_target
hidden_tooltip = { ### Not female or challenger religion accepts female warriors
OR = {
is_female = no
#Both FROM and ROOT have gender equality
AND = {
OR = {
trait = brave
gender_equality_trigger = yes
is_nomadic = yes
feminist_religions_trigger = yes
}
FROM = {
OR = {
gender_equality_trigger = yes
is_nomadic = yes
feminist_religions_trigger = yes
}
}
}
}
### Not priest or challenger religion is pagan
OR = {
is_priest = no
FROM = { LI_pagan_trigger = yes }
}
}
}
}
has_game_rule = {
name = dueling
value = unrestricted
}
}
custom_tooltip = {
text = duel_tooltip_challenged_before
hidden_tooltip = {
NOT = {
has_opinion_modifier = { who = FROM modifier = opinion_fought_duel }
}
FROM = {
NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_fought_duel } }
NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_fled_duel } }
}
}
}
custom_tooltip = {
text = duel_tooltip_recent_duel
hidden_tooltip = {
FROM = { NOT = { has_character_modifier = recent_duel_timer } }
NOT = { has_character_modifier = recent_duel_timer }
}
}
custom_tooltip = {
text = duel_tooltip_busy
hidden_tooltip = {
FROM = {
NOT = { has_character_flag = do_not_disturb }
NOT = { war = yes }
}
NOT = { has_character_flag = do_not_disturb }
NOT = { war = yes }
}
}
is_within_diplo_range = ROOT # CPU HEAVY!
}
effect = {
if = {
limit = {
OR = {
age = 50
trait = wounded
is_maimed_trigger = yes