-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript-schema.json
503 lines (503 loc) · 16.6 KB
/
script-schema.json
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ThePandemoniumInstitute/botc-release/main/script-schema.json",
"type": "array",
"default": [],
"title": "Blood on the Clocktower Custom Script",
"items": {
"oneOf": [
{
"type": "object",
"title": "Script Character",
"required": [
"id",
"name",
"team",
"ability"
],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"title": "Character ID, alphanumeric lowercase",
"maxLength": 50,
"examples": [
"washerwoman",
"lilmonsta",
"fanggu"
]
},
"name": {
"type": "string",
"title": "Character name",
"maxLength": 30,
"examples": [
"Washer Woman",
"Lil' Monsta",
"Fang-Gu"
]
},
"image": {
"oneOf": [
{
"type": "string",
"format": "uri",
"title": "Character icon",
"examples": [
"https://i.imgur.com/character-icon.png"
]
},
{
"type": "array",
"title": "Set of character icon URLs",
"description": "For non-traveler characters, the icons should be regular alignment and flipped alignment, for travelers they should be unaligned, good alignment and evil alignment",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "string",
"format": "uri"
},
"examples": [
[
"https://imgur.com/townsfolk.png",
"https://imgur.com/townsfolk_evil.png"
],
[
"https://imgur.com/minion.png",
"https://imgur.com/minion_good.png"
],
[
"https://imgur.com/traveler.png",
"https://imgur.com/traveler_good.png",
"https://imgur.com/traveler_evil.png"
]
]
}
]
},
"team": {
"type": "string",
"title": "Character team",
"enum": [
"townsfolk",
"outsider",
"minion",
"demon",
"traveler",
"fabled"
]
},
"edition": {
"type": "string",
"title": "The edition ID",
"maxLength": 50,
"examples": [
"tb",
"bmr",
"snv",
"fallofrome"
]
},
"ability": {
"type": "string",
"title": "Character ability",
"maxLength": 250,
"examples": [
"You start knowing that 1 of 2 players is a particular Townsfolk.",
"Each night, Minions choose who babysits Lil' Monsta's token \u0026 \"is the Demon\". A player dies each night*. [+1 Minion]",
"Each night*, choose a player: they die. The 1st Outsider this kills becomes an evil Fang Gu \u0026 you die instead. [+1 Outsider]"
]
},
"flavor": {
"type": "string",
"title": "Character flavor text",
"maxLength": 500,
"examples": [
"Bloodstains on a dinner jacket? No, this is cooking sherry. How careless.",
"Certainly madam, under normal circumstances, you may borrow the Codex Malificarium from the library vaults. However, you do not seem to be a member.",
"It is a fine night for a stroll, wouldn't you say, Mister Morozov? Or should I say... BARON Morozov?"
]
},
"firstNight": {
"type": "number",
"title": "First night wake-up priority. 0 means this character doesn't wake during the first night.",
"examples": [
37,
0,
15
]
},
"firstNightReminder": {
"type": "string",
"title": "First night Storyteller reminder",
"maxLength": 500,
"examples": [
"Show the Townsfolk character token. Point to both the *TOWNSFOLK* and *WRONG* players.",
"Wake all Minions, allow them to choose a babysitter :reminder:",
""
]
},
"otherNight": {
"type": "number",
"title": "Other nights wake-up priority. 0 means this character doesn't wake during other nights.",
"examples": [
0,
10,
15
]
},
"otherNightReminder": {
"type": "string",
"title": "Other nights Storyteller reminder",
"maxLength": 500,
"examples": [
"",
"Wake all Minions, allow them to choose a babysitter :reminder: A player might die :reminder:",
"The Fang Gu chooses a player. :reminder: If they chose an Outsider (once only): Replace the Outsider token with the spare Fang Gu token. Put the Fang Gu to sleep. Wake the target. Show the *YOU ARE* and Fang Gu tokens \u0026 give a thumbs-down. :reminder:"
]
},
"reminders": {
"type": "array",
"maxItems": 20,
"default": [],
"title": "Character reminder tokens",
"items": {
"type": "string",
"maxLength": 30,
"examples": [
"Townsfolk",
"Wrong",
"Dead",
"Is The Demon"
]
}
},
"remindersGlobal": {
"type": "array",
"maxItems": 20,
"default": [],
"title": "Global character reminder tokens, which will be selectable even when the character is not in play.",
"items": {
"type": "string",
"maxLength": 25,
"examples": [
"Drunk",
"Is The Philosopher"
]
}
},
"setup": {
"type": "boolean",
"title": "Whether this character has a ability that is relevant for the game setup.",
"default": false
},
"jinxes": {
"type": "array",
"title": "Jinxes with other characters on this script",
"items": {
"type": "object",
"title": "An individual Jinx pair",
"required": [
"id",
"reason"
],
"properties": {
"id": {
"type": "string",
"title": "The ID of the other character this one is jinxed with.",
"maxLength": 50,
"examples": [
"spy",
"fanggu",
"lilmonsta"
]
},
"reason": {
"type": "string",
"title": "The Jinx explanation",
"maxLength": 500,
"examples": [
"If the Cannibal gains the Butler ability, the Cannibal learns this.",
"The Mathematician learns if the Lunatic attacks a different player(s) than the real Demon attacked."
]
}
}
}
},
"special": {
"type": "array",
"title": "Special app integration features for this character",
"items": {
"type": "object",
"title": "A special app integration feature",
"required": [
"name",
"type"
],
"properties": {
"type": {
"type": "string",
"title": "The integration type, where the feature will be used.",
"description": "Currently supported values are:\n selection - during character selection,\n signal - during night signaling,\n ability - when clicking on the character token,\n vote - during a vote,\n reveal - at the end of the game, before characters are revealed",
"enum": [
"selection",
"ability",
"signal",
"vote",
"reveal"
]
},
"name": {
"type": "string",
"title": "The feature name reference",
"description": "This is a list of the currently implemented special features and will be growing over time.",
"enum": [
"grimoire",
"pointing",
"ghost-votes",
"distribute-roles",
"bag-disabled",
"bag-duplicate",
"multiplier",
"hidden",
"replace-character",
"player",
"card"
]
},
"value": {
"oneOf": [
{
"type": "string",
"title": "Special ability text value",
"maxLength": 50,
"description": "The text value that will be used by the special ability."
},
{
"type": "number",
"title": "Special ability number value",
"description": "The numeric value that will be used by the special ability."
}
]
},
"time": {
"type": "string",
"title": "At which point during the game can the ability be used",
"enum": [
"pregame",
"day",
"night",
"firstNight",
"firstDay",
"otherNight",
"otherDay"
]
},
"global": {
"type": "string",
"title": "Global ability scope",
"description": "If it's a global ability that can be used without the character being in play, this property defines on which characters it can be used. This does not work on Fabled, because they are not considered to be on the Script.",
"enum": [
"townsfolk",
"outsider",
"minion",
"demon",
"traveler"
]
}
},
"examples": [
{
"type": "signal",
"name": "grimoire",
"time": "night"
},
{
"type": "signal",
"name": "card",
"value": "This is a Custom ST Card"
},
{
"type": "ability",
"name": "pointing",
"time": "night",
"global": "minion"
},
{
"type": "vote",
"name": "multiplier",
"value": "3"
}
]
}
}
},
"examples": [
{
"id": "washerwoman",
"name": "Washerwoman",
"edition": "tb",
"team": "townsfolk",
"firstNightReminder": "Show the Townsfolk character token. Point to both the *TOWNSFOLK* and *WRONG* players.",
"otherNightReminder": "",
"reminders": [
"Townsfolk",
"Wrong"
],
"setup": false,
"ability": "You start knowing that 1 of 2 players is a particular Townsfolk.",
"flavor": "Bloodstains on a dinner jacket? No, this is cooking sherry. How careless.",
"firstNight": 37,
"otherNight": 0
}
]
},
{
"type": "string",
"title": "Official character ID",
"maxLength": 20,
"description": "If you want to include official characters in the script, it is sufficient to provide their ID as a string",
"examples": [
"soldier",
"imp",
"washerwoman"
]
},
{
"type": "object",
"title": "Script Metadata",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"title": "The ID property must be called '_meta' for the Script metadata object.",
"enum": [
"_meta"
]
},
"name": {
"type": "string",
"title": "The script name",
"maxLength": 50,
"examples": [
"Fall of Rome",
"My Custom Homebrew"
]
},
"author": {
"type": "string",
"title": "The script author",
"maxLength": 50,
"examples": [
"The Pandemonium Institute",
"Your Name"
]
},
"logo": {
"type": "string",
"format": "uri",
"maxLength": 250,
"title": "The script logo image",
"examples": [
"https://imgur.com/logo.png"
]
},
"background": {
"type": "string",
"format": "uri",
"maxLength": 250,
"title": "The script background image",
"examples": [
"https://imgur.com/background.jpg"
]
},
"firstNight": {
"type": "array",
"title": "The relative First Night order of characters on this script.",
"description": "A custom first night order for this script can be provided in the form of an array here, with optional special entries for 'dusk', 'minioninfo', 'demoninfo' and 'dawn'.",
"maxItems": 30,
"items": {
"type": "string",
"title": "Character ID of an on-script character in the first night order"
},
"examples": [
[
"dusk",
"minioninfo",
"demoninfo",
"poisoner",
"spy",
"washerwoman",
"librarian",
"investigator",
"chef",
"empath",
"fortuneteller",
"butler",
"dawn"
]
]
},
"otherNight": {
"type": "array",
"title": "The relative Other Nights order of characters on this script.",
"description": "A custom other night order for this script can be provided in the form of an array here, with optional special entries for 'dusk' and 'dawn'.",
"maxItems": 30,
"items": {
"type": "string",
"title": "Character ID of an on-script character in the other night order"
},
"examples": [
[
"dusk",
"poisoner",
"monk",
"spy",
"scarletwoman",
"imp",
"ravenkeeper",
"undertaker",
"empath",
"fortuneteller",
"butler",
"dawn"
]
]
}
},
"examples": [
{
"id": "_meta",
"name": "Deadly Penance Day",
"author": "TPI",
"logo": "https://url.to/your/logo.png"
}
]
},
{
"type": "object",
"title": "Official Character (deprecated)",
"deprecated": true,
"required": [
"id"
],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"maxLength": 20,
"title": "Official character ID",
"examples": [
"soldier",
"imp",
"washerwoman"
]
}
}
}
]
}
}