Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_shop_ch2_spamton_Draw_0

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

function
scr_debug()
{ return 0; }
())
2
{
3
}
4
draw_sprite_ext(spr_shop_spamton_bg, 0, 0, 0, 2, 2, 0, c_white, 1);
5
if (greybg == 1)
6
{
7
}
8
else
9
{
10
    glitchtimer++;
11
    glitchtimer2++;
12
    if (glitchtimer == 1)
13
    {
14
        for (i = 0; i < 4; i++)
15
        {
16
            randoml[i] = (sin((siner / 10) + i) * 5) + 10;
17
            randomw[i] = (sin((siner / 11) + i) * 5) + 10;
18
            randomx[i] = (sin((siner / 12) + i) * 10) + 15;
19
        }
20
    }
21
    if (glitchtimer == 3)
22
        glitchtimer = 0;
23
    if (glitchtimer2 == 1)
24
    {
25
        for (i = 0; i < 4; i++)
26
        {
27
            randoml2[i] = random(300);
28
            randomt2[i] = random(200);
29
        }
30
    }
31
    if (glitchtimer2 == 12)
32
        glitchtimer2 = 0;
33
    draw_set_color(c_black);
34
    draw_rectangle(520, 0, 540, 240, false);
35
    for (j = 0; j < 3; j++)
36
    {
37
        draw_sprite_part_ext(spr_shop_spamton_bg, 0, randoml2[j], randomt2[j], 8, 16, j * 16, 0, 2, 2, c_white, 1);
38
        for (i = 0; i < 4; i++)
39
            draw_sprite_part_ext(spr_shop_spamton_bg, 0, 240 + randoml[i], 40 * j, 2 + randomw[i], 40, 480 + randomx[i] + (sin((siner / 10) + j) * 3), j * 80, 2, 2, c_white, 1);
40
    }
41
}
42
draw_sprite_ext(spr_shop_soamton_phone, phoneindex, 556, 114, 2, 2, 0, c_white, 1);
43
trackpos = audio_sound_get_track_position(global.currentsong[1]);
44
if (phoneringing == 0)
45
{
46
    if ((trackpos >= 25.305 && trackpos <= 25.345000000000002) || (trackpos >= 30.892999999999997 && trackpos <= 30.933) || (trackpos >= 36.426 && trackpos <= 36.466))
47
        phoneringing = 1;
48
}
49
if (phoneringing == 1)
50
{
51
    phoneindex += 0.25;
52
    if (phoneindex > 10)
53
    {
54
        phoneindex = 0;
55
        phoneringing = 0;
56
    }
57
}
58
if (global.fe == 0)
59
    draw_sprite_ext(spr_shop_spamton0, 0, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha);
60
if (global.fe == 1)
61
    draw_sprite_ext(spr_shop_spamton2, siner / 8, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha);
62
if (global.fe == 2)
63
    draw_sprite_ext(spr_shop_spamton1, 0, 200 + spamtonx + vibratex, vibratey, 2, 2, 0, c_white, spamtonalpha);
64
if (global.fe == 3)
65
{
66
    mouthsiner++;
67
    draw_sprite_ext(spr_shop_spamton1, 4, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha);
68
    draw_sprite_ext(spr_shop_spamton1, 1, 200 + spamtonx, 6 + (sin(mouthsiner / 1.5) * 18), 2, 2, 0, c_white, spamtonalpha);
69
    draw_sprite_ext(spr_shop_spamton1, 2, 200 + spamtonx, 2 + (sin(mouthsiner / 1.5) * 4), 2, 2, 0, c_white, spamtonalpha);
70
}
71
if (global.fe == 4)
72
{
73
    mouthsiner++;
74
    draw_sprite_ext(spr_shop_spamton1, 4, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha);
75
    draw_sprite_ext(spr_shop_spamton1, 1, 200 + spamtonx, 6 + (sin(mouthsiner) * 18), 2, 2, 0, c_white, spamtonalpha);
76
    draw_sprite_ext(spr_shop_spamton1, 2 + abs(sin(mouthsiner / 4) * 2), 200 + spamtonx, 2 + (sin(mouthsiner) * 4), 2, 2, 0, c_white, spamtonalpha);
77
}
78
if (global.fe == 5)
79
{
80
    mouthsiner++;
81
    draw_sprite_ext(spr_shop_spamton1, 4, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha);
82
    draw_sprite_ext(spr_shop_spamton1, 1, 200 + spamtonx, 6 + (sin(mouthsiner) * 18), 2, 2, 0, c_white, spamtonalpha);
83
    if (sin(mouthsiner / 2) < 0)
84
        draw_sprite_ext(spr_shop_spamton1, 2 + abs(sin(mouthsiner / 4) * 2), 200 + spamtonx + 200, 2 + (sin(mouthsiner) * 4), -2, 2, 0, c_white, spamtonalpha);
85
    else
86
        draw_sprite_ext(spr_shop_spamton1, 2 + abs(sin(mouthsiner / 4) * 2), 200 + spamtonx, 2 + (sin(mouthsiner) * 4), 2, 2, 0, c_white, spamtonalpha);
87
}
88
if (global.fe == 6)
89
{
90
    mouthsiner++;
91
    draw_sprite_ext(spr_shop_spamton1, 4, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha);
92
    draw_sprite_ext(spr_shop_spamton1, 1, 200 + spamtonx, 6 + (sin(mouthsiner) * 18), 2, 2, 0, c_white, spamtonalpha);
93
    if (sin(mouthsiner / 8) < 0.8)
94
        draw_sprite_ext(spr_shop_spamton1, 2 + abs(sin(mouthsiner / 4) * 2), 200 + spamtonx, 2 + (sin(mouthsiner) * 4), 2.4, 2, 0, c_white, spamtonalpha);
95
    else
96
        draw_sprite_ext(spr_shop_spamton4, 1, 200 + spamtonx + vibratex, 2 + (sin(mouthsiner) * 4) + (vibratey * 2), 2.4, 2, 0, c_white, spamtonalpha);
97
}
98
if (global.fe == 7)
99
    draw_sprite_ext(spr_shop_spamton3, 0, 200 + spamtonx + vibratex, vibratey, 2, 2, 0, c_white, spamtonalpha);
100
if (global.fe == 8)
101
{
102
    draw_sprite_part_ext(spr_shop_spamton4, 1, siner % 50, -siner % 30, 58, 60, spamtonx + 260, 12, 2, 2, merge_color(c_white, c_black, abs(cos(siner / 62)) * 0.8), spamtonalpha);
103
    draw_sprite_ext(spr_shop_spamton4, 0, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha);
104
}
105
if (global.fe == 9)
106
    draw_sprite_ext(spr_shop_spamton1, 0, 200 + spamtonx, 0, 2, 2, 0, make_color_hsv((siner * 8) % 255, 60 + (sin(siner / 10) * 15), 255), spamtonalpha);
107
if (global.fe == 0)
108
{
109
    if (pause_music)
110
    {
111
        pause_music = false;
112
        snd_resume(global.currentsong[1]);
113
    }
114
}
115
if (global.fe == 8)
116
{
117
}
118
vibrationtimer++;
119
if (vibrationtimer == 2)
120
{
121
    vibrationtimer = 0;
122
    vibratex = random(6);
123
    vibratey = random(6);
124
}
125
siner++;
126
numbertimer++;
127
if (numbertimer == 10)
128
{
129
    randomnumber = round(random(99999));
130
    randomscale = 1 + random(0.5);
131
    numbertimer = 0;
132
}
133
if (greybg == 1)
134
{
135
    draw_sprite_part_ext(spr_shop_spamton_bg, 1, 0, 0, 320, greybgtimer, 0, 0, 2, 2, c_white, 1);
136
    if (greybgtimer < 120)
137
        greybgtimer += 1;
138
    if (greybgtimer == 120)
139
    {
140
        menu = 4;
141
        sell = 2;
142
        with (obj_writer)
143
            instance_destroy();
144
        snd_stop(global.currentsong[1]);
145
        global.currentsong[1] = mus_play(global.currentsong[0]);
146
        snd_pitch(global.currentsong[1], 0.7);
147
        greybgtimer = 121;
148
    }
149
    if (greybgtimer > 999)
150
    {
151
        draw_set_color(c_black);
152
        draw_rectangle(-100, -100, 999, 999, false);
153
    }
154
}
155
draw_set_color(c_navy);
156
draw_set_color(c_black);
157
draw_rectangle(-1, 240, 650, 900, false);
158
scr_shopmenu
scr_shopmenu

