Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_quizroom_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
timer = 0;
3
transition_time = 20;
4
su_podium = 0;
5
kr_podium = 0;
6
ra_podium = 0;
7
su_press = 0;
8
ra_press = 0;
9
kr_press = 0;
10
su_sprite = spr_susie_quiz_down;
11
kr_sprite = spr_kris_quiz_down;
12
ra_sprite = spr_ralsei_quiz_down;
13
su_ready = 407;
14
kr_ready = 248;
15
ra_ready = 334;
16
start_sprite[0] = 0;
17
start_sprite[0] = 0;
18
start_sprite[0] = 0;
19
start_speed[0] = 0;
20
start_speed[0] = 0;
21
start_speed[0] = 0;
22
su_pose = false;
23
ra_pose = false;
24
kr_pose = false;
25
su_index = 0;
26
kr_index = 0;
27
ra_index = 0;
28
kris_xy = new Vector2(0, 0);
29
susie_xy = new Vector2(0, 0);
30
ralsei_xy = new Vector2(0, 0);
31
tenna_xy = new Vector2(0, 0);
32
su_pomark = 0;
33
ra_pomark = 0;
34
kr_pomark = 0;
35
te_pomark = 0;
36
te_pomark_2 = 0;
37
kr_name = 
scr_gameshowname
scr_gameshowname

function
scr_gameshowname()
{ alphanumericarray[0] = "A"; alphanumericarray[1] = "B"; alphanumericarray[2] = "C"; alphanumericarray[3] = "D"; alphanumericarray[4] = "E"; alphanumericarray[5] = "F"; alphanumericarray[6] = "G"; alphanumericarray[7] = "H"; alphanumericarray[8] = "I"; alphanumericarray[9] = "J"; alphanumericarray[10] = "K"; alphanumericarray[11] = "L"; alphanumericarray[12] = "M"; alphanumericarray[13] = "N"; alphanumericarray[14] = "O"; alphanumericarray[15] = "P"; alphanumericarray[16] = "Q"; alphanumericarray[17] = "R"; alphanumericarray[18] = "S"; alphanumericarray[19] = "T"; alphanumericarray[20] = "U"; alphanumericarray[21] = "V"; alphanumericarray[22] = "W"; alphanumericarray[23] = "X"; alphanumericarray[24] = "Y"; alphanumericarray[25] = "Z"; alphanumericarray[26] = "0"; alphanumericarray[27] = "1"; alphanumericarray[28] = "2"; alphanumericarray[29] = "3"; alphanumericarray[30] = "4"; alphanumericarray[31] = "5"; alphanumericarray[32] = "6"; alphanumericarray[33] = "7"; alphanumericarray[34] = "8"; alphanumericarray[35] = "9"; alphanumericarray[36] = "?"; alphanumericarray[37] = "!"; alphanumericarray[38] = "."; alphanumericarray[39] = "-"; if (global.lang == "ja") alphanumericarray =
scr_ja_alphanumericarray();
var ___mystring = alphanumericarray[global.flag[1012 gameshow_name_1]] + alphanumericarray[global.flag[1013 gameshow_name_2]] + alphanumericarray[global.flag[1014 gameshow_name_3]]; return ___mystring; }
();
38
gameshow = 30;
39
standalone = true;
40
gacha_balls[0] = -4;
41
gacha_balls[1] = -4;
42
gacha_balls[2] = -4;
43
board4 = obj_quizsequence.board4;
44
tenna_podium = board4 ? 3839 : 4187;
45
susie_punch = false;
46
susie_punch_timer = 0;
47
if (standalone)
48
{
49
    kris = 
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; }
(x, y, spr_kris_quiz_down);
50
    kris.visible = false;
51
    ralsei = 
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; }
(x, y, spr_ralsei_quiz_down);
52
    ralsei.visible = false;
53
    susie = 
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; }
(x, y, spr_susie_quiz_down);
54
    susie.visible = false;
55
    tenna = instance_create(x, y, obj_actor_tenna);
56
    tenna.visible = false;
57
    if (!i_ex(gameshow))
58
    {
59
        with (obj_actor)
60
        {
61
            if (name == "kris")
62
            {
63
                other.kris.sprite_index = sprite_index;
64
                other.kris.image_index = image_index;
65
                other.kris.image_speed = image_speed;
66
            }
67
            else if (name == "susie")
68
            {
69
                other.susie.sprite_index = sprite_index;
70
                if (sprite_index == spr_susie_trapped_punch)
71
                {
72
                    other.susie_punch = true;
73
                    other.susie.image_index = 0;
74
                    other.susie.image_speed = 0;
75
                }
76
                else
77
                {
78
                    other.susie.image_index = image_index;
79
                    other.susie.image_speed = image_speed;
80
                }
81
            }
82
            else if (name == "ralsei")
83
            {
84
                other.ralsei.sprite_index = sprite_index;
85
                other.ralsei.image_index = image_index;
86
                other.ralsei.image_speed = image_speed;
87
            }
88
        }
89
        gacha_balls[0] = instance_create(0, 0, obj_ch3_GSC07_gacha);
90
        gacha_balls[0].actor_target = kris;
91
        gacha_balls[0].mode = 1;
92
        gacha_balls[0].depth = 30000;
93
        gacha_balls[1] = instance_create(0, 0, obj_ch3_GSC07_gacha);
94
        gacha_balls[1].actor_target = susie;
95
        gacha_balls[1].mode = 4;
96
        gacha_balls[1].depth = 30000;
97
        gacha_balls[2] = instance_create(0, 0, obj_ch3_GSC07_gacha);
98
        gacha_balls[2].actor_target = ralsei;
99
        gacha_balls[2].mode = 2;
100
        gacha_balls[2].depth = 30000;
101
    }
102
    if (i_ex(gameshow))
103
        depth = min(gameshow.playerpodiums.depth, gameshow.scoreboard.depth, obj_quizsequence.depth) - 1000;
104
    else
105
        depth = obj_quizsequence.depth - 1000;
106
}
107
else if (i_ex(gameshow))
108
{
109
    kris = gameshow.kris;
110
    susie = gameshow.susie;
111
    ralsei = gameshow.ralsei;
112
    tenna = gameshow.tenna;
113
    depth = min(gameshow.playerpodiums.depth, gameshow.scoreboard.depth, obj_quizsequence.depth) - 1000;
114
}
115
else
116
{
117
    with (obj_actor)
118
    {
119
        if (name == "kris")
120
            other.kris = id;
121
        else if (name == "susie")
122
            other.susie = id;
123
        else if (name == "ralsei")
124
            other.ralsei = id;
125
    }
126
    tenna = obj_actor_tenna;
127
    depth = obj_quizsequence.depth - 1000;
128
}
129
camx = camerax();
130
camy = cameray();
131
board4 = false;
132
bg = -4;