Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_quizroom_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
    depth = -9999;
3
if (con > 0 && con < 4)
4
{
5
    if (su_pomark == 0)
6
        su_pomark = instance_create(camerax() + 100, cameray() + 410, obj_quiz_podium);
7
    if (kr_pomark == 0)
8
        kr_pomark = instance_create(camerax() + 250, cameray() + 410, obj_quiz_podium);
9
    if (ra_pomark == 0)
10
        ra_pomark = instance_create(camerax() + 400, cameray() + 410, obj_quiz_podium);
11
    var _faux_depth = bg.depth;
12
    with (kr_pomark)
13
        scr_depth_ext_alt(_faux_depth);
14
    kr_pomark.mystring = kr_name;
15
    with (ra_pomark)
16
        scr_depth_ext_alt(_faux_depth);
17
    ra_pomark.mystring = "RAL";
18
    with (su_pomark)
19
        scr_depth_ext_alt(_faux_depth);
20
    su_pomark.mystring = "ASS";
21
    if (global.lang == "ja")
22
    {
23
        ra_pomark.mystring = "ラルセ";
24
        su_pomark.mystring = "クソダ";
25
    }
26
    var _board4 = board4;
27
    if (susie_punch)
28
    {
29
        susie_punch_timer++;
30
        if (susie_punch_timer == 8)
31
        {
32
            with (susie)
33
            {
34
                sprite_index = spr_susie_trapped_punch;
35
                image_index = 0;
36
                image_speed = 0.5;
37
            }
38
        }
39
        if (susie_punch_timer > 8)
40
        {
41
            if (susie_punch_timer == 12)
42
            {
43
                with (susie)
44
                    
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
45
            }
46
            if (susie_punch_timer == 16)
47
            {
48
                susie_punch_timer = 0;
49
                susie.image_speed = 0;
50
            }
51
        }
52
    }
53
    with (susie)
54
    {
55
        if (!_board4)
56
        {
57
            sprite_index = other.su_sprite;
58
            if (other.su_pose)
59
                image_index = other.su_index;
60
            else
61
                image_index = clamp01(other.su_press);
62
        }
63
        
scr_depth_ext
scr_depth_ext

function
scr_depth_ext(arg0 = 100000, arg1 = 10)
{ depth = arg0 - ((y * arg1) + (sprite_height * arg1)); } function scr_depth_ext_alt(arg0 = 100000, arg1 = 10) { depth = arg0 - ((y * arg1) + ((sprite_height - sprite_yoffset) * arg1)); } function scr_depth_relative(arg0 = 100000, arg1 = 0, arg2 = 10) { var __yy = (y + sprite_height) - arg1; depth = arg0 - (__yy * arg2); }
(_faux_depth);
64
    }
65
    with (kris)
66
    {
67
        if (!_board4)
68
        {
69
            sprite_index = other.kr_sprite;
70
            if (other.kr_pose)
71
                image_index = other.kr_index;
72
            else
73
                image_index = clamp01(other.kr_press);
74
        }
75
        
scr_depth_ext
scr_depth_ext

function
scr_depth_ext(arg0 = 100000, arg1 = 10)
{ depth = arg0 - ((y * arg1) + (sprite_height * arg1)); } function scr_depth_ext_alt(arg0 = 100000, arg1 = 10) { depth = arg0 - ((y * arg1) + ((sprite_height - sprite_yoffset) * arg1)); } function scr_depth_relative(arg0 = 100000, arg1 = 0, arg2 = 10) { var __yy = (y + sprite_height) - arg1; depth = arg0 - (__yy * arg2); }
(_faux_depth);
76
    }
77
    with (ralsei)
78
    {
79
        if (!_board4)
80
        {
81
            sprite_index = other.ra_sprite;
82
            if (other.ra_pose)
83
                image_index = other.ra_index;
84
            else if (!_board4)
85
                image_index = clamp01(other.ra_press);
86
        }
87
        
scr_depth_ext
scr_depth_ext

function
scr_depth_ext(arg0 = 100000, arg1 = 10)
{ depth = arg0 - ((y * arg1) + (sprite_height * arg1)); } function scr_depth_ext_alt(arg0 = 100000, arg1 = 10) { depth = arg0 - ((y * arg1) + ((sprite_height - sprite_yoffset) * arg1)); } function scr_depth_relative(arg0 = 100000, arg1 = 0, arg2 = 10) { var __yy = (y + sprite_height) - arg1; depth = arg0 - (__yy * arg2); }
(_faux_depth);
88
    }
89
    with (tenna)
90
        
scr_depth_ext
scr_depth_ext

function
scr_depth_ext(arg0 = 100000, arg1 = 10)
{ depth = arg0 - ((y * arg1) + (sprite_height * arg1)); } function scr_depth_ext_alt(arg0 = 100000, arg1 = 10) { depth = arg0 - ((y * arg1) + ((sprite_height - sprite_yoffset) * arg1)); } function scr_depth_relative(arg0 = 100000, arg1 = 0, arg2 = 10) { var __yy = (y + sprite_height) - arg1; depth = arg0 - (__yy * arg2); }
(_faux_depth);
91
    if (!su_pose && su_press > -8)
92
    {
93
        su_press--;
94
        if (su_podium > 0 && su_press == -8)
95
            su_sprite = su_ready;
96
    }
97
    if (!kr_pose && kr_press > -8)
98
    {
99
        kr_press--;
100
        if (kr_podium > 0 && kr_press == -8)
101
            kr_sprite = kr_ready;
102
    }
103
    if (!ra_pose && ra_press > -8)
104
    {
105
        ra_press--;
106
        if (ra_podium > 0 && ra_press == -8)
107
            ra_sprite = ra_ready;
108
    }
109
}
110
if (con == 4)
111
{
112
    safe_delete(kr_pomark);
113
    safe_delete(ra_pomark);
114
    safe_delete(su_pomark);
115
}