Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_shop_ch2_spamton_Draw_0

related scripts: Alarm_3Alarm_5Create_0Draw_0 Other_11

(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
    menuc[menu] = min(menuc[menu], menumax);
191
    draw_sprite(spr_heart, 0, 450, (135 + (menuc[0] * 20)) * 2);
192
    if (button1_p())
193
    {
194
        onebuffer = 2;
195
        mainmessage = 1;
196
        with (obj_writer)
197
            instance_destroy();
198
        if (menuc[0] == 0)
199
            menu = 1;
200
        if (menuc[0] == 1)
201
            menu = 1;
202
        if (menuc[0] == 2)
203
            menu = 3;
204
        if (menuc[0] == 3)
205
        {
206
            sell = 2;
207
            menu = 4;
208
        }
209
    }
210
}
211
if (menu == 1 || menu == 2)
212
{
213
    draw_set_color(c_white);
214
    
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");
215
    if (menu == 1)
216
        moneytimer++;
217
    if (moneytimer >= 15)
218
    {
219
        buyvalue[0] = floor(random(49030));
220
        buyvalue[1] = 50 + floor(random(100));
221
        buyvalue[2] = 50 + floor(random(100));
222
        buyvalue[3] = 50 + floor(random(100));
223
        moneytimercount++;
224
        if (moneytimercount == 10)
225
        {
226
            buyvalue[0] = floor(random(60));
227
            moneytimercount = 0;
228
        }
229
        runawayscale = -0.1 + random(0.2);
230
        moneytimer = 0;
231
    }
232
    for (i = 0; i < itemtotal; i += 1)
233
    {
234
        draw_set_color(c_white);
235
        if (soldout[i] < 1)
236
        {
237
            draw_text(60, 260 + (i * 40), string_hash_to_newline(shopitemname[i]));
238
            draw_text_transformed(240, 260 + (i * 40), string_hash_to_newline(stringsetsubloc(
Argument â„–11 KROMER
"~1 KROMER", string(buyvalue[i]), "obj_shop_ch2_spamton_slash_Draw_0_gml_337_0"
)), 0.5, 1, 0);
239
        }
240
        else
241
        {
242
            draw_set_color(c_gray);
243
            draw_text(60, 260 + (i * 40), stringsetloc(
--SOLD OUT--
"--SOLD OUT--", "obj_shop_ch2_spamton_slash_Draw_0_gml_339_0"
));
244
        }
245
    }
246
    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);
247
    if (menu == 1)
248
    {
249
        menumax = 4;
250
        if (instance_exists(obj_writer) == false)
251
        {
252
            if (sidemessage == 0)
253
                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"
);
254
            if (sidemessage == 1)
255
            {
256
                _rr = floor(random(10));
257
                msgsetloc(0, 
Face 2DELICIOUS
KROMER
"\\E2DELICIOUS&KROMER", "obj_shop_ch2_spamton_slash_Draw_0_gml_356_0"
);
258
            }
259
            if (sidemessage == 2)
260
                msgsetloc(0, 
Face 2WHAT!?
YOU WERE
SO CLOSE!!
"\\E2WHAT!?&YOU WERE&SO CLOSE!!", "obj_shop_ch2_spamton_slash_Draw_0_gml_359_0"
);
261
            if (sidemessage == 3)
262
                msgsetloc(0, 
Face 2MONEY NO
"\\E2MONEY NO", "obj_shop_ch2_spamton_slash_Draw_0_gml_360_0"
);
263
            if (sidemessage == 4)
264
                msgsetloc(0, 
Face 2YOU HAVE
TOO MUCH

MONEY
"\\E2YOU HAVE&TOO MUCH& &MONEY", "obj_shop_ch2_spamton_slash_Draw_0_gml_361_0"
);
265
            if (sidemessage == 5)
266
                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"
);
267
            if (murder == 1)
268
                global.msg[0] = stringsetloc(
Wait for input*
"/*", "obj_shop1_slash_Draw_0_gml_153_0"
);
269
            instance_create(450, 260, obj_writer);
270
        }
271
        menuc[menu] = min(menuc[menu], menumax);
272
        draw_sprite(spr_heart, 0, 30, 270 + (menuc[1] * 40));
