Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_suitspuzzle_event_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 1)
2
{
3
    if (obj_mainchara.x >= 140 && global.interact == 0)
4
    {
5
        r = global.cinstance[0];
6
        with (r)
7
        {
8
            sprite_index = rsprite;
9
            fun = 1;
10
        }
11
        global.facing = 1;
12
        global.interact = 1;
13
        global.typer = 30;
14
        global.fc = 1;
15
        global.msg[0] = 
* Then add a mustache over there...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_16_0")
;
16
        
scr_lanface
scr_lanface

function
scr_lanface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char L Sound L Close Message
scr_84_get_lang_string("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1));
}
(1, 3);
17
        global.msg[2] = 
* Hee hee,Delay 11 like this?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_18_0")
;
18
        
scr_susface
scr_susface

function
scr_susface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char S Sound S Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1));
}
(3, 2);
19
        global.msg[4] = 
* Haha!Delay 11 Yeah!Delay 11 Like that!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_20_0")
;
20
        instance_create(0, 0, obj_dialoguer);
21
        con = 2;
22
    }
23
}
24
if (con == 2 && !d_ex())
25
{
26
    exc = instance_create(s.x + 30, s.y - 20, obj_excblcon);
27
    con = 3;
28
    with (s)
29
        sprite_index = spr_susiel_dark;
30
    sprite_index = spr_lancer_lt;
31
    alarm[4]
 = 30;
gml_Object_obj_suitspuzzle_event_Alarm_4.gml

con += 1;
32
}
33
if (con == 4)
34
{
35
    global.typer = 31;
36
    global.fc = 2;
37
    global.fe = 8;
38
    global.msg[0] = 
* How's the scheming coming along,Delay 11 you two?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_41_0")
;
39
    
scr_susface
scr_susface

function
scr_susface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char S Sound S Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1));
}
(1, 7);
40
    global.msg[2] = 
* Hey,Delay 11 don't LOOK!Delay 11 We aren't done yet!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_43_0")
;
41
    
scr_lanface
scr_lanface

function
scr_lanface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char L Sound L Close Message
scr_84_get_lang_string("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1));
}
(3, 6);
42
    global.msg[4] = 
* You're going to spoil it for yourselves!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_45_0")
;
43
    
scr_susface
scr_susface

function
scr_susface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char S Sound S Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1));
}
(5, 0);
44
    global.msg[6] = 
* C'mon,Delay 11 we're working hard on this!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_47_0")
;
45
    
scr_ralface
scr_ralface

function
scr_ralface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char R Sound R Close Message
scr_84_get_lang_string("scr_ralface_slash_scr_ralface_gml_1_0")
, string(arg1));
}
(7, 6);
46
    global.msg[8] = 
* Sorry!Delay 11 Sorry.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_49_0")
;
47
    instance_create(0, 0, obj_dialoguer);
48
    con = 5;
49
}
50
if (con == 5 && !d_ex())
51
{
52
    with (r)
53
        sprite_index = spr_ralseiu;
54
    with (s)
55
        sprite_index = spr_susieu_dark;
56
    sprite_index = spr_lancer_ut;
57
    con = 6;
58
    alarm[4]
 = 30;
gml_Object_obj_suitspuzzle_event_Alarm_4.gml

con += 1;
59
}
60
if (con == 7)
61
{
62
    with (r)
63
        sprite_index = spr_ralseir;
64
    with (s)
65
        sprite_index = spr_susiel_dark;
66
    sprite_index = spr_lancer_lt;
67
    global.typer = 31;
68
    global.fc = 2;
69
    global.fe = 0;
70
    global.msg[0] = 
* ... I notice there is a puzzle here.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_71_0")
;
71
    
scr_susface
scr_susface

function
scr_susface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char S Sound S Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1));
}
(1, 0);
72
    global.msg[2] = 
* Yeah?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_73_0")
;
73
    
scr_ralface
scr_ralface