function
scr_shopmenu(arg0)
{ if (arg0 == 0) { if (menu == 1 || menu == 2) {
scr_darkbox_black(400, minimenuy, 640, 255);
draw_set_color(c_white);
scr_84_set_draw_font("mainbig");
if (menuc[1] == 0) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[0])); if (menuc[1] == 1) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[1])); if (menuc[1] == 2) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[2])); if (menuc[1] == 3) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[3]));
scr_84_set_draw_font("dotumche");
if (itemtype[menuc[1]] == "weapon" || itemtype[menuc[1]] == "armor") { for (i = 0; i < 3; i += 1) { can_index = 0; facetype = spr_headkris; which = global.char[i]; if (global.char[i] == 1) facetype = spr_headkris; if (global.char[i] == 2) facetype = spr_headsusie; if (global.char[i] == 3) facetype = spr_headralsei; if (which != 0) { if (i == 0) { locx = 0; locy = 0; } if (i == 1) { locx = 100; locy = 0; } if (i == 2) { locx = 0; locy = 45; } if (canequip[menuc[1]][which] == 0) can_index = 8; draw_sprite(facetype, can_index, 426 + locx, minimenuy + 140 + locy); if (itemtype[menuc[1]] == "weapon" && can_index != 8) { draw_set_color(c_white); sum[0] = itematk[menuc[1]] - global.itemat[which][0]; sum[1] = itemmagic[menuc[1]] - global.itemmag[which][0]; for (j = 0; j < 2; j += 1) { dcolor = c_white; addt = ""; draw_set_color(c_white); if (sum[j] > 0) { draw_set_color(c_yellow); addt = "+"; } if (sum[j] < 0) draw_set_color(c_aqua); draw_sprite_ext(spr_shopicon, j, 470 + locx, minimenuy + locy + 135 + (20 * j), 1, 1, 0, dcolor, 1); draw_text(490 + locx, minimenuy + locy + 135 + (20 * j), string_hash_to_newline(addt + string(sum[j]))); } } if (itemtype[menuc[1]] == "armor" && can_index != 8) { sum[0] = itemdef[menuc[1]] - global.itemdf[which][1]; sum[1] = itemdef[menuc[1]] - global.itemdf[which][2]; for (j = 0; j < 2; j += 1) { dcolor = c_white; addt = ""; draw_set_color(c_white); if (sum[j] > 0) { draw_set_color(c_yellow); addt = "+"; } if (sum[j] < 0) draw_set_color(c_aqua); draw_sprite_ext(spr_shopicon, 2 + j, 470 + locx, minimenuy + locy + 135 + (20 * j), 1, 1, 0, dcolor, 1); draw_text(490 + locx, minimenuy + 135 + (20 * j) + locy, string_hash_to_newline(addt + string(sum[j]))); } } } } } } } if (arg0 == 4) { if (menu == 11 || menu == 15) { ...
(0);
159
if (menu <= 3 || menu >= 10)
160
{
161
    
scr_darkbox_black
scr_darkbox_black

function
scr_darkbox_black(arg0, arg1, arg2, arg3)
{ draw_set_color(c_black); draw_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
}
(0, 240, 415, 480);
162
    
scr_darkbox_black
scr_darkbox_black

function
scr_darkbox_black(arg0, arg1, arg2, arg3)
{ draw_set_color(c_black); draw_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
}
(400, 240, 640, 480);
163
}
164
if (menu == 4)
165
    
scr_darkbox_black
scr_darkbox_black

function
scr_darkbox_black(arg0, arg1, arg2, arg3)
{ draw_set_color(c_black); draw_rectangle(arg0 + 20, arg1 + 20, arg2 - 20, arg3 - 20, false);
scr_darkbox(arg0, arg1, arg2, arg3);
}
(0, 240, 640, 480);
166
if (menu == 0)
167
{
168
    sell = 0;
169
    selling = 0;
170
    sidemessage = 0;
171
    menuc[1] = 0;
172
    menuc[2] = 0;
173
    menuc[3] = 0;
174
    menuc[4] = 0;
175
    if (instance_exists(obj_writer) == false)
176
    {
177
        
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
178
        msgsetloc(0, 
* HURRY UP AND BUY!
"* HURRY UP AND BUY!", "obj_shop_ch2_spamton_slash_Draw_0_gml_272_0"
);
179
        if (mainmessage == 0)
180
            msgsetloc(0, 
* HEY EVERY !
* IT'S ME,Delay 11 SPAMTON G.

SPAMTON!
"* HEY EVERY !&* IT'S ME^1, SPAMTON G.& &SPAMTON!", "obj_shop_ch2_spamton_slash_Draw_0_gml_274_0"
);
181
        instance_create(30, 270, obj_writer);
182
    }
183
    menumax = 3;
184
    draw_set_color(c_white);
185
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
186
    draw_text(480, 260, stringsetloc(
BUY
"BUY", "obj_shop_ch2_spamton_slash_Draw_0_gml_282_0"
));
187
    draw_text(480, 300, stringsetloc(
BUYMORE!!!
"BUYMORE!!!", "obj_shop_ch2_spamton_slash_Draw_0_gml_283_0"
));
188
    draw_text(480, 340, stringsetloc(
TALKING
"TALKING", "obj_shop_ch2_spamton_slash_Draw_0_gml_284_0"
));
189
    draw_text(480, 380, stringsetloc(
ESCAPE
"ESCAPE", "obj_shop_ch2_spamton_slash_Draw_0_gml_285_0"
));
190
    draw_sprite(spr_heart, 0, 450, (135 + (menuc[0] * 20)) * 2);
191
    if (button1_p())
192
    {
193
        onebuffer = 2;
194
        mainmessage = 1;
195
        with (obj_writer)
196
            instance_destroy();
197
        if (menuc[0] == 0)
198
            menu = 1;
199
        if (menuc[0] == 1)
200
            menu = 1;
201
        if (menuc[0] == 2)
202
            menu = 3;
203
        if (menuc[0] == 3)
204
        {
205
            sell = 2;
206
            menu = 4;
207
        }
208
    }
209
}
210
if (menu == 1 || menu == 2)
211
{
212
    draw_set_color(c_white);
213
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
214
    if (menu == 1)
215
        moneytimer++;
216
    if (moneytimer >= 15)
217
    {
218
        buyvalue[0] = floor(random(49030));
219
        buyvalue[1] = 50 + floor(random(100));
220
        buyvalue[2] = 50 + floor(random(100));
221
        buyvalue[3] = 50 + floor(random(100));
222
        moneytimercount++;
223
        if (moneytimercount == 10)
224
        {
225
            buyvalue[0] = floor(random(60));
226
            moneytimercount = 0;
227
        }
228
        runawayscale = -0.1 + random(0.2);
229
        moneytimer = 0;
230
    }
231
    for (i = 0; i < itemtotal; i += 1)
232
    {
233
        draw_set_color(c_white);
234
        if (soldout[i] < 1)
235
        {
236
            draw_text(60, 260 + (i * 40), string_hash_to_newline(shopitemname[i]));
237
            draw_text_transformed(240, 260 + (i * 40), string_hash_to_newline(stringsetsubloc("~1 KROMER", string(buyvalue[i]), "obj_shop_ch2_spamton_slash_Draw_0_gml_337_0")), 0.5, 1, 0);
238
        }
239
        else
240
        {
241
            draw_set_color(c_gray);
242
            draw_text(60, 260 + (i * 40), stringsetloc(
--SOLD OUT--
"--SOLD OUT--", "obj_shop_ch2_spamton_slash_Draw_0_gml_339_0"
));
243
        }
244
    }
245
    draw_text_transformed(60, 260 + (itemtotal * 40), stringsetloc(
RUN AWAY
"RUN AWAY", "obj_shop_ch2_spamton_slash_Draw_0_gml_342_0"
), 2 + runawayscale, 1.4 + runawayscale, 0);
246
    if (menu == 1)
247
    {
248
        menumax = 4;
249
        if (instance_exists(obj_writer) == false)
250
        {
251
            if (sidemessage == 0)
252
                msgsetloc(0, 
Face 0DEALS SO
GOOD I'LL
[$!$$]
MYSELF!
"\\E0DEALS SO&GOOD I'LL&[$!$$]&MYSELF!", "obj_shop_ch2_spamton_slash_Draw_0_gml_352_0"
);
253
            if (sidemessage == 1)
254
            {
255
                _rr = floor(random(10));
256
                msgsetloc(0, 
Face 2DELICIOUS
KROMER
"\\E2DELICIOUS&KROMER", "obj_shop_ch2_spamton_slash_Draw_0_gml_356_0"
);
257
            }
258
            if (sidemessage == 2)
259
                msgsetloc(0, 
Face 2WHAT!?
YOU WERE
SO CLOSE!!
"\\E2WHAT!?&YOU WERE&SO CLOSE!!", "obj_shop_ch2_spamton_slash_Draw_0_gml_359_0"
);
260
            if (sidemessage == 3)
261
                msgsetloc(0, 
Face 2MONEY NO
"\\E2MONEY NO", "obj_shop_ch2_spamton_slash_Draw_0_gml_360_0"
);
262
            if (sidemessage == 4)
263
                msgsetloc(0, 
Face 2YOU HAVE
TOO MUCH

MONEY
"\\E2YOU HAVE&TOO MUCH& &MONEY", "obj_shop_ch2_spamton_slash_Draw_0_gml_361_0"
);
264
            if (sidemessage == 5)
265
                msgsetloc(0, 
Face 2[Storing up
for the
winter!]
"\\E2[Storing up&for the&winter!]", "obj_shop_ch2_spamton_slash_Draw_0_gml_362_0"
);
266
            if (murder == 1)
267
                global.msg[0] = stringsetloc(
Wait for input*
"/*", "obj_shop1_slash_Draw_0_gml_153_0"
);
268
            instance_create(450, 260, obj_writer);
269
        }
270
        draw_sprite(spr_heart, 0, 30, 270 + (menuc[1] * 40));
271
        if (button1_p() && onebuffer < 0 && soldout[menuc[1]] != 1)
272
        {
273
            menu = 2;
274
            onebuffer = 2;
275
            with (obj_writer)
276
                instance_destroy();
277
            if (menuc[1] == menumax)
278
                menu = 0;
279
        }
280
        if (button2_p() && twobuffer < 0 && onebuffer < 2)
281
        {
282
            menu = 0;
283
            twobuffer = 2;
284
            minimenuy = 220;
285
            with (obj_writer)
286
                instance_destroy();
287
        }
288
        menuc[2] = 0;
289
    }
290
    if (menu == 2)
291
    {
292
        menumax = 1;
293
        draw_set_color(c_white);
294
        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
295
        var y1_off = langopt(260, 290);
296
        var y2_off = langopt(290, 260);
297
        draw_text(460, y1_off, string_hash_to_newline(stringsetloc(
TRANSMIT
"TRANSMIT", "obj_shop_ch2_spamton_slash_Draw_0_gml_379_0"
)));
298
        draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc("~1 KROMER ?", string(buyvalue[menuc[1]]), "obj_shop_ch2_spamton_slash_Draw_0_gml_380_0")));
299
        draw_text(480, 340, string_hash_to_newline(stringsetloc(
Yes
"Yes", "obj_shop1_slash_Draw_0_gml_169_0"
)));
300
        draw_text(480, 370, string_hash_to_newline(stringsetloc(
No
"No", "obj_shop1_slash_Draw_0_gml_170_0"
)));
301
        draw_sprite(spr_heart, 0, 450, 350 + (menuc[2] * 30));
302
        if (button2_p() && twobuffer < 0)
303
        {
304
            menu = 1;
305
            sidemessage = 2;
306
            twobuffer = 2;
307
            onebuffer = 2;
308
        }
309
        if (button1_p() && onebuffer < 0 && twobuffer < 0)
310
        {
311
            if (menuc[2] == 0)
312
            {
313
                afford = 0;
314
                if (global.gold >= buyvalue[menuc[1]])
315
                    afford = 1;
316
                if (soldout[menuc[1]] == 1)
317
                    afford = 0;
318
                if (afford == 1)
319
                {
320
                    _pocketed = 0;
321
                    if (itemtype[menuc[1]] == "item")
322
                        
scr_itemget
scr_itemget

function
scr_itemget(arg0)
{ var __i = 0; var loop = 1; noroom = 0; _pocketed = 0; _noroominventory = 0; global.item[12] = 999; while (loop == 1) { if (global.item[__i] == 0) { global.item[__i] = arg0; break; } if (__i == 12) { _noroominventory = 1; noroom = 1; for (var __j = 0; __j < global.flag[64 storage_size]; __j++) { if (global.pocketitem[__j] == 0) { global.pocketitem[__j] = arg0; _pocketed = 1; noroom = 0; break; } } break; } __i += 1; } script_execute(scr_iteminfo_all); }
(item[menuc[1]]);
323
                    if (itemtype[menuc[1]] == "keyitem")
324
                    {
325
                        if (global.flag[309 spamton_plot] < 3)
326
                        {
327
                            global.flag[309 spamton_plot] = 3;
328
                            
scr_keyitemget
scr_keyitemget

function
scr_keyitemget(arg0)
{ i = 0; loop = 1; noroom = 0; global.item[12] = 999; while (loop == 1) { if (global.keyitem[i] == 0) { global.keyitem[i] = arg0; break; } if (i == 12) { noroom = 1; break; } i += 1; } script_execute(scr_keyiteminfo_all); }
(item[menuc[1]]);
329
                            soldout[0] = 1;
330
                        }
331
                    }
332
                    if (itemtype[menuc[1]] == "weapon")
333
                        
scr_weaponget
scr_weaponget

function
scr_weaponget(arg0)
{ noroom = 0; var legacy = 0; var __i = 0; if (legacy == 0) { var __itemcount = 0; __weapon[0] = arg0; for (__i = 0; __i < 48; __i++) { if (global.weapon[__i] != 0) { __weapon[__itemcount + 1] = global.weapon[__i]; __itemcount++; } } if (__itemcount >= 48) { noroom = 1; } else { for (__i = 0; __i < 48; __i++) { if (__i <= __itemcount) global.weapon[__i] = __weapon[__i]; else global.weapon[__i] = 0; } } } else if (legacy) { loop = 1; global.weapon[48] = 999; while (loop == 1) { if (global.weapon[__i] == 0) { global.weapon[__i] = arg0; break; } if (__i == 48) { noroom = 1; break; } __i += 1; } } script_execute(scr_weaponinfo_all); }
(item[menuc[1]]);
334
                    if (itemtype[menuc[1]] == "armor")
335
                        
scr_armorget
scr_armorget

function
scr_armorget(arg0)
{ noroom = 0; var legacy = 0; var __i = 0; if (legacy == 0) { var __itemcount = 0; __armor[0] = arg0; for (__i = 0; __i < 48; __i++) { if (global.armor[__i] != 0) { __armor[__itemcount + 1] = global.armor[__i]; __itemcount++; } } if (__itemcount >= 48) { noroom = 1; } else { for (__i = 0; __i < 48; __i++) { if (__i <= __itemcount) global.armor[__i] = __armor[__i]; else global.armor[__i] = 0; } } } else if (legacy) { loop = 1; global.armor[48] = 999; while (loop == 1) { if (global.armor[__i] == 0) { global.armor[__i] = arg0; break; } if (__i == 48) { noroom = 1; break; } __i += 1; } } script_execute(scr_armorinfo_all); }
(item[menuc[1]]);
336
                    if (noroom == 0)
337
                    {
338
                        global.gold -= buyvalue[menuc[1]];
339
                        snd_play(snd_locker);
340
                        if (_pocketed == 1)
341
                            sidemessage = 5;
342
                        else
343
                            sidemessage = 1;
344
                    }
345
                    if (noroom == 1)
346
                        sidemessage = 4;
347
                }
348
                else
349
                {
350
                    sidemessage = 3;
351
                }
352
            }
353
            if (menuc[2] == 1)
354
                sidemessage = 2;
355
            menu = 1;
356
        }
357
    }
358
    if (menuc[1] != 4)
359
    {
360
        if (minimenuy <= 20)
361
            minimenuy = 20;
362
        if (minimenuy > 20)
363
            minimenuy -= 5;
364
        if (minimenuy > 50)
365
            minimenuy -= 5;
366
        if (minimenuy > 100)
367
            minimenuy -= 8;
368
        if (minimenuy > 150)
369
            minimenuy -= 10;
370
    }
371
    else if (minimenuy < 200)
372
    {
373
        minimenuy += 40;
374
    }
375
    if (minimenuy >= 200)
376
        minimenuy = 200;
377
}
378
if (menu == 3)
379
{
380
    menumax = 4;
381
    draw_set_color(c_white);
382
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
383
    if (!
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(10))
384
    {
385
        draw_text(80, 260, stringsetloc(
OUR DEAL
"OUR DEAL", "obj_shop_ch2_spamton_slash_Draw_0_gml_445_0"
));
386
    }
387
    else
388
    {
389
        draw_set_color(c_yellow);
390
        draw_text(80, 260, stringsetloc(
GIVE DISK
"GIVE DISK", "obj_shop_ch2_spamton_slash_Draw_0_gml_449_0"
));
391
    }
392
    draw_set_color(c_white);
393
    draw_text(80, 300, stringsetloc(
ABOUT YOU
"ABOUT YOU", "obj_shop_ch2_spamton_slash_Draw_0_gml_452_0"
));
394
    if (global.flag[329 talked_spamton_knight] == 0)
395
    {
396
        draw_text(80, 340, stringsetloc(
KNIGHT
"KNIGHT", "obj_shop_ch2_spamton_slash_Draw_0_gml_455_0"
));
397
    }
398
    else
399
    {
400
        draw_set_color(c_yellow);
401
        draw_text(80, 340, stringsetloc(
FRIENDS
"FRIENDS", "obj_shop_ch2_spamton_slash_Draw_0_gml_459_0"
));
402
    }
403
    draw_set_color(c_white);
404
    draw_text(80, 380, stringsetloc(
FEAR
"FEAR", "obj_shop_ch2_spamton_slash_Draw_0_gml_462_0"
));
405
    draw_text(80, 420, stringsetloc(
EXIT AND BUY MORE!!!
"EXIT AND BUY MORE!!!", "obj_shop_ch2_spamton_slash_Draw_0_gml_464_0"
));
406
    if (instance_exists(obj_writer) == false)
407
    {
408
        global.msg[0] = stringsetloc(
Face 0LET'S MAKE
A DEAL.
"\\E0LET'S MAKE&A DEAL.", "obj_shop_ch2_spamton_slash_Draw_0_gml_469_0"
);
409
        instance_create(440, 260, obj_writer);
410
    }
411
    draw_sprite(spr_heart, 0, 50, 270 + (menuc[3] * 40));
412
    if (button1_p() && onebuffer < 0)
413
    {
414
        onebuffer = 2;
415
        with (obj_writer)
416
            instance_destroy();
417
        if (menuc[3] < menumax)
418
        {
419
            sell = menuc[3] + 3;
420
            menu = 4;
421
        }
422
        else
423
        {
424
            menu = 0;
425
        }
426
    }
427
    else if (button2_p() && twobuffer < 0 && onebuffer < 0)
428
    {
429
        twobuffer = 2;
430
        menu = 0;
431
        with (obj_writer)
432
            instance_destroy();
433
    }
434
}
435
if (menu == 10)
436
{
437
    menuc[11] = 0;
438
    menuc[12] = 0;
439
    menuc[13] = 0;
440
    menumax = 4;
441
    draw_set_color(c_white);
442
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
443
    draw_text(80, 260, string_hash_to_newline(stringsetloc(
Sell Items
"Sell Items", "obj_shop1_slash_Draw_0_gml_278_0"
)));
444
    draw_text(80, 300, string_hash_to_newline(stringsetloc(
Sell Weapons
"Sell Weapons", "obj_shop1_slash_Draw_0_gml_279_0"
)));
445
    draw_text(80, 340, string_hash_to_newline(stringsetloc(
Sell Armor
"Sell Armor", "obj_shop1_slash_Draw_0_gml_280_0"
)));
446
    draw_text(80, 380, string_hash_to_newline(stringsetloc(
Sell Pocket Items
"Sell Pocket Items", "obj_shop_ch2_spamton_slash_Draw_0_gml_506_0"
)));
447
    draw_text(80, 420, string_hash_to_newline(stringsetloc(
Return
"Return", "obj_shop_ch2_spamton_slash_Draw_0_gml_507_0"
)));
448
    if (instance_exists(obj_writer) == false)
449
    {
450
        if (sidemessage == 0)
451
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_511_0"
);
452
        if (sidemessage == 1)
453
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_512_0"
);
454
        if (sidemessage == 2)