273
        if (button1_p() && onebuffer < 0 && soldout[menuc[1]] != 1)
274
        {
275
            menu = 2;
276
            onebuffer = 2;
277
            with (obj_writer)
278
                instance_destroy();
279
            if (menuc[1] == menumax)
280
                menu = 0;
281
        }
282
        if (button2_p() && twobuffer < 0 && onebuffer < 2)
283
        {
284
            menu = 0;
285
            twobuffer = 2;
286
            minimenuy = 220;
287
            with (obj_writer)
288
                instance_destroy();
289
        }
290
        menuc[2] = 0;
291
    }
292
    if (menu == 2)
293
    {
294
        menumax = 1;
295
        draw_set_color(c_white);
296
        
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");
297
        var y1_off = langopt(260, 290);
298
        var y2_off = langopt(290, 260);
299
        draw_text(460, y1_off, string_hash_to_newline(stringsetloc(
TRANSMIT
"TRANSMIT", "obj_shop_ch2_spamton_slash_Draw_0_gml_379_0"
)));
300
        draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc(
Argument â„–11 KROMER ?
"~1 KROMER ?", string(buyvalue[menuc[1]]), "obj_shop_ch2_spamton_slash_Draw_0_gml_380_0"
)));
301
        draw_text(480, 340, string_hash_to_newline(stringsetloc(
Yes
"Yes", "obj_shop1_slash_Draw_0_gml_169_0"
)));
302
        draw_text(480, 370, string_hash_to_newline(stringsetloc(
No
"No", "obj_shop1_slash_Draw_0_gml_170_0"
)));
303
        menuc[menu] = min(menuc[menu], menumax);
304
        draw_sprite(spr_heart, 0, 450, 350 + (menuc[2] * 30));
305
        if (button2_p() && twobuffer < 0)
306
        {
307
            menu = 1;
308
            sidemessage = 2;
309
            twobuffer = 2;
310
            onebuffer = 2;
311
        }
312
        if (button1_p() && onebuffer < 0 && twobuffer < 0)
313
        {
314
            if (menuc[2] == 0)
315
            {
316
                afford = 0;
317
                if (global.gold >= buyvalue[menuc[1]])
318
                    afford = 1;
319
                if (soldout[menuc[1]] == 1)
320
                    afford = 0;
321
                if (afford == 1)
322
                {
323
                    _pocketed = 0;
324
                    if (itemtype[menuc[1]] == "item")
325
                        
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]]);
326
                    if (itemtype[menuc[1]] == "keyitem")
327
                    {
328
                        if (global.flag[309 spamton_plot] < 3)
329
                        {
330
                            global.flag[309 spamton_plot] = 3;
331
                            
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]]);
332
                            soldout[0] = 1;
333
                        }
334
                    }
335
                    if (itemtype[menuc[1]] == "weapon")
336
                        
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]]);
337
                    if (itemtype[menuc[1]] == "armor")
338
                        
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]]);
339
                    if (noroom == 0)
340
                    {
341
                        global.gold -= buyvalue[menuc[1]];
342
                        snd_play(snd_locker);
343
                        if (_pocketed == 1)
344
                            sidemessage = 5;
345
                        else
346
                            sidemessage = 1;
347
                    }
348
                    if (noroom == 1)
349
                        sidemessage = 4;
350
                }
351
                else
352
                {
353
                    sidemessage = 3;
354
                }
355
            }
356
            if (menuc[2] == 1)
357
                sidemessage = 2;
358
            menu = 1;
359
        }
360
    }
361
    if (menuc[1] != 4)
362
    {
363
        if (minimenuy <= 20)
364
            minimenuy = 20;
365
        if (minimenuy > 20)
366
            minimenuy -= 5;
367
        if (minimenuy > 50)
368
            minimenuy -= 5;
369
        if (minimenuy > 100)
370
            minimenuy -= 8;
371
        if (minimenuy > 150)
372
            minimenuy -= 10;
373
    }
374
    else if (minimenuy < 200)
375
    {
376
        minimenuy += 40;
377
    }
378
    if (minimenuy >= 200)
379
        minimenuy = 200;
380
}
381
if (menu == 3)
382
{
383
    menumax = 4;
384
    draw_set_color(c_white);
385
    
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");
386
    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))
