Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene23b_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
steal_susie = false;
4
steal_icee = false;
5
with (obj_mainchara)
6
    bg = 1;
7
moon = instance_create(-163, 0, obj_backgrounderparent);
8
moon.sprite_index = bg_dw_noelle_room_moon;
9
moon.depth = 1000100;
10
if (global.flag[393 stole_susie_statue] == 0)
11
{
12
    susie_statue = instance_create(137, 176, obj_npc_sign);
13
    susie_statue.sprite_index = spr_dw_susie_statue;
14
    susie_statue.setdepth = 0;
15
    susie_statue.depth = 98000;
16
}
17
if (global.flag[394 stole_ice_e_statue] == 0)
18
{
19
    icee_cushion = instance_create(373, 194, obj_npc_sign);
20
    icee_cushion.sprite_index = spr_dw_icee_cushion;
21
    icee_cushion.setdepth = 0;
22
    icee_cushion.depth = 98000;
23
}
24
if (global.chapter != 2 || global.flag[319 ferris_scene_plot] > 0)
25
{
26
    layer_set_visible("Backgrounds_3", 0);
27
}
28
else
29
{
30
    scr_losechar
scr_losechar

function scr_losechar() { global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
31
    if (instance_exists(obj_caterpillarchara))
32
        instance_destroy(obj_caterpillarchara);
33
    with (obj_mainchara)
34
        visible = 0;
35
    blackall = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(-10, -10, spr_pixel_white);
36
    blackall.image_xscale = 999;
37
    blackall.image_yscale = 999;
38
    blackall.depth = 100;
39
    blackall.image_blend = c_black;
40
    blackall.image_alpha = 1;
41
    fadeout = false;
42
    rudebuster = false;
43
    rudebuster_timer = 0;
44
    wirecon = 0;
45
    werewire1 = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(575, cameray() - (sprite_get_height(spr_werewire_static) * 2), spr_werewire_static);
46
    werewire1.image_speed = 0;
47
    werewire1.image_xscale = -2;
48
    werewire2 = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(705, cameray() - (sprite_get_height(spr_werewire_static) * 2), spr_werewire_static);
49
    werewire2.image_speed = 0;
50
    sparecon = false;
51
    disable_face = true;
52
}