@px-lsp/server 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +334 -0
  3. package/THIRD-PARTY-NOTICES.md +83 -0
  4. package/data/ck3/dataTypes.json +2195 -0
  5. package/data/ck3/data_types/data_types_common.txt +2040 -0
  6. package/data/ck3/data_types/data_types_gui.txt +5264 -0
  7. package/data/ck3/data_types/data_types_internalclausewitzgui.txt +14843 -0
  8. package/data/ck3/data_types/data_types_script.txt +4251 -0
  9. package/data/ck3/data_types/data_types_uncategorized.txt +109984 -0
  10. package/data/ck3/freqs.json +1 -0
  11. package/data/ck3/guiSchema.json +6344 -0
  12. package/data/ck3/script_docs/effects.log +16059 -0
  13. package/data/ck3/script_docs/event_targets.log +2098 -0
  14. package/data/ck3/script_docs/modifiers.log +2228 -0
  15. package/data/ck3/script_docs/on_actions.log +5275 -0
  16. package/data/ck3/script_docs/triggers.log +11991 -0
  17. package/data/ck3/structures.json +9743 -0
  18. package/data/ck3/wikidocs/ATTRIBUTION.md +18 -0
  19. package/data/ck3/wikidocs/Data_types.md +2568 -0
  20. package/data/ck3/wikidocs/Effects_list.md +1176 -0
  21. package/data/ck3/wikidocs/Scopes_list.md +341 -0
  22. package/data/ck3/wikidocs/Triggers_list.md +1097 -0
  23. package/data/eu5/data_types/data_types_common.txt +2087 -0
  24. package/data/eu5/data_types/data_types_gui.txt +6732 -0
  25. package/data/eu5/data_types/data_types_internalclausewitzgui.txt +19276 -0
  26. package/data/eu5/data_types/data_types_script.txt +5688 -0
  27. package/data/eu5/data_types/data_types_uncategorized.txt +135569 -0
  28. package/data/vic3/data_types/data_types_common.txt +2021 -0
  29. package/data/vic3/data_types/data_types_gui.txt +5592 -0
  30. package/data/vic3/data_types/data_types_internalclausewitzgui.txt +17304 -0
  31. package/data/vic3/data_types/data_types_script.txt +2817 -0
  32. package/data/vic3/data_types/data_types_uncategorized.txt +84354 -0
  33. package/data/vic3/freqs.json +1 -0
  34. package/data/vic3/guiSchema.json +5578 -0
  35. package/data/vic3/script_docs/effects.log +38135 -0
  36. package/data/vic3/script_docs/event_targets.log +2028 -0
  37. package/data/vic3/script_docs/modifiers.log +18954 -0
  38. package/data/vic3/script_docs/on_actions.log +1561 -0
  39. package/data/vic3/script_docs/triggers.log +15738 -0
  40. package/data/vic3/structures.json +10189 -0
  41. package/dist/server.js +63668 -0
  42. package/media/px-lsp.svg +12 -0
  43. package/package.json +50 -0
  44. package/src/clientMode.ts +60 -0
  45. package/src/coa/coa.ts +184 -0
  46. package/src/coa/coaParse.ts +267 -0
  47. package/src/context.ts +78 -0
  48. package/src/contextKeywords.ts +224 -0
  49. package/src/data/dataBindingMacros.ts +82 -0
  50. package/src/data/dataFnDocs.ts +152 -0
  51. package/src/data/dataFnUsage.ts +431 -0
  52. package/src/data/dataTypes.ts +279 -0
  53. package/src/data/defines.ts +123 -0
  54. package/src/data/docsParser.ts +453 -0
  55. package/src/data/keywordDocs.ts +98 -0
  56. package/src/data/modifierTemplates.ts +143 -0
  57. package/src/data/textFormatting.ts +165 -0
  58. package/src/data/wikiDocs.ts +187 -0
  59. package/src/dds/decoder.ts +1007 -0
  60. package/src/dds/encode.ts +235 -0
  61. package/src/dds/index.ts +58 -0
  62. package/src/dds/png.ts +96 -0
  63. package/src/dds/tga.ts +62 -0
  64. package/src/documents.ts +35 -0
  65. package/src/features/assetPaths.ts +169 -0
  66. package/src/features/codeActions.ts +148 -0
  67. package/src/features/colors.ts +244 -0
  68. package/src/features/completion.ts +961 -0
  69. package/src/features/datafunction.ts +729 -0
  70. package/src/features/definition.ts +84 -0
  71. package/src/features/diagnostics.ts +244 -0
  72. package/src/features/folding.ts +106 -0
  73. package/src/features/formatting.ts +60 -0
  74. package/src/features/guiLanguage.ts +366 -0
  75. package/src/features/guiNavigation.ts +140 -0
  76. package/src/features/guiTree.ts +97 -0
  77. package/src/features/hover.ts +817 -0
  78. package/src/features/hoverRender.ts +222 -0
  79. package/src/features/inlayHints.ts +147 -0
  80. package/src/features/locFormatting.ts +127 -0
  81. package/src/features/references.ts +70 -0
  82. package/src/features/rename.ts +135 -0
  83. package/src/features/scopeAt.ts +65 -0
  84. package/src/features/semanticTokens.ts +188 -0
  85. package/src/features/signatureHelp.ts +72 -0
  86. package/src/features/symbols.ts +241 -0
  87. package/src/features/textureHover.ts +143 -0
  88. package/src/features/workspaceSymbols.ts +69 -0
  89. package/src/games/active.ts +19 -0
  90. package/src/games/ck3/ambientScopes.ts +273 -0
  91. package/src/games/ck3/index.ts +38 -0
  92. package/src/games/ck3/meta.ts +28 -0
  93. package/src/games/ck3/modifierPlaceholders.ts +61 -0
  94. package/src/games/ck3/saveSchema.ts +134 -0
  95. package/src/games/ck3/scaffolds.ts +197 -0
  96. package/src/games/ck3/schema.ts +422 -0
  97. package/src/games/ck3/structures.ts +887 -0
  98. package/src/games/eu5/index.ts +75 -0
  99. package/src/games/eu5/meta.ts +44 -0
  100. package/src/games/eu5/scaffolds.ts +49 -0
  101. package/src/games/eu5/schema.generated.ts +1043 -0
  102. package/src/games/jomini/variables.ts +134 -0
  103. package/src/games/profile.ts +205 -0
  104. package/src/games/registry.ts +27 -0
  105. package/src/games/vic3/index.ts +52 -0
  106. package/src/games/vic3/meta.ts +55 -0
  107. package/src/games/vic3/saveSchema.ts +77 -0
  108. package/src/games/vic3/scaffolds.ts +135 -0
  109. package/src/games/vic3/schema.ts +650 -0
  110. package/src/games/vic3/structures.ts +33 -0
  111. package/src/gui/anchorSpec.ts +66 -0
  112. package/src/gui/declMarkers.ts +30 -0
  113. package/src/gui/fillGeometry.ts +101 -0
  114. package/src/gui/guiDefs.ts +386 -0
  115. package/src/gui/guiDependencies.ts +352 -0
  116. package/src/gui/guiLinks.ts +64 -0
  117. package/src/gui/layoutEngine.ts +1998 -0
  118. package/src/gui/layoutService.ts +221 -0
  119. package/src/gui/measuredMetrics.ts +21 -0
  120. package/src/gui/previewService.ts +89 -0
  121. package/src/gui/saveSchema.ts +220 -0
  122. package/src/gui/saveValues.ts +399 -0
  123. package/src/gui/saveZip.ts +60 -0
  124. package/src/gui/sourceEdit.ts +535 -0
  125. package/src/gui/sourceEditService.ts +439 -0
  126. package/src/gui/sourceModel.ts +603 -0
  127. package/src/gui/textResolve.ts +145 -0
  128. package/src/gui/textureInfo.ts +106 -0
  129. package/src/gui/vocabulary.ts +149 -0
  130. package/src/gui/widgetEdit.ts +52 -0
  131. package/src/gui/widgetInfo.ts +245 -0
  132. package/src/index/docComments.ts +103 -0
  133. package/src/index/extract.ts +252 -0
  134. package/src/index/indexer.ts +369 -0
  135. package/src/index/intern.ts +101 -0
  136. package/src/index/lazyRefs.ts +145 -0
  137. package/src/index/modOrigin.ts +69 -0
  138. package/src/index/references.ts +534 -0
  139. package/src/overview/dependencies.ts +240 -0
  140. package/src/overview/eventBanner.ts +95 -0
  141. package/src/overview/eventDetail.ts +482 -0
  142. package/src/overview/eventGraph.ts +617 -0
  143. package/src/overview/eventVocabulary.ts +214 -0
  144. package/src/overview/locCoverage.ts +138 -0
  145. package/src/overview/modOverview.ts +29 -0
  146. package/src/overview/overrides.ts +89 -0
  147. package/src/parseCache.ts +81 -0
  148. package/src/parser/cst.ts +257 -0
  149. package/src/parser/encoding.ts +106 -0
  150. package/src/parser/index.ts +7 -0
  151. package/src/parser/lexer.ts +245 -0
  152. package/src/parser/locParser.ts +276 -0
  153. package/src/parser/parser.ts +360 -0
  154. package/src/schema/freqs.ts +70 -0
  155. package/src/schema/loader.ts +113 -0
  156. package/src/schema/types.ts +142 -0
  157. package/src/scopes/inference.ts +478 -0
  158. package/src/scopes/model.ts +148 -0
  159. package/src/scopes/varTypes.ts +290 -0
  160. package/src/server.ts +1894 -0
  161. package/src/serverData.ts +98 -0
  162. package/src/structure.ts +56 -0
  163. package/src/wordAt.ts +49 -0