387
    {
388
        draw_text(80, 260, stringsetloc(
OUR DEAL
"OUR DEAL", "obj_shop_ch2_spamton_slash_Draw_0_gml_445_0"
));
389
    }
390
    else
391
    {
392
        draw_set_color(c_yellow);
393
        draw_text(80, 260, stringsetloc(
GIVE DISK
"GIVE DISK", "obj_shop_ch2_spamton_slash_Draw_0_gml_449_0"
));
394
    }
395
    draw_set_color(c_white);
396
    draw_text(80, 300, stringsetloc(
ABOUT YOU
"ABOUT YOU", "obj_shop_ch2_spamton_slash_Draw_0_gml_452_0"
));
397
    if (global.flag[329 talked_spamton_knight] == 0)
398
    {
399
        draw_text(80, 340, stringsetloc(
KNIGHT
"KNIGHT", "obj_shop_ch2_spamton_slash_Draw_0_gml_455_0"
));
400
    }
401
    else
402
    {
403
        draw_set_color(c_yellow);
404
        draw_text(80, 340, stringsetloc(
FRIENDS
"FRIENDS", "obj_shop_ch2_spamton_slash_Draw_0_gml_459_0"
));
405
    }
406
    draw_set_color(c_white);
407
    draw_text(80, 380, stringsetloc(
FEAR
"FEAR", "obj_shop_ch2_spamton_slash_Draw_0_gml_462_0"
));
408
    draw_text(80, 420, stringsetloc(
EXIT AND BUY MORE!!!
"EXIT AND BUY MORE!!!", "obj_shop_ch2_spamton_slash_Draw_0_gml_464_0"
));
409
    if (instance_exists(obj_writer) == false)
410
    {
411
        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"
);
412
        instance_create(440, 260, obj_writer);
413
    }
414
    menuc[menu] = min(menuc[menu], menumax);
415
    draw_sprite(spr_heart, 0, 50, 270 + (menuc[3] * 40));
416
    if (button1_p() && onebuffer < 0)
417
    {
418
        onebuffer = 2;
419
        with (obj_writer)
420
            instance_destroy();
421
        if (menuc[3] < menumax)
422
        {
423
            sell = menuc[3] + 3;
424
            menu = 4;
425
        }
426
        else
427
        {
428
            menu = 0;
429
        }
430
    }
431
    else if (button2_p() && twobuffer < 0 && onebuffer < 0)
432
    {
433
        twobuffer = 2;
434
        menu = 0;
435
        with (obj_writer)
436
            instance_destroy();
437
    }
438
}
439
if (menu == 10)
440
{
441
    menuc[11] = 0;
442
    menuc[12] = 0;
443
    menuc[13] = 0;
444
    menumax = 4;
445
    draw_set_color(c_white);
446
    
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");
447
    draw_text(80, 260, string_hash_to_newline(stringsetloc(
Sell Items
"Sell Items", "obj_shop1_slash_Draw_0_gml_278_0"
)));
448
    draw_text(80, 300, string_hash_to_newline(stringsetloc(
Sell Weapons
"Sell Weapons", "obj_shop1_slash_Draw_0_gml_279_0"
)));
449
    draw_text(80, 340, string_hash_to_newline(stringsetloc(
Sell Armor
"Sell Armor", "obj_shop1_slash_Draw_0_gml_280_0"
)));
450
    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"
)));
451
    draw_text(80, 420, string_hash_to_newline(stringsetloc(
Return
"Return", "obj_shop_ch2_spamton_slash_Draw_0_gml_507_0"
)));
452
    if (instance_exists(obj_writer) == false)
453
    {
454
        if (sidemessage == 0)
455
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_511_0"
);
456
        if (sidemessage == 1)
457
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_512_0"
);
458
        if (sidemessage == 2)
459
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_513_0"
);
460
        instance_create(460, 260, obj_writer);
461
    }
462
    menuc[menu] = min(menuc[menu], menumax);
463
    draw_sprite(spr_heart, 0, 50, 270 + (menuc[10] * 40));
464
    if (button1_p() && onebuffer < 0)