function
scr_ralface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char R Sound R Close Message
scr_84_get_lang_string("scr_ralface_slash_scr_ralface_gml_1_0")
, string(arg1));
}
(3, 6);
74
    global.msg[4] = 
* Would you two...Delay 11 like to...Delay 11 do it...?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_75_0")
;
75
    
scr_susface
scr_susface

function
scr_susface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char S Sound S Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1));
}
(5, 0);
76
    global.msg[6] = 
* Uh,Delay 11 no.Delay 11 That's for heroes.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_77_0")
;
77
    global.msg[7] = 
* We're bad guys.Delay 11
* We don't have to do anything.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_78_0")
;
78
    
scr_lanface
scr_lanface

function
scr_lanface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char L Sound L Close Message
scr_84_get_lang_string("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1));
}
(8, 3);
79
    global.msg[9] = 
* Except scheme.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_80_0")
;
80
    
scr_susface
scr_susface

function
scr_susface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char S Sound S Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1));
}
(10, 2);
81
    global.msg[11] = 
* Yeah.Delay 11 Except scheme.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_82_0")
;
82
    global.msg[12] = 
* So have fun,Delay 11 we'll be here.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_83_0")
;
83
    instance_create(0, 0, obj_dialoguer);
84
    con = 8;
85
}
86
if (con == 8 && !d_ex())
87
{
88
    global.facing = 0;
89
    with (r)
90
        fun = 0;
91
    visible = 0;
92
    with (s)
93
        visible = 0;
94
    lnpc = instance_create(x, y, obj_npc_facing);
95
    with (lnpc)
96
    {
97
        dtsprite = spr_lancer_dt;
98
        rtsprite = spr_lancer_rt;
99
        ltsprite = spr_lancer_lt;
100
        utsprite = spr_lancer_ut;
101
        sprite_index = dtsprite;
102
        y += 100;
103
    }
104
    snpc = instance_create(s.x, s.y, obj_npc_facing);
105
    with (snpc)
106
    {
107
        dtsprite = spr_susiedt_dark;
108
        rtsprite = spr_susiert_dark;
109
        ltsprite = spr_susielt_dark;
110
        utsprite = spr_susieut_dark;
111
        sprite_index = dtsprite;
112
        y += 100;
113
    }
114
    global.interact = 0;
115
    con = 9;
116
}
117
if (con == 9 && obj_mainchara.x < 40 && global.interact == 0)
118
{
119
    global.facing = 1;
120
    with (obj_mainchara)
121
        x = 32;
122
    global.interact = 1;
123
    global.typer = 30;
124
    global.fc = 1;
125
    global.fe = 0;
126
    if (talked == 0)
127
        global.msg[0] = 
* ...?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_133_0")
;
128
    else
129
        global.msg[0] = 
* Just do the puzzle, Kris.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_137_0")
;
130
    instance_create(0, 0, obj_dialoguer);
131
    con = 10;
132
}
133
if (con == 10 && !d_ex())
134
{
135
    talked += 1;
136
    with (obj_mainchara)
137
        x = 32;
138
    global.interact = 0;
139
    con = 9;
140
}
141
if (con == 15 && global.interact == 0)
142
{
143
    if (obj_suitspuzz.won == 1)
144
    {
145
        global.facing = 1;
146
        with (global.cinstance[0])
147
        {
148
            fun = 1;
149
            sprite_index = rsprite;
150
        }
151
        snd_play(snd_screenshake);
152
        instance_create(0, 0, obj_shake);
153
        global.interact = 1;
154
        with (block)
155
            instance_destroy();
156
        with (spike[0])
157
            image_index = 1;
158
        with (spike[1])
159
            image_index = 1;
160
        with (spike[2])
161
            image_index = 1;
162
        con = 11;
163
        alarm[4]
 = 60;
gml_Object_obj_suitspuzzle_event_Alarm_4.gml

con += 1;
164
        s.visible = 1;
165
        visible = 1;
166
        sprite_index = spr_lancer_rt;
167
        with (s)
168
            sprite_index = spr_susier_dark;
169
        with (snpc)
170
            instance_destroy();
171
        with (lnpc)
172
            instance_destroy();
173
    }
174
}
175
if (con == 12)
176
{
177
    with (s)
178
        sprite_index = spr_susiel_dark;
179
    sprite_index = spr_lancer_lt;
180
    global.typer = 30;
181
    global.fc = 1;
182
    global.fe = 0;
183
    global.msg[0] = 
* ...Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_189_0")
;
184
    instance_create(0, 0, obj_dialoguer);
185
    con = 13;
186
}
187
if (con == 13 && !d_ex())
188
{
189
    global.fe = 2;
190
    with (s)
191
    {
192
        sprite_index = spr_susier_dark;
193
        image_speed = 0.5;
194
        hspeed = 14;
195
    }
196
    sprite_index = spr_lancer_rt;
197
    hspeed = 14;
198
    global.msg[0] = 
* Heh,Delay 11 thanks for doing the puzzle for us,Delay 11 losers!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_200_0")
;
199
    
scr_lanface
scr_lanface

function
scr_lanface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char L Sound L Close Message
scr_84_get_lang_string("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1));
}
(1, 2);
200
    global.msg[2] = 
Face 2* Hahaha!Delay 11 Thank you so much,Delay 11 losers!Delay 11 We were having trouble!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_202_0")
;
201
    instance_create(0, 0, obj_dialoguer);
202
    con = 14;
203
}
204
if (con == 14 && !d_ex())
205
{
206
    con = 15;
207
    alarm[4]
 = 30;
gml_Object_obj_suitspuzzle_event_Alarm_4.gml

con += 1;
208
}
209
if (con == 16)
210
{
211
    with (s)
212
    {
213
        x = __view_get(e__VW.XView, 0) + __view_get(e__VW.WView, 0);
214
        sprite_index = spr_susiel_dark;
215
        hspeed = -12;
216
    }
217
    hspeed = -12;
218
    sprite_index = spr_lancer_lt;
219
    x = __view_get(e__VW.XView, 0) + __view_get(e__VW.WView, 0) + 50;
220
    con = 17;
221
}
222
if (con == 17)
223
{
224
    if (s.x <= 380)
225
    {
226
        with (s)
227
            
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
228
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
229
        con = 18;
230
        alarm[4]
 = 15;
gml_Object_obj_suitspuzzle_event_Alarm_4.gml

con += 1;
231
    }
232
}
233
if (con == 19)
234
{
235
    with (s)
236
        sprite_index = spr_susieu_dark;
237
    sprite_index = spr_lancer_ut;
238
    global.fc = 1;
239
    global.fe = 0;
240
    global.typer = 30;
241
    global.msg[0] = 
* We,Delay 11 uh,Delay 11 need this.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_suitspuzzle_event_slash_Step_0_gml_247_0")
;
242
    instance_create(0, 0, obj_dialoguer);
243
    con = 20;
244
}
245
if (con == 20 && !d_ex())
246
{
247
    with (s)
248
    {
249
        sprite_index = spr_susier_dark;
250
        image_speed = 0.5;
251
        hspeed = 12;
252
    }
253
    sprite_index = spr_lancer_rt;
254
    hspeed = 12;
255
    with (easel)
256
        hspeed = 12;
257
    con = 21;
258
    alarm[4]
 = 30;
gml_Object_obj_suitspuzzle_event_Alarm_4.gml

con += 1;
259
}
260
if (con == 22)
261
{
262
    with (global.cinstance[0])
263
        fun = 0;
264
    global.facing = 0;
265
    global.interact = 0;
266
    global.plot = 72;
267
    con = 23;
268
}
269
270
enum e__VW
271
{
272
    XView,
273
    YView,
274
    WView,
275
    HView,
276
    Angle,
277
    HBorder,
278
    VBorder,
279
    HSpeed,
280
    VSpeed,
281
    Object,
282
    Visible,
283
    XPort,
284
    YPort,
285
    WPort,
286
    HPort,
287
    Camera,
288
    SurfaceID
289
}