455
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_513_0"
);
456
        instance_create(460, 260, obj_writer);
457
    }
458
    draw_sprite(spr_heart, 0, 50, 270 + (menuc[10] * 40));
459
    if (button1_p() && onebuffer < 0)
460
    {
461
        pagemax = 0;
462
        sidemessage2 = 0;
463
        onebuffer = 2;
464
        with (obj_writer)
465
            instance_destroy();
466
        can = 1;
467
        idealmenu = menuc[10] + 11;
468
        if (idealmenu == 11)
469
        {
470
            
scr_itemcheck
scr_itemcheck

function
scr_itemcheck(arg0)
{ haveit = 0; itemcount = 0; for (var __i = 0; __i < 12; __i += 1) { if (global.item[__i] == arg0) haveit = 1; if (global.item[__i] == arg0) itemcount += 1; } return haveit; }
(0);
471
            if (itemcount == 12)
472
            {
473
                sidemessage = 2;
474
                can = 0;
475
            }
476
            nothingcount = itemcount;
477
            
scr_iteminfo_all
scr_iteminfo_all

function
scr_iteminfo_all()
{ for (i = 0; i < 12; i += 1) { itemid = global.item[i];
scr_iteminfo(itemid);
global.itemnameb[i] = itemnameb; global.itemdescb[i] = itemdescb; global.itemvalue[i] = value; global.itemusable[i] = usable; } }
();
478
            selltype = "item";
479
            selltotal = 12;
480
            for (i = 0; i < selltotal; i++)
481
            {
482
                itemsellvalue[i] = global.itemvalue[i];
483
                itemsellname[i] = global.itemnameb[i];
484
            }
485
        }
486
        if (idealmenu == 12)
487
        {
488
            
scr_weaponcheck_inventory
scr_weaponcheck_inventory

function
scr_weaponcheck_inventory(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 48; i += 1) { if (global.weapon[i] == arg0) haveit = 1; if (global.weapon[i] == arg0) itemcount += 1; } return haveit; }
(0);
489
            if (itemcount == 12)
490
            {
491
                sidemessage = 2;
492
                can = 0;
493
            }
494
            
scr_weaponinfo_all
scr_weaponinfo_all

function
scr_weaponinfo_all()
{ for (i = 0; i < 48; i += 1) {
scr_weaponinfo(global.weapon[i]);
weaponname[i] = weaponnametemp; weapondesc[i] = weapondesctemp; wmessage2[i] = wmessage2temp; wmessage3[i] = wmessage3temp; wmessage4[i] = wmessage4temp; weaponat[i] = weaponattemp; weapondf[i] = weapondftemp; weaponmag[i] = weaponmagtemp; weaponbolts[i] = weaponboltstemp; weaponstyle[i] = weaponstyletemp; weapongrazeamt[i] = weapongrazeamttemp; weapongrazesize[i] = weapongrazesizetemp; weaponchar1[i] = weaponchar1temp; weaponchar2[i] = weaponchar2temp; weaponchar3[i] = weaponchar3temp; weaponchar4[i] = weaponchar4temp; weaponvalue[i] = value; weaponability[i] = weaponabilitytemp; weaponabilityicon[i] = weaponabilityicontemp; weaponicon[i] = weaponicontemp; } }
();
495
        }