465
    {
466
        pagemax = 0;
467
        sidemessage2 = 0;
468
        onebuffer = 2;
469
        with (obj_writer)
470
            instance_destroy();
471
        can = 1;
472
        idealmenu = menuc[10] + 11;
473
        if (idealmenu == 11)
474
        {
475
            
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);
476
            if (itemcount == 12)
477
            {
478
                sidemessage = 2;
479
                can = 0;
480
            }
481
            nothingcount = itemcount;
482
            
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; } }
();
483
            selltype = "item";
484
            selltotal = 12;
485
            for (i = 0; i < selltotal; i++)
486
            {
487
                itemsellvalue[i] = global.itemvalue[i];
488
                itemsellname[i] = global.itemnameb[i];
489
            }
490
        }
491
        if (idealmenu == 12)
492
        {
493
            
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);
494
            if (itemcount == 12)
495
            {
496
                sidemessage = 2;
497
                can = 0;
498
            }
499
            
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; } }
();
500
        }
501
        if (idealmenu == 13)
502
        {
503
            
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);
504
            if (itemcount == 12)
505
            {
506
                sidemessage = 2;
507
                can = 0;
508
            }
509
            
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; } }
();
510
        }
511
        if (idealmenu == 14)
512
        {
513
            
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);
514
            if (itemcount == global.flag[64 storage_size])
515
            {
516
                sidemessage = 2;
517
                can = 0;
518
            }
519
            selltype = "pocket";
520
            nothingcount = 0;
521
            selltotal = global.flag[64 storage_size];
522
            for (i = 0; i < global.flag[64 storage_size]; i++)
523
            {
524
                
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#Argument â„–11HP
"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]);
525
                itemsellvalue[i] = value;
526
                itemsellname[i] = itemnameb;
527
            }
528
            idealmenu = 11;
529
        }
530
        if (menuc[10] < menumax)
531
        {
532
            if (can == 1)
533
                menu = idealmenu;
534
            sidemessage1 = 0;
535
        }
536
        else
537
        {
538
            menu = 0;
539
        }
540
        submenu = 0;
541
        submenuc[1] = 0;
542
    }
543
    if (button2_p() && twobuffer < 0 && onebuffer < 0)
544
    {
545
        twobuffer = 2;
546
        menu = 0;
547
        with (obj_writer)
548
            instance_destroy();
549
    }
550
}
551
if (menu == 11 || menu == 12 || menu == 13)
552
{
553
    if (instance_exists(obj_writer) == false)
554
    {
555
        if (sidemessage2 == 0 && menu == 11)
556
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_598_0"
);
557
        if (sidemessage2 == 0 && menu == 12)
558
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_599_0"
);
559
        if (sidemessage2 == 0 && menu == 13)
560
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_600_0"
);
561
        if (sidemessage2 == 1)
562
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_601_0"
);
563
        if (sidemessage2 == 2)
564
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_602_0"
);
565
        if (sidemessage2 == 3)
566
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_603_0"
);
567
        if (sidemessage2 == 4)
568
            msgsetloc(0, 
" ", "obj_shop_ch2_spamton_slash_Draw_0_gml_604_0"
);
569
        instance_create(450, 260, obj_writer);
570
    }
571
}
572
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);
573
if (menu == 15 || menu == 16 || menu == 17)
574
{
575
    menumax = 1;
576
    draw_set_color(c_white);
577
    
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");
578
    var y1_off = langopt(260, 290);
579
    var y2_off = langopt(290, 260);
580
    draw_text(460, y1_off, string_hash_to_newline(stringsetloc(
Sell it for
"Sell it for", "obj_shop1_slash_Draw_0_gml_365_0"
)));
581
    draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc(
$Argument â„–11 ?
"$~1 ?", string(sellvalue), "obj_shop_ch2_spamton_slash_Draw_0_gml_619_0"
)));
582
    draw_text(480, 340, string_hash_to_newline(stringsetloc(
Yes
"Yes", "obj_shop1_slash_Draw_0_gml_367_0"
)));
583
    draw_text(480, 370, string_hash_to_newline(stringsetloc(
No
"No", "obj_shop1_slash_Draw_0_gml_368_0"
)));
584
    menuc[menu] = min(menuc[menu], menumax);
585
    draw_sprite(spr_heart, 0, 450, 350 + (menuc[menu] * 30));
