Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene27_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
if (global.chapter != 2 || global.plot >= 171)
4
{
5
    instance_destroy();
6
}
7
else
8
{
9
    scr_tempsave
scr_tempsave

function scr_tempsave() { filechoicebk2 = global.filechoice; global.filechoice = 9; scr_saveprocess(global.filechoice); global.filechoice = filechoicebk2; }
();
10
    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; }
();
11
    if (instance_exists(obj_caterpillarchara))
12
        instance_destroy(obj_caterpillarchara);
13
    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);
14
    blackall.image_xscale = 999;
15
    blackall.image_yscale = 999;
16
    blackall.depth = 100;
17
    blackall.image_blend = c_white;
18
    pacifist_talk = 0;
19
    npc_ralsei = instance_create(174, 208, obj_npc_sign);
20
    npc_ralsei.sprite_index = spr_ralsei_walk_down;
21
    npc_ralsei.visible = 0;
22
    npc_susie = instance_create(234, 204, obj_npc_sign);
23
    npc_susie.sprite_index = spr_susie_down_dw;
24
    npc_susie.visible = 0;
25
    npc_noelle = instance_create(295, 200, obj_npc_sign);
26
    npc_noelle.sprite_index = spr_noelle_walk_down_dw;
27
    npc_noelle.visible = 0;
28
    npc_berdly = instance_create(353, 212, obj_npc_sign);
29
    npc_berdly.sprite_index = spr_cutscene_27_berdly_walk_down;
30
    npc_berdly.visible = 0;
31
    berdly_power_up_start = false;
32
    berdly_power_up = false;
33
    berdly_power_up_cancel = false;
34
    static_queen = false;
35
    static_queen_stop = false;
36
    shake_hand = false;
37
    queen_surprised = false;
38
    queen_laugh_start = false;
39
    queen_laugh_stop = false;
40
    queen_leave = false;
41
    hand_release = false;
42
    hand_leave = false;
43
    su_struggle = true;
44
    su_shocked = false;
45
    su_look_left = false;
46
    su_look_right = false;
47
    su_grin_1 = false;
48
    su_grin_2 = false;
49
    su_squint_1 = false;
50
    su_squint_2 = false;
51
    su_concerned = false;
52
    ra_struggle = true;
53
    ra_huh = false;
54
    ra_look = false;
55
    ra_smile = false;
56
    ra_scared = false;
57
    ra_stern = false;
58
    ra_mu = false;
59
    ra_shake = false;
60
    tender_goodbye = false;
61
    tender_cancel = false;
62
    tender_finish = false;
63
    noelle_qs = false;
64
    susie_qs = false;
65
    kris_qs = false;
66
    berdly_qs = false;
67
    set_queen_voice = 0;
68
    queen_happy = 0;
69
    queen_sad = 0;
70
    hide_border = false;
71
    show_border = false;
72
}