Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_ch3_puzzlecloset0_introsequence_Create_0

(view raw script w/o annotations or w/e)
1
var song = "tv_results_screen.ogg";
2
if (global.flag[1123 entered_parent_0] == 1)
3
{
4
    
scr_musicer
scr_musicer

function
scr_musicer(arg0 = "dogcheck.ogg", arg1 = 0.7, arg2 = 1, arg3 = 0, arg4 = -1)
{ var musicer = instance_create_depth(0, 0, 0, obj_musicer_gen); musicer.song = arg0; musicer.volume = arg1; musicer.pitch = arg2; musicer.delay = arg3; musicer.fadein = arg4; return musicer; }
(song, 0.7, 0.4);
5
}
6
else
7
{
8
    global.currentsong[0] = snd_init(song);
9
    global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.7, 0.4);
10
    music = global.currentsong[1];
11
    volume = 0;
12
    amount = 0;
13
    newamount = 0;
14
}
15
con = 0;
16
timer = 0;
17
cutscene_master = 0;
18
if (global.plot < 160)
19
    global.plot = 160;
20
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
21
{
22
    if (global.flag[1113 guard_zapper_buttons] < 2)
23
        global.flag[1113 guard_zapper_buttons] = 2;
24
}
25
if (global.flag[1123 entered_parent_0] == 1)
26
{
27
    instance_destroy();
28
}
29
else
30
{
31
    
scr_setparty
scr_setparty

function
scr_setparty(arg0, arg1, arg2)
{ var kris = obj_mainchara; var slot = 0; var __make = true; if (!i_ex(kris)) __make = false;
scr_losechar();
safe_delete(obj_caterpillarchara); if (arg0 == true) {
scr_getchar(2);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 2, slot))
{ halign = (global.darkzone == 0) ? 3 : 6; valign = (global.darkzone == 0) ? 6 : 16; x -= halign; y -= valign; } } slot++; } if (arg1 == true) {
scr_getchar(3);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 3, slot))
{ halign = 2; valign = 12; x -= halign; y -= valign; } } slot++; } if (arg2 == true) {
scr_getchar(4);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 4, slot))
{ halign = (global.darkzone == 0) ? 2 : 4; valign = (global.darkzone == 0) ? 9 : 18; x -= halign; y -= valign; } } slot++; } }
(1, 1, 0);
32
    
scr_fadein
scr_fadein

function
scr_fadein(arg0)
{ __fadeouter = instance_create(0, 0, obj_fadein); __fadeouter.fadespeed = -1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(60);
33
}