@@ -0,0 +1,2098 @@
1
+ Event Target Documentation:
2
+
3
+ --------------------
4
+
5
+ accolade_type - Get the accolade_type with the specified key
6
+ Requires Data: yes
7
+ Global Link: yes
8
+ Output Scopes: accolade_type
9
+
10
+ --------------------
11
+
12
+ activity_type - Get the activity_type with the specified key
13
+ Requires Data: yes
14
+ Global Link: yes
15
+ Output Scopes: activity_type
16
+
17
+ --------------------
18
+
19
+ array_define - Reference the value of a numeric value in an array define: array_define:Namespace|Name|Index. Index is 0-based.
20
+ Requires Data: yes
21
+ Global Link: yes
22
+ Output Scopes: value
23
+
24
+ --------------------
25
+
26
+ casus_belli_type - Get the casus_belli_type with the specified key
27
+ Requires Data: yes
28
+ Global Link: yes
29
+ Output Scopes: casus_belli_type
30
+
31
+ --------------------
32
+
33
+ character - Global link to historical ( scripted ) character scope of the given character string
34
+ Requires Data: yes
35
+ Global Link: yes
36
+ Output Scopes: character
37
+
38
+ --------------------
39
+
40
+ compare_complex_value - A comparison trigger that needs a parsable string parameter that will return its value in the context it is used eg: scope:root.number_of(armies)
41
+ Wild Card: yes
42
+ Requires Data: yes
43
+ Output Scopes: value
44
+
45
+ --------------------
46
+
47
+ compare_value - A comparison trigger that will return its value in the context it is used eg: root.gold
48
+ Wild Card: yes
49
+ Output Scopes: value
50
+
51
+ --------------------
52
+
53
+ confederation_type - Get the confederation_type with the specified key
54
+ Requires Data: yes
55
+ Global Link: yes
56
+ Output Scopes: confederation_type
57
+
58
+ --------------------
59
+
60
+ contract_type - Get the type of a given contract from its key
61
+ Requires Data: yes
62
+ Global Link: yes
63
+ Output Scopes: vassal_contract
64
+
65
+ --------------------
66
+
67
+ court_position_type - Get the court_position_type with the specified key
68
+ Requires Data: yes
69
+ Global Link: yes
70
+ Output Scopes: court_position_type
71
+
72
+ --------------------
73
+
74
+ culture - Global link to culture scope of given culture string
75
+ Requires Data: yes
76
+ Global Link: yes
77
+ Output Scopes: culture
78
+
79
+ --------------------
80
+
81
+ culture_innovation - Get the culture_innovation with the specified key
82
+ Requires Data: yes
83
+ Global Link: yes
84
+ Output Scopes: culture_innovation
85
+
86
+ --------------------
87
+
88
+ culture_pillar - Get the culture_pillar with the specified key
89
+ Requires Data: yes
90
+ Global Link: yes
91
+ Output Scopes: culture_pillar
92
+
93
+ --------------------
94
+
95
+ culture_tradition - Get the culture_tradition with the specified key
96
+ Requires Data: yes
97
+ Global Link: yes
98
+ Output Scopes: culture_tradition
99
+
100
+ --------------------
101
+
102
+ decision - Get the decision with the specified key
103
+ Requires Data: yes
104
+ Global Link: yes
105
+ Output Scopes: decision
106
+
107
+ --------------------
108
+
109
+ define - Reference the value of a numeric define: define:Namespace|Name
110
+ Requires Data: yes
111
+ Global Link: yes
112
+ Output Scopes: value
113
+
114
+ --------------------
115
+
116
+ doctrine - Get the doctrine with the specified key
117
+ Requires Data: yes
118
+ Global Link: yes
119
+ Output Scopes: doctrine
120
+
121
+ --------------------
122
+
123
+ dummy_female - Global link to the dummy female character
124
+ Global Link: yes
125
+ Output Scopes: character
126
+
127
+ --------------------
128
+
129
+ dummy_male - Global link to the dummy male character
130
+ Global Link: yes
131
+ Output Scopes: character
132
+
133
+ --------------------
134
+
135
+ dynasty - Link to dynasty scope of the given dynasty string
136
+ Requires Data: yes
137
+ Output Scopes: dynasty
138
+
139
+ --------------------
140
+
141
+ epidemic_type - Get the epidemic_type with the specified key
142
+ Requires Data: yes
143
+ Global Link: yes
144
+ Output Scopes: epidemic_type
145
+
146
+ --------------------
147
+
148
+ event_id - Global link to event scope of the given event id
149
+ Global Link: yes
150
+ Output Scopes: flag
151
+
152
+ --------------------
153
+
154
+ faith - Global link to faith scope of given faith string
155
+ Requires Data: yes
156
+ Global Link: yes
157
+ Output Scopes: faith
158
+
159
+ --------------------
160
+
161
+ flag - Flag literals eg: flag:the_boss
162
+ Requires Data: yes
163
+ Global Link: yes
164
+ Output Scopes: flag
165
+
166
+ --------------------
167
+
168
+ geographical_region - Get the geographical_region with the specified key
169
+ Requires Data: yes
170
+ Global Link: yes
171
+ Output Scopes: geographical_region
172
+
173
+ --------------------
174
+
175
+ global_var - Reference a previous set global variable via its name eg: global_var:important_thing
176
+ Requires Data: yes
177
+ Global Link: yes
178
+
179
+ --------------------
180
+
181
+ government_type - Get the government_type with the specified key
182
+ Requires Data: yes
183
+ Global Link: yes
184
+ Output Scopes: government_type
185
+
186
+ --------------------
187
+
188
+ great_project_type - Get the great_project_type with the specified key
189
+ Requires Data: yes
190
+ Global Link: yes
191
+ Output Scopes: great_project_type
192
+
193
+ --------------------
194
+
195
+ holding_type - Get the holding_type with the specified key
196
+ Requires Data: yes
197
+ Global Link: yes
198
+ Output Scopes: holding_type
199
+
200
+ --------------------
201
+
202
+ house - Link to house scope of the given house string
203
+ Requires Data: yes
204
+ Output Scopes: dynasty_house
205
+
206
+ --------------------
207
+
208
+ house_aspiration - Get the house_aspiration with the specified key
209
+ Requires Data: yes
210
+ Global Link: yes
211
+ Output Scopes: house_aspiration
212
+
213
+ --------------------
214
+
215
+ house_relation_level - Get the house_relation_level with the specified key
216
+ Requires Data: yes
217
+ Global Link: yes
218
+ Output Scopes: house_relation_level
219
+
220
+ --------------------
221
+
222
+ house_relation_type - Get the house_relation_type with the specified key
223
+ Requires Data: yes
224
+ Global Link: yes
225
+ Output Scopes: house_relation_type
226
+
227
+ --------------------
228
+
229
+ legend_type - Get the legend_type with the specified key
230
+ Requires Data: yes
231
+ Global Link: yes
232
+ Output Scopes: legend_type
233
+
234
+ --------------------
235
+
236
+ local_var - Reference a previous set local variable via its name eg: local_var:person_of_interest
237
+ Requires Data: yes
238
+ Global Link: yes
239
+
240
+ --------------------
241
+
242
+ named_script_value - A script value that will calculate and returns its value in the context it is used
243
+ Wild Card: yes
244
+ Output Scopes: value
245
+
246
+ --------------------
247
+
248
+ no - Boolean literal for false values
249
+ Global Link: yes
250
+ Output Scopes: boolean
251
+
252
+ --------------------
253
+
254
+ prev - The previous scope
255
+ Global Link: yes
256
+
257
+ --------------------
258
+
259
+ province - Directly scope to a specific province by its ID
260
+ Requires Data: yes
261
+ Global Link: yes
262
+ Output Scopes: province
263
+
264
+ --------------------
265
+
266
+ religion - Global link to religion scope of given religion string
267
+ Requires Data: yes
268
+ Global Link: yes
269
+ Output Scopes: religion
270
+
271
+ --------------------
272
+
273
+ root - The head of the current top scope eg: reciever of an event, taker of a decision
274
+ Global Link: yes
275
+
276
+ --------------------
277
+
278
+ scope - Reference a previously saved scope via its name eg: scope:target
279
+ Requires Data: yes
280
+ Global Link: yes
281
+
282
+ --------------------
283
+
284
+ situation - Global link to the situation of the given type key (only available if the situation has `is_unique = yes`.
285
+ Requires Data: yes
286
+ Global Link: yes
287
+ Output Scopes: situation
288
+
289
+ --------------------
290
+
291
+ special_guest - Get the special guest of the given type key in the scoped activity
292
+ Requires Data: yes
293
+
294
+ --------------------
295
+
296
+ struggle - Global link to struggle of the given key
297
+ Requires Data: yes
298
+ Global Link: yes
299
+ Output Scopes: struggle
300
+
301
+ --------------------
302
+
303
+ task_contract_type - Get the task_contract_type with the specified key
304
+ Requires Data: yes
305
+ Global Link: yes
306
+ Output Scopes: task_contract_type
307
+
308
+ --------------------
309
+
310
+ this - The current scope
311
+
312
+ --------------------
313
+
314
+ title - Global link to title scope of given landed title template string
315
+ Requires Data: yes
316
+ Global Link: yes
317
+ Output Scopes: landed_title
318
+
319
+ --------------------
320
+
321
+ trait - Get the trait with the specified key
322
+ Requires Data: yes
323
+ Global Link: yes
324
+ Output Scopes: trait
325
+
326
+ --------------------
327
+
328
+ value - A numeric literal value eg: 1, 5.2, -6
329
+ Wild Card: yes
330
+ Global Link: yes
331
+ Output Scopes: value
332
+
333
+ --------------------
334
+
335
+ var - Reference a previous set variable via its name eg: var:mortal_enemy
336
+ Requires Data: yes
337
+
338
+ --------------------
339
+
340
+ vassal_contract - Get the vassal_contract with the specified key
341
+ Requires Data: yes
342
+ Global Link: yes
343
+ Output Scopes: vassal_contract
344
+
345
+ --------------------
346
+
347
+ yes - Boolean literal for true values
348
+ Global Link: yes
349
+ Output Scopes: boolean
350
+
351
+ --------------------
352
+
353
+ accolade - Get the Accolade of which this character is the Acclaimed Knight
354
+ Input Scopes: character
355
+ Output Scopes: accolade
356
+
357
+ --------------------
358
+
359
+ administrative_contract - Get the current subject's contract corresponding to 'admin_province_contract' group of ruler's government
360
+ Input Scopes: character
361
+ Output Scopes: vassal_contract
362
+
363
+ --------------------
364
+
365
+ administrative_obligation - Get the current level for 'admin_province_contract' obligation from contract group of ruler's government
366
+ Input Scopes: character
367
+ Output Scopes: vassal_contract_obligation_level
368
+
369
+ --------------------
370
+
371
+ aptitude - The aptitude of the provided court position type for the scoped character.
372
+ Requires Data: yes
373
+ Input Scopes: character
374
+ Output Scopes: value
375
+
376
+ --------------------
377
+
378
+ aptitude_score - Raw aptitude score of the provided court position type for the scoped character.
379
+ Requires Data: yes
380
+ Input Scopes: character
381
+ Output Scopes: value
382
+
383
+ --------------------
384
+
385
+ assigned_tax_slot - Get the Tax Slot of which this character is assigned to pay into
386
+ Input Scopes: character
387
+ Output Scopes: tax_slot
388
+
389
+ --------------------
390
+
391
+ betrothed - Get the betrothed of the scoped character
392
+ Input Scopes: character
393
+ Output Scopes: character
394
+
395
+ --------------------
396
+
397
+ capital_barony - Get capital barony title ( realm capital ) of scoped character
398
+ Input Scopes: character
399
+ Output Scopes: landed_title
400
+
401
+ --------------------
402
+
403
+ capital_county - Get de jure liege title of the capital county ( realm capital ) of the scoped character
404
+ Input Scopes: character
405
+ Output Scopes: landed_title
406
+
407
+ --------------------
408
+
409
+ capital_province - Get capital province of scoped character
410
+ Input Scopes: character
411
+ Output Scopes: province
412
+
413
+ --------------------
414
+
415
+ commanding_army - Get commanding army of scoped character
416
+ Input Scopes: character
417
+ Output Scopes: army
418
+
419
+ --------------------
420
+
421
+ concubinist - Get concubinist of the scoped character
422
+ Input Scopes: character
423
+ Output Scopes: character
424
+
425
+ --------------------
426
+
427
+ confederation - Scope to the character's confederation
428
+ Input Scopes: character
429
+ Output Scopes: confederation
430
+
431
+ --------------------
432
+
433
+ council_owner - Get council owner of scoped character, or null character if they are not a councillor
434
+ Input Scopes: character
435
+ Output Scopes: character
436
+
437
+ --------------------
438
+
439
+ council_task - Scope to the active task of the scoped councillor
440
+ Input Scopes: character
441
+ Output Scopes: council_task
442
+
443
+ --------------------
444
+
445
+ council_task - Scope to the active task of the given council position, ex. scope:council_task_steward
446
+ Requires Data: yes
447
+ Input Scopes: character
448
+ Output Scopes: council_task
449
+
450
+ --------------------
451
+
452
+ councillor_task_target - Scope to the active task target of the scoped councillor
453
+ Input Scopes: character
454
+
455
+ --------------------
456
+
457
+ court_owner - Get the court owner of the scoped character
458
+ Input Scopes: character
459
+ Output Scopes: character
460
+
461
+ --------------------
462
+
463
+ court_position - The character currently employed in a specific court position.
464
+ Requires Data: yes
465
+ Input Scopes: character
466
+ Output Scopes: character
467
+
468
+ --------------------
469
+
470
+ cp - Scope to the councillor of the given type, ex. scope:cp_steward
471
+ Requires Data: yes
472
+ Input Scopes: character
473
+ Output Scopes: character
474
+
475
+ --------------------
476
+
477
+ current_travel_plan - Get the character's current travel plan
478
+ Input Scopes: character
479
+ Output Scopes: travel_plan
480
+
481
+ --------------------
482
+
483
+ dead_var - Reference a previous set dead character variable via its name eg: dead_var:mortal_enemy
484
+ Requires Data: yes
485
+ Input Scopes: character
486
+
487
+ --------------------
488
+
489
+ default_location - Get the province which the 'default' location a character should be at when not traveling. (considers imprisonment and other things.)
490
+ Input Scopes: character
491
+ Output Scopes: province
492
+
493
+ --------------------
494
+
495
+ designated_diarch - Get the designated diarch of a ruler
496
+ Input Scopes: character
497
+ Output Scopes: character
498
+
499
+ --------------------
500
+
501
+ designated_heir - Get designated heir of scoped character
502
+ Input Scopes: character
503
+ Output Scopes: character
504
+
505
+ --------------------
506
+
507
+ diarch - Get the active diarch of a ruler
508
+ Input Scopes: character
509
+ Output Scopes: character
510
+
511
+ --------------------
512
+
513
+ diarchy_successor - Get the next character in the diarchy line of successon
514
+ Input Scopes: character
515
+ Output Scopes: character
516
+
517
+ --------------------
518
+
519
+ domicile - Get the domicile of the scoped character. Returns empty scope if no domicile.
520
+ Input Scopes: character
521
+ Output Scopes: domicile
522
+
523
+ --------------------
524
+
525
+ dynasty - Get dynasty of scoped character
526
+ Input Scopes: character
527
+ Output Scopes: dynasty
528
+
529
+ --------------------
530
+
531
+ employer - Get employer of scoped character
532
+ Input Scopes: character
533
+ Output Scopes: character
534
+
535
+ --------------------
536
+
537
+ father - Get father of the scoped character
538
+ Input Scopes: character
539
+ Output Scopes: character
540
+
541
+ --------------------
542
+
543
+ ghw_beneficiary - Get great holy war beneficiary of scoped character
544
+ Input Scopes: character
545
+ Output Scopes: character
546
+
547
+ --------------------
548
+
549
+ government_type - Get the government_type of the scoped character
550
+ Input Scopes: character
551
+ Output Scopes: government_type
552
+
553
+ --------------------
554
+
555
+ home_court - Get the home court owner of the scoped hostage. Returns empty scope if the character is not a hostage
556
+ Input Scopes: character
557
+ Output Scopes: character
558
+
559
+ --------------------
560
+
561
+ host - Get current host of the scoped character
562
+ Input Scopes: character
563
+ Output Scopes: character
564
+
565
+ --------------------
566
+
567
+ house - Get house of the scoped character
568
+ Input Scopes: character
569
+ Output Scopes: dynasty_house
570
+
571
+ --------------------
572
+
573
+ imprisoner - Get imprisoner of scoped character
574
+ Input Scopes: character
575
+ Output Scopes: character
576
+
577
+ --------------------
578
+
579
+ inspiration - Get the current inspiration of the scoped character, may not exist if they have no inspiration
580
+ Input Scopes: character
581
+ Output Scopes: inspiration
582
+
583
+ --------------------
584
+
585
+ intent_target - Get the intent target of scoped character
586
+ Input Scopes: character
587
+ Output Scopes: character
588
+
589
+ --------------------
590
+
591
+ involved_activity - Get involved activity of scoped character
592
+ Input Scopes: character
593
+ Output Scopes: activity
594
+
595
+ --------------------
596
+
597
+ joined_faction - Get joined faction of scoped character
598
+ Input Scopes: character
599
+ Output Scopes: faction
600
+
601
+ --------------------
602
+
603
+ killer - Get the scoped characters killer
604
+ Input Scopes: character
605
+ Output Scopes: character
606
+
607
+ --------------------
608
+
609
+ knight_army - Get knight army of scoped character
610
+ Input Scopes: character
611
+ Output Scopes: army
612
+
613
+ --------------------
614
+
615
+ last_played_character - Get last played character of the currently scoped player character
616
+ Input Scopes: character
617
+ Output Scopes: character
618
+
619
+ --------------------
620
+
621
+ liege - Get the liege of the scoped character
622
+ Input Scopes: character
623
+ Output Scopes: character
624
+
625
+ --------------------
626
+
627
+ liege_or_court_owner - Get the liege of the scoped character, if non then get court owner
628
+ Input Scopes: character
629
+ Output Scopes: character
630
+
631
+ --------------------
632
+
633
+ matchmaker - Get matchmaker of the scoped character
634
+ Input Scopes: character
635
+ Output Scopes: character
636
+
637
+ --------------------
638
+
639
+ mother - Get mother of the scoped character
640
+ Input Scopes: character
641
+ Output Scopes: character
642
+
643
+ --------------------
644
+
645
+ obedience_target - Get the obedience target of the scoped character
646
+ Input Scopes: character
647
+ Output Scopes: character
648
+
649
+ --------------------
650
+
651
+ overlord - Get the overlord (suzerain or liege) of the scoped character
652
+ Input Scopes: character
653
+ Output Scopes: character
654
+
655
+ --------------------
656
+
657
+ player_heir - Get player heir of scoped character
658
+ Input Scopes: character
659
+ Output Scopes: character
660
+
661
+ --------------------
662
+
663
+ pregnancy_assumed_father - Get the assumed father of the scoped characters unborn baby
664
+ Input Scopes: character
665
+ Output Scopes: character
666
+
667
+ --------------------
668
+
669
+ pregnancy_real_father - Get the real father of the scoped characters unborn baby
670
+ Input Scopes: character
671
+ Output Scopes: character
672
+
673
+ --------------------
674
+
675
+ primary_heir - Get primary heir of scoped character
676
+ Input Scopes: character
677
+ Output Scopes: character
678
+
679
+ --------------------
680
+
681
+ primary_partner - Get the primary partner ( consort ) of the scoped character
682
+ Input Scopes: character
683
+ Output Scopes: character
684
+
685
+ --------------------
686
+
687
+ primary_spouse - Get the primary spouse of the scoped character
688
+ Input Scopes: character
689
+ Output Scopes: character
690
+
691
+ --------------------
692
+
693
+ primary_title - Get primary title of scoped character
694
+ Input Scopes: character
695
+ Output Scopes: landed_title
696
+
697
+ --------------------
698
+
699
+ promoted_legend - Get the promoted legend of this character
700
+ Input Scopes: character
701
+ Output Scopes: legend
702
+
703
+ --------------------
704
+
705
+ real_father - Get the real father of the scoped character
706
+ Input Scopes: character
707
+ Output Scopes: character
708
+
709
+ --------------------
710
+
711
+ real_mother - Get the real mother of the scoped character
712
+ Input Scopes: character
713
+ Output Scopes: character
714
+
715
+ --------------------
716
+
717
+ realm_priest - Get realm priest of scoped character
718
+ Input Scopes: character
719
+ Output Scopes: character
720
+
721
+ --------------------
722
+
723
+ secret_faith - Get secret faith of scoped character
724
+ Input Scopes: character
725
+ Output Scopes: faith
726
+
727
+ --------------------
728
+
729
+ suzerain - Get the suzerain of the scoped character
730
+ Input Scopes: character
731
+ Output Scopes: character
732
+
733
+ --------------------
734
+
735
+ tax_slot - Get the Tax Slot of which this character is the Tax Collector
736
+ Input Scopes: character
737
+ Output Scopes: tax_slot
738
+
739
+ --------------------
740
+
741
+ top_liege - Get the top liege of the scoped character
742
+ Input Scopes: character
743
+ Output Scopes: character
744
+
745
+ --------------------
746
+
747
+ top_overlord - Get the top overlord (suzerain or liege) of the scoped character
748
+ Input Scopes: character
749
+ Output Scopes: character
750
+
751
+ --------------------
752
+
753
+ top_participant_group - Get the scope of the situation_participant_group that the scoped character is part of for the named situation, for the top sub-region.
754
+ Requires Data: yes
755
+ Input Scopes: character
756
+ Output Scopes: situation_participant_group
757
+
758
+ --------------------
759
+
760
+ top_suzerain - Get the top suzerain of the scoped character
761
+ Input Scopes: character
762
+ Output Scopes: character
763
+
764
+ --------------------
765
+
766
+ vassal_tax_collector - Get the Tax Collector of this Character
767
+ Input Scopes: character
768
+ Output Scopes: character
769
+
770
+ --------------------
771
+
772
+ warden - Get the warden of the scoped hostage. Returns empty scope if the character is not a hostage
773
+ Input Scopes: character
774
+ Output Scopes: character
775
+
776
+ --------------------
777
+
778
+ contributor - Get the Character who funded this Contribution, if it has been funded
779
+ Input Scopes: project_contribution
780
+ Output Scopes: character
781
+
782
+ --------------------
783
+
784
+ great_project - Get the Great Project to which this Contribution is connected
785
+ Input Scopes: project_contribution
786
+ Output Scopes: great_project
787
+
788
+ --------------------
789
+
790
+ capital_vassal - Get capital vassal title of scoped title
791
+ Input Scopes: landed_title
792
+ Output Scopes: landed_title
793
+
794
+ --------------------
795
+
796
+ current_heir - Get current heir to scoped title
797
+ Input Scopes: landed_title
798
+ Output Scopes: character
799
+
800
+ --------------------
801
+
802
+ de_facto_liege - Get de facto liege title of scoped title
803
+ Input Scopes: landed_title
804
+ Output Scopes: landed_title
805
+
806
+ --------------------
807
+
808
+ de_jure_liege - Get de jure liege title of scoped title
809
+ Input Scopes: landed_title
810
+ Output Scopes: landed_title
811
+
812
+ --------------------
813
+
814
+ holder - Get holder of scoped title
815
+ Input Scopes: landed_title
816
+ Output Scopes: character
817
+
818
+ --------------------
819
+
820
+ lessee - Get current lessee of scoped title
821
+ Input Scopes: landed_title
822
+ Output Scopes: character
823
+
824
+ --------------------
825
+
826
+ lessee_title - Get lessee title of scoped landed title
827
+ Input Scopes: landed_title
828
+ Output Scopes: landed_title
829
+
830
+ --------------------
831
+
832
+ previous_holder - Get previous holder of scoped landed title
833
+ Input Scopes: landed_title
834
+ Output Scopes: character
835
+
836
+ --------------------
837
+
838
+ state_faith - Get the state faith of a scoped title
839
+ Input Scopes: landed_title
840
+ Output Scopes: faith
841
+
842
+ --------------------
843
+
844
+ title_capital_county - Get preferred capital county of scoped title
845
+ Input Scopes: landed_title
846
+ Output Scopes: landed_title
847
+
848
+ --------------------
849
+
850
+ title_domicile - Get the domicile associated with the scoped title. Might not exist.
851
+ Input Scopes: landed_title
852
+ Output Scopes: domicile
853
+
854
+ --------------------
855
+
856
+ title_province - Get province of scoped landed title
857
+ Input Scopes: landed_title
858
+ Output Scopes: province
859
+
860
+ --------------------
861
+
862
+ epidemic_type - Get the type of this epidemic
863
+ Input Scopes: epidemic
864
+ Output Scopes: epidemic_type
865
+
866
+ --------------------
867
+
868
+ outbreak_province - Get the province this epidemic outbreak started in
869
+ Input Scopes: epidemic
870
+ Output Scopes: province
871
+
872
+ --------------------
873
+
874
+ holy_order_patron - Get patron of scoped holy order
875
+ Input Scopes: holy_order
876
+ Output Scopes: character
877
+
878
+ --------------------
879
+
880
+ leader - Get leader of scoped holy order
881
+ Input Scopes: holy_order
882
+ Output Scopes: character
883
+
884
+ --------------------
885
+
886
+ title - Get landed title of scoped holy order
887
+ Input Scopes: holy_order
888
+ Output Scopes: landed_title
889
+
890
+ --------------------
891
+
892
+ regiment_controller - Get the character who currently controls the regiment
893
+ Input Scopes: regiment
894
+ Output Scopes: character
895
+
896
+ --------------------
897
+
898
+ regiment_controlling_title - Get title regiment's owning title
899
+ Input Scopes: regiment
900
+ Output Scopes: landed_title
901
+
902
+ --------------------
903
+
904
+ regiment_owner - Get regiment's owner
905
+ Input Scopes: regiment
906
+ Output Scopes: character
907
+
908
+ --------------------
909
+
910
+ regiment_owning_title - Get title regiment's owning title
911
+ Input Scopes: regiment
912
+ Output Scopes: landed_title
913
+
914
+ --------------------
915
+
916
+ regiment_station - Get regiment's station province
917
+ Input Scopes: regiment
918
+ Output Scopes: province
919
+
920
+ --------------------
921
+
922
+ activity_host - Get host character of the scoped activity
923
+ Input Scopes: activity
924
+ Output Scopes: character
925
+
926
+ --------------------
927
+
928
+ activity_location - Get current location of the scoped activity
929
+ Input Scopes: activity
930
+ Output Scopes: province
931
+
932
+ --------------------
933
+
934
+ activity_type - Get the type of a given activity
935
+ Input Scopes: activity
936
+ Output Scopes: activity_type
937
+
938
+ --------------------
939
+
940
+ participant_group_situation - From the situation participant group, get the situation it belongs to.
941
+ Input Scopes: situation_participant_group
942
+ Output Scopes: situation
943
+
944
+ --------------------
945
+
946
+ participant_group_sub_region - From the situation participant group, get the situation sub-region it belongs to.
947
+ Input Scopes: situation_participant_group
948
+ Output Scopes: situation_sub_region
949
+
950
+ --------------------
951
+
952
+ war - Get war of scoped casus belli
953
+ Input Scopes: casus_belli
954
+ Output Scopes: war
955
+
956
+ --------------------
957
+
958
+ house_aspiration - Get house aspiration of the scoped house
959
+ Input Scopes: dynasty_house
960
+ Output Scopes: house_aspiration
961
+
962
+ --------------------
963
+
964
+ house_confederation - Scope to the house's confederation
965
+ Input Scopes: dynasty_house
966
+ Output Scopes: confederation
967
+
968
+ --------------------
969
+
970
+ house_dynasty - Get dynasty of the given house
971
+ Input Scopes: dynasty_house
972
+ Output Scopes: dynasty
973
+
974
+ --------------------
975
+
976
+ house_founder - Get house founder of the scoped house
977
+ Input Scopes: dynasty_house
978
+ Output Scopes: character
979
+
980
+ --------------------
981
+
982
+ house_head - Get house head of the scoped character
983
+ Input Scopes: dynasty_house
984
+ Output Scopes: character
985
+
986
+ --------------------
987
+
988
+ last_house_head - Get last house head of scoped house
989
+ Input Scopes: dynasty_house
990
+ Output Scopes: character
991
+
992
+ --------------------
993
+
994
+ faith - Get faith of scoped character, province, title or great holy war
995
+ Input Scopes: character, landed_title, province, ghw
996
+ Output Scopes: faith
997
+
998
+ --------------------
999
+
1000
+ current_location - Get the current province of the travel plan.
1001
+ Input Scopes: travel_plan
1002
+ Output Scopes: province
1003
+
1004
+ --------------------
1005
+
1006
+ departure_location - Get the province from which this travel plan started.
1007
+ Input Scopes: travel_plan
1008
+ Output Scopes: province
1009
+
1010
+ --------------------
1011
+
1012
+ final_destination_province - Get the final (last) destination province of the travel plan.
1013
+ Input Scopes: travel_plan
1014
+ Output Scopes: province
1015
+
1016
+ --------------------
1017
+
1018
+ next_destination_province - Get the next destination province of the travel plan. If you are at a destination province, it will be the one after that one.
1019
+ Input Scopes: travel_plan
1020
+ Output Scopes: province
1021
+
1022
+ --------------------
1023
+
1024
+ next_location - Get the next province the travel plan is going to.
1025
+ Input Scopes: travel_plan
1026
+ Output Scopes: province
1027
+
1028
+ --------------------
1029
+
1030
+ travel_leader - Get the Travel Leader of the scoped travel plan
1031
+ Input Scopes: travel_plan
1032
+ Output Scopes: character
1033
+
1034
+ --------------------
1035
+
1036
+ travel_plan_activity - Activity associated with the scoped travel plan. (may be empty)
1037
+ Input Scopes: travel_plan
1038
+ Output Scopes: activity
1039
+
1040
+ --------------------
1041
+
1042
+ travel_plan_owner - Get the owner of the scoped travel plan
1043
+ Input Scopes: travel_plan
1044
+ Output Scopes: character
1045
+
1046
+ --------------------
1047
+
1048
+ slot_character - Get the character of scoped agent slot
1049
+ Input Scopes: agent_slot
1050
+ Output Scopes: character
1051
+
1052
+ --------------------
1053
+
1054
+ combat_attacker - Get attacker side of scoped combat
1055
+ Input Scopes: combat
1056
+ Output Scopes: combat_side
1057
+
1058
+ --------------------
1059
+
1060
+ combat_defender - Get defender side of scoped combat
1061
+ Input Scopes: combat
1062
+ Output Scopes: combat_side
1063
+
1064
+ --------------------
1065
+
1066
+ combat_war - Get war of scoped combat
1067
+ Input Scopes: combat
1068
+ Output Scopes: war
1069
+
1070
+ --------------------
1071
+
1072
+ founder - Get founder of scoped faith
1073
+ Input Scopes: faith
1074
+ Output Scopes: character
1075
+
1076
+ --------------------
1077
+
1078
+ great_holy_war - Get great holy war of scoped faith
1079
+ Input Scopes: faith
1080
+ Output Scopes: ghw
1081
+
1082
+ --------------------
1083
+
1084
+ religious_head - Get religious head of scoped faith
1085
+ Input Scopes: faith
1086
+ Output Scopes: character
1087
+
1088
+ --------------------
1089
+
1090
+ religious_head_title - Get landed title belonging to the religious head of the scoped faith
1091
+ Input Scopes: faith
1092
+ Output Scopes: landed_title
1093
+
1094
+ --------------------
1095
+
1096
+ ghw_designated_winner - Get designated winner of scoped great holy war
1097
+ Input Scopes: ghw
1098
+ Output Scopes: character
1099
+
1100
+ --------------------
1101
+
1102
+ ghw_target_character - Get target character of scoped great holy war
1103
+ Input Scopes: ghw
1104
+ Output Scopes: character
1105
+
1106
+ --------------------
1107
+
1108
+ ghw_target_title - Get target landed title of scoped great holy war
1109
+ Input Scopes: ghw
1110
+ Output Scopes: landed_title
1111
+
1112
+ --------------------
1113
+
1114
+ ghw_title_recipient - Get the title recipient of scoped great holy war
1115
+ Input Scopes: ghw
1116
+ Output Scopes: character
1117
+
1118
+ --------------------
1119
+
1120
+ ghw_war - Get great holy war from scoped war
1121
+ Input Scopes: ghw
1122
+ Output Scopes: war
1123
+
1124
+ --------------------
1125
+
1126
+ ghw_war_declarer - Get declarer of scoped great holy war
1127
+ Input Scopes: ghw
1128
+ Output Scopes: character
1129
+
1130
+ --------------------
1131
+
1132
+ tax_collector - Get the Tax Collector of this Tax Slot
1133
+ Input Scopes: tax_slot
1134
+ Output Scopes: character
1135
+
1136
+ --------------------
1137
+
1138
+ tax_slot_liege - Get the Liege of this Tax Slot
1139
+ Input Scopes: tax_slot
1140
+ Output Scopes: character
1141
+
1142
+ --------------------
1143
+
1144
+ memory_owner - Get the owner of a character memory
1145
+ Input Scopes: character_memory
1146
+ Output Scopes: character
1147
+
1148
+ --------------------
1149
+
1150
+ memory_participant - Get the participant of a given tag from a memory
1151
+ Requires Data: yes
1152
+ Input Scopes: character_memory
1153
+ Output Scopes: character
1154
+
1155
+ --------------------
1156
+
1157
+ domicile_culture - Get current culture of the scoped domicile. Doesn't exist if the domcile type doesn't use culture.
1158
+ Input Scopes: domicile
1159
+ Output Scopes: culture
1160
+
1161
+ --------------------
1162
+
1163
+ domicile_faith - Get current faith of the scoped domicile. Doesn't exist if the domcile type doesn't use faith.
1164
+ Input Scopes: domicile
1165
+ Output Scopes: faith
1166
+
1167
+ --------------------
1168
+
1169
+ domicile_location - Get current location of the scoped domicile
1170
+ Input Scopes: domicile
1171
+ Output Scopes: province
1172
+
1173
+ --------------------
1174
+
1175
+ owner - Get the owner of scoped domicile.
1176
+ Input Scopes: domicile
1177
+ Output Scopes: character
1178
+
1179
+ --------------------
1180
+
1181
+ army_commander - Get commander of scoped army
1182
+ Input Scopes: army
1183
+ Output Scopes: character
1184
+
1185
+ --------------------
1186
+
1187
+ army_owner - Get owner of scoped army
1188
+ Input Scopes: army
1189
+ Output Scopes: character
1190
+
1191
+ --------------------
1192
+
1193
+ involved_combat_side - Get combat side that army is involved in
1194
+ Input Scopes: army
1195
+ Output Scopes: combat_side
1196
+
1197
+ --------------------
1198
+
1199
+ epidemic_trait - Gets the trait that this epidemic will spread
1200
+ Input Scopes: epidemic_type
1201
+ Output Scopes: trait
1202
+
1203
+ --------------------
1204
+
1205
+ great_project_founder - Get the Character who founded the Great Project. Keep in mind they may be dead. Should never be empty.
1206
+ Input Scopes: great_project
1207
+ Output Scopes: character
1208
+
1209
+ --------------------
1210
+
1211
+ great_project_location - Get the Province where this Great Project is located, if any
1212
+ Input Scopes: great_project
1213
+ Output Scopes: province
1214
+
1215
+ --------------------
1216
+
1217
+ great_project_owner - Get the Character who currently owns the Great Project. Currently it is computed as the top liege of the holder of the project Location. Should never be empty.
1218
+ Input Scopes: great_project
1219
+ Output Scopes: character
1220
+
1221
+ --------------------
1222
+
1223
+ great_project_type - Get the Type of the specified Great Project.
1224
+ Input Scopes: great_project
1225
+ Output Scopes: great_project_type
1226
+
1227
+ --------------------
1228
+
1229
+ holding_type - Get the type of holding in the scoped province
1230
+ Input Scopes: province
1231
+ Output Scopes: holding_type
1232
+
1233
+ --------------------
1234
+
1235
+ province_owner - Get province owner of scoped province
1236
+ Input Scopes: province
1237
+ Output Scopes: character
1238
+
1239
+ --------------------
1240
+
1241
+ casus_belli - Get casus belli of scoped war
1242
+ Input Scopes: war
1243
+ Output Scopes: casus_belli
1244
+
1245
+ --------------------
1246
+
1247
+ inspiration_owner - Get the character who owns the inspiration
1248
+ Input Scopes: inspiration
1249
+ Output Scopes: character
1250
+
1251
+ --------------------
1252
+
1253
+ inspiration_sponsor - Get the character who is sponsoring the inspiration, may not exist if there is no sponsor yet
1254
+ Input Scopes: inspiration
1255
+ Output Scopes: character
1256
+
1257
+ --------------------
1258
+
1259
+ subject_contract_type - Get the type of a given contract obligation
1260
+ Input Scopes: vassal_contract_obligation_level
1261
+ Output Scopes: vassal_contract
1262
+
1263
+ --------------------
1264
+
1265
+ vassal_contract_type - Get the type of a given contract obligation
1266
+ Input Scopes: vassal_contract_obligation_level
1267
+ Output Scopes: vassal_contract
1268
+
1269
+ --------------------
1270
+
1271
+ scheme - Get the scheme scheme associated with the task contract (if there is one).
1272
+ Input Scopes: task_contract
1273
+ Output Scopes: scheme
1274
+
1275
+ --------------------
1276
+
1277
+ task_contract_destination - Get the task contract destination, null if unused.
1278
+ Input Scopes: task_contract
1279
+ Output Scopes: province
1280
+
1281
+ --------------------
1282
+
1283
+ task_contract_employer - Get the task contract employer.
1284
+ Input Scopes: task_contract
1285
+ Output Scopes: character
1286
+
1287
+ --------------------
1288
+
1289
+ task_contract_location - Get the task contract location.
1290
+ Input Scopes: task_contract
1291
+ Output Scopes: province
1292
+
1293
+ --------------------
1294
+
1295
+ task_contract_taker - Get the task contract taker, null until taken.
1296
+ Input Scopes: task_contract
1297
+ Output Scopes: character
1298
+
1299
+ --------------------
1300
+
1301
+ task_contract_target - Get the task contract target, null if unused.
1302
+ Input Scopes: task_contract
1303
+ Output Scopes: character
1304
+
1305
+ --------------------
1306
+
1307
+ acclaimed_knight - Get the Acclaimed Knight of given Accolade
1308
+ Input Scopes: accolade
1309
+ Output Scopes: character
1310
+
1311
+ --------------------
1312
+
1313
+ accolade_owner - Get the Owner of given Accolade
1314
+ Input Scopes: accolade
1315
+ Output Scopes: character
1316
+
1317
+ --------------------
1318
+
1319
+ accolade_successor - Get the Successor of given Accolade
1320
+ Input Scopes: accolade
1321
+ Output Scopes: character
1322
+
1323
+ --------------------
1324
+
1325
+ founder_culture - Get the founder Culture of given Accolade
1326
+ Input Scopes: accolade
1327
+ Output Scopes: culture
1328
+
1329
+ --------------------
1330
+
1331
+ founder_dynasty - Get the founder Dynasty of given Accolade
1332
+ Input Scopes: accolade
1333
+ Output Scopes: dynasty
1334
+
1335
+ --------------------
1336
+
1337
+ founder_faith - Get the founder Faith of given Accolade
1338
+ Input Scopes: accolade
1339
+ Output Scopes: faith
1340
+
1341
+ --------------------
1342
+
1343
+ founder_house - Get the founder House of given Accolade
1344
+ Input Scopes: accolade
1345
+ Output Scopes: dynasty_house
1346
+
1347
+ --------------------
1348
+
1349
+ initial_type - Get the initial Accolade Type of given Accolade
1350
+ Input Scopes: accolade
1351
+ Output Scopes: accolade_type
1352
+
1353
+ --------------------
1354
+
1355
+ barony - Get de jure barony title of scoped title or province
1356
+ Input Scopes: landed_title, province
1357
+ Output Scopes: landed_title
1358
+
1359
+ --------------------
1360
+
1361
+ barony_controller - Get barony controller of scoped province or barony title
1362
+ Input Scopes: landed_title, province
1363
+ Output Scopes: character
1364
+
1365
+ --------------------
1366
+
1367
+ county - Get de jure county title of scoped title or province
1368
+ Input Scopes: landed_title, province
1369
+ Output Scopes: landed_title
1370
+
1371
+ --------------------
1372
+
1373
+ county_controller - Get county controller of scoped province or barony/county title
1374
+ Input Scopes: landed_title, province
1375
+ Output Scopes: character
1376
+
1377
+ --------------------
1378
+
1379
+ duchy - Get de jure duchy title of scoped title or province
1380
+ Input Scopes: landed_title, province
1381
+ Output Scopes: landed_title
1382
+
1383
+ --------------------
1384
+
1385
+ empire - Get de jure empire title of scoped title or province
1386
+ Input Scopes: landed_title, province
1387
+ Output Scopes: landed_title
1388
+
1389
+ --------------------
1390
+
1391
+ hegemony - Get de jure hegemony title of scoped title or province
1392
+ Input Scopes: landed_title, province
1393
+ Output Scopes: landed_title
1394
+
1395
+ --------------------
1396
+
1397
+ kingdom - Get de jure kingdom title of scoped title or province
1398
+ Input Scopes: landed_title, province
1399
+ Output Scopes: landed_title
1400
+
1401
+ --------------------
1402
+
1403
+ combat - Get combat of scoped combat side
1404
+ Input Scopes: combat_side
1405
+ Output Scopes: combat
1406
+
1407
+ --------------------
1408
+
1409
+ enemy_side - Get enemy ( opposite ) combat side of scoped side
1410
+ Input Scopes: combat_side
1411
+ Output Scopes: combat_side
1412
+
1413
+ --------------------
1414
+
1415
+ side_commander - Get commander of scoped combat side
1416
+ Input Scopes: combat_side
1417
+ Output Scopes: character
1418
+
1419
+ --------------------
1420
+
1421
+ side_primary_participant - Get primary participant of scoped combat side
1422
+ Input Scopes: combat_side
1423
+ Output Scopes: character
1424
+
1425
+ --------------------
1426
+
1427
+ situation_center_province - Get the situation's center province, manually set with set_situation_center_province."
1428
+ "Note that it will return an invalid/null province if not set explicitly before using this link."
1429
+ "Example: scope:situation.situation_center_province.county = primary_title
1430
+ Input Scopes: situation
1431
+ Output Scopes: province
1432
+
1433
+ --------------------
1434
+
1435
+ situation_participant_group - Get the scope of the first situation_participant_group with the given name on the scoped situation (for top sub-region).
1436
+ situation_participant_group:group_name = { ... }
1437
+ Requires Data: yes
1438
+ Input Scopes: situation
1439
+ Output Scopes: situation_participant_group
1440
+
1441
+ --------------------
1442
+
1443
+ situation_sub_region - Get the scope of the situation sub-region with a given key.
1444
+ Example: situation_sub_region:west_region = { ... }
1445
+ Requires Data: yes
1446
+ Input Scopes: situation
1447
+ Output Scopes: situation_sub_region
1448
+
1449
+ --------------------
1450
+
1451
+ situation_top_barter_goods - Get the participating character with the most barter goods in the scoped situation.
1452
+ Input Scopes: situation
1453
+ Output Scopes: character
1454
+
1455
+ --------------------
1456
+
1457
+ situation_top_gold - Get the participating character with the most gold in the scoped situation.
1458
+ Input Scopes: situation
1459
+ Output Scopes: character
1460
+
1461
+ --------------------
1462
+
1463
+ situation_top_herd - Get the participating character with the most herd in the scoped situation.
1464
+ Input Scopes: situation
1465
+ Output Scopes: character
1466
+
1467
+ --------------------
1468
+
1469
+ situation_top_participant_group - Get the scope of the situation_participant_group that given character is part of on the scoped situation, for the top sub-region.
1470
+ Requires Data: yes
1471
+ Input Scopes: situation
1472
+ Output Scopes: situation_participant_group
1473
+
1474
+ --------------------
1475
+
1476
+ situation_top_provisions - Get the participating character with the most provisions in the scoped situation.
1477
+ Input Scopes: situation
1478
+ Output Scopes: character
1479
+
1480
+ --------------------
1481
+
1482
+ situation_top_sub_region - Get the situation top sub-region with geographical, county and province info.
1483
+ Input Scopes: situation
1484
+ Output Scopes: situation_sub_region
1485
+
1486
+ --------------------
1487
+
1488
+ culture - Get culture of scoped character, province or title
1489
+ Input Scopes: character, landed_title, province
1490
+ Output Scopes: culture
1491
+
1492
+ --------------------
1493
+
1494
+ dynast - Get dynasty head ( dynast ) of scoped character
1495
+ Input Scopes: dynasty
1496
+ Output Scopes: character
1497
+
1498
+ --------------------
1499
+
1500
+ dynasty_founder - Get the founder of the scoped dynasty
1501
+ Input Scopes: dynasty
1502
+ Output Scopes: character
1503
+
1504
+ --------------------
1505
+
1506
+ mercenary_company_leader - Get leader of scoped mercenary company
1507
+ Input Scopes: mercenary_company
1508
+ Output Scopes: character
1509
+
1510
+ --------------------
1511
+
1512
+ character_participant_group - Get the scope of the situation_participant_group that given character is part of for the scoped situation sub-region.
1513
+ Requires Data: yes
1514
+ Input Scopes: situation_sub_region
1515
+ Output Scopes: situation_participant_group
1516
+
1517
+ --------------------
1518
+
1519
+ sub_region_participant_group - Get the scope of the situation_participant_group with the given name on the scoped situation sub-region
1520
+ Requires Data: yes
1521
+ Input Scopes: situation_sub_region
1522
+ Output Scopes: situation_participant_group
1523
+
1524
+ --------------------
1525
+
1526
+ scheme_artifact - Get artifact of scoped scheme
1527
+ Input Scopes: scheme
1528
+ Output Scopes: artifact
1529
+
1530
+ --------------------
1531
+
1532
+ scheme_defender - Get defender of scoped scheme
1533
+ Input Scopes: scheme
1534
+ Output Scopes: character
1535
+
1536
+ --------------------
1537
+
1538
+ scheme_owner - Get owner of scoped scheme
1539
+ Input Scopes: scheme
1540
+ Output Scopes: character
1541
+
1542
+ --------------------
1543
+
1544
+ scheme_target_character - Get target character of scoped scheme. Null if the target type is not a character.
1545
+ Input Scopes: scheme
1546
+ Output Scopes: character
1547
+
1548
+ --------------------
1549
+
1550
+ scheme_target_culture - Get target culture of scoped scheme. Null if the target type is not a culture.
1551
+ Input Scopes: scheme
1552
+ Output Scopes: culture
1553
+
1554
+ --------------------
1555
+
1556
+ scheme_target_faith - Get target faith of scoped scheme. Null if the target type is not a faith.
1557
+ Input Scopes: scheme
1558
+ Output Scopes: faith
1559
+
1560
+ --------------------
1561
+
1562
+ scheme_target_title - Get target title of scoped scheme. Null if the target type is not a title.
1563
+ Input Scopes: scheme
1564
+ Output Scopes: landed_title
1565
+
1566
+ --------------------
1567
+
1568
+ task_contract - Get the task contract associated to the scheme (if any).
1569
+ Input Scopes: scheme
1570
+ Output Scopes: task_contract
1571
+
1572
+ --------------------
1573
+
1574
+ claimant - Get claimant of scoped casus belli or war
1575
+ Input Scopes: war, casus_belli
1576
+ Output Scopes: character
1577
+
1578
+ --------------------
1579
+
1580
+ primary_attacker - Get primary attacker of scoped casus belli or war
1581
+ Input Scopes: war, casus_belli
1582
+ Output Scopes: character
1583
+
1584
+ --------------------
1585
+
1586
+ primary_defender - Get primary defender of scoped casus belli or war
1587
+ Input Scopes: war, casus_belli
1588
+ Output Scopes: character
1589
+
1590
+ --------------------
1591
+
1592
+ current_or_last_legend_owner - Get the current or last owner of this legend
1593
+ Input Scopes: legend
1594
+ Output Scopes: character
1595
+
1596
+ --------------------
1597
+
1598
+ legend_owner - Get the owner of this legend
1599
+ Input Scopes: legend
1600
+ Output Scopes: character
1601
+
1602
+ --------------------
1603
+
1604
+ legend_property - Get the scope of the property with the given name on the scoped legend
1605
+ Requires Data: yes
1606
+ Input Scopes: legend
1607
+
1608
+ --------------------
1609
+
1610
+ legend_protagonist - Get the protagonist character of this legend
1611
+ Input Scopes: legend
1612
+ Output Scopes: character
1613
+
1614
+ --------------------
1615
+
1616
+ legend_type - Get the type of this legend
1617
+ Input Scopes: legend
1618
+ Output Scopes: legend_type
1619
+
1620
+ --------------------
1621
+
1622
+ calc_culture_dominant_faith - Calculates what faith is the biggest in the culture based on # of counties. Be aware that this is an *expensive* calculation. In a tie, definition order breaks the tie
1623
+ Input Scopes: culture
1624
+ Output Scopes: faith
1625
+
1626
+ --------------------
1627
+
1628
+ calc_culture_dominant_religion - Calculates what religion is the biggest in the culture based on # of counties. Be aware that this is an *expensive* calculation. In a tie, definition order breaks the tie
1629
+ Input Scopes: culture
1630
+ Output Scopes: religion
1631
+
1632
+ --------------------
1633
+
1634
+ culture_head - Get culture head of scoped culture
1635
+ Input Scopes: culture
1636
+ Output Scopes: character
1637
+
1638
+ --------------------
1639
+
1640
+ secret_owner - Get owner of scoped secret
1641
+ Input Scopes: secret
1642
+ Output Scopes: character
1643
+
1644
+ --------------------
1645
+
1646
+ secret_target - Get target character of scoped secret
1647
+ Input Scopes: secret
1648
+ Output Scopes: character
1649
+
1650
+ --------------------
1651
+
1652
+ artifact_age - Get age of scoped artifact
1653
+ Input Scopes: artifact
1654
+ Output Scopes: value
1655
+
1656
+ --------------------
1657
+
1658
+ artifact_owner - Get owner of scoped artifact
1659
+ Input Scopes: artifact
1660
+ Output Scopes: character
1661
+
1662
+ --------------------
1663
+
1664
+ creator - Get creator of scoped artifact
1665
+ Input Scopes: artifact
1666
+ Output Scopes: character
1667
+
1668
+ --------------------
1669
+
1670
+ previous_owner - Get the previous owner of the scoped activity
1671
+ Input Scopes: artifact
1672
+ Output Scopes: character
1673
+
1674
+ --------------------
1675
+
1676
+ previous_owner_level_2 - Get the 2 previous owner of the scoped activity
1677
+ Input Scopes: artifact
1678
+ Output Scopes: character
1679
+
1680
+ --------------------
1681
+
1682
+ previous_owner_level_3 - Get the 3 previous owner of the scoped activity
1683
+ Input Scopes: artifact
1684
+ Output Scopes: character
1685
+
1686
+ --------------------
1687
+
1688
+ obligation - Directly scope to a specific decision type by its key
1689
+ Requires Data: yes
1690
+ Input Scopes: vassal_contract
1691
+ Output Scopes: vassal_contract_obligation_level
1692
+
1693
+ --------------------
1694
+
1695
+ location - Get province of scoped army, character or combat
1696
+ Input Scopes: character, combat, army
1697
+ Output Scopes: province
1698
+
1699
+ --------------------
1700
+
1701
+ councillor - Scope to the councillor in a council task
1702
+ Input Scopes: council_task
1703
+ Output Scopes: character
1704
+
1705
+ --------------------
1706
+
1707
+ faction_leader - Get leader of scoped faction
1708
+ Input Scopes: faction
1709
+ Output Scopes: character
1710
+
1711
+ --------------------
1712
+
1713
+ faction_target - Get target character of scoped faction
1714
+ Input Scopes: faction
1715
+ Output Scopes: character
1716
+
1717
+ --------------------
1718
+
1719
+ faction_war - Get war of scoped faction
1720
+ Input Scopes: faction
1721
+ Output Scopes: war
1722
+
1723
+ --------------------
1724
+
1725
+ special_character - Get special character of scoped faction
1726
+ Input Scopes: faction
1727
+ Output Scopes: character
1728
+
1729
+ --------------------
1730
+
1731
+ special_title - Get special landed title of scoped faction
1732
+ Input Scopes: faction
1733
+ Output Scopes: landed_title
1734
+
1735
+ --------------------
1736
+
1737
+ confederation_type - Get the type of a given confederation
1738
+ Input Scopes: confederation
1739
+ Output Scopes: confederation_type
1740
+
1741
+ --------------------
1742
+
1743
+ leading_house - Scope to the confederation's leading dynasty house
1744
+ Input Scopes: confederation
1745
+ Output Scopes: dynasty_house
1746
+
1747
+ --------------------
1748
+
1749
+ story_owner - Get owner of scoped story
1750
+ Input Scopes: story
1751
+ Output Scopes: character
1752
+
1753
+ --------------------
1754
+
1755
+ religion - Get religion of scoped faith, character, province, title or great holy war
1756
+ Input Scopes: character, landed_title, province, faith, ghw
1757
+ Output Scopes: religion
1758
+
1759
+ --------------------
1760
+
1761
+ Event Targets Saved from Code:
1762
+
1763
+ context
1764
+ actor
1765
+ activity
1766
+ recipient
1767
+ target
1768
+ owner
1769
+ scheme
1770
+ agent
1771
+ combat
1772
+ combat_side
1773
+ combat_enemy_side
1774
+ duel_target
1775
+ child
1776
+ mother
1777
+ father
1778
+ real_father
1779
+ is_bastard
1780
+ first
1781
+ second
1782
+ attacker
1783
+ defender
1784
+ attackers
1785
+ defenders
1786
+ war
1787
+ invalidated_by_script
1788
+ killer
1789
+ story
1790
+ secondary_actor
1791
+ secondary_recipient
1792
+ matrilineal
1793
+ discoverer
1794
+ landed_title
1795
+ title
1796
+ friendly_commander
1797
+ enemy_commander
1798
+ friendly_battle_owner
1799
+ enemy_battle_owner
1800
+ province
1801
+ provinces
1802
+ victory
1803
+ imprisoner
1804
+ hostage
1805
+ warden
1806
+ home_court
1807
+ none
1808
+ target_titles
1809
+ secret_exposer
1810
+ blackmailer
1811
+ gift
1812
+ hook
1813
+ claimant
1814
+ holder
1815
+ holding
1816
+ county
1817
+ barony
1818
+ councillor
1819
+ councillor_liege
1820
+ new_councillor
1821
+ swapped_position
1822
+ liege
1823
+ old_liege
1824
+ courtier
1825
+ host
1826
+ guest
1827
+ characters
1828
+ gold_paid
1829
+ gold_received
1830
+ vassal
1831
+ faction
1832
+ target_character
1833
+ new_title
1834
+ previous_title
1835
+ army
1836
+ old_location
1837
+ new_location
1838
+ old_employer
1839
+ new_employer
1840
+ previous_controller
1841
+ occupied_baronies
1842
+ duel_value
1843
+ faction_member
1844
+ selected_doctrines
1845
+ cb_prestige_factor
1846
+ old_faith
1847
+ new_faith
1848
+ faith
1849
+ age
1850
+ army_owner
1851
+ lessee
1852
+ ruler
1853
+ value
1854
+ great_holy_war
1855
+ name_character_target
1856
+ base
1857
+ replacement
1858
+ new_holy_order
1859
+ council_task
1860
+ patron
1861
+ leader
1862
+ candidate
1863
+ holder_candidate
1864
+ previous_holder
1865
+ previous_defender
1866
+ num_missing
1867
+ quarter
1868
+ opinion_of_liege
1869
+ exposed
1870
+ commanders
1871
+ knights
1872
+ is_child_of_concubine
1873
+ concubine
1874
+ character
1875
+ court_physician
1876
+ culture
1877
+ old_culture
1878
+ other_culture
1879
+ traits
1880
+ special
1881
+ dangerous
1882
+ secret_owner
1883
+ secret_target
1884
+ mass_action
1885
+ spouse
1886
+ new_holder
1887
+ raider
1888
+ wipe
1889
+ text_target
1890
+ script
1891
+ reason
1892
+ death
1893
+ timeout
1894
+ conquest
1895
+ conquest_holy_war
1896
+ conquest_claim
1897
+ conquest_populist
1898
+ appointment
1899
+ inheritance
1900
+ abdication
1901
+ destroyed
1902
+ created
1903
+ usurped
1904
+ granted
1905
+ revoked
1906
+ election
1907
+ independency
1908
+ returned
1909
+ leased_out
1910
+ lease_revoked
1911
+ faction_demand
1912
+ swear_fealty
1913
+ transfer_type
1914
+ female
1915
+ ally
1916
+ ruler_designer
1917
+ current_weight
1918
+ weight_for_portrait
1919
+ prowess
1920
+ founder
1921
+ tradition
1922
+ new_culture
1923
+ old_owner
1924
+ ai_honor
1925
+ ai_greed
1926
+ ai_rationality
1927
+ ai_energy
1928
+ ai_boldness
1929
+ ai_zeal
1930
+ ai_vengefulness
1931
+ ai_compassion
1932
+ ai_sociability
1933
+ government
1934
+ old_government
1935
+ highest_held_title_tier
1936
+ old_value
1937
+ new_value
1938
+ artifact
1939
+ inspiration
1940
+ new_inspiration
1941
+ inspiration_sponsor
1942
+ inspiration_owner
1943
+ will_override_government
1944
+ employee
1945
+ percent_of_monthly_gold_income
1946
+ percent_of_positive_monthly_prestige_balance
1947
+ percent_of_positive_monthly_piety_balance
1948
+ percent_of_monthly_gold_income_all_positions
1949
+ percent_of_positive_monthly_prestige_balance_all_positions
1950
+ percent_of_positive_monthly_piety_balance_all_positions
1951
+ firing_court_position
1952
+ highest_available_aptitude
1953
+ employee_aptitude
1954
+ monthly_character_expenses
1955
+ base_value
1956
+ my_language_counties
1957
+ their_language_counties
1958
+ total_counties
1959
+ checking_native_language
1960
+ courts_with_language
1961
+ replacing
1962
+ old_primary
1963
+ quality
1964
+ wealth
1965
+ mover
1966
+ destination
1967
+ struggle
1968
+ new_memory
1969
+ travel_plan
1970
+ travel_plan_owner
1971
+ danger_value
1972
+ travel_speed
1973
+ travel_safety
1974
+ travel_time
1975
+ speed_aptitude
1976
+ safety_aptitude
1977
+ grand_wedding_promise
1978
+ special_option
1979
+ highest_future_danger_value
1980
+ new_owner
1981
+ new_acclaimed_knight
1982
+ old_acclaimed_knight
1983
+ intermediary
1984
+ previous_province
1985
+ old_diarch
1986
+ regular
1987
+ depose
1988
+ invalid
1989
+ former_designated_diarch
1990
+ score
1991
+ travel_options
1992
+ accolade_type
1993
+ new_accolade_type
1994
+ minimal_travel_time
1995
+ estimated_arrival_diff_days
1996
+ special_guests
1997
+ year_of_birth
1998
+ glory
1999
+ positive
2000
+ player
2001
+ old_travel_leader
2002
+ changed_obligations
2003
+ new_successor
2004
+ old_successor
2005
+ tax_slot
2006
+ dread
2007
+ activity_intent
2008
+ accolade
2009
+ new_diarchy
2010
+ old_dynasty
2011
+ active_obligation
2012
+ tax_collector
2013
+ obligation
2014
+ num_slots_with_obligation
2015
+ is_current_obligation
2016
+ num_vassal_slots
2017
+ old_capital
2018
+ dynasty
2019
+ house
2020
+ other_house
2021
+ house_1
2022
+ house_2
2023
+ house_relation
2024
+ num_relations
2025
+ has_slot_with_obligation
2026
+ firing
2027
+ epidemic
2028
+ epidemic_type
2029
+ legend
2030
+ num_legends
2031
+ creator
2032
+ protagonist
2033
+ can_afford_current_level
2034
+ agent_slot
2035
+ contract_type
2036
+ contract
2037
+ employer
2038
+ target_title
2039
+ casus_belli_type
2040
+ has_hostages
2041
+ player_heir
2042
+ interesting_destiny_character
2043
+ hard_difficulty_destiny_character
2044
+ favorite_destiny_character
2045
+ previous_player_character
2046
+ previous_player_heir
2047
+ predecessor
2048
+ heir
2049
+ top_liege
2050
+ changed_top_liege
2051
+ stepped_down
2052
+ appointment_succession
2053
+ was_kurultai
2054
+ kurultai_members
2055
+ obedient_kurultai
2056
+ disobedient_kurultai
2057
+ main_destiny_types
2058
+ random_destiny_types
2059
+ destiny_type_flag
2060
+ migration
2061
+ involved_characters
2062
+ subject
2063
+ tributary
2064
+ suzerain
2065
+ overlord
2066
+ situation
2067
+ situation_sub_region
2068
+ situation_participant_group
2069
+ raid_loot
2070
+ offensive
2071
+ court_position_type
2072
+ confederation
2073
+ new_confederation
2074
+ domain
2075
+ domain_fertility
2076
+ target_fertility
2077
+ defender_power
2078
+ great_project
2079
+ great_project_contribution
2080
+ innovation
2081
+ doing
2082
+ innovation_travel_countdown
2083
+ great_projects
2084
+ landless_adventurer
2085
+ landless_noble_family
2086
+ appointment_trait_override
2087
+ title_tier_rank
2088
+ barterer
2089
+ barter_loot
2090
+ bloc
2091
+ game_tutorial_index
2092
+ recent_appointment_cooldown
2093
+ personal_maa_maintenance
2094
+ title_maa_maintenance
2095
+ personal_maa_cap
2096
+ title_maa_cap
2097
+ can_afford_personal_maa
2098
+ has_personal_maa_space