Undertale script viewer

← back to main script listing

gml_Object_obj_grillbynpc_sansdate_Step_0

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
();
2
if (con == 1)
3
{
4
    alarm[2] = 30;
5
    con = 2;
6
}
7
if (con == 2)
8
{
9
    obj_mainchara.y = obj_markerw.y;
10
    global.facing = 2;
11
    obj_mainchara.facing = 2;
12
    global.interact = 1;
13
}
14
if (con == 3)
15
{
16
    global.msc = 0;
17
    global.typer = 17;
18
    global.facechoice = 3;
19
    global.faceemotion = 0;
20
    sprite_index = dtsprite;
21
    obj_mainchara.cutscene = 1;
22
    obj_mainchara.phasing = 1;
23
    global.msg[0] = 
* fast shortcut,Delay 11 huh?Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_121")
;
24
    mydialoguer = instance_create(0, 0, obj_dialoguer);
25
    con = 3.5;
26
}
27
if (con == 3.5 && instance_exists(OBJ_WRITER) == 0)
28
{
29
    sprite_index = usprite;
30
    global.msg[0] = 
* hey,Delay 11 everyone.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_129")
;
31
    con = 4;
32
    instance_create(0, 0, obj_dialoguer);
33
}
34
if (con == 4 && instance_exists(OBJ_WRITER) == 0)
35
{
36
    sprite_index = usprite;
37
    image_speed = 0.2;
38
    vspeed = -2;
39
    alarm[2] = 12;
40
    con = 5;
41
    obj_mainchara.vspeed = -2;
42
    obj_mainchara.image_speed = 0.2;
43
}
44
if (con == 6)
45
{
46
    global.msc = 0;
47
    global.typer = 5;
48
    global.facechoice = 0;
49
    global.faceemotion = 0;
50
    obj_mainchara.vspeed = 0;
51
    obj_mainchara.facing = 3;
52
    obj_mainchara.image_speed = 0;
53
    vspeed = 0;
54
    image_speed = 0;
55
    sprite_index = ltsprite;
56
    con = 7.1;
57
    if (global.flag[53 status_dogcouple] != 1)
58
    {
59
        obj_grillbynpc_womandog.image_speed = 0.25;
60
        obj_grillbynpc_mandog.image_speed = 0.25;
61
        global.msg[0] = 
* Hey,Delay 11 Sans.
* (Hi,Delay 11 Sans.)Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_164")
;
62
        mydialoguer = instance_create(0, 0, obj_dialoguer);
63
        talkedto += 1;
64
        con = 7.2;
65
    }
66
}
67
if (con == 7.1)
68
{
69
    con = 6.2;
70
    alarm[2] = 20;
71
}
72
if (con == 7.2 && instance_exists(OBJ_WRITER) == 0)
73
{
74
    if (global.flag[53 status_dogcouple] != 1)
75
    {
76
        with (obj_grillbynpc_womandog)
77
            image_speed = 0;
78
        with (obj_grillbynpc_mandog)
79
            image_speed = 0;
80
    }
81
    sprite_index = rsprite;
82
    image_speed = 0.2;
83
    hspeed = 3;
84
    alarm[2] = 11;
85
    con = 8;
86
    obj_mainchara.hspeed = 1;
87
    obj_mainchara.image_speed = 0.2;
88
}
89
if (con == 9)
90
{
91
    global.msc = 0;
92
    global.typer = 5;
93
    global.facechoice = 0;
94
    global.faceemotion = 0;
95
    hspeed = 0;
96
    obj_mainchara.hspeed = 0;
97
    obj_mainchara.facing = 1;
98
    obj_mainchara.image_speed = 0;
99
    image_speed = 0;
100
    sprite_index = rtsprite;
101
    obj_grillbynpc_foodmonster.image_speed = 0.25;
102
    obj_grillbynpc_hotandbothered.image_speed = 0.25;
103
    global.msg[0] = 
* Greetings,Delay 11 Sans.
* Hiya,Delay 11 Sansy~Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_208")
;
104
    mydialoguer = instance_create(0, 0, obj_dialoguer);
105
    talkedto += 1;
106
    con = 10;
107
}
108
if (con == 10 && instance_exists(OBJ_WRITER) == 0)
109
{
110
    obj_grillbynpc_foodmonster.image_speed = 0;
111
    obj_grillbynpc_hotandbothered.image_speed = 0;
112
    sprite_index = usprite;
113
    obj_mainchara.facing = 2;
114
    global.facing = 2;
115
    image_speed = 0.2;
116
    vspeed = -2;
117
    alarm[2] = 26;
118
    con = 11;
119
    obj_mainchara.vspeed = -3;
120
    obj_mainchara.image_speed = 0.2;
121
}
122
if (con == 12)
123
{
124
    global.msc = 0;
125
    global.typer = 5;
126
    global.facechoice = 0;
127
    global.faceemotion = 0;
128
    vspeed = 0;
129
    obj_mainchara.vspeed = 0;
130
    obj_mainchara.facing = 3;
131
    global.facing = 3;
132
    image_index = 0;
133
    obj_mainchara.image_speed = 0;
134
    image_speed = 0;
135
    sprite_index = ltsprite;
136
    obj_townnpc_weirdfish.image_speed = 0.2;
137
    global.msg[0] = 
* Hey Sans,Delay 11 weren't you just
here for breakfast a
few minutes ago?Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_245")
;
138
    scr_sansface
scr_sansface

global.msg[argument0] = "\TS \F0 \E" + string(argument1) + " \F3 \Ts %";
(1, 0);
139
    global.msg[2] = 
* nah,Delay 11 i haven't had
breakfast in at least
half an hour.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_247")
;
140
    global.msg[3] = 
\E2* you must be thinking
of brunch.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_248")
;
141
    mydialoguer = instance_create(0, 0, obj_dialoguer);
142
    talkedto += 1;
143
    con = 13;
144
}
145
if (con == 13 && instance_exists(OBJ_WRITER) == 0)
146
{
147
    obj_townnpc_weirdfish.image_speed = 0.5;
148
    obj_grillbynpc_hot2.image_speed = 0.5;
149
    obj_grillbynpc_foodmonster.image_speed = 0.5;
150
    with (obj_grillbynpc_womandog)
151
        image_speed = 0.5;
152
    with (obj_grillbynpc_mandog)
153
        image_speed = 0.5;
154
    with (obj_grillbynpc_doggo)
155
        image_speed = 0.5;
156
    obj_grillbynpc_hotandbothered.image_speed = 0.5;
157
    caster_play(rimshot, 1, 1);
158
    sprite_index = spr_sans_shrug2;
159
    alarm[2] = 44;
160
    con = 14;
161
}
162
if (con == 15)
163
{
164
    con = 16;
165
    obj_townnpc_weirdfish.image_speed = 0;
166
    obj_grillbynpc_hot2.image_speed = 0;
167
    obj_grillbynpc_foodmonster.image_speed = 0;
168
    with (obj_grillbynpc_womandog)
169
        image_speed = 0;
170
    with (obj_grillbynpc_mandog)
171
        image_speed = 0;
172
    with (obj_grillbynpc_doggo)
173
        image_speed = 0;
174
    obj_grillbynpc_hotandbothered.image_speed = 0;
175
    with (obj_readablesolid)
176
        image_index = 0;
177
    sprite_index = ltsprite;
178
    image_index = 0;
179
    obj_mainchara.facing = 1;
180
    global.facing = 1;
181
    global.facechoice = 3;
182
    global.faceemotion = 0;
183
    global.msg[0] = 
* here,Delay 11 get comfy.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_286")
;
184
    mydialoguer = instance_create(0, 0, obj_dialoguer);
185
    con = 17;
186
}
187
if (con == 17 && instance_exists(OBJ_WRITER) == 0)
188
{
189
    con = 17.1;
190
    global.phasing = 1;
191
    global.facing = 2;
192
    obj_mainchara.image_speed = 0.25;
193
    image_speed = 0.25;
194
    sprite_index = usprite;
195
    vspeed = -1;
196
    x += 2;
197
    obj_mainchara.vspeed = -1;
198
    if (obj_mainchara.x != 177)
199
        obj_mainchara.x = 177;
200
}
201
if (con == 17.1)
202
{
203
    if (y <= 75)
204
    {
205
        vspeed = 0;
206
        image_speed = 0;
207
        sprite_index = spr_sans_stool_u;
208
        y = 74;
209
    }
210
    if (obj_mainchara.y <= 73)
211
    {
212
        obj_mainchara.y = 73;
213
        obj_mainchara.vspeed = 0;
214
        con = 20;
215
    }
216
}
217
if (con == 20 && instance_exists(OBJ_WRITER) == 0)
218
{
219
    caster_pause(global.currentsong);
220
    caster_play(whoopee, 1, 1);
221
    alarm[2] = 60;
222
    con = 21;
223
}
224
if (con == 22)
225
{
226
    caster_stop(whoopee);
227
    caster_resume(global.currentsong);
228
    global.faceemotion = 1;
229
    global.msc = 570;
230
    mydialoguer = instance_create(0, 0, obj_dialoguer);
231
    con = 23;
232
}
233
if (con == 23 && instance_exists(OBJ_WRITER) == 0)
234
{
235
    sprite_index = spr_sans_stoolcomb;
236
    image_speed = 0.1;
237
    grillby = 1468;
238
    grillby.sprite_index = spr_grillby_l;
239
    grillby.image_speed = 0.25;
240
    grillby.depth = 200000;
241
    grillby.hspeed = -3;
242
    con = 24;
243
    alarm[2] = 37;
244
}
245
if (con == 25)
246
{
247
    grillby.hspeed = 0;
248
    grillby.sprite_index = spr_grillby_u;
249
    grillby.vspeed = -2;
250
    con = 26;
251
    alarm[2] = 15;
252
}
253
if (con == 27)
254
{
255
    grillby.vspeed = 0;
256
    grillby.visible = false;
257
    snd_play(snd_chug);
258
    con = 28;
259
    alarm[2] = 90;
260
}
261
if (con == 29)
262
{
263
    image_index = 0;
264
    image_speed = 0;
265
    sprite_index = spr_sans_stool_l;
266
    global.msc = 572;
267
    instance_create(0, 0, obj_dialoguer);
268
    con = 30;
269
}
270
if (con == 30 && instance_exists(OBJ_WRITER) == 0)
271
{
272
    grillby.visible = true;
273
    grillby.vspeed = 2;
274
    grillby.sprite_index = spr_grillby_d;
275
    con = 32;
276
    alarm[2] = 15;
277
}
278
if (con == 33)
279
{
280
    grillby.sprite_index = spr_grillby_r;
281
    con = 34;
282
    alarm[2] = 47;
283
    grillby.vspeed = 0;
284
    grillby.hspeed = 3;
285
}
286
if (con == 35)
287
{
288
    grillby.image_speed = 0;
289
    grillby.sprite_index = spr_grillby_d;
290
    sprite_index = spr_sans_stool_u;
291
    if (global.flag[391 choice_meal_grillby] == 1)
292
        foodimg = spr_sansfries;
293
    if (global.flag[391 choice_meal_grillby] == 2)
294
        foodimg = spr_sansburger;
295
    food1 = scr_marker
scr_marker

thismarker = instance_create(argument0, argument1, obj_npc_marker); thismarker.visible = true; thismarker.image_speed = 0; thismarker.sprite_index = argument2; return thismarker;
(192, 72, foodimg);
296
    food2 = scr_marker
scr_marker

thismarker = instance_create(argument0, argument1, obj_npc_marker); thismarker.visible = true; thismarker.image_speed = 0; thismarker.sprite_index = argument2; return thismarker;
(208, 72, foodimg);
297
    food1.depth = 190000;
298
    food2.depth = 190000;
299
    con = 36;
300
    alarm[2] = 45;
301
    grillby.hspeed = 0;
302
}
303
if (con == 37)
304
{
305
    grillby.image_speed = 0.25;
306
    grillby.sprite_index = spr_grillby_l;
307
    grillby.hspeed = -3;
308
    alarm[2] = 12;
309
    con = 38;
310
}
311
if (con == 39)
312
{
313
    grillby.sprite_index = spr_npc_grillby;
314
    with (grillby)
315
        depth = scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
();
316
    grillby.hspeed = 0;
317
    grillby.image_speed = 0.25;
318
    global.msc = 574;
319
    instance_create(0, 0, obj_dialoguer);
320
    con = 40;
321
}
322
if (con == 40 && instance_exists(OBJ_WRITER))
323
{
324
    if (OBJ_WRITER.stringno > 0)
325
    {
326
        sprite_index = spr_sans_stool_chup;
327
        image_speed = 0;
328
        image_index = 0;
329
    }
330
}
331
if (con == 40 && instance_exists(OBJ_WRITER) == 0)
332
{
333
    con = 41.5;
334
    if (burg == 2)
335
    {
336
        drink = 0;
337
        con = 40.1;
338
    }
339
}
340
if (con == 40.1)
341
{
342
    if (image_index < 8)
343
    {
344
        image_index += 1;
345
        drink += 1;
346
        if (drink == 1 || drink == 3 || drink == 5 || drink == 7)
347
            snd_play(snd_swallow);
348
        con = 39.2;
349
        alarm[2] = 5;
350
    }
351
    else
352
    {
353
        image_index = 9;
354
        con = 40.3;
355
        alarm[2] = 40;
356
    }
357
}
358
if (con == 40.2)
359
    con = 40.1;
