Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_rippleworship_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
    init = 1;
3
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
4
{
5
    if (keyboard_check(ord("W")))
6
    {
7
        if (keyboard_check_pressed(ord("V")))
8
        {
9
            setxy(1640, 2840, kris);
10
            global.flag[1502] = 1;
11
            debug_print("global.flag[1502]=1");
12
            safe_delete(endarea);
13
        }
14
    }
15
}
16
var makerip = 0;
17
riptime++;
18
if ((riptime % 15) == 0)
19
    makerip = 1;
20
with (wafer)
21
{
22
    if (!talked)
23
    {
24
        if (makerip)
25
            
scr_fancy_ripple
scr_fancy_ripple

function
scr_fancy_ripple(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0)
{ if (!instance_exists(obj_fancy_ripples)) instance_create_depth(0, 0, arg7, obj_fancy_ripples); with (obj_fancy_ripples) { depth = arg7; MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11); } } function scr_fancy_ripple_alt(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0) { if (!instance_exists(obj_fancy_ripples_alt)) instance_create_depth(0, 0, arg7, obj_fancy_ripples_alt); with (obj_fancy_ripples_alt) { depth = arg7; MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11); } }
((x + 40) - 8 - 8, y - 20 - 24, 60, 10810621, 70, 1, 5);
26
    }
27
    marker.image_index += 0.25;
28
    if (myinteract == 3)
29
    {
30
        playsnd = false;
31
        if (global.flag[1502] == 0)
32
        {
33
            global.flag[1502] = 1;
34
            safe_delete(other.endarea);
35
            playsnd = true;
36
        }
37
        global.interact = 1;
38
        
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
39
        msgsetloc(0, 
* Should be up there...Delay 11 up North.Wait for inputClose Message
"* Should be up there..^1. up North./%", "obj_dw_church_rippleworship_slash_Step_0_gml_61_0"
);
40
        d_make();
41
        myinteract = 999;
42
        talked++;
43
    }
44
    if (myinteract > 3 && d_ex())
45
    {
46
        var trig = 0;
47
        with (obj_writer)
48
        {
49
            if (halt)
50
                trig = 1;
51
        }
52
        if (!trig)
53
            marker.image_index += 0.25;
54
    }
55
    if (myinteract == 999 && !d_ex())
56
    {
57
        if (playsnd)
58
        {
59
            playsnd = false;
60
            snd_play(snd_acquire_lancer, 1, 0.7);
61
        }
62
        myinteract = 0;
63
        global.interact = 0;
64
    }
65
}
66
if (con == 0)
67
{
68
    var trig = 0;
69
    with (obj_dw_church_glowtile)
70
    {
71
        if (pushonce)
72
        {
73
            if (pressed)
74
                trig = 1;
75
        }
76
    }
77
    if (trig)
78
    {
79
        global.flag[1502] = 2;
80
        event_user(0);
81
    }
82
}
83
for (var i = 0; i < array_length(organik); i++)
84
{
85
    with (organik[i])
86
    {
87
        if (myinteract == 3)
88
        {
89
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
90
            msgsetloc(0, 
* (You hear whispering...)Wait for inputClose Message
"* (You hear whispering...)/%", "obj_dw_church_rippleworship_slash_Step_0_gml_115_0"
);
91
            if (global.flag[1502] >= 2)
92
            {
93
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
94
                msgsetloc(0, 
* (Its expression is frozen in worship...)Wait for inputClose Message
"* (Its expression is frozen in worship...)/%", "obj_dw_church_rippleworship_slash_Step_0_gml_120_0"
);
95
            }
96
            d_make();
97
            global.interact = 1;
98
            myinteract = 4;
99
        }
100
        if (myinteract == 4 && !d_ex())
101
        {
102
            myinteract = 0;
103
            global.interact = 0;
104
        }
105
    }
106
}