496
        if (idealmenu == 13)
497
        {
498
            
scr_armorcheck_inventory
scr_armorcheck_inventory

function
scr_armorcheck_inventory(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 48; i += 1) { if (global.armor[i] == arg0) haveit = 1; if (global.armor[i] == arg0) itemcount += 1; } return haveit; }
(0);
499
            if (itemcount == 12)
500
            {
501
                sidemessage = 2;
502
                can = 0;
503
            }
504
            
scr_armorinfo_all
scr_armorinfo_all

function
scr_armorinfo_all()
{ for (i = 0; i < 48; i += 1) {
scr_armorinfo(global.armor[i]);
armorname[i] = armornametemp; armordesc[i] = armordesctemp; amessage2[i] = amessage2temp; amessage3[i] = amessage3temp; amessage4[i] = amessage4temp; armorat[i] = armorattemp; armordf[i] = armordftemp; armormag[i] = armormagtemp; armorbolts[i] = armorboltstemp; armorgrazeamt[i] = armorgrazeamttemp; armorgrazesize[i] = armorgrazesizetemp; armorchar1[i] = armorchar1temp; armorchar2[i] = armorchar2temp; armorchar3[i] = armorchar3temp; armorchar4[i] = armorchar4temp; armorvalue[i] = value; armorability[i] = armorabilitytemp; armorabilityicon[i] = armorabilityicontemp; armoricon[i] = armoricontemp; armorelement[i] = armorelementtemp; armorelementamount[i] = armorelementamounttemp; } }
();
505
        }
506
        if (idealmenu == 14)
507
        {
508
            
scr_itemcheck_pocket
scr_itemcheck_pocket

function
scr_itemcheck_pocket(arg0)
{ haveit = 0; itemcount = 0; for (var __i = 0; __i < global.flag[64 storage_size]; __i += 1) { if (global.pocketitem[__i] == arg0) haveit = 1; if (global.pocketitem[__i] == arg0) itemcount += 1; } return haveit; }
(0);
509
            if (itemcount == global.flag[64 storage_size])
510
            {
511
                sidemessage = 2;
512
                can = 0;
513
            }
514
            selltype = "pocket";
515
            nothingcount = 0;
516
            selltotal = global.flag[64 storage_size];
517
            for (i = 0; i < global.flag[64 storage_size]; i++)
518
            {
519
                
scr_iteminfo
scr_iteminfo

function
scr_iteminfo(arg0)
{ usable = 0; replaceable = 0; value = 0; itemtarget = 0; itemnameb = " "; itemdescb = " "; switch (arg0) { case 0: itemnameb = " "; itemdescb = "---"; break; case 1: itemnameb = stringsetloc(
Dark Candy
"Dark Candy", "scr_iteminfo_slash_scr_iteminfo_gml_15_0"
);
itemdescb = stringsetloc(
Heals#40HP
"Heals#40HP", "scr_iteminfo_slash_scr_iteminfo_gml_16_0"
);
itemtarget = 1; value = 25; usable = 1; break; case 2: itemnameb = stringsetloc(
ReviveMint
"ReviveMint", "scr_iteminfo_slash_scr_iteminfo_gml_22_0"
);
itemdescb = stringsetloc(
Heal#Downed#Ally
"Heal#Downed#Ally", "scr_iteminfo_slash_scr_iteminfo_gml_23_0"
);
itemtarget = 1; value = 400; usable = 1; break; case 3: itemnameb = stringsetloc(
Glowshard
"Glowshard", "scr_iteminfo_slash_scr_iteminfo_gml_29_0"
);
itemdescb = stringsetloc(
Sell#at#shops
"Sell#at#shops", "scr_iteminfo_slash_scr_iteminfo_gml_30_0"
);
itemtarget = 0; value = 200 + (global.chapter * 100); usable = 0; break; case 4: itemnameb = stringsetloc(
Manual
"Manual", "scr_iteminfo_slash_scr_iteminfo_gml_36_0"
);
itemdescb = stringsetloc(
Read#out of#battle
"Read#out of#battle", "scr_iteminfo_slash_scr_iteminfo_gml_37_0"
);
itemtarget = 2; value = 1; usable = 0; break; case 5: itemnameb = stringsetloc(
BrokenCake
"BrokenCake", "scr_iteminfo_slash_scr_iteminfo_gml_43_0"
);
itemdescb = stringsetloc(
Heals#20HP
"Heals#20HP", "scr_iteminfo_slash_scr_iteminfo_gml_44_0"
);
itemtarget = 1; value = 5; usable = 1; break; case 6: itemnameb = stringsetloc(
Top Cake
"Top Cake", "scr_iteminfo_slash_scr_iteminfo_gml_50_0"
);
itemdescb = stringsetloc(
Heals#team#160HP
"Heals#team#160HP", "scr_iteminfo_slash_scr_iteminfo_gml_51_0"
);
itemtarget = 2; value = 150; usable = 1; break; case 7: var healamount = (global.chapter == 1) ? 80 : 140; itemnameb = stringsetloc(
Spincake
"Spincake", "scr_iteminfo_slash_scr_iteminfo_gml_58_0"
);
itemdescb = stringsetsubloc("Heals#team#~1HP", string(healamount), "scr_iteminfo_slash_scr_iteminfo_gml_59_0"); itemtarget = 2; value = 5; usable = 1; break; case 8: itemnameb = stringsetloc(
Darkburger
"Darkburger", "scr_iteminfo_slash_scr_iteminfo_gml_65_0"
);
itemdescb = stringsetloc(
Heals#70HP
"Heals#70HP", "scr_iteminfo_slash_scr_iteminfo_gml_66_0"
);
itemtarget = 1; value = 70; usable = 1; break; case 9: itemnameb = stringsetloc(
LancerCookie
"LancerCookie", "scr_iteminfo_slash_scr_iteminfo_gml_72_0"
);
itemdescb = stringsetloc(
Heals#50HP
"Heals#50HP", "scr_iteminfo_slash_scr_iteminfo_gml_73_0"
);
itemtarget = 1; value = 10; usable = 1; break; case 10: itemnameb = stringsetloc(
GigaSalad
"GigaSalad", "scr_iteminfo_slash_scr_iteminfo_gml_79_0"
);
itemdescb = stringsetloc(
Heals#4HP
"Heals#4HP", "scr_iteminfo_slash_scr_iteminfo_gml_80_0"
);
itemtarget = 1; value = 10; usable = 1; break; case 11: itemnameb = stringsetloc(
ClubsSandwich
"ClubsSandwich", "scr_iteminfo_slash_scr_iteminfo_gml_86_0"
);
itemdescb = stringsetloc(
Heals#team#70HP
"Heals#team#70HP", "scr_iteminfo_slash_scr_iteminfo_gml_87_0"
);
itemtarget = 2; value = 70; usable = 1; break; case 12: itemnameb = stringsetloc(
HeartsDonut
"HeartsDonut", "scr_iteminfo_slash_scr_iteminfo_gml_93_0"
);
itemdescb = stringsetloc(
Healing#varies
"Healing#varies", "scr_iteminfo_slash_scr_iteminfo_gml_94_0"
);
itemtarget = 1; value = 40; usable = 1; break; case 13: itemnameb = stringsetloc(
ChocDiamond
"ChocDiamond", "scr_iteminfo_slash_scr_iteminfo_gml_100_0"
);
...
(global.pocketitem[i]);
520
                itemsellvalue[i] = value;
521
                itemsellname[i] = itemnameb;
522
            }
523
            idealmenu = 11;
524
        }
525
        if (menuc[10] < menumax)
526
        {
527
            if (can == 1)
528
                menu = idealmenu;
529
            sidemessage1 = 0;
530
        }
531
        else
532
        {
533
            menu = 0;
534
        }
535
        submenu = 0;
536
        submenuc[1] = 0;
537
    }
538
    if (button2_p() && twobuffer < 0 && onebuffer < 0)
539
    {
540
        twobuffer = 2;
541
        menu = 0;
542
        with (obj_writer)
543
            instance_destroy();
544
    }
545
}
546
if (menu == 11 || menu == 12 || menu == 13)
547
{
548
    if (instance_exists(obj_writer) == false)
549
    {
550
        if (sidemessage2 == 0 && menu == 11)
551
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_598_0"
);
552
        if (sidemessage2 == 0 && menu == 12)
553
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_599_0"
);
554
        if (sidemessage2 == 0 && menu == 13)