586
}
587
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);
588
if (menu == 4)
589
{
590
    if (sell == 0)
591
        menu = 0;
592
    if (instance_exists(obj_writer) == false && selling == 0)
593
    {
594
        selling = 1;
595
        if (sell == 1)
596
        {
597
        }
598
        if (sell == 2)
599
        {
600
            
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");
601
            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"
);
602
            if (global.flag[309 spamton_plot] == 3 || global.flag[309 spamton_plot] == 4)
603
                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"
);
604
            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))
605
                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"
);
606
            if (global.flag[309 spamton_plot] >= 7)
607
                msgsetloc(0, 
Wait for inputClose Message
" /%", "obj_shop_ch2_spamton_slash_Draw_0_gml_650_0"
);
608
        }
609
        if (sell == 3)
610
        {
611
            var condition = 0;
612
            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))
613
                condition = 1;
614
            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))
615
                condition = 2;
616
            if (condition == 1)
617
            {
618
                
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");
619
                msgsetloc(0, 
Face 9* KEYGENWait for inputClose Message
"\\E9* KEYGEN/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_689_0"
);
620
                sell = 10;
621
                snd_pause(global.currentsong[1]);
622
                keygenmusic = snd_init("KEYGEN.ogg");
623
                mus_loop(keygenmusic);
624
            }
625
            if (condition == 0)
626
            {
627
                global.flag[434 talked_our_deal] = 1;
628
                talked_deal++;
629
                if (talked_deal == 1)
630
                {
631
                    
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");
632
                    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"
);
633
                    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"
);
634
                    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"
);
635
                    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"
);
636
                    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"
);
637
                    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"
);
638
                    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"
);
639
                    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"
);
640
                    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"
);
641
                    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"
);
642
                    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"
);
643
                    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"
);
644
                    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"
);
645
                    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"
);
646
                    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"
);
647
                    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"
);
648
                }
649
                else
650
                {
651
                    
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");
652
                    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"
);
653
                    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"
);
654
                }
655
            }
656
            if (condition == 2)
657
            {
658
                sell = 15;
659
                selling = 3;
660
                
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");
661
                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"
);
662
                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"
);
663
                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"
);
664
                msgnextloc(
* THEN WE WILL TRANSFER.Wait for input
"* THEN WE WILL TRANSFER./", "obj_shop_ch2_spamton_slash_Draw_0_gml_702_0"
);
665
                msgnextloc(
Face 7* MY [[Hyperlink Blocked]].Wait for input
"\\E7* MY [[Hyperlink Blocked]]./", "obj_shop_ch2_spamton_slash_Draw_0_gml_703_0"
);
666
                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"
);
667
                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"
);
668
                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"
);
669
                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"
);
670
                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"
);
671
                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"
);
672
                ynchoice = 0;
673
                ynchoicebuffer = 4;
674
            }
675
        }
676
        if (sell == 4)
677
        {
678
            
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");
679
            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"
);
680
            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"
);
681
            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"
);
682
            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"
);
683
            msgnextloc(
Face 7* [[The Big One]]Wait for input
"\\E7* [[The Big One]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_723_0"
);
684
            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"
);
685
            msgnextloc(
Face 6* [[Hyperlink blocked.]]Wait for inputClose Message
"\\E6* [[Hyperlink blocked.]]/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_725_0"
);
686
        }
687
        if (sell == 5)
688
        {
689
            if (global.flag[329 talked_spamton_knight] == 0)
690
            {
691
                global.flag[329 talked_spamton_knight] = 1;
692
                
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");
693
                msgsetloc(0, 
Face 7* SPEAKING OF [[Communion]]Wait for input
"\\E7* SPEAKING OF [[Communion]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_734_0"
);
694
                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"
);
695
                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"
);
696
                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"
);
697
            }
698
            else
699
            {
700
                
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");
701
                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"
);
702
                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"
);
703
                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"
);
704
                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"
);
705
                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"
);
706
                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"
);
707
                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"
);
708
            }
709
        }
710
        if (sell == 6)
711
        {
712
            talked_fear++;
713
            if (talked_fear == 1)
714
            {
715
                
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");
716
                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"
);
717
                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"
);
718
                msgnextloc(
Face 8* ...Wait for input
"\\E8* .../", "obj_shop_ch2_spamton_slash_Draw_0_gml_761_0"
);
719
                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"
);
720
                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"
);
721
                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"
);
722
            }