360
if (con == 41.3)
361
{
362
    con = 43;
363
    sprite_index = usprite;
364
}
365
if (con == 41.5)
366
{
367
    sprite_index = spr_sans_stool_l;
368
    global.typer = 5;
369
    global.msc = 0;
370
    global.facechoice = 0;
371
    global.msg[0] = 
* (You tip the ketchup...)Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_521")
;
372
    global.msg[1] = 
* (The cap falls off and all
the ketchup in the bottle
pours onto your food.)Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_522")
;
373
    instance_create(0, 0, obj_dialoguer);
374
    con = 41.6;
375
}
376
if (con == 41.6 && instance_exists(OBJ_WRITER))
377
{
378
    if (OBJ_WRITER.stringno == 1)
379
    {
380
        food1.image_index = 1;
381
        con = 42;
382
    }
383
}
384
if (con == 42 && instance_exists(OBJ_WRITER) == 0)
385
{
386
    if (burg < 2)
387
    {
388
        global.facechoice = 3;
389
        global.typer = 17;
390
        global.msc = 0;
391
        global.faceemotion = 1;
392
        global.msg[0] = 
* whoops.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_545")
;
393
        global.msg[1] = 
\E0* eh, forgeddaboudit.Delay 11
* you can have mine.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_546")
;
394
        global.msg[2] = 
\E1* i'm not hungry anyway.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_547")
;
395
        instance_create(0, 0, obj_dialoguer);
396
    }
397
    con = 43;
398
}
399
if (con == 43 && instance_exists(OBJ_WRITER) == 1)
400
{
401
    if (OBJ_WRITER.stringno == 2)
402
    {
403
        if (food1.x > (food1.xstart - 16))
404
            food1.x -= 2;
405
        if (food2.x > (food2.xstart - 16))
406
            food2.x -= 2;
407
    }
408
}
409
if (con == 43 && instance_exists(OBJ_WRITER) == 0)
410
{
411
    sprite_index = spr_sans_stool_buttscratch;
412
    image_speed = 0.2;
413
    alarm[2] = 90;
414
    con = 44;
415
}
416
if (con == 45)
417
{
418
    image_speed = 0;
419
    image_index = 0;
420
    sprite_index = spr_sans_stool_l;
421
    global.msc = 0;
422
    global.msg[0] = 
* anyway,Delay 11 cool or not,Delay 11
you have to agree
papyrus tries real hard.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_577")
;
423
    global.msg[1] = 
\E0* like how he keeps
trying to be part of
the royal guard.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_578")
;
424
    global.msg[2] = 
\E1* one day,Delay 11 he went to
the house of the head
of the royal guard...Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_579")
;
425
    global.msg[3] = 
\E0* and begged her to
let him be in it.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_580")
;
426
    global.msg[4] = 
\E1* of course,Delay 11 she shut
the door on him because
it was midnight.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_581")
;
427
    global.msg[5] = 
\E0* but the next day,Delay 11 she
woke up and saw him
still waiting there.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_582")
;
428
    global.msg[6] = 
* seeing his dedication,Delay 11
she decided to give
him warrior training.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_583")
;
429
    global.msg[7] = 
\E1* it's,Delay 11 uh,Delay 11 still a
work in progress.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_584")
;
430
    instance_create(0, 0, obj_dialoguer);
431
    con = 46;
432
}
433
if (con == 46 && instance_exists(OBJ_WRITER) == 0)
434
{
435
    sprite_index = spr_sans_stool_u;
436
    alarm[2] = 108;
437
    con = 47;
438
    curvol = caster_get_volume(global.currentsong);
439
    origvol = curvol;
440
}
441
if (con == 47)
442
{
443
    curvol -= 0.01;
444
    caster_set_volume(global.currentsong, curvol);
445
    if (curvol < 0.02)
446
    {
447
        curvol = 0;
448
        caster_pause(global.currentsong);
449
    }
450
}
451
if (con == 48)
452
{
453
    global.msg[0] = 
\E1* oh yeah,Delay 11 I wanted
to ask you something.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_609")
;
454
    con = 49;
455
    instance_create(0, 0, obj_dialoguer);
456
}
457
if (con == 49 && instance_exists(OBJ_WRITER) == 0)
458
{
459
    con = 50;
460
    alarm[2] = 30;
461
}
462
if (con == 51)
463
{
464
    grillby.depth = 200000;
465
    grillby.image_speed = 0;
466
    snd_play(snd_noise);
467
    dark = instance_create(0, 0, obj_npc_marker);
468
    dark.visible = true;
469
    dark.depth = 20;
470
    dark.sprite_index = spr_grillbyshadow;
471
    dark.image_alpha = 0.8;
472
    con = 52;
473
    alarm[2] = 60;
474
}
475
if (con == 53)
476
{
477
    mystvol = 0.4;
478
    caster_loop(mystery, 1, 0.4);
479
    global.msc = 576;
480
    global.faceemotion = 0;
481
    instance_create(0, 0, obj_dialoguer);
482
    con = 54;
483
}
484
if (con == 54 && instance_exists(OBJ_WRITER) == 0)
485
{
486
    caster_resume(global.currentsong);
487
    grillby.image_speed = 0.25;
488
    con = 55;
489
}
490
if (con == 55)
491
{
492
    dark.image_alpha -= 0.02;
493
    if (dark.image_alpha < 0.03)
494
        dark.image_alpha = 0;
495
    curvol += 0.01;
496
    mystvol -= 0.02;
497
    if (mystvol < 0.02)
498
        mystvol = 0;
499
    caster_set_volume(mystery, mystvol);
500
    if (curvol > origvol)
501
    {
502
        curvol = origvol;
503
        con = 56;
504
        caster_stop(mystery);
505
        with (dark)
506
            instance_destroy();
507
    }
508
    caster_set_volume(global.currentsong, curvol);
509
}
510
if (con == 56)
511
{
512
    y += 10;
513
    sprite_index = dsprite;
514
    con = 57;
515
    alarm[2] = 30;
516
}
517
if (con == 58)
518
{
519
    global.facing = 0;
520
    obj_mainchara.facing = 0;
521
    con = 59;
522
}
523
if (con == 59 && instance_exists(OBJ_WRITER) == 0)
524
{
525
    global.msc = 0;
526
    global.msg[0] = 
* welp,Delay 11 that was a
long break.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_683")
;
527
    global.msg[1] = 
\E1* i can't believe i let
ya pull me away from
work for that long.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_684")
;
528
    con = 60;
529
    instance_create(0, 0, obj_dialoguer);
530
}
531
if (con == 60 && instance_exists(OBJ_WRITER) == 0)
532
{
533
    con = 61;
534
    alarm[2] = 30;
535
}
536
if (con == 62)
537
{
538
    sprite_index = utsprite;
539
    global.msc = 578;
540
    instance_create(0, 0, obj_dialoguer);
541
    con = 63;
542
}
543
if (con == 63 && instance_exists(OBJ_WRITER) == 0)
544
{
545
    sprite_index = dsprite;
546
    image_index = 0;
547
    global.msc = 0;
548
    global.msg[0] = 
* just kidding.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_708")
;
549
    global.msg[1] = 
* grillby,Delay 11 put it on
my tab.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_709")
;
550
    con = 64;
551
    instance_create(0, 0, obj_dialoguer);
552
}
553
if (con == 64 && instance_exists(OBJ_WRITER) == 0)
554
{
555
    caster_free(whoopee);
556
    caster_free(mystery);
557
    caster_free(rimshot);
558
    vspeed = 2;
559
    image_speed = 0.25;
560
    con = 66;
561
    alarm[2] = 50;
562
}
563
if (con == 67)
564
{
565
    vspeed = 0;
566
    sprite_index = lsprite;
567
    hspeed = -2;
568
    con = 68;
569
    alarm[2] = 20;
570
}
571
if (con == 69)
572
{
573
    image_speed = 0;
574
    vspeed = 0;
575
    sprite_index = dsprite;
576
    hspeed = 0;
577
    con = 69.1;
578
    alarm[2] = 20;
579
}
580
if (con == 70.1)
581
{
582
    sprite_index = usprite;
583
    global.msg[0] = 
* by the way...Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_751")
;
584
    global.msg[1] = 
* ... i was going to say
something,Delay 11 but i forgot.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_grillbynpc_sansdate_752")
;
585
    gege = instance_create(0, 0, obj_dialoguer);
586
    gege.side = 0;
587
    con = 70.2;
588
}
589
if (con == 70.2 && instance_exists(OBJ_WRITER) == 0)
590
{
591
    image_speed = 0.25;
592
    vspeed = 2;
593
    sprite_index = dsprite;
594
    con = 70;
595
    alarm[2] = 20;
596
}
597
if (con == 71)
598
{
599
    global.phasing = 1;
600
    global.flag[89 dated_sans1] = 2;
601
    obj_mainchara.vspeed = 1;
602
    obj_mainchara.image_speed = 0.25;
603
    con = 72;
604
    alarm[2] = 30;
605
}
606
if (con == 73)
607
{
608
    with (obj_readablesolid)
609
        sansmode = 1;
610
    obj_mainchara.image_speed = 0;
611
    obj_mainchara.vspeed = 0;
612
    global.phasing = 0;
613
    global.interact = 0;
614
    instance_destroy();
615
}