555
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_600_0"
);
556
        if (sidemessage2 == 1)
557
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_601_0"
);
558
        if (sidemessage2 == 2)
559
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_602_0"
);
560
        if (sidemessage2 == 3)
561
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_603_0"
);
562
        if (sidemessage2 == 4)
563
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_604_0"
);
564
        instance_create(450, 260, obj_writer);
565
    }
566
}
567
scr_shopmenu
scr_shopmenu

function
scr_shopmenu(arg0)
{ if (arg0 == 0) { if (menu == 1 || menu == 2) {
scr_darkbox_black(400, minimenuy, 640, 255);
draw_set_color(c_white);
scr_84_set_draw_font("mainbig");
if (menuc[1] == 0) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[0])); if (menuc[1] == 1) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[1])); if (menuc[1] == 2) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[2])); if (menuc[1] == 3) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[3]));
scr_84_set_draw_font("dotumche");
if (itemtype[menuc[1]] == "weapon" || itemtype[menuc[1]] == "armor") { for (i = 0; i < 3; i += 1) { can_index = 0; facetype = spr_headkris; which = global.char[i]; if (global.char[i] == 1) facetype = spr_headkris; if (global.char[i] == 2) facetype = spr_headsusie; if (global.char[i] == 3) facetype = spr_headralsei; if (which != 0) { if (i == 0) { locx = 0; locy = 0; } if (i == 1) { locx = 100; locy = 0; } if (i == 2) { locx = 0; locy = 45; } if (canequip[menuc[1]][which] == 0) can_index = 8; draw_sprite(facetype, can_index, 426 + locx, minimenuy + 140 + locy); if (itemtype[menuc[1]] == "weapon" && can_index != 8) { draw_set_color(c_white); sum[0] = itematk[menuc[1]] - global.itemat[which][0]; sum[1] = itemmagic[menuc[1]] - global.itemmag[which][0]; for (j = 0; j < 2; j += 1) { dcolor = c_white; addt = ""; draw_set_color(c_white); if (sum[j] > 0) { draw_set_color(c_yellow); addt = "+"; } if (sum[j] < 0) draw_set_color(c_aqua); draw_sprite_ext(spr_shopicon, j, 470 + locx, minimenuy + locy + 135 + (20 * j), 1, 1, 0, dcolor, 1); draw_text(490 + locx, minimenuy + locy + 135 + (20 * j), string_hash_to_newline(addt + string(sum[j]))); } } if (itemtype[menuc[1]] == "armor" && can_index != 8) { sum[0] = itemdef[menuc[1]] - global.itemdf[which][1]; sum[1] = itemdef[menuc[1]] - global.itemdf[which][2]; for (j = 0; j < 2; j += 1) { dcolor = c_white; addt = ""; draw_set_color(c_white); if (sum[j] > 0) { draw_set_color(c_yellow); addt = "+"; } if (sum[j] < 0) draw_set_color(c_aqua); draw_sprite_ext(spr_shopicon, 2 + j, 470 + locx, minimenuy + locy + 135 + (20 * j), 1, 1, 0, dcolor, 1); draw_text(490 + locx, minimenuy + 135 + (20 * j) + locy, string_hash_to_newline(addt + string(sum[j]))); } } } } } } } if (arg0 == 4) { if (menu == 11 || menu == 15) { ...
(4);
568
if (menu == 15 || menu == 16 || menu == 17)
569
{
570
    menumax = 1;
571
    draw_set_color(c_white);
572
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
573
    var y1_off = langopt(260, 290);
574
    var y2_off = langopt(290, 260);
575
    draw_text(460, y1_off, string_hash_to_newline(stringsetloc(
Sell it for
"Sell it for", "obj_shop1_slash_Draw_0_gml_365_0"
)));
576
    draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc("$~1 ?", string(sellvalue), "obj_shop_ch2_spamton_slash_Draw_0_gml_619_0")));
577
    draw_text(480, 340, string_hash_to_newline(stringsetloc(
Yes
"Yes", "obj_shop1_slash_Draw_0_gml_367_0"
)));
578
    draw_text(480, 370, string_hash_to_newline(stringsetloc(
No
"No", "obj_shop1_slash_Draw_0_gml_368_0"
)));
579
    draw_sprite(spr_heart, 0, 450, 350 + (menuc[menu] * 30));
580
}
581
scr_shopmenu
scr_shopmenu

