Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_forestmaze_controller_Create_0

(view raw script w/o annotations or w/e)
1
image_xscale = 2;
2
image_yscale = 2;
3
roomno = global.flag[291 maze_progress];
4
sidechoice = -1;
5
lancer_side = -1;
6
susie_side = -1;
7
lancercon = 0;
8
proper_choice = 0;
9
battlemoder = 0;
10
gencon = 0;
11
gen = 0;
12
gentimer = 0;
13
if (global.plot < 90)
14
    global.plot = 90;
15
if (roomno == 0)
16
{
17
    lancer_side = 1;
18
    proper_choice = 0;
19
}
20
if (roomno == 1)
21
{
22
    battlemoder = 1;
23
    gen = 1;
24
    for (i = 0; i < 4; i += 1)
25
    {
26
        scizz = instance_create(80 + (i * 180), 300, obj_scissordancer);
27
        scizz.hspeed = -8;
28
        scizz.vspeed = 0;
29
    }
30
    lancer_side = 0;
31
    proper_choice = 1;
32
}
33
if (roomno == 2)
34
{
35
    lancer_side = 1;
36
    proper_choice = 0;
37
    chaseenemy = instance_create(x + 10, y - 80, obj_chaseenemy);
38
}
39
if (roomno == 3)
40
{
41
    holesolid = instance_create(280, 280, obj_soliddark);
42
    with (holesolid)
43
    {
44
        image_xscale = 2;
45
        image_yscale = 2;
46
    }
47
    hole = 
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; }
(280, 280, spr_darkponman_hole);
48
    with (hole)
49
    {
50
        image_xscale = 2;
51
        image_yscale = 2;
52
        depth = 950000;
53
    }
54
    battlemoder = 1;
55
    lancer_side = 0;
56
    proper_choice = 1;
57
    darkponman = instance_create((room_width / 2) - 28, 268, obj_darkponman_ow);
58
    with (obj_darkponman_ow)
59
    {
60
        boss = 0;
61
        bmax = 8;
62
    }
63
}
64
if (roomno == 5)
65
{
66
    battlemoder = 1;
67
    proper_choice = 3;
68
    lancer_side = 2;
69
    susie_side = 4;
70
    gen = 1;
71
    for (i = 0; i < 5; i += 1)
72
    {
73
        scizz = instance_create(60 + (i * 140), 300, obj_scissordancer);
74
        scizz.hspeed = -8;
75
        scizz.vspeed = 0;
76
        scizz = instance_create(100 + (i * 140), 460, obj_scissordancer);
77
        scizz.hspeed = -8;
78
        scizz.vspeed = 0;
79
    }
80
}
81
if (roomno == 6)
82
{
83
    proper_choice = 4;
84
    lancer_side = 3;
85
    susie_side = 2;
86
    chaseenemy = instance_create(x + 10, y, obj_chaseenemy);
87
}
88
if (roomno == 7)
89
{
90
    gen = 2;
91
    proper_choice = 2;
92
    lancer_side = 3;
93
    susie_side = 4;
94
    scizz = instance_create(60, 600, obj_starwalker_overworld);
95
    scizz.mazemode = 1;
96
    scizz = instance_create(580, 600, obj_starwalker_overworld);
97
    scizz.mazemode = 1;
98
}
99
if (roomno == 8)
100
{
101
    holesolid = instance_create(180, 380, obj_soliddark);
102
    with (holesolid)
103
    {
104
        image_xscale = 2;
105
        image_yscale = 2;
106
    }
107
    hole = 
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; }
(180, 380, spr_darkponman_hole);
108
    with (hole)
109
    {
110
        image_xscale = 2;
111
        image_yscale = 2;
112
        depth = 950000;
113
    }
114
    holesolid = instance_create(380, 380, obj_soliddark);
115
    with (holesolid)
116
    {
117
        image_xscale = 2;
118
        image_yscale = 2;
119
    }
120
    hole = 
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; }
(380, 380, spr_darkponman_hole);
121
    with (hole)
122
    {
123
        image_xscale = 2;
124
        image_yscale = 2;
125
        depth = 950000;
126
    }
127
    battlemoder = 1;
128
    proper_choice = 3;
129
    lancer_side = 2;
130
    susie_side = 4;
131
    darkponman = instance_create((room_width / 2) - 126, 368, obj_darkponman_ow);
132
    with (obj_darkponman_ow)
133
    {
134
        boss = 0;
135
        bmax = 8;
136
        rot = 180;
137
    }
138
    darkponman = instance_create((room_width / 2) + 72, 368, obj_darkponman_ow);
139
    with (darkponman)
140
    {
141
        boss = 0;
142
        bmax = 8;
143
        rotspeed = -4;
144
        rot = 0;
145
    }
146
}
147
if (lancer_side >= 0)
148
{
149
    lancercon = 1;
150
    y = 260;
151
    sprite_index = spr_lancer_dt;
152
    if (lancer_side == 0)
153
        x = 160;
154
    if (lancer_side == 1)
155
        x = 400;
156
    if (lancer_side == 2)
157
        x = 120;
158
    if (lancer_side == 3)
159
        x = 280;
160
    if (lancer_side == 4)
161
        x = 440;
162
}
163
if (susie_side >= 0)
164
{
165
    lancercon = 1;
166
    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; }
(160, 245, spr_susied_dark);
167
    susie.depth = depth;
168
    if (susie_side == 0)
169
        susie.x = 160;
170
    if (susie_side == 1)
171
        susie.x = 400;
172
    if (susie_side == 2)
173
        susie.x = 120;
174
    if (susie_side == 3)
175
        susie.x = 280;
176
    if (susie_side == 4)
177
        susie.x = 440;
178
}