forked from aquadrizzt/TomeAndBlood
/
TomeAndBlood.tp2
executable file
·457 lines (312 loc) · 11.6 KB
/
TomeAndBlood.tp2
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
BACKUP ~weidu_external/backup/TomeAndBlood~
AUTHOR ~aquadrizzt~
VERSION ~1.1.1~
ALWAYS
INCLUDE ~TomeAndBlood/lib/misc_tnb_functions.tpa~
INCLUDE ~TomeAndBlood/lib/fl#add_kit_ee.tpa~
INCLUDE ~TomeAndBlood/lib/hla_actions.tpa~
LAF fix_kitlist_missing_ids END
INCLUDE ~TomeAndBlood/lib/extra_kit.tpa~
INCLUDE ~TomeAndBlood/comp/core.tpa~
ACTION_IF (FILE_EXISTS_IN_GAME ~qd_tnb_settings.ini~) BEGIN
INCLUDE ~override/qd_tnb_settings.ini~
END
ACTION_IF !(FILE_EXISTS_IN_GAME ~qd_tnb_settings.ini~) BEGIN
INCLUDE ~TomeAndBlood/qd_tnb_settings.ini~
END
END
/* Language Settings */
AUTO_TRA ~TomeAndBlood/lang/%s~
LANGUAGE ~English~ ~english~ ~TomeAndBlood/lang/english/setup.tra~
LANGUAGE ~French~ ~french~
~TomeAndBlood/lang/english/setup.tra~
~TomeAndBlood/lang/french/setup.tra~
// -----------------------------
// 20: REVISED DRAGON DISCIPLES
// -----------------------------
BEGIN @20
DESIGNATED 20
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @2
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_dd.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_dd.tpa~
LAF add_dragon_disciples END
// -----------------------------
// 25: SORCERER: MAGUS
// -----------------------------
BEGIN @25
DESIGNATED 25
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @2
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_magus.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_magus.tpa~
LAF add_magus END
/*
// -----------------------------
// 29: SORCERER: WILD SORCERER
// -----------------------------
BEGIN @29
DESIGNATED 29
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @2
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_wildsor.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_wild_sorcerer.tpa~
LAF add_wild_sorcerer END
*/
// -----------------------------
// 31: SORCERER: FAVOURED SOUL
// -----------------------------
BEGIN @31
DESIGNATED 31
//GROUP @6
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @2
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_favsoul.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_favoured_soul.tpa~
LAF add_favoured_soul END
// -----------------------------
// 33: SORCERER: SYLVAN DISCIPLE
// -----------------------------
BEGIN @33
DESIGNATED 33
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @2
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_sylvan.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_sylvan.tpa~
LAF add_sylvan_disciple END
// -----------------------------
// 35: SORCERER: REVENANT DISCIPLE
// -----------------------------
BEGIN @35
DESIGNATED 35
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @2
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_revenant.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_revenant.tpa~
LAF add_revenant_disciple END
// -----------------------------
// 37: SORCERER: AMORPHOUS DISCIPLE
// -----------------------------
BEGIN @37
DESIGNATED 37
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @2
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_amorphous.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_amorphous.tpa~
LAF add_amorphous_disciple END
// -----------------------------
// 40: REVISED SPECIALISTS
// -----------------------------
BEGIN @40
DESIGNATED 40
REQUIRE_PREDICATE (ENGINE_IS ~bgee bg2ee iwdee eet~) @1
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_specialists.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_specialists.tpa~
LAF revised_specialists END
/*
// -----------------------------
// 45: ARCANE CRAFTING (grammarsalad)
// -----------------------------
BEGIN @45
DESIGNATED 45
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @2
FORBID_COMPONENT ~5E_spellcasting.tp2~ ~100~ @4
DEPRECATED @4
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_crafting.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_crafting.tpa~
LAF arcane_crafting END
*/
// -----------------------------
// 50: INNATE METAMAGIC (Subtledoctor)
// 51: innate metamagic, learned automatically by everyone
// 52: innate metamagic, learned automatically (none for sorcerers)
// 53: innate metamagic, learned from scrolls or in CharGen
// 54: innate metamagic, learned from scrolls only (none for sorcerers)
// 55: metamagic spells, no cost to fill (compatible with multi sorcerers) <- DEPRECATED
// -----------------------------
BEGIN @51
DESIGNATED 51
SUBCOMPONENT @50
//REQUIRE_PREDICATE (ENGINE_IS ~soa tob iwd bgee bg2ee iwdee eet~) @1
FORBID_COMPONENT ~setup-stratagems.tp2~ ~4250~ ~conflict~
REQUIRE_PREDICATE NOT FILE_EXISTS ~weidu_external/markers/dw#innate_triggers.mrk~ ~conflict~
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_metamagic.qd~ //detection for this component
//OUTER_SET sequencer_method = 1
INCLUDE ~TomeAndBlood/comp/setup_metamagic.tpa~
LAF innate_metamagic INT_VAR sequencer_method = 1 END
// -----------------------------
BEGIN @52
DESIGNATED 52
SUBCOMPONENT @50
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_metamagic.qd~ //detection for this component
//OUTER_SET sequencer_method = 2
INCLUDE ~TomeAndBlood/comp/setup_metamagic.tpa~
LAF innate_metamagic INT_VAR sequencer_method = 2 END
// -----------------------------
BEGIN @53
DESIGNATED 53
SUBCOMPONENT @50
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_metamagic.qd~ //detection for this component
//OUTER_SET sequencer_method = 3
INCLUDE ~TomeAndBlood/comp/setup_metamagic.tpa~
LAF innate_metamagic INT_VAR sequencer_method = 3 END
// -----------------------------
BEGIN @54
DESIGNATED 54
SUBCOMPONENT @50
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_metamagic.qd~ //detection for this component
//OUTER_SET sequencer_method = 4
INCLUDE ~TomeAndBlood/comp/setup_metamagic.tpa~
LAF innate_metamagic INT_VAR sequencer_method = 4 END
// -----------------------------
/*
BEGIN @55
DESIGNATED 55
SUBCOMPONENT @50 (GAME_IS ~bgee bg2ee eet iwdee~)
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_metamagic.qd~ //detection for this component
//OUTER_SET sequencer_method = 5
LAF semi_spont_sequencers END
*/
// -----------------------------
// 66: INNATE FIND FAMILIAR
// -----------------------------
BEGIN @66
DESIGNATED 66
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_familiar.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_familiars.tpa~
LAF innate_familiars END
// -----------------------------
// 71-72: SORCERER SPELL SWITCHING
// -----------------------------
BEGIN @71
DESIGNATED 71
SUBCOMPONENT @70
REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~enginest.2da~) @3
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_switch1.qd~ //detection for this component
INCLUDE ~TomeAndBlood/lib/semi_sorcerer.tpa~
INCLUDE ~TomeAndBlood/comp/setup_spell_switching.tpa~
LAF spell_switching INT_VAR switch_interval = 1 END
// -----------------------------
BEGIN @72
DESIGNATED 72
SUBCOMPONENT @70
REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~enginest.2da~) @3
//GROUP @7
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_switch3.qd~ //detection for this component
INCLUDE ~TomeAndBlood/lib/semi_sorcerer.tpa~
INCLUDE ~TomeAndBlood/comp/setup_spell_switching.tpa~
LAF spell_switching INT_VAR switch_interval = 3 END
// -----------------------------
// 80: MULTICLASS SORCERERS
// -----------------------------
BEGIN @80
DESIGNATED 80
REQUIRE_PREDICATE (GAME_IS ~bgee bg2ee iwdee eet~) @3
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_mcsrc.qd~ //detection for this component
INCLUDE ~TomeAndBlood/lib/semi_sorcerer.tpa~
INCLUDE ~TomeAndBlood/comp/setup_multiclass_sorcerers.tpa~
ACTION_IF !(FILE_EXISTS_IN_GAME ~d5_new_identify.d5~) BEGIN
LAF semi_spont_identify END
END
LAF multiclass_sorcerers END
ACTION_IF !(FILE_EXISTS_IN_GAME ~d5__semi_spont_sequencers.d5~) BEGIN
LAF semi_spont_sequencers END
END
// -----------------------------
// 82: ARCANIST
// -----------------------------
BEGIN @82
DESIGNATED 82
REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~enginest.2da~) @3
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_arcanist.qd~ //detection for this component
INCLUDE ~TomeAndBlood/lib/semi_spontaneous.tpa~
INCLUDE ~TomeAndBlood/comp/setup_arcanist.tpa~
LAF semi_spontaneous_casting END
ACTION_IF !(FILE_EXISTS_IN_GAME ~d5__5E_casting_arcane.d5~) BEGIN
ACTION_IF !(FILE_EXISTS_IN_GAME ~d5_new_identify.d5~) BEGIN
LAF semi_spont_identify END
END
LAF semi_arcane_spells END
END
LAF process_semi_spells END
INCLUDE ~TomeAndBlood/comp/setup_arcanist.tpa~
ACTION_IF !(FILE_EXISTS_IN_GAME ~d5_new_identify.d5~) BEGIN
LAF semi_spont_identify END
END
LAF add_arcanist END
COPY ~%MOD_FOLDER%/lib/semi_spont/d5_marker.d5~ ~override/d5__5E_casting_arcane.d5~
ACTION_IF !(FILE_EXISTS_IN_GAME ~d5__semi_spont_sequencers.d5~) BEGIN
LAF semi_spont_sequencers END
END
// -----------------------------
// 85: MANA SORCERER(S)
// -----------------------------
BEGIN @85
DESIGNATED 85
REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~enginest.2da~) @3
//GROUP @6
DEPRECATED @4
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_manasrc.qd~ //detection for this component
INCLUDE ~TomeAndBlood/comp/setup_mana_sorcerer.tpa~
LAF mana_sorcerer END
// -----------------------------
// 93: BONUS SLOT ITEMS
// -----------------------------
//bonus casting slots from items - with mem slots___________________________________
//
BEGIN @92
DESIGNATED 92
SUBCOMPONENT @91
REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~enginest.2da~) @3
//REQUIRE_PREDICATE (MOD_IS_INSTALLED ~tomeandblood.tp2~ ~80~) OR (MOD_IS_INSTALLED ~tomeandblood.tp2~ ~82~) @4
INCLUDE ~TomeAndBlood/lib/semi_spont/semi_misc_functions.tpa~
ACTION_IF (MOD_IS_INSTALLED ~tomeandblood.tp2~ ~80~) OR (MOD_IS_INSTALLED ~tomeandblood.tp2~ ~82~) BEGIN
COPY ~%MOD_FOLDER%/lib/semi_spont/d5_marker.d5~ ~override/d5__spont_items_mem.d5~
LAF arcane_spont_items INT_VAR 5e_plus_mem = 1 END
// LAF divine_spont_items INT_VAR 5e_plus_mem = 1 END
END
//bonus casting slots from items - no mem slots_____________________________________
//
BEGIN @93
DESIGNATED 93
SUBCOMPONENT @91
INCLUDE ~TomeAndBlood/lib/semi_spont/semi_misc_functions.tpa~
ACTION_IF (MOD_IS_INSTALLED ~tomeandblood.tp2~ ~80~) OR (MOD_IS_INSTALLED ~tomeandblood.tp2~ ~82~) BEGIN
COPY ~%MOD_FOLDER%/lib/semi_spont/d5_marker.d5~ ~override/d5__spont_items_no_mem.d5~
LAF arcane_spont_items INT_VAR 5e_plus_mem = 0 END
// LAF divine_spont_items INT_VAR 5e_plus_mem = 0 END
END
// -----------------------------
// 95: MULTICLASS SPECIALISTS
// -----------------------------
BEGIN @95
DESIGNATED 95
REQUIRE_PREDICATE (ENGINE_IS ~bgee bg2ee iwdee eet~) @1
//GROUP @6
COPY_EXISTING ~sw1h01.itm~ ~override/qdtnb_mc_specialists.qd~ //detection for this component
INCLUDE ~TomeAndBlood/lib/a7#add_kit_ex.tpa~
INCLUDE ~TomeAndBlood/comp/setup_specialists.tpa~
LAF multiclass_specialists_simple END
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
/*
BEGIN ~dummy GROUP component~
DEPRECATED ~spell tweaks~
GROUP @5
BEGIN ~dummy GROUP component~
DEPRECATED ~ new kits~
GROUP @6
BEGIN ~dummy GROUP component~
DEPRECATED ~systems tweaks~
GROUP @7
*/