function
scr_shopmenu(arg0)
{ if (arg0 == 0) { if (menu == 1 || menu == 2) {
scr_darkbox_black(400, minimenuy, 640, 255);
draw_set_color(c_white);
scr_84_set_draw_font("mainbig");
if (menuc[1] == 0) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[0])); if (menuc[1] == 1) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[1])); if (menuc[1] == 2) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[2])); if (menuc[1] == 3) draw_text(440, minimenuy + 28, string_hash_to_newline(shopdesc[3]));
scr_84_set_draw_font("dotumche");
if (itemtype[menuc[1]] == "weapon" || itemtype[menuc[1]] == "armor") { for (i = 0; i < 3; i += 1) { can_index = 0; facetype = spr_headkris; which = global.char[i]; if (global.char[i] == 1) facetype = spr_headkris; if (global.char[i] == 2) facetype = spr_headsusie; if (global.char[i] == 3) facetype = spr_headralsei; if (which != 0) { if (i == 0) { locx = 0; locy = 0; } if (i == 1) { locx = 100; locy = 0; } if (i == 2) { locx = 0; locy = 45; } if (canequip[menuc[1]][which] == 0) can_index = 8; draw_sprite(facetype, can_index, 426 + locx, minimenuy + 140 + locy); if (itemtype[menuc[1]] == "weapon" && can_index != 8) { draw_set_color(c_white); sum[0] = itematk[menuc[1]] - global.itemat[which][0]; sum[1] = itemmagic[menuc[1]] - global.itemmag[which][0]; for (j = 0; j < 2; j += 1) { dcolor = c_white; addt = ""; draw_set_color(c_white); if (sum[j] > 0) { draw_set_color(c_yellow); addt = "+"; } if (sum[j] < 0) draw_set_color(c_aqua); draw_sprite_ext(spr_shopicon, j, 470 + locx, minimenuy + locy + 135 + (20 * j), 1, 1, 0, dcolor, 1); draw_text(490 + locx, minimenuy + locy + 135 + (20 * j), string_hash_to_newline(addt + string(sum[j]))); } } if (itemtype[menuc[1]] == "armor" && can_index != 8) { sum[0] = itemdef[menuc[1]] - global.itemdf[which][1]; sum[1] = itemdef[menuc[1]] - global.itemdf[which][2]; for (j = 0; j < 2; j += 1) { dcolor = c_white; addt = ""; draw_set_color(c_white); if (sum[j] > 0) { draw_set_color(c_yellow); addt = "+"; } if (sum[j] < 0) draw_set_color(c_aqua); draw_sprite_ext(spr_shopicon, 2 + j, 470 + locx, minimenuy + locy + 135 + (20 * j), 1, 1, 0, dcolor, 1); draw_text(490 + locx, minimenuy + 135 + (20 * j) + locy, string_hash_to_newline(addt + string(sum[j]))); } } } } } } } if (arg0 == 4) { if (menu == 11 || menu == 15) { ...
(5);
582
if (menu == 4)
583
{
584
    if (sell == 0)
585
        menu = 0;
586
    if (instance_exists(obj_writer) == false && selling == 0)
587
    {
588
        selling = 1;
589
        if (sell == 1)
590
        {
591
        }
592
        if (sell == 2)
593
        {
594
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
595
            msgsetloc(0, 
Face 2* DON'T FORGET TO
[Like and Subscribe]
FOR MORE
[Hyperlink Blocked]!Wait for inputClose Message
"\\E2* DON'T FORGET TO&[Like and Subscribe]&FOR MORE&[Hyperlink Blocked]!/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_647_0"
);
596
            if (global.flag[309 spamton_plot] == 3 || global.flag[309 spamton_plot] == 4)
597
                msgsetloc(0, 
Face 2* MANSION... BASEMENT!
* FIND IT!!Wait for inputClose Message
"\\E2* MANSION... BASEMENT!&* FIND IT!!/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_648_0"
);
598
            if (
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(10))
599
                msgsetloc(0, 
Face 2* YOU'RE LEAVING!?
* WHAT ABOUT MY DISK!?!?Wait for inputClose Message
"\\E2* YOU'RE LEAVING!?&* WHAT ABOUT MY DISK!?!?/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_649_0"
);
600
            if (global.flag[309 spamton_plot] >= 7)
601
                msgsetloc(0, 
Wait for inputClose Message
" /%", "obj_shop_ch2_spamton_slash_Draw_0_gml_650_0"
);
602
        }
603
        if (sell == 3)
604
        {
605
            var condition = 0;
606
            if (global.flag[434 talked_our_deal] == 1 && 
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(12))
607
                condition = 1;
608
            if (
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(10))
609
                condition = 2;
610
            if (condition == 1)
611
            {
612
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
613
                msgsetloc(0, 
Face 9* KEYGENWait for inputClose Message
"\\E9* KEYGEN/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_689_0"
);
614
                sell = 10;
615
                snd_pause(global.currentsong[1]);
616
                keygenmusic = snd_init("KEYGEN.ogg");
617
                mus_loop(keygenmusic);
618
            }
619
            if (condition == 0)
620
            {
621
                global.flag[434 talked_our_deal] = 1;
622
                talked_deal++;
623
                if (talked_deal == 1)
624
                {
625
                    
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
626
                    msgsetloc(0, 
Face 0* KRIS!!!Delay 11 YOU [Little Sponge]!Delay 11 I KNEW YOU'D COME HERE [[On A Saturday Night]]!Wait for input
"\\E0* KRIS!!^1! YOU [Little Sponge]^1! I KNEW YOU'D COME HERE [[On A Saturday Night]]!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_662_0"
);
627
                    msgnextloc(
Face 3* AFTER ALL,Delay 11 YOU WANNA BE A [Big Shot]! EAHAHAHAHAA!!Wait for input
"\\E3* AFTER ALL^1, YOU WANNA BE A [Big Shot]! EAHAHAHAHAA!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_663_0"
);
628
                    msgnextloc(
Face 0* BUT HOW? HOW CAN YOU BE?Wait for input
"\\E0* BUT HOW? HOW CAN YOU BE?/", "obj_shop_ch2_spamton_slash_Draw_0_gml_664_0"
);
629
                    msgnextloc(
Face 2* LISTEN. IN THE [Deep Abyss] OF QUEEN'S [Mansion]Wait for input
"\\E2* LISTEN. IN THE [Deep Abyss] OF QUEEN'S [Mansion]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_665_0"
);
630
                    msgnextloc(
Face 3* [[A Great Deal]] IS WAITING For [[A LimiTed Time Only!]]
* A HEAVEN-PIERCING [[Workout-Ready Body]]Wait for input
"\\E3* [[A Great Deal]] IS WAITING For [[A LimiTed Time Only!]]&* A HEAVEN-PIERCING [[Workout-Ready Body]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_666_0"
);
631
                    msgnextloc(
Face 4* [[Designed BY The Classics You've Come To Expect!Delay 11 (C)1997]]Wait for input
"\\E4* [[Designed BY The Classics You've Come To Expect^1! (C)1997]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_667_0"
);
632
                    msgnextloc(
Face 0* KRIS THAT [Little Nipper] IS OUR [One-way Ticket] TO MAKE YOU [Big]. MAKE ME [Big].Wait for input
"\\E0* KRIS THAT [Little Nipper] IS OUR [One-way Ticket] TO MAKE YOU [Big]. MAKE ME [Big]./", "obj_shop_ch2_spamton_slash_Draw_0_gml_668_0"
);
633
                    msgnextloc(
Face 2* BEFORE YOU KNOW IT WE WILL BE TAKING [ A Ride around Town on Our Specil Cungadero]Wait for input
"\\E2* BEFORE YOU KNOW IT WE WILL BE TAKING [ A Ride around Town on Our Specil Cungadero]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_669_0"
);
634
                    msgnextloc(
Face 3* VACATIONING IN [Burning acid] WHILE YOU SOAK IN THE [Hyperlink Blocked].Wait for input
"\\E3* VACATIONING IN [Burning acid] WHILE YOU SOAK IN THE [Hyperlink Blocked]./", "obj_shop_ch2_spamton_slash_Draw_0_gml_670_0"
);
635
                    msgnextloc(
Face 0* BUT KRIS DON'T [Breathe] YET!! THE WAY IS LOCKED BY [High Quality Encryption]!!!Wait for input
"\\E0* BUT KRIS DON'T [Breathe] YET!! THE WAY IS LOCKED BY [High Quality Encryption]!!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_671_0"
);
636
                    msgnextloc(
Face 1* YOU WILL NEVER GET INSIDE.Wait for input
"\\E1* YOU WILL NEVER GET INSIDE./", "obj_shop_ch2_spamton_slash_Draw_0_gml_672_0"
);
637
                    msgnextloc(
Face 5* WAIT KRIS LOOK!! HEAR THOSE [Balloons]??? YOU ARE [1000th Customer]!!.Wait for input
"\\E5* WAIT KRIS LOOK!! HEAR THOSE [Balloons]??? YOU ARE [1000th Customer]!!./", "obj_shop_ch2_spamton_slash_Draw_0_gml_673_0"
);
638
                    msgnextloc(
Face 2* AS A [Commemorative Ring] I WILL LET YOU BUY [KeyGen] FROM ME AT [The Low Low Price Of]Wait for input
"\\E2* AS A [Commemorative Ring] I WILL LET YOU BUY [KeyGen] FROM ME AT [The Low Low Price Of]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_674_0"
);
639
                    msgnextloc(
Face 4* WHAT DO YOU THINK!?!? IT'S SUCH A STEAL,Delay 11 I'M [$!X$]ING MYSELF!!!Wait for input
"\\E4* WHAT DO YOU THINK!?!? IT'S SUCH A STEAL^1, I'M [$!X$]ING MYSELF!!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_675_0"
);
640
                    msgnextloc(
Face 5* TAKE THIS DEAL AND YOU WILL [[Die]]!!
* IT'S THAT GOOD!!!Wait for input
"\\E5* TAKE THIS DEAL AND YOU WILL [[Die]]!!&* IT'S THAT GOOD!!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_676_0"
);
641
                    msgnextloc(
Face 0* [BUY] THE KEYGEN FROM ME,Delay 11 UNLOCK THE BASEMENT, AND GET THAT EmptyDisk!!!Wait for inputClose Message
"\\E0* [BUY] THE KEYGEN FROM ME^1, UNLOCK THE BASEMENT, AND GET THAT EmptyDisk!!!/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_677_0"
);
642
                }
643
                else
644
                {
645
                    
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
646
                    msgsetloc(0, 
Face 2* KRIS!! BUY [KeyGen] FROM ME AND GO TO QUEEN'S MANSION'S [Luxurious Basement Apartment]!!Wait for input
"\\E2* KRIS!! BUY [KeyGen] FROM ME AND GO TO QUEEN'S MANSION'S [Luxurious Basement Apartment]!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_681_0"
);
647
                    msgnextloc(
Face 7* WHAT!? GO MYSELF!? KRIS!!!!! NO!!!!!
* THE MEN INSIDE WOULD
* THE MEN INSIDE WOULDWait for inputClose Message
"\\E7* WHAT!? GO MYSELF!? KRIS!!!!! NO!!!!!&* THE MEN INSIDE WOULD&* THE MEN INSIDE WOULD/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_682_0"
);
648
                }
649
            }
650
            if (condition == 2)
651
            {
652
                sell = 15;
653
                selling = 3;
654
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
655
                msgsetloc(0, 
Face 4* KRIS!!!Delay 11 YOU DID IT!!Delay 11 YOU [[Funky]] LITTLE [[Worm]]!Delay 11 YOU BROUGHT ME THE DISK!!Wait for input
"\\E4* KRIS!!^1! YOU DID IT!^1! YOU [[Funky]] LITTLE [[Worm]]^1! YOU BROUGHT ME THE DISK!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_699_0"
);
656
                msgnextloc(
Face 5* HOCHI MAMA!!!! I CAN FEEL THAT [Smooth Taste] ALREADY!!Wait for input
"\\E5* HOCHI MAMA!!!! I CAN FEEL THAT [Smooth Taste] ALREADY!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_700_0"
);
657
                msgnextloc(
Face 7* ...Delay 11 NOW KRIS. DON'T BE GREEDY. HAND OVER. THE DISK.Wait for input
"\\E7* ..^1. NOW KRIS. DON'T BE GREEDY. HAND OVER. THE DISK./", "obj_shop_ch2_spamton_slash_Draw_0_gml_701_0"
);
658
                msgnextloc(
* THEN WE WILL TRANSFER.Wait for input
"* THEN WE WILL TRANSFER./", "obj_shop_ch2_spamton_slash_Draw_0_gml_702_0"
);
659
                msgnextloc(
Face 7* MY [[Hyperlink Blocked]].Wait for input
"\\E7* MY [[Hyperlink Blocked]]./", "obj_shop_ch2_spamton_slash_Draw_0_gml_703_0"
);
660
                msgnextloc(
Face 7* THEN. KRIS. AFTER. THIS IS VERY, VERY IMPORTANT.Wait for input
"\\E7* THEN. KRIS. AFTER. THIS IS VERY, VERY IMPORTANT./", "obj_shop_ch2_spamton_slash_Draw_0_gml_704_0"
);
661
                msgnextloc(
* GO BACK. AND PUT. THE DISK. BACK. WHERE YOU GOT IT.Wait for input
"* GO BACK. AND PUT. THE DISK. BACK. WHERE YOU GOT IT./", "obj_shop_ch2_spamton_slash_Draw_0_gml_705_0"
);
662
                msgnextloc(
Face 3* DO THAT...
* AND YOU HAVE MY [Specil Guaranttee] I WILL [[Pass My Savings Onto You!]]Wait for input
"\\E3* DO THAT...&* AND YOU HAVE MY [Specil Guaranttee] I WILL [[Pass My Savings Onto You!]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_706_0"
);
663
                msgnextloc(
Face 4* EVERY [Big], EVERY [Shot], EVERY [Hyperlink Blocked], ALL YOURS, KRIS.Wait for input
"\\E4* EVERY [Big], EVERY [Shot], EVERY [Hyperlink Blocked], ALL YOURS, KRIS./", "obj_shop_ch2_spamton_slash_Draw_0_gml_707_0"
);
664
                msgnextloc(
* SO WHAT DO YOU SAY? BIG SHOT...Wait for input
"* SO WHAT DO YOU SAY? BIG SHOT.../", "obj_shop_ch2_spamton_slash_Draw_0_gml_708_0"
);
665
                msgnextloc(
Face 0* [[Warning!Delay 11 If you consent to the terms and agreements,Delay 11]]
* [[OUR STORE is PERMANENTLY Closing Down!!]]Wait for inputClose Message
"\\E0* [[Warning^1! If you consent to the terms and agreements^1,]]&* [[OUR STORE is PERMANENTLY Closing Down!!]]/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_709_0"
);
666
                ynchoice = 0;
667
                ynchoicebuffer = 4;
668
            }
669
        }
670
        if (sell == 4)
671
        {
672
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
673
            msgsetloc(0, 
Face 2* I USED TO BE NOTHING BUT THE E_MAIL GUY,Delay 11 NOW I'M THE [[It Burns!Delay 11 Ow!Delay 11 Stop!Delay 11 Help Me!Delay 11 It Burns!]] GUY!Wait for input
"\\E2* I USED TO BE NOTHING BUT THE E_MAIL GUY^1, NOW I'M THE [[It Burns^1! Ow^1! Stop^1! Help Me^1! It Burns!]] GUY!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_719_0"
);
674
            msgnextloc(
Face 6* [[Amazed at thi5 amazing transformation? You too can]] HAVE A [[Communion]] WITH [[Unintelligble Laughter]]Wait for input
"\\E6* [[Amazed at thi5 amazing transformation? You too can]] HAVE A [[Communion]] WITH [[Unintelligble Laughter]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_720_0"
);
675
            msgnextloc(
Face 3* SOON I'LL EVEN SURPASS THAT DAMNED [[Clown Around Town!]]Wait for input
"\\E3* SOON I'LL EVEN SURPASS THAT DAMNED [[Clown Around Town!]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_721_0"
);
676
            msgnextloc(
Face 4* BUT UNLIKE HIM I'M GONNA [[Shoot For the Sky!]] AND GET ON THE PATH TO ...Wait for input
"\\E4* BUT UNLIKE HIM I'M GONNA [[Shoot For the Sky!]] AND GET ON THE PATH TO .../", "obj_shop_ch2_spamton_slash_Draw_0_gml_722_0"
);
677
            msgnextloc(
Face 7* [[The Big One]]Wait for input
"\\E7* [[The Big One]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_723_0"
);
678
            msgnextloc(
Face 6* I'LL GET SO.
* I'LL GET SO.
* I'LL GET SO.
* I'LL GET SO.
* I'LL GET SO.
* I'LL GET SO.Wait for input
"\\E6* I'LL GET SO.&* I'LL GET SO.&* I'LL GET SO.&* I'LL GET SO.&* I'LL GET SO.&* I'LL GET SO./", "obj_shop_ch2_spamton_slash_Draw_0_gml_724_0"
);
679
            msgnextloc(
Face 6* [[Hyperlink blocked.]]Wait for inputClose Message
"\\E6* [[Hyperlink blocked.]]/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_725_0"
);
680
        }
681
        if (sell == 5)
682
        {
683
            if (global.flag[329 talked_spamton_knight] == 0)
684
            {
685
                global.flag[329 talked_spamton_knight] = 1;
686
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
687
                msgsetloc(0, 
Face 7* SPEAKING OF [[Communion]]Wait for input
"\\E7* SPEAKING OF [[Communion]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_734_0"
);
688
                msgnextloc(
Face 2* KRIS,Delay 11 DID YOU KNOW THAT THE KNIGHT...Wait for input
"\\E2* KRIS^1, DID YOU KNOW THAT THE KNIGHT.../", "obj_shop_ch2_spamton_slash_Draw_0_gml_735_0"
);
689
                msgnextloc(
Face 6* No,Delay 11 I'm sorry!Delay 11 I'm sorry!Delay 11 I didn't mean to --Wait for input
"\\E6* No^1, I'm sorry^1! I'm sorry^1! I didn't mean to --/", "obj_shop_ch2_spamton_slash_Draw_0_gml_737_0"
);
690
                msgnextloc(
Face 7* TOO MANY EXCESS VACATION DAYS?? TAKE A GOD DAMN VACATION STRAIGHT TO HELLWait for inputClose Message
"\\E7* TOO MANY EXCESS VACATION DAYS?? TAKE A GOD DAMN VACATION STRAIGHT TO HELL/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_738_0"
);
691
            }
692
            else
693
            {
694
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
695
                msgsetloc(0, 
Face 1* ME? ...Delay 11 FRIENDS?Wait for input
"\\E1* ME? ..^1. FRIENDS?/", "obj_shop_ch2_spamton_slash_Draw_0_gml_742_0"
);
696
                msgnextloc(
Face 2* EAHAEHAEHAEHAEH!!!
* KRIS!Delay 11 YOU AND ME. ARE ALREADY [Friend Request Accepted]Wait for input
"\\E2* EAHAEHAEHAEHAEH!!!&* KRIS^1! YOU AND ME. ARE ALREADY [Friend Request Accepted]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_743_0"
);
697
                msgnextloc(
Face 3* WE DON'T NEED ANYONE ELSE!!!Delay 11 WE DON'T NEED [[Easels]] or [[CRTs]]!Wait for input
"\\E3* WE DON'T NEED ANYONE ELSE!!^1! WE DON'T NEED [[Easels]] or [[CRTs]]!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_744_0"
);
698
                msgnextloc(
Face 4* WE DON'T NEED ANY [[Man,Delay 11 Woman,Delay 11 or Child]] [[At Half Price]]!!Wait for input
"\\E4* WE DON'T NEED ANY [[Man^1, Woman^1, or Child]] [[At Half Price]]!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_745_0"
);
699
                msgnextloc(
Face 5* WE DON'T NEED [[MIKE]]!!!Wait for input
"\\E5* WE DON'T NEED [[MIKE]]!!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_746_0"
);
700
                msgnextloc(
Face 8* ...Delay 44
* ...Delay 11 Mike...Wait for input
"\\E8* ..^4.&* ..^1. Mike.../", "obj_shop_ch2_spamton_slash_Draw_0_gml_747_0"
);
701
                msgnextloc(
Face 7* KRIS!!!Delay 11 DON'T BELIEVE [[Anything You See On TV!]]
* THE MAN'S A CRIMINAL,Delay 11 I TELL YOU!!Delay 11 A CRIMINAL!!Wait for inputClose Message
"\\E7* KRIS!!^1! DON'T BELIEVE [[Anything You See On TV!]]&* THE MAN'S A CRIMINAL^1, I TELL YOU!^1! A CRIMINAL!!/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_748_0"
);
702
            }
703
        }
704
        if (sell == 6)
705
        {
706
            talked_fear++;
707
            if (talked_fear == 1)
708
            {
709
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
710
                msgsetloc(0, 
Face 2* WHAT ARE YOU AFRAID OF??? ACCORDING TO [[Encyclopedia of]] [[Being Afraid]]Wait for input
"\\E2* WHAT ARE YOU AFRAID OF??? ACCORDING TO [[Encyclopedia of]] [[Being Afraid]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_758_0"
);
711
                msgnextloc(
Face 3* THERE'S NOTHING TO FEAR EXCEPTWait for input
"\\E3* THERE'S NOTHING TO FEAR EXCEPT/", "obj_shop_ch2_spamton_slash_Draw_0_gml_759_0"
);
712
                msgnextloc(
Face 8* ...Wait for input
"\\E8* .../", "obj_shop_ch2_spamton_slash_Draw_0_gml_761_0"
);
713
                msgnextloc(
* ...Delay 11 can anyone hear me? Help...Delay 11Wait for input
"* ..^1. can anyone hear me? Help..^1./", "obj_shop_ch2_spamton_slash_Draw_0_gml_762_0"
);
714
                msgnextloc(
Face 3* HUH??? WHAT?? NO,Delay 11 I DIDN'T HEAR ANYTHING JUST NOW!!!Wait for input
"\\E3* HUH??? WHAT?? NO^1, I DIDN'T HEAR ANYTHING JUST NOW!!!/", "obj_shop_ch2_spamton_slash_Draw_0_gml_763_0"
);
715
                msgnextloc(
Face 7* ...Delay 11 BUT IT SOUNDED LIKE THEY WERE TALKING TO YOU.Wait for inputClose Message
"\\E7* ..^1. BUT IT SOUNDED LIKE THEY WERE TALKING TO YOU./%", "obj_shop_ch2_spamton_slash_Draw_0_gml_764_0"
);
716
            }
717
            else
718
            {
719
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
720
                msgsetloc(0, 
Face 0* ...Wait for inputClose Message
"\\E0* .../%", "obj_shop_ch2_spamton_slash_Draw_0_gml_768_0"
);
721
            }
722
        }
723
        instance_create(30, 270, obj_writer);
724
    }
725
    if (sell == 10 && !i_ex(obj_writer))
726
    {
727
        snd_free(keygenmusic);
728
        snd_resume(global.currentsong[1]);
729
        global.fe = 0;
730
        sell = 11;
731
    }
732
    if (selling == 1 && instance_exists(obj_writer) == false)
733
    {
734
        if (sell == 2)
735
        {
736
            selling = 2;
737
            event_user(1);
738
        }
739
        else
740
        {
741
            if (sell == 1 || sell == 7)
742
                menu = 0;
743
            else
744
                menu = 3;
745
            sell = 0;
746
            selling = 0;
747
            global.fe = 0;
748
        }
749
    }
750
    if (selling == 3 && !i_ex(obj_writer))
751
    {
752
        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("main");
753
        draw_set_color(c_white);
754
        var stringscale = 5.2;
755
        if (global.lang == "ja")
756
            stringscale = 12;
757
        draw_text_transformed(140, 260, stringsetloc(
TRANSFER
"TRANSFER", "obj_shop_ch2_spamton_slash_Draw_0_gml_800_0"
), stringscale, 12.2, 0);
758
        draw_text(560, 400, stringsetloc(
DO NOT
"DO NOT", "obj_shop_ch2_spamton_slash_Draw_0_gml_801_0"
));
759
        if (right_p())
760
            ynchoice = 1;
761
        if (left_p())
762
            ynchoice = 0;
763
        draw_sprite(spr_heart, 0, 120 + (ynchoice * 400), 400);
764
        ynchoicebuffer--;
765
        if (ynchoicebuffer < 0 && button1_p())
766
        {
767
            if (ynchoice == 0)
768
            {
769
                selling = 4;
770
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
771
                msgsetloc(0, 
Face 3* FINALLY!!!Delay 11 I KNEW YOU WOULD [[Request Accepted]]Wait for input
"\\E3* FINALLY!!^1! I KNEW YOU WOULD [[Request Accepted]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_813_0"
);
772
                msgnextloc(
Face 5* KRIS!!!Delay 11 HERE I GO!!!Delay 11 BEGIN THE [[Transfer]]Wait for inputClose Message
"\\E5* KRIS!!^1! HERE I GO!!^1! BEGIN THE [[Transfer]]/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_814_0"
);
773
                instance_create(30, 270, obj_writer);
774
            }
775
            else
776
            {
777
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("spamton");
778
                msgsetloc(0, 
Face 7* TURNING DOWN A BELOVED [[Stranger]]...Delay 11 THAT'S NOT VERY [[Big Shot]] OF YOU,Delay 11 KRIS.Wait for inputClose Message
"\\E7* TURNING DOWN A BELOVED [[Stranger]]..^1. THAT'S NOT VERY [[Big Shot]] OF YOU^1, KRIS./%", "obj_shop_ch2_spamton_slash_Draw_0_gml_820_0"
);
779
                instance_create(30, 270, obj_writer);
780
                selling = 1;
781
            }
782
        }
783
    }
784
    if (selling == 4 && !i_ex(obj_writer))
785
    {
786
        selling = 0;
787
        sell = 0;
788
        menu = 999;
789
        greybg = 1;
790
        global.flag[309 spamton_plot] = 7;
791
        
scr_keyitemremove
scr_keyitemremove

function
scr_keyitemremove(arg0)
{ removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1) { loc = 0; skip = 0; if (global.keyitem[0] == arg0 && skip == 0) { loc = 0; skip = 1; } if (global.keyitem[1] == arg0 && skip == 0) { loc = 1; skip = 1; } if (global.keyitem[2] == arg0 && skip == 0) { loc = 2; skip = 1; } if (global.keyitem[3] == arg0 && skip == 0) { loc = 3; skip = 1; } if (global.keyitem[4] == arg0 && skip == 0) { loc = 4; skip = 1; } if (global.keyitem[5] == arg0 && skip == 0) { loc = 5; skip = 1; } if (global.keyitem[6] == arg0 && skip == 0) { loc = 6; skip = 1; } if (global.keyitem[7] == arg0 && skip == 0) { loc = 7; skip = 1; } if (global.keyitem[8] == arg0 && skip == 0) { loc = 8; skip = 1; } if (global.keyitem[9] == arg0 && skip == 0) { loc = 9; skip = 1; } if (global.keyitem[10] == arg0 && skip == 0) { loc = 10; skip = 1; } if (global.keyitem[11] == arg0 && skip == 0) { loc = 11; skip = 1; }
scr_keyitemshift(loc, 0);
removed = 1; } }
(10);
792
        
scr_keyitemremove
scr_keyitemremove

function
scr_keyitemremove(arg0)
{ removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1) { loc = 0; skip = 0; if (global.keyitem[0] == arg0 && skip == 0) { loc = 0; skip = 1; } if (global.keyitem[1] == arg0 && skip == 0) { loc = 1; skip = 1; } if (global.keyitem[2] == arg0 && skip == 0) { loc = 2; skip = 1; } if (global.keyitem[3] == arg0 && skip == 0) { loc = 3; skip = 1; } if (global.keyitem[4] == arg0 && skip == 0) { loc = 4; skip = 1; } if (global.keyitem[5] == arg0 && skip == 0) { loc = 5; skip = 1; } if (global.keyitem[6] == arg0 && skip == 0) { loc = 6; skip = 1; } if (global.keyitem[7] == arg0 && skip == 0) { loc = 7; skip = 1; } if (global.keyitem[8] == arg0 && skip == 0) { loc = 8; skip = 1; } if (global.keyitem[9] == arg0 && skip == 0) { loc = 9; skip = 1; } if (global.keyitem[10] == arg0 && skip == 0) { loc = 10; skip = 1; } if (global.keyitem[11] == arg0 && skip == 0) { loc = 11; skip = 1; }
scr_keyitemshift(loc, 0);
removed = 1; } }
(12);
793
        
scr_keyitemget
scr_keyitemget

function
scr_keyitemget(arg0)
{ i = 0; loop = 1; noroom = 0; global.item[12] = 999; while (loop == 1) { if (global.keyitem[i] == 0) { global.keyitem[i] = arg0; break; } if (i == 12) { noroom = 1; break; } i += 1; } script_execute(scr_keyiteminfo_all); }
(11);
794
        snd_stop(global.currentsong[1]);
795
    }
796
}
797
if (down_p())
798
{
799
    if (menu != 11 && menu != 12 && menu != 13 && greybg != 1)
800
    {
801
        menuc[menu] += 1;
802
        if (menuc[menu] > menumax)
803
            menuc[menu] = 0;
804
    }
805
}
806
if (up_p())
807
{
808
    if (menu != 11 && menu != 12 && menu != 13 && greybg != 1)
809
    {
810
        menuc[menu] -= 1;
811
        if (menuc[menu] < 0)
812
            menuc[menu] = menumax;
813
    }
814
}
815
if (menu < 4 || menu >= 10)
816
{
817
    draw_text(440, 420, string_hash_to_newline(string(global.gold) + stringsetloc(
KROMER
" KROMER", "obj_shop_ch2_spamton_slash_Draw_0_gml_872_0"
)));
818
    if (menu == 1 || menu == 2)
819
    {
820
        if (menuc[1] < 4)
821
        {
822
            if (itemtype[menuc[1]] == "item")
823
                
scr_itemcheck_inventory_and_pocket
scr_itemcheck_inventory_and_pocket

function
scr_itemcheck_inventory_and_pocket(arg0)
{ var _haveeither = 0; var itemcounttotal = 0;
scr_itemcheck(arg0);
if (haveit == 1) _haveeither = 1; itemcounttotal += itemcount;
scr_itemcheck_pocket(arg0);
if (haveit == 1) _haveeither = 1; itemcounttotal += itemcount; haveit = _haveeither; itemcount = itemcounttotal; return haveit; }
(0);
824
            if (itemtype[menuc[1]] == "armor")
825
                
scr_armorcheck_inventory
scr_armorcheck_inventory

function
scr_armorcheck_inventory(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 48; i += 1) { if (global.armor[i] == arg0) haveit = 1; if (global.armor[i] == arg0) itemcount += 1; } return haveit; }
(0);
826
            if (itemtype[menuc[1]] == "weapon")
827
                
scr_weaponcheck_inventory
scr_weaponcheck_inventory

function
scr_weaponcheck_inventory(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 48; i += 1) { if (global.weapon[i] == arg0) haveit = 1; if (global.weapon[i] == arg0) itemcount += 1; } return haveit; }
(0);
828
        }
829
    }
830
}
831
onebuffer -= 1;
832
twobuffer -= 1;
833
song_timer++;
834
if (song_timer == song_max_time)
835
{
836
    with (obj_event_manager)
837
        trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_27);
838
}
839
840
enum UnknownEnum
841
{
842
    Value_0,
843
    Value_27 = 27
844
}