-
Notifications
You must be signed in to change notification settings - Fork 4
/
links.cwt
705 lines (679 loc) · 23 KB
/
links.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
links = {
# Planned full example:
# link_name = {
# desc = "A (shortish, one line) text string to show in the tooltip/completion"
#
# input_scopes - the scopes in which this link can be used. If omitted, any
# input_scopes = character
# or
# input_scopes = { character province }
#
# output_scope - the single output scope, if omitted, any
#
# prefix - The prefix this data link uses (eg var for var:blah). Requires "data" to be set
# prefix = province
# data - The type that this link refers to (e.g. province:5)
# data = <province>
# }
# Custom data links ####
religion = {
output_scope = religion
from_data = yes
data_source = <religion>
}
religion_group = {
output_scope = religion
from_data = yes
data_source = <religion_group>
}
culture = {
output_scope = culture
from_data = yes
data_source = <culture>
}
culture_group = {
output_scope = culture
from_data = yes
data_source = <culture_group>
}
offmap = {
output_scope = offmap
from_data = yes
data_source = <offmap>
}
society = {
output_scope = society
from_data = yes
data_source = <society>
}
secret_religious_society_religion = {
prefix = secret_religious_society_
output_scope = society
from_data = yes
data_source = <religion.has_secret_cult>
}
trait.cached = {
output_scope = character
from_data = yes
data_source = <trait.cached>
}
character = {
prefix = c_
output_scope = character
from_data = yes
data_source = <character>
}
title = {
output_scope = title
from_data = yes
data_source = <title>
}
# Character scopes ###
artifact_owner = {
desc = "Scopes to all the artifact's owner"
input_scopes = artifact
output_scope = character
}
attacker = {
desc = "Scopes to the aggressor in a war"
input_scopes = war
output_scope = character
}
band_creator = {
desc = "Scopes to the creator of a dynamic mercenary band."
input_scopes = title
output_scope = character
}
best_crusade_claimant = {
desc = "Scopes to the best claimant for that title in context of crusade"
input_scopes = title
output_scope = character
}
best_fit_character_for_title = {
desc = "Scopes to a character who should get a chosen title, from a chosen character's perspective. Parameters: title, perspective (from whose perspective we are viewing the title), index (The index of the character in the list)best_fit_character_for_title = {"
input_scopes = character
output_scope = character
}
betrothed = {
desc = "Scopes to the character who the current scoped character is betrothed to."
input_scopes = character
output_scope = character
}
biggest_realm_size_relative = {
desc = "Scopes to relatives with biggest realm size."
input_scopes = character
output_scope = character
}
center_flank_leader = {
desc = "Scopes to the central flank leader of an army"
input_scopes = character
output_scope = character
}
left_flank_leader = {
desc = "Scopes to the left flank leader of an army"
input_scopes = character
output_scope = character
}
right_flank_leader = {
desc = "Scopes to the right flank leader of an army"
input_scopes = character
output_scope = character
}
consort = {
# TODO: Check desc
desc = "Scopes to the consort of this character"
input_scopes = character
output_scope = character
}
controller = {
desc = "Scopes to the character controlling a barony. Rarely used, more generic scope owner being favored."
input_scopes = title
output_scope = character
}
current_heir = {
desc = "Scopes to the character's heir. This is the character who inherits the primary title, regardless if he is dynastic heir or not."
input_scopes = character
output_scope = character
}
defender = {
desc = "Scopes to the defender in a war"
input_scopes = war
output_scope = character
}
dynasty_head = {
desc = "Scopes to the head of the dynasty"
input_scopes = character
output_scope = character
}
educator = {
desc = "Scopes to the educator of a child (Conclave DLC education)"
input_scopes = character
output_scope = character
}
employer = {
desc = "Scopes to the character's employer. Only works for landless characters, as landed rulers are considered their own employer, even if they work on their liege council."
input_scopes = character
output_scope = character
}
enemy = {
desc = "Scopes to the enemy in a siege"
input_scopes = siege
output_scope = siege
}
father = {
desc = ""
input_scopes = character
output_scope = character
}
father_even_if_dead = {
desc = "Scopes to the character's father"
input_scopes = character
output_scope = character
}
father_of_unborn = {
desc = "Scopes to the unborn child's father"
input_scopes = character
output_scope = character
}
founder = {
desc = "Scopes to the founder of the current bloodline"
input_scopes = bloodline
output_scope = character
}
guardian = {
desc = "Scopes to the child's guardian"
input_scopes = character
output_scope = character
}
# TODO: check offap power itself
governor = {
desc = "Scopes to the governor of the scope's offmap power. Scope can be the offmap power itself, the offmap power ruler, or the governor title."
input_scopes = { character title offmap }
output_scope = character
}
heir_under_seniority_law = {
desc = "Scopes to the character who'd be heir if Seniority succession was enacted"
input_scopes = title
output_scope = character
}
heir_under_primogeniture_law = {
desc = "Scopes to the character who'd be heir if Primogeniture succession was enacted"
input_scopes = title
output_scope = character
}
highest_ranked_relative = {
desc = "Scopes to relatives with highest feudal tier"
input_scopes = character
output_scope = character
}
holder_scope = {
desc = "Scopes to the owner of the province or title"
input_scopes = { title province }
output_scope = character
}
hospital_owner = {
desc = ""
input_scopes = province
output_scope = character
}
host = {
desc = "Scopes to the owner of where the character resides. Works both for landed and unlanded characters. If character is residing at court, the host would be the liege. For an imprisoned character, this yields their jailer."
input_scopes = character
output_scope = character
}
job_chancellor = {
desc = "Scopes to the character's current Chancellor, if they have one."
input_scopes = character
output_scope = character
}
job_marshal = {
desc = "Scopes to the character's current Marshal, if they have one."
input_scopes = character
output_scope = character
}
job_treasurer = {
desc = "Scopes to the character's current Steward, if they have one. Beware, it's treasurer, not steward!"
input_scopes = character
output_scope = character
}
job_spymaster = {
desc = "Scopes to the character's current Spymaster, if they have one."
input_scopes = character
output_scope = character
}
job_spiritual = {
desc = "Scopes to the character's current Chaplain, if they have one."
input_scopes = character
output_scope = character
}
killer = {
desc = "Scopes to the killer of a character"
input_scopes = character
output_scope = character
}
leader = {
desc = "Scopes to the leader of a force in a siege"
input_scopes = siege
output_scope = character
}
liege = {
desc = "Scopes to a character's direct liege"
input_scopes = character
output_scope = character
}
liege_before_war = {
desc = "Scopes to whoever was the character's liege before his rebellion"
input_scopes = character
output_scope = character
}
lover = {
desc = "Scopes to the character's lover"
input_scopes = character
output_scope = character
}
mercenary_employer = {
desc = ""
input_scopes = character
output_scope = character
}
most_participating_attacker = {
desc = "Scopes to the attacker that's done the most in a war"
input_scopes = war
output_scope = character
}
most_participating_crusader = {
desc = "Scopes to the non-theocracy attacker that's done the most in a war"
input_scopes = war
output_scope = character
}
most_participating_defender = {
desc = "Scopes to the defender that's done the most in a war"
input_scopes = war
output_scope = character
}
most_popular_vassal = {
desc = "Scopes to a the most popular vassal who meets its limitclause. Seems to use an average of opinion among all vassals (including mayors). Used to determine the new ruler when the 'Oust ruler' faction is successful."
input_scopes = character
output_scope = character
}
most_prestigious_clan_vassal = {
desc = ""
input_scopes = character
output_scope = character
}
mother = {
desc = "Scopes to the character's mother"
input_scopes = character
output_scope = character
}
mother_even_if_dead = {
desc = "Scopes to the character's mother, even if she's dead"
input_scopes = character
output_scope = character
}
new_character = {
desc = "Scopes to the character previously created in the event, via create_character or similar command."
#input_scopes = character
output_scope = character
}
offmap_prev_ruler = {
desc = "Scopes to the previous ruler of the scope's offmap power. Scope can be the offmap power itself, the current offmap power ruler, the governor, or the governor title."
input_scopes = { character title offmap }
output_scope = character
}
offmap_ruler = {
desc = "Scopes to the ruler of the scope's offmap power. Scope can be the offmap power itself, the governor, or the governor title."
input_scopes = { character title offmap }
output_scope = character
}
original_artifact_owner = {
desc = ""
input_scopes = artifact
output_scope = character
}
original_owner = {
desc = "Scopes to the original owner of the artifact. Both scopes function identically."
input_scopes = artifact
output_scope = character
}
owner = {
desc = "Scopes to the owner of the province, title, or artifact"
input_scopes = { title province artifact }
output_scope = character
}
parent_religion_head = {
desc = "Scopes to the religion head of the parent religion"
input_scopes = { character province }
output_scope = character
}
player_heir = {
desc = "Scopes to the scope's heir as listed on the character sheet (i.e. the character you would be playing if you were playing the scope and the scope died) rather than the heir to the primary title of the scope."
input_scopes = character
output_scope = character
}
plot_target_char = {
desc = "Scopes to the character that's being plotted against"
input_scopes = character
output_scope = character
}
preferred_war_target = {
desc = "Scopes to the character's attack target"
input_scopes = character
output_scope = character
}
previous_artifact_owner = {
desc = "Scopes to the previous owner of the artifact. Does not work on artifacts that have the history = no parameter."
input_scopes = artifact
output_scope = character
}
quest_target = {
desc = "Scopes to current target of the character's quest. Can be a character, province, or title depending on the quest."
input_scopes = character
output_scope = character
}
real_father = {
desc = ""
input_scopes = character
output_scope = character
}
real_father_even_if_dead = {
desc = "Scopes to the character's real father, if the character's known father is not their genetic parent. This will select the genetic parent even if the cuckolding is unknown. If character's known father is their actual father, produces no result. See true_father or true_father_even_if_dead if you would prefer to return the actual father every time."
input_scopes = character
output_scope = character
}
reincarnation_scope = {
desc = "Scopes to the character that currently scoped character is the reincarnation of"
input_scopes = character
output_scope = character
}
regent = {
desc = "Scopes to the character's regent"
input_scopes = character
output_scope = character
}
religion_head = {
desc = "Scopes to the character's religious head(s). Does NOT includes antipopes"
input_scopes = { character title }
output_scope = character
}
rightful_religious_head_scope = {
desc = "Scopes to the character's rightful religious head. Includes antipopes"
input_scopes = character
output_scope = character
}
ruler = {
desc = "Scopes to the province's owner. Rarely used, owner being preferred."
input_scopes = province
output_scope = character
}
spouse = {
desc = "Scopes to the character's primary spouse"
input_scopes = character
output_scope = character
}
spouse_even_if_dead = {
desc = "Scopes to the character's primary spouse, even if dead"
input_scopes = character
output_scope = character
}
strongest_clan_vassal = {
desc = ""
input_scopes = character
output_scope = character
}
supported_claimant = {
desc = ""
input_scopes = character
output_scope = character
}
suzerain = {
desc = "Scopes to the suzerain of a tributary character"
input_scopes = character
output_scope = character
}
title_to_get_rid_of = {
desc = "Scopes to titles over the demesne limit"
input_scopes = title
output_scope = character
}
top_liege = {
desc = "Scopes to a character's independent liege"
input_scopes = character
output_scope = character
}
trade_post_owner = {
desc = "Scopes to the owner of the trade post"
input_scopes = { title province }
output_scope = character
}
true_father = {
desc = "Scopes to the real_father if one exists; otherwise it scopes to the father."
input_scopes = character
output_scope = character
}
true_father_even_if_dead = {
desc = ""
input_scopes = character
output_scope = character
}
twin = {
desc = "Scopes to the character's twin. WARNING: If mods add additional twins (triplets, etc.), these scopes may produce unpredictable results."
input_scopes = character
output_scope = character
}
twin_even_if_dead = {
desc = ""
input_scopes = character
output_scope = character
}
# Titles ######
blood_brother = {
desc = ""
input_scopes = character
output_scope = title
}
capital_holding = {
desc = "Scopes to the character's capital holding title. Note: this is different from capital_scope which scopes to the capital province."
input_scopes = { character province }
output_scope = title
}
clan_title = {
desc = "Scopes to the clan of a nomad."
input_scopes = character
output_scope = title
}
county = {
desc = "Scopes to the county a barony is in"
input_scopes = { province title }
output_scope = title
}
crownlaw_title = {
desc = "Scopes to the title giving a character or title its crown laws"
input_scopes = { character title }
output_scope = title
}
crusade_target = {
desc = "Scopes to the target of the ongoing crusade of the character's religion"
input_scopes = character
output_scope = title
}
defacto_liege_title = {
desc = "Scopes to the title a title de facto belongs to"
input_scopes = title
output_scope = title
}
dejure_liege_title = {
desc = "Scopes to the title a character or title de jure belongs to"
input_scopes = { character title }
output_scope = title
}
duchy = {
desc = "Scopes to the duchy a province belongs to. (From county scope, you must use dejure_liege_title instead)"
input_scopes = province
output_scope = title
}
empire = {
desc = "Scopes to the empire a title belongs to"
input_scopes = { province title }
output_scope = title
}
family_palace = {
desc = "Scopes to the family palace title of a patrician."
input_scopes = character
output_scope = title
}
# TODO: offmap power
governor_title = {
desc = "Scopes to the governor title of the scope. Scope can be the offmap power itself, the offmap power ruler, or the governor."
input_scopes = { character offmap }
output_scope = title
}
invasion_target = {
desc = ""
output_scope = title
}
kingdom = {
desc = "Scopes to the kingdom a title belongs to"
input_scopes = { province title }
output_scope = title
}
new_title = {
desc = "Scopes to the title previously created in the same scope via create_titlecommand."
# input_scopes = character
output_scope = title
}
plot_target_title = {
desc = "Scopes to the title of the character the character is plotting against"
input_scopes = character
output_scope = title
}
primary_title = {
desc = "Scopes to the character's primary title"
input_scopes = character
output_scope = title
}
quest_target = {
desc = "Scopes to current target of the character's quest. Can be a character, province, or title depending on the quest."
input_scopes = character
output_scope = title
}
supported_claimant_title = {
desc = ""
input_scopes = character
output_scope = title
}
realm = {
desc = "Scopes to the independent realm the character or title is part of. It is the equivalent of top_liege for titles."
input_scopes = { character title }
output_scope = title
}
succ_law_title = {
desc = "Scopes to a title where has_law trigger can be used to check succession law."
input_scopes = title
output_scope = title
}
thirdparty_title_scope = {
desc = "Only valid if thirdparty title is involved in the war"
input_scopes = war
output_scope = title
}
# Province ###
capital_scope = {
desc = "Scopes to the character's (or title's, if a capital has been defined in landed_titles definitions) capital province"
# input_scopes = { character title province }
input_scopes = { character province }
output_scope = province
}
location = {
desc = "Scopes to the character's location (or county or barony title's province)"
input_scopes = { character title unit province siege }
output_scope = province
}
plot_target_province = {
desc = "Scopes to the province that the character's plot is targeting"
input_scopes = character
output_scope = province
}
quest_target = {
desc = "Scopes to current target of the character's quest. Can be a character, province, or title depending on the quest."
input_scopes = character
output_scope = province
}
sea_zone = {
desc = "Scopes to ALL sea provinces bordering the currently scoped province"
input_scopes = province
output_scope = province
}
# Offmap
offmap_power = {
desc = "Scopes to the offmap power of the scope. Scope can be the offmap power ruler, the governor, or the governor title."
input_scopes = { character title }
output_scope = offmap
}
# Siege
siege = {
desc = "Scopes to the siege the character is participating in"
input_scopes = character
output_scopes = siege
}
# Religion ###
religion_scope = {
desc = "Scopes to the religion of the current scope."
input_scopes = { character province society }
output_scope = religion
}
parent_religion = {
desc = "Scopes to the parent religion (if any) of the currently scoped entity's religion."
input_scopes = { character province religion } # TODO: ensure society works
output_scope = religion
}
secret_religion_scope = {
desc = "Scopes to the secret religion of the character."
input_scopes = character
output_scope = religion
}
true_religion_scope = {
desc = "Scopes to the true religion of the character."
input_scopes = character
output_scope = religion
}
# Culture ###
culture_scope = {
desc = "Scopes to the culture of the character or province."
input_scopes = { character province }
output_scope = culture
}
gfx_culture_scope = {
desc = "Scopes to the culturegfx of the character."
input_scopes = character
output_scope = gfx_culture
}
# Society #####
secret_religious_cult = {
desc = "Scopes to the secret religious cult of the character's true religion, or otherwise the secret religious cult of the religion of the scope."
input_scopes = { character province religion }
output_scope = society
}
society = {
desc = "Scopes to the society the character is a member of"
input_scopes = character
output_scope = society
}
# Artifacts ###
new_artifact = {
desc = "Scopes to the artifact just created using add_artifact."
input_scopes = character
outut_scope = artifact
}
# Bloodline ###
new_bloodline = {
desc = "Scopes to the he bloodline you just created in script"
# input_scopes = character
outut_scope = bloodline
}
# Faction ###
faction_claimant = {
input_scopes = character
output_scope = title
}
}