723
            else
724
            {
725
                
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");
726
                msgsetloc(0, 
Face 0* ...Wait for inputClose Message
"\\E0* .../%", "obj_shop_ch2_spamton_slash_Draw_0_gml_768_0"
);
727
            }
728
        }
729
        instance_create(30, 270, obj_writer);
730
    }
731
    if (sell == 10 && !i_ex(obj_writer))
732
    {
733
        snd_free(keygenmusic);
734
        snd_resume(global.currentsong[1]);
735
        global.fe = 0;
736
        sell = 11;
737
    }
738
    if (selling == 1 && instance_exists(obj_writer) == false)
739
    {
740
        if (sell == 2)
741
        {
742
            selling = 2;
743
            event_user(1);
744
        }
745
        else
746
        {
747
            if (sell == 1 || sell == 7)
748
                menu = 0;
749
            else
750
                menu = 3;
751
            sell = 0;
752
            selling = 0;
753
            global.fe = 0;
754
        }
755
    }
756
    if (selling == 3 && !i_ex(obj_writer))
757
    {
758
        
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");
759
        draw_set_color(c_white);
760
        var stringscale = 5.2;
761
        if (global.lang == "ja")
762
            stringscale = 12;
763
        draw_text_transformed(140, 260, stringsetloc(
TRANSFER
"TRANSFER", "obj_shop_ch2_spamton_slash_Draw_0_gml_800_0"
), stringscale, 12.2, 0);
764
        draw_text(560, 400, stringsetloc(
DO NOT
"DO NOT", "obj_shop_ch2_spamton_slash_Draw_0_gml_801_0"
));
765
        if (right_p())
766
            ynchoice = 1;
767
        if (left_p())
768
            ynchoice = 0;
769
        draw_sprite(spr_heart, 0, 120 + (ynchoice * 400), 400);
770
        ynchoicebuffer--;
771
        if (ynchoicebuffer < 0 && button1_p())
772
        {
773
            if (ynchoice == 0)
774
            {
775
                selling = 4;
776
                
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");
777
                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"
);
778
                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"
);
779
                instance_create(30, 270, obj_writer);
780
            }
781
            else
782
            {
783
                
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");
784
                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"
);
785
                instance_create(30, 270, obj_writer);
786
                selling = 1;
787
            }
788
        }
789
    }
790
    if (selling == 4 && !i_ex(obj_writer))
791
    {
792
        selling = 0;
793
        sell = 0;
794
        menu = 999;
795
        greybg = 1;
796
        global.flag[309 spamton_plot] = 7;
797
        
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);
798
        
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);
799
        
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);
800
        snd_stop(global.currentsong[1]);
801
    }
802
}
803
if (down_p())
804
{
805
    if (menu != 11 && menu != 12 && menu != 13 && greybg != 1)
806
    {
807
        menuc[menu] += 1;
808
        if (menuc[menu] > menumax)
809
            menuc[menu] = 0;
810
    }
811
}
812
if (up_p())
813
{
814
    if (menu != 11 && menu != 12 && menu != 13 && greybg != 1)
815
    {
816
        menuc[menu] -= 1;
817
        if (menuc[menu] < 0)
818
            menuc[menu] = menumax;
819
    }
820
}
821
if (menu < 4 || menu >= 10)
822
{
823
    draw_text(440, 420, string_hash_to_newline(string(global.gold) + stringsetloc(
KROMER
" KROMER", "obj_shop_ch2_spamton_slash_Draw_0_gml_872_0"
)));
824
    if (menu == 1 || menu == 2)
825
    {
826
        if (menuc[1] < 4)
827
        {
828
            if (itemtype[menuc[1]] == "item")
829
                
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);
830
            if (itemtype[menuc[1]] == "armor")
831
                
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);
832
            if (itemtype[menuc[1]] == "weapon")
833
                
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);
834
        }
835
    }
836
}
837
onebuffer -= 1;
838
twobuffer -= 1;
839
song_timer++;
840
if (song_timer == song_max_time)
841
{
842
    with (obj_event_manager)
843
        trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_27);
844
}
845
846
enum UnknownEnum
847
{
848
    Value_0,
849
    Value_27 = 27
850
}