-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ysls.json
679 lines (679 loc) · 21.2 KB
/
.ysls.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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
{
"Commands": [
{
"YarnName": "add_gold",
"DefinitionName": "add_gold",
"Language": "text",
"Signature": "add_gold amount",
"Documentation": "Adds X amount of gold to the player",
"Parameters": [
{
"Name": "amount",
"Type": "Number",
"Documentation": "The amount of gold to add",
"IsParamsArray": false
}
]
},
{
"YarnName": "add_item",
"DefinitionName": "add_item",
"Language": "text",
"Signature": "add_item item_name quantity",
"Documentation": "Adds an item with the provided name to the player's inventory, with an optional quantity.",
"Parameters": [
{
"Name": "item_name",
"Type": "String",
"Documentation": "Name of the item to add (NOT id!)",
"IsParamsArray": false
},
{
"Name": "quantity",
"Type": "Number",
"Documentation": "The quantity of the item to add, default of 1.",
"IsParamsArray": false,
"DefaultValue": "1"
}
]
},
{
"YarnName": "change_weather",
"DefinitionName": "change_weather",
"Language": "text",
"Signature": "change_weather weather_type intensity duration",
"Documentation": "Changes the weather to the specified weather type, with optional intensity and number of frames to blend in.",
"Parameters": [
{
"Name": "weather_type",
"Type": "String",
"Documentation": "The type of weather. (none, rain, storm, snow)",
"IsParamsArray": false
},
{
"Name": "intensity",
"Type": "Number",
"Documentation": "On a scale of 1-9, defaults to 4",
"IsParamsArray": false,
"DefaultValue": "4"
},
{
"Name": "duration",
"Type": "Number",
"Documentation": "Number of frames to blend in, defaults to 24",
"IsParamsArray": false,
"DefaultValue": "24"
}
]
},
{
"YarnName": "fade_in",
"DefinitionName": "fade_in",
"Language": "text",
"Signature": "fade_in duration",
"Documentation": "Fade in the screen back to normal",
"Parameters": [
{
"Name": "duration",
"Type": "Number",
"Documentation": "Length of time for fade-in duration, default of 24 frames",
"IsParamsArray": false,
"DefaultValue": "24"
}
]
},
{
"YarnName": "fade_out",
"DefinitionName": "fade_out",
"Language": "text",
"Signature": "fade_out duration red green blue grey alpha",
"Documentation": "Fade out the screen (to black, or optionally to a color)",
"Parameters": [
{
"Name": "duration",
"Type": "Number",
"Documentation": "Length of time for fade-out duration, default of 24 frames",
"IsParamsArray": false,
"DefaultValue": "24"
},
{
"Name": "red",
"Type": "Number",
"Documentation": "Red value of the color to fade to, default of 0 (0-255 range)",
"IsParamsArray": false
},
{
"Name": "green",
"Type": "Number",
"Documentation": "Green value of the color to fade to, default of 0 (0-255 range)",
"IsParamsArray": false
},
{
"Name": "blue",
"Type": "Number",
"Documentation": "Blue value of the color to fade to, default of 0 (0-255 range)",
"IsParamsArray": false
},
{
"Name": "grey",
"Type": "Number",
"Documentation": "Greyness, default of 0 (0-100 range), 100 is fully black & white.",
"IsParamsArray": false,
"DefaultValue": "0"
},
{
"Name": "alpha",
"Type": "Number",
"Documentation": "Alpha value of the color to fade to, default of 1 (0-1 range, 0.5 is half transparent)",
"IsParamsArray": false,
"DefaultValue": "1"
}
]
},
{
"YarnName": "flash_screen",
"DefinitionName": "flash_screen",
"Language": "text",
"Signature": "flash_screen duration red green blue intensity",
"Documentation": "Flash the screen (to white, or optionally to a color)",
"Parameters": [
{
"Name": "duration",
"Type": "Number",
"Documentation": "Length of time for fade-out duration, default of 24 frames",
"IsParamsArray": false,
"DefaultValue": "8"
},
{
"Name": "red",
"Type": "Number",
"Documentation": "Red value of the color to fade to, default of 0 (0-255 range)",
"IsParamsArray": false,
"DefaultValue": "0"
},
{
"Name": "green",
"Type": "Number",
"Documentation": "Green value of the color to fade to, default of 0 (0-255 range)",
"IsParamsArray": false,
"DefaultValue": "0"
},
{
"Name": "blue",
"Type": "Number",
"Documentation": "Blue value of the color to fade to, default of 0 (0-255 range)",
"IsParamsArray": false,
"DefaultValue": "0"
},
{
"Name": "intensity",
"Type": "Number",
"Documentation": "How intense should the flash be? Default of 255, which is maximum intensity.",
"IsParamsArray": false,
"DefaultValue": "255"
}
]
},
{
"YarnName": "hide_event",
"DefinitionName": "hide_event",
"Language": "text",
"Signature": "hide_event entity_name",
"Documentation": "Hides the entity with the given name. If no entity provided, hides the calling entity",
"Parameters": [
{
"Name": "entity_name",
"Type": "String",
"Documentation": "Name of the event to hide. NOT the ID!",
"IsParamsArray": false
}
]
},
{
"YarnName": "move_event",
"DefinitionName": "move_event",
"Language": "text",
"Signature": "move_event event_name direction_name distance speed",
"Documentation": "Move an event",
"Parameters": [
{
"Name": "event_name",
"Type": "String",
"Documentation": "The Name of the event to move (not ID!).",
"IsParamsArray": false
},
{
"Name": "direction_name",
"Type": "String",
"Documentation": "The direction to move the event in. (up, down, left, right)",
"IsParamsArray": false
},
{
"Name": "distance",
"Type": "Number",
"Documentation": "The number of tiles to move the event",
"IsParamsArray": false
},
{
"Name": "speed",
"Type": "Number",
"Documentation": "The speed to move the event at. Default of 0.25",
"IsParamsArray": false,
"DefaultValue": "0.25"
}
]
},
{
"YarnName": "move_self",
"DefinitionName": "move_self",
"Language": "text",
"Signature": "move_self direction_name distance speed",
"Documentation": "Move calling event",
"Parameters": [
{
"Name": "direction_name",
"Type": "String",
"Documentation": "The direction to move the event in. (up, down, left, right)",
"IsParamsArray": false
},
{
"Name": "distance",
"Type": "Number",
"Documentation": "The number of tiles to move the event",
"IsParamsArray": false
},
{
"Name": "speed",
"Type": "Number",
"Documentation": "The speed to move the event at. Default of 0.25",
"IsParamsArray": false,
"DefaultValue": "0.25"
}
]
},
{
"YarnName": "play_music",
"DefinitionName": "play_music",
"Language": "text",
"Signature": "play_music music_name volume",
"Documentation": "Plays a music file",
"Parameters": [
{
"Name": "music_name",
"Type": "String",
"Documentation": "Name of the music file to play",
"IsParamsArray": false
},
{
"Name": "volume",
"Type": "Number",
"Documentation": "Volume to play it at, defaults to full volume (100)",
"IsParamsArray": false,
"DefaultValue": "100"
}
]
},
{
"YarnName": "play_sound",
"DefinitionName": "play_sound",
"Language": "text",
"Signature": "play_sound sound_name volume",
"Documentation": "Plays a sound file",
"Parameters": [
{
"Name": "sound_name",
"Type": "String",
"Documentation": "Name of the sound file to play",
"IsParamsArray": false
},
{
"Name": "volume",
"Type": "Number",
"Documentation": "Volume to play it at, defaults to full volume (100)",
"IsParamsArray": false,
"DefaultValue": "100"
}
]
},
{
"YarnName": "remove_gold",
"DefinitionName": "remove_gold",
"Language": "text",
"Signature": "remove_gold amount",
"Documentation": "Remove X amount of gold to the player",
"Parameters": [
{
"Name": "amount",
"Type": "Number",
"Documentation": "The amount of gold to remove",
"IsParamsArray": false
}
]
},
{
"YarnName": "remove_item",
"DefinitionName": "remove_item",
"Language": "text",
"Signature": "remove_item item_name quantity",
"Documentation": "Adds an item with the provided name to the player's inventory, with an optional quantity.",
"Parameters": [
{
"Name": "item_name",
"Type": "String",
"Documentation": "Name of the item to add (NOT id!)",
"IsParamsArray": false
},
{
"Name": "quantity",
"Type": "Number",
"Documentation": "The quantity of the item to add, default of 1.",
"IsParamsArray": false,
"DefaultValue": "1"
}
]
},
{
"YarnName": "set_background",
"DefinitionName": "set_background",
"Language": "text",
"Signature": "set_background opacity",
"Documentation": "Sets the background of the message window; options are 0 (fully opaque), 1 (transparent), 2 (invisible background). The default is 0.",
"Parameters": [
{
"Name": "opacity",
"Type": "Number",
"Documentation": "The opacity of the background, 0, 1, or 2.",
"IsParamsArray": false,
"DefaultValue": "0"
}
]
},
{
"YarnName": "set_facing",
"DefinitionName": "set_facing",
"Language": "text",
"Signature": "set_facing direction event_name",
"Documentation": "Changes the direction the provided event name is facing.",
"Parameters": [
{
"Name": "direction",
"Type": "String",
"Documentation": "The direction to face (up, down, left, right)",
"IsParamsArray": false
},
{
"Name": "event_name",
"Type": "String",
"Documentation": "The name of the event to face (not ID!). If not provided, defaults to the calling event",
"IsParamsArray": false
}
]
},
{
"YarnName": "set_level",
"DefinitionName": "set_level",
"Language": "text",
"Signature": "set_level map_name x y direction fade_type",
"Documentation": "Teleports the player to the specified map name, at a specific x and y.",
"Parameters": [
{
"Name": "map_name",
"Type": "String",
"Documentation": "Name (NOT id!) of the map to teleport the player to.",
"IsParamsArray": false
},
{
"Name": "x",
"Type": "Number",
"Documentation": "The x coordinate to teleport the player to.",
"IsParamsArray": false
},
{
"Name": "y",
"Type": "Number",
"Documentation": "The y coordinate to teleport the player to.",
"IsParamsArray": false
},
{
"Name": "direction",
"Type": "String",
"Documentation": "The direction the player should face after teleporting, defaults to current player direction (up, down, left, right)",
"IsParamsArray": false
},
{
"Name": "fade_type",
"Type": "String",
"Documentation": "The type of fade to use when teleporting, defaults to no_fade. (fade_black, fade_white, no_fade)",
"IsParamsArray": false
}
]
},
{
"YarnName": "set_self_facing",
"DefinitionName": "set_self_facing",
"Language": "text",
"Signature": "set_self_facing direction",
"Documentation": "Changes the direction the calling event is facing.",
"Parameters": [
{
"Name": "direction",
"Type": "String",
"Documentation": "The direction to face (up, down, left, right)",
"IsParamsArray": false
}
]
},
{
"YarnName": "show_balloon",
"DefinitionName": "show_balloon",
"Language": "text",
"Signature": "show_balloon balloon_type event_name",
"Documentation": "Shows a balloon icon above an event. Defaults to the calling event. Can optionally pass in \"player\"for event_name if you'd like it to appear above the player.",
"Parameters": [
{
"Name": "balloon_type",
"Type": "String",
"Documentation": "The type of balloon to show. (exclamation, question, music_note, heart, anger, sweat, frustration, silence, light_bulb, zzz)",
"IsParamsArray": false
},
{
"Name": "event_name",
"Type": "String",
"Documentation": "The name of the event to show (not ID!). If not provided, defaults to the calling event, or the player if \"player\" is specified.",
"IsParamsArray": false
}
]
},
{
"YarnName": "show_event",
"DefinitionName": "show_event",
"Language": "text",
"Signature": "show_event event_name opacity",
"Documentation": "Shows the event (if it's hidden). If no event name provided, defaults to calling event.",
"Parameters": [
{
"Name": "event_name",
"Type": "String",
"Documentation": "The name of the event to show (not ID!). If not provided, defaults to the calling event",
"IsParamsArray": false
},
{
"Name": "opacity",
"Type": "Number",
"Documentation": "The opacity to show the event at. Defaults to 1 (fully visible)",
"IsParamsArray": false,
"DefaultValue": "1"
}
]
},
{
"YarnName": "stop_music",
"DefinitionName": "stop_music",
"Language": "text",
"Signature": "stop_music duration",
"Documentation": "Stops the playing music.",
"Parameters": [
{
"Name": "duration",
"Type": "Number",
"Documentation": "Fadeout time, defaults to 0 (no fadeout)",
"IsParamsArray": false,
"DefaultValue": "0"
}
]
},
{
"YarnName": "sync_move_event",
"DefinitionName": "sync_move_event",
"Language": "text",
"Signature": "sync_move_event event_name direction_name distance speed",
"Documentation": "Move an event (Same as move_event, except blocks script execution until movement is complete)",
"Parameters": [
{
"Name": "event_name",
"Type": "String",
"Documentation": "The Name of the event to move (not ID!).",
"IsParamsArray": false
},
{
"Name": "direction_name",
"Type": "String",
"Documentation": "The direction to move the event in. (up, down, left, right)",
"IsParamsArray": false
},
{
"Name": "distance",
"Type": "Number",
"Documentation": "The number of tiles to move the event",
"IsParamsArray": false
},
{
"Name": "speed",
"Type": "Number",
"Documentation": "The speed to move the event at. Default of 0.25",
"IsParamsArray": false,
"DefaultValue": "0.25"
}
]
},
{
"YarnName": "sync_move_self",
"DefinitionName": "sync_move_self",
"Language": "text",
"Signature": "sync_move_self direction_name distance speed",
"Documentation": "Move calling event (Same as move_self, except blocks script execution until movement is complete)",
"Parameters": [
{
"Name": "direction_name",
"Type": "String",
"Documentation": "The direction to move the event in. (up, down, left, right)",
"IsParamsArray": false
},
{
"Name": "distance",
"Type": "Number",
"Documentation": "The number of tiles to move the event",
"IsParamsArray": false
},
{
"Name": "speed",
"Type": "Number",
"Documentation": "The speed to move the event at. Default of 0.25",
"IsParamsArray": false,
"DefaultValue": "0.25"
}
]
},
{
"YarnName": "teleport_event",
"DefinitionName": "teleport_event",
"Language": "text",
"Signature": "teleport_event event_name x y",
"Documentation": "Teleports an event to the specified x and y. If no event name specified, defaults to the calling event.",
"Parameters": [
{
"Name": "event_name",
"Type": "String",
"Documentation": "Name (NOT id!) of the event to teleport.",
"IsParamsArray": false
},
{
"Name": "x",
"Type": "Number",
"Documentation": "The x coordinate to teleport the event to.",
"IsParamsArray": false
},
{
"Name": "y",
"Type": "Number",
"Documentation": "The y coordinate to teleport the event to.",
"IsParamsArray": false
}
]
},
{
"YarnName": "teleport_self",
"DefinitionName": "teleport_self",
"Language": "text",
"Signature": "teleport_self x y",
"Documentation": "Teleports an event to the specified x and y. If no event name specified, defaults to the calling event.",
"Parameters": [
{
"Name": "x",
"Type": "Number",
"Documentation": "The x coordinate to teleport the event to.",
"IsParamsArray": false
},
{
"Name": "y",
"Type": "Number",
"Documentation": "The y coordinate to teleport the event to.",
"IsParamsArray": false
}
]
},
{
"YarnName": "wait",
"DefinitionName": "wait",
"Language": "text",
"Signature": "wait duration",
"Documentation": "Waits for a given amount of time.",
"Parameters": [
{
"Name": "duration",
"Type": "Number",
"Documentation": "The amount of time to wait in frames",
"IsParamsArray": false
}
]
}
],
"Functions": [
{
"YarnName": "get_variable",
"DefinitionName": "get_variable",
"Language": "text",
"Signature": "get_variable(variable_name)",
"Documentation": "Returns the value of the variable with the given name (starts at global window).",
"Parameters": [
{
"Name": "variable_name",
"Type": "String",
"Documentation": "The name of global variable to retrieve.",
"IsParamsArray": false
}
]
},
{
"YarnName": "has_item",
"DefinitionName": "has_item",
"Language": "text",
"Signature": "has_item(itemName)",
"Documentation": "Returns true if the player has the specified item.",
"Parameters": [
{
"Name": "itemName",
"Type": "String",
"Documentation": "The name of the item to check for (NOT ID!)",
"IsParamsArray": false
}
]
},
{
"YarnName": "item_count",
"DefinitionName": "item_count",
"Language": "text",
"Signature": "item_count(itemName)",
"Documentation": "Returns the number of the given item the player has.",
"Parameters": [
{
"Name": "itemName",
"Type": "String",
"Documentation": "The name of the item to check for (NOT ID!)",
"IsParamsArray": false
}
]
},
{
"YarnName": "random_range",
"DefinitionName": "random_range",
"Language": "text",
"Signature": "random_range(min, max)",
"Documentation": "Given a min and max, return a random number between them.",
"Parameters": [
{
"Name": "min",
"Type": "Number",
"Documentation": "The minimum number to return.",
"IsParamsArray": false
},
{
"Name": "max",
"Type": "Number",
"Documentation": "The maximum number to return.",
"IsParamsArray": false
}
]
}
]
}