Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_flowershop_event_Step_0

(view raw script w/o annotations or w/e)
1
if (con > 0 && con < 50)
2
{
3
    if (con == 1)
4
    {
5
        global.interact = 1;
6
        con = 1.1;
7
        alarm[4] = 30;
8
    }
9
    if (con == 1.1)
10
        global.interact = 1;
11
    if (con == 2.1)
12
    {
13
        global.facing = 2;
14
        k = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(obj_mainchara.x, obj_mainchara.y, spr_krisu);
15
        with (k)
16
        {
17
            vspeed = -1;
18
            image_speed = 0.1;
19
        }
20
        obj_mainchara.visible = 0;
21
        con = 1.2;
22
        alarm[4] = 70;
23
    }
24
    if (con == 2.2)
25
    {
26
        obj_mainchara.y = k.y;
27
        obj_mainchara.visible = 1;
28
        with (k)
29
            instance_destroy();
30
        con = 2;
31
        alarm[4] = 30;
32
    }
33
    if (con == 3)
34
    {
35
        global.fc = 0;
36
        global.typer = 18;
37
        global.msg[0] = 
* Dum dee dum...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_flowershop_event_slash_Step_0_gml_44_0")
;
38
        global.msg[1] = 
* Oh?Delay 11
* Is someone 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_flowershop_event_slash_Step_0_gml_45_0")
;
39
        global.msg[2] = 
* Just a moment!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_flowershop_event_slash_Step_0_gml_46_0")
;
40
        global.msg[3] = 
* I have almost finished watering these flowers.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_flowershop_event_slash_Step_0_gml_47_0")
;
41
        con = 4;
42
        instance_create(0, 0, obj_dialoguer);
43
    }
44
    if (con == 4 && !d_ex())
45
    {
46
        image_speed = 0.25;
47
        con = 5;
48
        alarm[4] = 30;
49
    }
50
    if (con == 6)
51
    {
52
        image_speed = 0.05;
53
        image_index = 0;
54
        con = 7;
55
        alarm[4] = 10;
56
    }
57
    if (con == 8)
58
    {
59
        global.msg[0] = 
* ... Here we are!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_flowershop_event_slash_Step_0_gml_69_0")
;
60
        instance_create(0, 0, obj_dialoguer);
61
        con = 9;
62
    }
63
    if (con == 9 && d_ex() == 0)
64
    {
65
        con = 10;
66
        alarm[4] = 20;
67
    }
68
    if (con == 11)
69
    {
70
        scr_halt
scr_halt

function scr_halt() { image_index = 0; image_speed = 0; speed = 0; }
();
71
        sprite_index = spr_asgorer;
72
        con = 11.1;
73
        alarm[4] = 20;
74
    }
75
    if (con == 12.1)
76
    {
77
        sprite_index = spr_asgored;
78
        con = 13;
79
        alarm[4] = 20;
80
    }
81
    if (con == 14)
82
    {
83
        global.fc = 10;
84
        global.fe = 1;
85
        global.msc = 0;
86
        global.msg[0] = 
* Howdy!Delay 11
* How can I...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_flowershop_event_slash_Step_0_gml_100_0")
;
87
        instance_create(0, 0, obj_dialoguer);
88
        con = 15;
89
    }
90
    if (con == 15 && !d_ex())
91
    {
92
        exc = instance_create(x + 25, y - 2, obj_excblcon);
93
        snd_play(snd_b);
94
        con = 16;
95
        alarm[4] = 30;
96
    }
97
    if (con == 17)
98
    {
99
        global.fe = 4;
100
        global.msg[0] = 
* ... Oh!Delay 11 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_flowershop_event_slash_Step_0_gml_116_0")
;
101
        con = 18;
102
        instance_create(0, 0, obj_dialoguer);
103
    }
104
    if (con == 18 && d_ex() == 0)
105
    {
106
        sprite_index = spr_asgored;
107
        image_speed = 0.334;
108
        vspeed = 4;
109
        con = 19;
110
    }
111
    if (con == 19)
112
    {
113
        if (y >= (obj_mainchara.y - 26))
114
        {
115
            vspeed = 0;
116
            y = obj_mainchara.y - 26;
117
            obj_mainchara.visible = 0;
118
            image_index = 0;
119
            image_speed = 0.25;
120
            sprite_index = spr_asgore_hug;
121
            con = 20;
122
            alarm[4] = 68;
123
        }
124
    }
125
    if (con == 21)
126
    {
127
        obj_mainchara.visible = 1;
128
        sprite_index = spr_asgored;
129
        vspeed = -2;
130
        image_speed = 0.2;
131
        image_index = 0;
132
        con = 21.1;
133
        alarm[4] = 10;
134
    }
135
    if (con == 22.1)
136
    {
137
        vspeed = 0;
138
        image_index = 0;
139
        image_speed = 0;
140
        con = 22;
141
        alarm[4] = 20;
142
    }
143
    if (con == 23)
144
    {
145
        vspeed = 0;
146
        image_index = 0;
147
        image_speed = 0;
148
        global.fe = 2;
149
        global.msg[0] = 
* ... Oh.Delay 11
* I'm sorry.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_flowershop_event_slash_Step_0_gml_171_0")
;
150
        global.msg[1] = 
\E0* I forgot if you don't like hugs 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_flowershop_event_slash_Step_0_gml_172_0")
;
151
        instance_create(0, 0, obj_dialoguer);
152
        con = 24;
153
    }
154
    if (con == 24 && !d_ex())
155
    {
156
        sprite_index = spr_asgorer;
157
        con = 25;
158
        alarm[4] = 15;
159
    }
160
    if (con == 26)
161
    {
162
        sprite_index = spr_asgoreu;
163
        image_speed = 0.25;
164
        vspeed = -3;
165
        con = 27;
166
    }
167
    if (con == 27)
168
    {
169
        if (y <= 27)
170
        {
171
            y = 27;
172
            vspeed = 0;
173
            image_speed = 0;
174
            image_index = 0;
175
            con = 28;
176
            alarm[4] = 15;
177
        }
178
    }
179
    if (con == 29)
180
    {
181
        sprite_index = spr_asgorer;
182
        con = 30;
183
        alarm[4] = 15;
184
    }
185
    if (con == 31)
186
    {
187
        sprite_index = spr_asgored;
188
        global.fe = 1;
189
        global.msg[0] = 
* Well now,Delay 11 make yourself at home,Delay 11 Kris.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_flowershop_event_slash_Step_0_gml_216_0")
;
190
        global.msg[1] = 
\E5* You can help yourself to anything you like.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_flowershop_event_slash_Step_0_gml_217_0")
;
191
        instance_create(0, 0, obj_dialoguer);
192
        con = 32;
193
    }
194
    if (con == 32 && !d_ex())
195
    {
196
        global.interact = 0;
197
        visible = 0;
198
        asg = instance_create(x, y + sprite_height, obj_npc_facing);
199
        con = 50;
200
        global.flag[262 bouquet_quest_stage] = 1;
201
    }
202
}
203
if (con >= 50)
204
{
205
    if (con == 50)
206
    {
207
        if (obj_mainchara.y >= 180 && global.interact == 0)
208
        {
209
            with (obj_npc_facing)
210
                instance_destroy();
211
            sprite_index = spr_asgored;
212
            visible = 1;
213
            global.interact = 1;
214
            obj_mainchara.y = 180;
215
            con = 50.1;
216
            alarm[4] = 30;
217
            exc = instance_create(x + 25, y - 2, obj_excblcon);
218
            snd_play(snd_b);
219
        }
220
    }
221
    if (con == 51.1)
222
    {
223
        global.facing = 2;
224
        global.typer = 18;
225
        global.fc = 10;
226
        global.fe = 2;
227
        global.msg[0] = 
\E2* Oh, Kris. Before you go...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_flowershop_event_slash_Step_0_gml_260_0")
;
228
        con = 52;
229
        instance_create(0, 0, obj_dialoguer);
230
    }
231
    if (con == 52 && !d_ex())
232
    {
233
        con = 53;
234
        alarm[4] = 10;
235
    }
236
    if (con == 54)
237
    {
238
        sprite_index = spr_asgored;
239
        image_speed = 0.2;
240
        vspeed = 2;
241
        con = 55;
242
    }
243
    if (con == 55)
244
    {
245
        if (y >= (obj_mainchara.y - 34))
246
        {
247
            vspeed = 0;
248
            y = obj_mainchara.y - 34;
249
            image_index = 0;
250
            image_speed = 0;
251
            con = 57;
252
            alarm[4] = 20;
253
        }
254
    }
255
    if (con == 58)
256
    {
257
        global.fe = 6;
258
        global.msg[0] = 
\E6* Here.Delay 11
* For your mother...Delay 11
* Our secret.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_flowershop_event_slash_Step_0_gml_297_0")
;
259
        scr_noface
scr_noface

function scr_noface(arg0) { global.msg[arg0] =
\TX \F0 \T0 Close Message
scr_84_get_lang_string("scr_noface_slash_scr_noface_gml_1_0")
; }
(1);
260
        global.writersnd[0] = snd_item;
261
        global.msg[2] = 
\S0* (You got the Bouquet of Flowers.)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_flowershop_event_slash_Step_0_gml_300_0")
;
262
        global.flag[262 bouquet_quest_stage] = 2;
263
        scr_litemget
scr_litemget

function scr_litemget(arg0) { i = 0; loop = 1; noroom = 0; global.litem[8] = 999; while (loop == 1) { if (global.litem[i] == 0) { global.litem[i] = arg0; break; } if (i == 8) { noroom = 1; break; } i += 1; } scr_litemname(); }
(4);
264
        instance_create(0, 0, obj_dialoguer);
265
        con = 59;
266
    }
267
    if (con == 59 && !d_ex())
268
    {
269
        vspeed = -3;
270
        image_speed = 0.25;
271
        con = 60;
272
    }
273
    if (con == 60 && y <= ystart)
274
    {
275
        y = ystart;
276
        scr_halt
scr_halt

function scr_halt() { image_index = 0; image_speed = 0; speed = 0; }
();
277
        con = 61;
278
        alarm[4] = 10;
279
    }
280
    if (con == 62)
281
    {
282
        global.typer = 18;
283
        global.fc = 10;
284
        global.fe = 0;
285
        global.msg[0] = 
* Have a great day,Delay 11 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_flowershop_event_slash_Step_0_gml_327_0")
;
286
        instance_create(0, 0, obj_dialoguer);
287
        con = 63;
288
    }
289
    if (con == 63 && !d_ex())
290
    {
291
        asg = instance_create(x, y + sprite_height, obj_npc_facing);
292
        global.interact = 0;
293
        visible = 0;
294
        con = 70;
295
    }
296
}
297
if (instance_exists(obj_mainchara))
298
    global.flag[264 asgore_stairs_side] = obj_mainchara.x;