1 |
if (scr_debug()) |
2 |
{ |
3 |
for (i = 0; i < 10; i++) |
4 |
{ |
5 |
if (keyboard_check_pressed(ord(string(i)))) |
6 |
global.fe = i; |
7 |
} |
8 |
} |
9 |
draw_sprite_ext(spr_shop_spamton_bg, 0, 0, 0, 2, 2, 0, c_white, 1); |
10 |
if (greybg == 1) |
11 |
{ |
12 |
} |
13 |
else |
14 |
{ |
15 |
glitchtimer++; |
16 |
glitchtimer2++; |
17 |
if (glitchtimer == 1) |
18 |
{ |
19 |
for (i = 0; i < 4; i++) |
20 |
{ |
21 |
randoml[i] = (sin((siner / 10) + i) * 5) + 10; |
22 |
randomw[i] = (sin((siner / 11) + i) * 5) + 10; |
23 |
randomx[i] = (sin((siner / 12) + i) * 10) + 15; |
24 |
} |
25 |
} |
26 |
if (glitchtimer == 3) |
27 |
glitchtimer = 0; |
28 |
if (glitchtimer2 == 1) |
29 |
{ |
30 |
for (i = 0; i < 4; i++) |
31 |
{ |
32 |
randoml2[i] = random(300); |
33 |
randomt2[i] = random(200); |
34 |
} |
35 |
} |
36 |
if (glitchtimer2 == 12) |
37 |
glitchtimer2 = 0; |
38 |
draw_set_color(c_black); |
39 |
draw_rectangle(520, 0, 540, 240, false); |
40 |
for (j = 0; j < 3; j++) |
41 |
{ |
42 |
draw_sprite_part_ext(spr_shop_spamton_bg, 0, randoml2[j], randomt2[j], 8, 16, j * 16, 0, 2, 2, c_white, 1); |
43 |
for (i = 0; i < 4; i++) |
44 |
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); |
45 |
} |
46 |
} |
47 |
draw_sprite_ext(spr_shop_soamton_phone, phoneindex, 556, 114, 2, 2, 0, c_white, 1); |
48 |
trackpos = audio_sound_get_track_position(global.currentsong[1]); |
49 |
if (phoneringing == 0) |
50 |
{ |
51 |
if ((trackpos >= 25.305 && trackpos <= 25.345000000000002) || (trackpos >= 30.892999999999997 && trackpos <= 30.933) || (trackpos >= 36.426 && trackpos <= 36.466)) |
52 |
phoneringing = 1; |
53 |
} |
54 |
if (phoneringing == 1) |
55 |
{ |
56 |
phoneindex += 0.25; |
57 |
if (phoneindex > 10) |
58 |
{ |
59 |
phoneindex = 0; |
60 |
phoneringing = 0; |
61 |
} |
62 |
} |
63 |
if (global.fe == 0) |
64 |
draw_sprite_ext(spr_shop_spamton0, 0, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha); |
65 |
if (global.fe == 1) |
66 |
draw_sprite_ext(spr_shop_spamton2, siner / 8, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha); |
67 |
if (global.fe == 2) |
68 |
draw_sprite_ext(spr_shop_spamton1, 0, 200 + spamtonx + vibratex, vibratey, 2, 2, 0, c_white, spamtonalpha); |
69 |
if (global.fe == 3) |
70 |
{ |
71 |
mouthsiner++; |
72 |
draw_sprite_ext(spr_shop_spamton1, 4, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha); |
73 |
draw_sprite_ext(spr_shop_spamton1, 1, 200 + spamtonx, 6 + (sin(mouthsiner / 1.5) * 18), 2, 2, 0, c_white, spamtonalpha); |
74 |
draw_sprite_ext(spr_shop_spamton1, 2, 200 + spamtonx, 2 + (sin(mouthsiner / 1.5) * 4), 2, 2, 0, c_white, spamtonalpha); |
75 |
} |
76 |
if (global.fe == 4) |
77 |
{ |
78 |
mouthsiner++; |
79 |
draw_sprite_ext(spr_shop_spamton1, 4, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha); |
80 |
draw_sprite_ext(spr_shop_spamton1, 1, 200 + spamtonx, 6 + (sin(mouthsiner) * 18), 2, 2, 0, c_white, spamtonalpha); |
81 |
draw_sprite_ext(spr_shop_spamton1, 2 + abs(sin(mouthsiner / 4) * 2), 200 + spamtonx, 2 + (sin(mouthsiner) * 4), 2, 2, 0, c_white, spamtonalpha); |
82 |
} |
83 |
if (global.fe == 5) |
84 |
{ |
85 |
mouthsiner++; |
86 |
draw_sprite_ext(spr_shop_spamton1, 4, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha); |
87 |
draw_sprite_ext(spr_shop_spamton1, 1, 200 + spamtonx, 6 + (sin(mouthsiner) * 18), 2, 2, 0, c_white, spamtonalpha); |
88 |
if (sin(mouthsiner / 2) < 0) |
89 |
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); |
90 |
else |
91 |
draw_sprite_ext(spr_shop_spamton1, 2 + abs(sin(mouthsiner / 4) * 2), 200 + spamtonx, 2 + (sin(mouthsiner) * 4), 2, 2, 0, c_white, spamtonalpha); |
92 |
} |
93 |
if (global.fe == 6) |
94 |
{ |
95 |
mouthsiner++; |
96 |
draw_sprite_ext(spr_shop_spamton1, 4, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha); |
97 |
draw_sprite_ext(spr_shop_spamton1, 1, 200 + spamtonx, 6 + (sin(mouthsiner) * 18), 2, 2, 0, c_white, spamtonalpha); |
98 |
if (sin(mouthsiner / 8) < 0.8) |
99 |
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); |
100 |
else |
101 |
draw_sprite_ext(spr_shop_spamton4, 1, 200 + spamtonx + vibratex, 2 + (sin(mouthsiner) * 4) + (vibratey * 2), 2.4, 2, 0, c_white, spamtonalpha); |
102 |
} |
103 |
if (global.fe == 7) |
104 |
draw_sprite_ext(spr_shop_spamton3, 0, 200 + spamtonx + vibratex, vibratey, 2, 2, 0, c_white, spamtonalpha); |
105 |
if (global.fe == 8) |
106 |
{ |
107 |
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); |
108 |
draw_sprite_ext(spr_shop_spamton4, 0, 200 + spamtonx, 0, 2, 2, 0, c_white, spamtonalpha); |
109 |
} |
110 |
if (global.fe == 9) |
111 |
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); |
112 |
if (global.fe == 0) |
113 |
{ |
114 |
if (pause_music) |
115 |
{ |
116 |
pause_music = false; |
117 |
snd_resume(global.currentsong[1]); |
118 |
} |
119 |
} |
120 |
if (global.fe == 8) |
121 |
{ |
122 |
} |
123 |
vibrationtimer++; |
124 |
if (vibrationtimer == 2) |
125 |
{ |
126 |
vibrationtimer = 0; |
127 |
vibratex = random(6); |
128 |
vibratey = random(6); |
129 |
} |
130 |
siner++; |
131 |
numbertimer++; |
132 |
if (numbertimer == 10) |
133 |
{ |
134 |
randomnumber = round(random(99999)); |
135 |
randomscale = 1 + random(0.5); |
136 |
numbertimer = 0; |
137 |
} |
138 |
if (greybg == 1) |
139 |
{ |
140 |
draw_sprite_part_ext(spr_shop_spamton_bg, 1, 0, 0, 320, greybgtimer, 0, 0, 2, 2, c_white, 1); |
141 |
if (greybgtimer < 120) |
142 |
greybgtimer += 1; |
143 |
if (greybgtimer == 120) |
144 |
{ |
145 |
menu = 4; |
146 |
sell = 2; |
147 |
with (obj_writer) |
148 |
instance_destroy(); |
149 |
snd_stop(global.currentsong[1]); |
150 |
global.currentsong[1] = mus_play(global.currentsong[0]); |
151 |
snd_pitch(global.currentsong[1], 0.7); |
152 |
greybgtimer = 121; |
153 |
} |
154 |
if (greybgtimer > 999) |
155 |
{ |
156 |
draw_set_color(c_black); |
157 |
draw_rectangle(-100, -100, 999, 999, false); |
158 |
} |
159 |
} |
160 |
draw_set_color(c_navy); |
161 |
draw_set_color(c_black); |
162 |
draw_rectangle(-1, 240, 650, 900, false); |
163 |
scr_shopmenuscr_shopmenufunction 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); |
164 |
if (menu <= 3 || menu >= 10) |
165 |
{ |
166 |
scr_darkbox_blackscr_darkbox_blackfunction 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); |
167 |
scr_darkbox_blackscr_darkbox_blackfunction 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); |
168 |
} |
169 |
if (menu == 4) |
170 |
scr_darkbox_blackscr_darkbox_blackfunction 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); |
171 |
if (menu == 0) |
172 |
{ |
173 |
sell = 0; |
174 |
selling = 0; |
175 |
sidemessage = 0; |
176 |
menuc[1] = 0; |
177 |
menuc[2] = 0; |
178 |
menuc[3] = 0; |
179 |
menuc[4] = 0; |
180 |
if (instance_exists(obj_writer) == false) |
181 |
{ |
182 |
scr_speakerscr_speakerfunction 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"); |
183 |
msgsetloc(0, * HURRY UP AND BUY!"* HURRY UP AND BUY!", "obj_shop_ch2_spamton_slash_Draw_0_gml_272_0" ); |
184 |
if (mainmessage == 0) |
185 |
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" ); |
186 |
instance_create(30, 270, obj_writer); |
187 |
} |
188 |
menumax = 3; |
189 |
draw_set_color(c_white); |
190 |
scr_84_set_draw_font("mainbig"); |
191 |
draw_text(480, 260, stringsetloc(BUY"BUY", "obj_shop_ch2_spamton_slash_Draw_0_gml_282_0" )); |
192 |
draw_text(480, 300, stringsetloc(BUYMORE!!!"BUYMORE!!!", "obj_shop_ch2_spamton_slash_Draw_0_gml_283_0" )); |
193 |
draw_text(480, 340, stringsetloc(TALKING"TALKING", "obj_shop_ch2_spamton_slash_Draw_0_gml_284_0" )); |
194 |
draw_text(480, 380, stringsetloc(ESCAPE"ESCAPE", "obj_shop_ch2_spamton_slash_Draw_0_gml_285_0" )); |
195 |
draw_sprite(spr_heart, 0, 450, (135 + (menuc[0] * 20)) * 2); |
196 |
if (button1_p()) |
197 |
{ |
198 |
onebuffer = 2; |
199 |
mainmessage = 1; |
200 |
with (obj_writer) |
201 |
instance_destroy(); |
202 |
if (menuc[0] == 0) |
203 |
menu = 1; |
204 |
if (menuc[0] == 1) |
205 |
menu = 1; |
206 |
if (menuc[0] == 2) |
207 |
menu = 3; |
208 |
if (menuc[0] == 3) |
209 |
{ |
210 |
sell = 2; |
211 |
menu = 4; |
212 |
} |
213 |
} |
214 |
} |
215 |
if (menu == 1 || menu == 2) |
216 |
{ |
217 |
draw_set_color(c_white); |
218 |
scr_84_set_draw_font("mainbig"); |
219 |
if (menu == 1) |
220 |
moneytimer++; |
221 |
if (moneytimer >= 15) |
222 |
{ |
223 |
buyvalue[0] = floor(random(49030)); |
224 |
buyvalue[1] = 50 + floor(random(100)); |
225 |
buyvalue[2] = 50 + floor(random(100)); |
226 |
buyvalue[3] = 50 + floor(random(100)); |
227 |
moneytimercount++; |
228 |
if (moneytimercount == 10) |
229 |
{ |
230 |
buyvalue[0] = floor(random(60)); |
231 |
moneytimercount = 0; |
232 |
} |
233 |
runawayscale = -0.1 + random(0.2); |
234 |
moneytimer = 0; |
235 |
} |
236 |
for (i = 0; i < itemtotal; i += 1) |
237 |
{ |
238 |
draw_set_color(c_white); |
239 |
if (soldout[i] < 1) |
240 |
{ |
241 |
draw_text(60, 260 + (i * 40), string_hash_to_newline(shopitemname[i])); |
242 |
draw_text_transformed(240, 260 + (i * 40), string_hash_to_newline(stringsetsubloc("~1 KROMER", string(buyvalue[i]), "obj_shop_ch2_spamton_slash_Draw_0_gml_337_0")), 0.5, 1, 0); |
243 |
} |
244 |
else |
245 |
{ |
246 |
draw_set_color(c_gray); |
247 |
draw_text(60, 260 + (i * 40), stringsetloc(--SOLD OUT--"--SOLD OUT--", "obj_shop_ch2_spamton_slash_Draw_0_gml_339_0" )); |
248 |
} |
249 |
} |
250 |
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); |
251 |
if (menu == 1) |
252 |
{ |
253 |
menumax = 4; |
254 |
if (instance_exists(obj_writer) == false) |
255 |
{ |
256 |
if (sidemessage == 0) |
257 |
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" ); |
258 |
if (sidemessage == 1) |
259 |
{ |
260 |
_rr = floor(random(10)); |
261 |
msgsetloc(0, Face 2DELICIOUS KROMER"\\E2DELICIOUS&KROMER", "obj_shop_ch2_spamton_slash_Draw_0_gml_356_0" ); |
262 |
} |
263 |
if (sidemessage == 2) |
264 |
msgsetloc(0, Face 2WHAT!? YOU WERE SO CLOSE!!"\\E2WHAT!?&YOU WERE&SO CLOSE!!", "obj_shop_ch2_spamton_slash_Draw_0_gml_359_0" ); |
265 |
if (sidemessage == 3) |
266 |
msgsetloc(0, Face 2MONEY NO"\\E2MONEY NO", "obj_shop_ch2_spamton_slash_Draw_0_gml_360_0" ); |
267 |
if (sidemessage == 4) |
268 |
msgsetloc(0, Face 2YOU HAVE TOO MUCH
MONEY"\\E2YOU HAVE&TOO MUCH& &MONEY", "obj_shop_ch2_spamton_slash_Draw_0_gml_361_0" ); |
269 |
if (sidemessage == 5) |
270 |
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" ); |
271 |
if (murder == 1) |
272 |
global.msg[0] = stringsetloc(Wait for input*"/*", "obj_shop1_slash_Draw_0_gml_153_0" ); |
273 |
instance_create(450, 260, obj_writer); |
274 |
} |
275 |
draw_sprite(spr_heart, 0, 30, 270 + (menuc[1] * 40)); |
276 |
if (button1_p() && onebuffer < 0 && soldout[menuc[1]] != 1) |
277 |
{ |
278 |
menu = 2; |
279 |
onebuffer = 2; |
280 |
with (obj_writer) |
281 |
instance_destroy(); |
282 |
if (menuc[1] == menumax) |
283 |
menu = 0; |
284 |
} |
285 |
if (button2_p() && twobuffer < 0 && onebuffer < 2) |
286 |
{ |
287 |
menu = 0; |
288 |
twobuffer = 2; |
289 |
minimenuy = 220; |
290 |
with (obj_writer) |
291 |
instance_destroy(); |
292 |
} |
293 |
menuc[2] = 0; |
294 |
} |
295 |
if (menu == 2) |
296 |
{ |
297 |
menumax = 1; |
298 |
draw_set_color(c_white); |
299 |
scr_84_set_draw_font("mainbig"); |
300 |
var y1_off = langopt(260, 290); |
301 |
var y2_off = langopt(290, 260); |
302 |
draw_text(460, y1_off, string_hash_to_newline(stringsetloc(TRANSMIT"TRANSMIT", "obj_shop_ch2_spamton_slash_Draw_0_gml_379_0" ))); |
303 |
draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc("~1 KROMER ?", string(buyvalue[menuc[1]]), "obj_shop_ch2_spamton_slash_Draw_0_gml_380_0"))); |
304 |
draw_text(480, 340, string_hash_to_newline(stringsetloc(Yes"Yes", "obj_shop1_slash_Draw_0_gml_169_0" ))); |
305 |
draw_text(480, 370, string_hash_to_newline(stringsetloc(No"No", "obj_shop1_slash_Draw_0_gml_170_0" ))); |
306 |
draw_sprite(spr_heart, 0, 450, 350 + (menuc[2] * 30)); |
307 |
if (button2_p() && twobuffer < 0) |
308 |
{ |
309 |
menu = 1; |
310 |
sidemessage = 2; |
311 |
twobuffer = 2; |
312 |
onebuffer = 2; |
313 |
} |
314 |
if (button1_p() && onebuffer < 0 && twobuffer < 0) |
315 |
{ |
316 |
if (menuc[2] == 0) |
317 |
{ |
318 |
afford = 0; |
319 |
if (global.gold >= buyvalue[menuc[1]]) |
320 |
afford = 1; |
321 |
if (soldout[menuc[1]] == 1) |
322 |
afford = 0; |
323 |
if (afford == 1) |
324 |
{ |
325 |
_pocketed = 0; |
326 |
if (itemtype[menuc[1]] == "item") |
327 |
scr_itemgetscr_itemgetfunction 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)
{
debug_message("Placed in pocket :" + string(__j));
global.pocketitem[__j] = arg0;
_pocketed = 1;
noroom = 0;
break;
}
}
break;
}
__i += 1;
}
script_execute(scr_iteminfo_all);
debug_message("noroom=" + string(noroom));
debug_message("_pocketed=" + string(_pocketed));
debug_message("_noroominventory=" + string(_noroominventory));
} (item[menuc[1]]); |
328 |
if (itemtype[menuc[1]] == "keyitem") |
329 |
{ |
330 |
if (global.flag[309 spamton_plot] < 3) |
331 |
{ |
332 |
global.flag[309 spamton_plot] = 3; |
333 |
scr_keyitemgetscr_keyitemgetfunction 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]]); |
334 |
soldout[0] = 1; |
335 |
} |
336 |
} |
337 |
if (itemtype[menuc[1]] == "weapon") |
338 |
scr_weapongetscr_weapongetfunction 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]]); |
339 |
if (itemtype[menuc[1]] == "armor") |
340 |
scr_armorgetscr_armorgetfunction 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]]); |
341 |
if (noroom == 0) |
342 |
{ |
343 |
global.gold -= buyvalue[menuc[1]]; |
344 |
snd_play(snd_locker); |
345 |
if (_pocketed == 1) |
346 |
sidemessage = 5; |
347 |
else |
348 |
sidemessage = 1; |
349 |
} |
350 |
if (noroom == 1) |
351 |
sidemessage = 4; |
352 |
} |
353 |
else |
354 |
{ |
355 |
sidemessage = 3; |
356 |
} |
357 |
} |
358 |
if (menuc[2] == 1) |
359 |
sidemessage = 2; |
360 |
menu = 1; |
361 |
} |
362 |
} |
363 |
if (menuc[1] != 4) |
364 |
{ |
365 |
if (minimenuy <= 20) |
366 |
minimenuy = 20; |
367 |
if (minimenuy > 20) |
368 |
minimenuy -= 5; |
369 |
if (minimenuy > 50) |
370 |
minimenuy -= 5; |
371 |
if (minimenuy > 100) |
372 |
minimenuy -= 8; |
373 |
if (minimenuy > 150) |
374 |
minimenuy -= 10; |
375 |
} |
376 |
else if (minimenuy < 200) |
377 |
{ |
378 |
minimenuy += 40; |
379 |
} |
380 |
if (minimenuy >= 200) |
381 |
minimenuy = 200; |
382 |
} |
383 |
if (menu == 3) |
384 |
{ |
385 |
menumax = 4; |
386 |
draw_set_color(c_white); |
387 |
scr_84_set_draw_font("mainbig"); |
388 |
if (!scr_keyitemcheckscr_keyitemcheckfunction 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)) |
389 |
{ |
390 |
draw_text(80, 260, stringsetloc(OUR DEAL"OUR DEAL", "obj_shop_ch2_spamton_slash_Draw_0_gml_445_0" )); |
391 |
} |
392 |
else |
393 |
{ |
394 |
draw_set_color(c_yellow); |
395 |
draw_text(80, 260, stringsetloc(GIVE DISK"GIVE DISK", "obj_shop_ch2_spamton_slash_Draw_0_gml_449_0" )); |
396 |
} |
397 |
draw_set_color(c_white); |
398 |
draw_text(80, 300, stringsetloc(ABOUT YOU"ABOUT YOU", "obj_shop_ch2_spamton_slash_Draw_0_gml_452_0" )); |
399 |
if (global.flag[329 talked_spamton_knight] == 0) |
400 |
{ |
401 |
draw_text(80, 340, stringsetloc(KNIGHT"KNIGHT", "obj_shop_ch2_spamton_slash_Draw_0_gml_455_0" )); |
402 |
} |
403 |
else |
404 |
{ |
405 |
draw_set_color(c_yellow); |
406 |
draw_text(80, 340, stringsetloc(FRIENDS"FRIENDS", "obj_shop_ch2_spamton_slash_Draw_0_gml_459_0" )); |
407 |
} |
408 |
draw_set_color(c_white); |
409 |
draw_text(80, 380, stringsetloc(FEAR"FEAR", "obj_shop_ch2_spamton_slash_Draw_0_gml_462_0" )); |
410 |
draw_text(80, 420, stringsetloc(EXIT AND BUY MORE!!!"EXIT AND BUY MORE!!!", "obj_shop_ch2_spamton_slash_Draw_0_gml_464_0" )); |
411 |
if (instance_exists(obj_writer) == false) |
412 |
{ |
413 |
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" ); |
414 |
instance_create(440, 260, obj_writer); |
415 |
} |
416 |
draw_sprite(spr_heart, 0, 50, 270 + (menuc[3] * 40)); |
417 |
if (button1_p() && onebuffer < 0) |
418 |
{ |
419 |
onebuffer = 2; |
420 |
with (obj_writer) |
421 |
instance_destroy(); |
422 |
if (menuc[3] < menumax) |
423 |
{ |
424 |
sell = menuc[3] + 3; |
425 |
menu = 4; |
426 |
} |
427 |
else |
428 |
{ |
429 |
menu = 0; |
430 |
} |
431 |
} |
432 |
else if (button2_p() && twobuffer < 0 && onebuffer < 0) |
433 |
{ |
434 |
twobuffer = 2; |
435 |
menu = 0; |
436 |
with (obj_writer) |
437 |
instance_destroy(); |
438 |
} |
439 |
} |
440 |
if (menu == 10) |
441 |
{ |
442 |
menuc[11] = 0; |
443 |
menuc[12] = 0; |
444 |
menuc[13] = 0; |
445 |
menumax = 4; |
446 |
draw_set_color(c_white); |
447 |
scr_84_set_draw_font("mainbig"); |
448 |
draw_text(80, 260, string_hash_to_newline(stringsetloc(Sell Items"Sell Items", "obj_shop1_slash_Draw_0_gml_278_0" ))); |
449 |
draw_text(80, 300, string_hash_to_newline(stringsetloc(Sell Weapons"Sell Weapons", "obj_shop1_slash_Draw_0_gml_279_0" ))); |
450 |
draw_text(80, 340, string_hash_to_newline(stringsetloc(Sell Armor"Sell Armor", "obj_shop1_slash_Draw_0_gml_280_0" ))); |
451 |
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" ))); |
452 |
draw_text(80, 420, string_hash_to_newline(stringsetloc(Return"Return", "obj_shop_ch2_spamton_slash_Draw_0_gml_507_0" ))); |
453 |
if (instance_exists(obj_writer) == false) |
454 |
{ |
455 |
if (sidemessage == 0) |
456 |
msgsetloc(0, " ", "obj_shop_ch2_spamton_slash_Draw_0_gml_511_0" ); |
457 |
if (sidemessage == 1) |
458 |
msgsetloc(0, " ", "obj_shop_ch2_spamton_slash_Draw_0_gml_512_0" ); |
459 |
if (sidemessage == 2) |
460 |
msgsetloc(0, " ", "obj_shop_ch2_spamton_slash_Draw_0_gml_513_0" ); |
461 |
instance_create(460, 260, obj_writer); |
462 |
} |
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_itemcheckscr_itemcheckfunction 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_allscr_iteminfo_allfunction 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(0); |
494 |
if (itemcount == 12) |
495 |
{ |
496 |
sidemessage = 2; |
497 |
can = 0; |
498 |
} |
499 |
scr_weaponinfo_allscr_weaponinfo_allfunction 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(0); |
504 |
if (itemcount == 12) |
505 |
{ |
506 |
sidemessage = 2; |
507 |
can = 0; |
508 |
} |
509 |
scr_armorinfo_allscr_armorinfo_allfunction 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_pocketscr_itemcheck_pocketfunction 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_iteminfoscr_iteminfofunction scr_iteminfo(arg0)
{
usable = 0;
replaceable = 0;
value = 0;
itemtarget = 0;
itemnameb = " ";
itemdescb = " ";
switch (arg0)
{
case 0:
itemnameb = " ";
itemdescb = "---";
break;
case 1:
itemnameb = stringsetloc( Dark Candy"Dark Candy", "scr_iteminfo_slash_scr_iteminfo_gml_15_0" );
itemdescb = stringsetloc( Heals#40HP"Heals#40HP", "scr_iteminfo_slash_scr_iteminfo_gml_16_0" );
itemtarget = 1;
value = 25;
usable = 1;
break;
case 2:
itemnameb = stringsetloc( ReviveMint"ReviveMint", "scr_iteminfo_slash_scr_iteminfo_gml_22_0" );
itemdescb = stringsetloc( Heal#Downed#Ally"Heal#Downed#Ally", "scr_iteminfo_slash_scr_iteminfo_gml_23_0" );
itemtarget = 1;
value = 400;
usable = 1;
break;
case 3:
itemnameb = stringsetloc( Glowshard"Glowshard", "scr_iteminfo_slash_scr_iteminfo_gml_29_0" );
itemdescb = stringsetloc( Sell#at#shops"Sell#at#shops", "scr_iteminfo_slash_scr_iteminfo_gml_30_0" );
itemtarget = 0;
value = 200 + (global.chapter * 100);
usable = 0;
break;
case 4:
itemnameb = stringsetloc( Manual"Manual", "scr_iteminfo_slash_scr_iteminfo_gml_36_0" );
itemdescb = stringsetloc( Read#out of#battle"Read#out of#battle", "scr_iteminfo_slash_scr_iteminfo_gml_37_0" );
itemtarget = 2;
value = 1;
usable = 0;
break;
case 5:
itemnameb = stringsetloc( BrokenCake"BrokenCake", "scr_iteminfo_slash_scr_iteminfo_gml_43_0" );
itemdescb = stringsetloc( Heals#20HP"Heals#20HP", "scr_iteminfo_slash_scr_iteminfo_gml_44_0" );
itemtarget = 1;
value = 5;
usable = 1;
break;
case 6:
itemnameb = stringsetloc( Top Cake"Top Cake", "scr_iteminfo_slash_scr_iteminfo_gml_50_0" );
itemdescb = stringsetloc( Heals#team#160HP"Heals#team#160HP", "scr_iteminfo_slash_scr_iteminfo_gml_51_0" );
itemtarget = 2;
value = 150;
usable = 1;
break;
case 7:
var healamount = (global.chapter == 1) ? 80 : 140;
itemnameb = stringsetloc( Spincake"Spincake", "scr_iteminfo_slash_scr_iteminfo_gml_58_0" );
itemdescb = stringsetsubloc("Heals#team#~1HP", string(healamount), "scr_iteminfo_slash_scr_iteminfo_gml_59_0");
itemtarget = 2;
value = 5;
usable = 1;
break;
case 8:
itemnameb = stringsetloc( Darkburger"Darkburger", "scr_iteminfo_slash_scr_iteminfo_gml_65_0" );
itemdescb = stringsetloc( Heals#70HP"Heals#70HP", "scr_iteminfo_slash_scr_iteminfo_gml_66_0" );
itemtarget = 1;
value = 70;
usable = 1;
break;
case 9:
itemnameb = stringsetloc( LancerCookie"LancerCookie", "scr_iteminfo_slash_scr_iteminfo_gml_72_0" );
itemdescb = stringsetloc( Heals#50HP"Heals#50HP", "scr_iteminfo_slash_scr_iteminfo_gml_73_0" );
itemtarget = 1;
value = 10;
usable = 1;
break;
case 10:
itemnameb = stringsetloc( GigaSalad"GigaSalad", "scr_iteminfo_slash_scr_iteminfo_gml_79_0" );
itemdescb = stringsetloc( Heals#4HP"Heals#4HP", "scr_iteminfo_slash_scr_iteminfo_gml_80_0" );
itemtarget = 1;
value = 10;
usable = 1;
break;
case 11:
itemnameb = stringsetloc( ClubsSandwich"ClubsSandwich", "scr_iteminfo_slash_scr_iteminfo_gml_86_0" );
itemdescb = stringsetloc( Heals#team#70HP"Heals#team#70HP", "scr_iteminfo_slash_scr_iteminfo_gml_87_0" );
itemtarget = 2;
value = 70;
usable = 1;
break;
case 12:
itemnameb = stringsetloc( HeartsDonut"HeartsDonut", "scr_iteminfo_slash_scr_iteminfo_gml_93_0" );
itemdescb = stringsetloc( Healing#varies"Healing#varies", "scr_iteminfo_slash_scr_iteminfo_gml_94_0" );
itemtarget = 1;
value = 40;
usable = 1;
break;
case 13:
itemnameb = stringsetloc( ChocDiamond"ChocDiamond", "scr_iteminfo_slash_scr_iteminfo_gml_100_0" );
... (global.pocketitem[i]); |
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_shopmenuscr_shopmenufunction 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("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("$~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 |
draw_sprite(spr_heart, 0, 450, 350 + (menuc[menu] * 30)); |
585 |
} |
586 |
scr_shopmenuscr_shopmenufunction 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); |
587 |
if (menu == 4) |
588 |
{ |
589 |
if (sell == 0) |
590 |
menu = 0; |
591 |
if (instance_exists(obj_writer) == false && selling == 0) |
592 |
{ |
593 |
selling = 1; |
594 |
if (sell == 1) |
595 |
{ |
596 |
} |
597 |
if (sell == 2) |
598 |
{ |
599 |
scr_speakerscr_speakerfunction 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"); |
600 |
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" ); |
601 |
if (global.flag[309 spamton_plot] == 3 || global.flag[309 spamton_plot] == 4) |
602 |
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" ); |
603 |
if (scr_keyitemcheckscr_keyitemcheckfunction 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)) |
604 |
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" ); |
605 |
if (global.flag[309 spamton_plot] >= 7) |
606 |
msgsetloc(0, Wait for inputClose Message" /%", "obj_shop_ch2_spamton_slash_Draw_0_gml_650_0" ); |
607 |
} |
608 |
if (sell == 3) |
609 |
{ |
610 |
var condition = 0; |
611 |
if (global.flag[434 talked_our_deal] == 1 && scr_keyitemcheckscr_keyitemcheckfunction 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)) |
612 |
condition = 1; |
613 |
if (scr_keyitemcheckscr_keyitemcheckfunction 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)) |
614 |
condition = 2; |
615 |
if (condition == 1) |
616 |
{ |
617 |
scr_speakerscr_speakerfunction 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"); |
618 |
msgsetloc(0, Face 9* KEYGENWait for inputClose Message"\\E9* KEYGEN/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_689_0" ); |
619 |
sell = 10; |
620 |
snd_pause(global.currentsong[1]); |
621 |
keygenmusic = snd_init("KEYGEN.ogg"); |
622 |
mus_loop(keygenmusic); |
623 |
} |
624 |
if (condition == 0) |
625 |
{ |
626 |
global.flag[434 talked_our_deal] = 1; |
627 |
talked_deal++; |
628 |
if (talked_deal == 1) |
629 |
{ |
630 |
scr_speakerscr_speakerfunction 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"); |
631 |
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" ); |
632 |
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" ); |
633 |
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" ); |
634 |
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" ); |
635 |
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" ); |
636 |
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" ); |
637 |
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" ); |
638 |
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" ); |
639 |
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" ); |
640 |
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" ); |
641 |
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" ); |
642 |
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" ); |
643 |
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" ); |
644 |
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" ); |
645 |
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" ); |
646 |
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" ); |
647 |
} |
648 |
else |
649 |
{ |
650 |
scr_speakerscr_speakerfunction 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"); |
651 |
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" ); |
652 |
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" ); |
653 |
} |
654 |
} |
655 |
if (condition == 2) |
656 |
{ |
657 |
sell = 15; |
658 |
selling = 3; |
659 |
scr_speakerscr_speakerfunction 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"); |
660 |
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" ); |
661 |
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" ); |
662 |
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" ); |
663 |
msgnextloc(* THEN WE WILL TRANSFER.Wait for input"* THEN WE WILL TRANSFER./", "obj_shop_ch2_spamton_slash_Draw_0_gml_702_0" ); |
664 |
msgnextloc(Face 7* MY [[Hyperlink Blocked]].Wait for input"\\E7* MY [[Hyperlink Blocked]]./", "obj_shop_ch2_spamton_slash_Draw_0_gml_703_0" ); |
665 |
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" ); |
666 |
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" ); |
667 |
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" ); |
668 |
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" ); |
669 |
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" ); |
670 |
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" ); |
671 |
ynchoice = 0; |
672 |
ynchoicebuffer = 4; |
673 |
} |
674 |
} |
675 |
if (sell == 4) |
676 |
{ |
677 |
scr_speakerscr_speakerfunction 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"); |
678 |
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" ); |
679 |
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" ); |
680 |
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" ); |
681 |
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" ); |
682 |
msgnextloc(Face 7* [[The Big One]]Wait for input"\\E7* [[The Big One]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_723_0" ); |
683 |
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" ); |
684 |
msgnextloc(Face 6* [[Hyperlink blocked.]]Wait for inputClose Message"\\E6* [[Hyperlink blocked.]]/%", "obj_shop_ch2_spamton_slash_Draw_0_gml_725_0" ); |
685 |
} |
686 |
if (sell == 5) |
687 |
{ |
688 |
if (global.flag[329 talked_spamton_knight] == 0) |
689 |
{ |
690 |
global.flag[329 talked_spamton_knight] = 1; |
691 |
scr_speakerscr_speakerfunction 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"); |
692 |
msgsetloc(0, Face 7* SPEAKING OF [[Communion]]Wait for input"\\E7* SPEAKING OF [[Communion]]/", "obj_shop_ch2_spamton_slash_Draw_0_gml_734_0" ); |
693 |
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" ); |
694 |
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" ); |
695 |
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" ); |
696 |
} |
697 |
else |
698 |
{ |
699 |
scr_speakerscr_speakerfunction 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"); |
700 |
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" ); |
701 |
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" ); |
702 |
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" ); |
703 |
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" ); |
704 |
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" ); |
705 |
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" ); |
706 |
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" ); |
707 |
} |
708 |
} |
709 |
if (sell == 6) |
710 |
{ |
711 |
talked_fear++; |
712 |
if (talked_fear == 1) |
713 |
{ |
714 |
scr_speakerscr_speakerfunction 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"); |
715 |
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" ); |
716 |
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" ); |
717 |
msgnextloc(Face 8* ...Wait for input"\\E8* .../", "obj_shop_ch2_spamton_slash_Draw_0_gml_761_0" ); |
718 |
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" ); |
719 |
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" ); |
720 |
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" ); |
721 |
} |
722 |
else |
723 |
{ |
724 |
scr_speakerscr_speakerfunction 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"); |
725 |
msgsetloc(0, Face 0* ...Wait for inputClose Message"\\E0* .../%", "obj_shop_ch2_spamton_slash_Draw_0_gml_768_0" ); |
726 |
} |
727 |
} |
728 |
instance_create(30, 270, obj_writer); |
729 |
} |
730 |
if (sell == 10 && !i_ex(obj_writer)) |
731 |
{ |
732 |
snd_free(keygenmusic); |
733 |
snd_resume(global.currentsong[1]); |
734 |
global.fe = 0; |
735 |
sell = 11; |
736 |
} |
737 |
if (selling == 1 && instance_exists(obj_writer) == false) |
738 |
{ |
739 |
if (sell == 2) |
740 |
{ |
741 |
selling = 2; |
742 |
event_user(1); |
743 |
} |
744 |
else |
745 |
{ |
746 |
if (sell == 1 || sell == 7) |
747 |
menu = 0; |
748 |
else |
749 |
menu = 3; |
750 |
sell = 0; |
751 |
selling = 0; |
752 |
global.fe = 0; |
753 |
} |
754 |
} |
755 |
if (selling == 3 && !i_ex(obj_writer)) |
756 |
{ |
757 |
scr_84_set_draw_font("main"); |
758 |
draw_set_color(c_white); |
759 |
var stringscale = 5.2; |
760 |
if (global.lang == "ja") |
761 |
stringscale = 12; |
762 |
draw_text_transformed(140, 260, stringsetloc(TRANSFER"TRANSFER", "obj_shop_ch2_spamton_slash_Draw_0_gml_800_0" ), stringscale, 12.2, 0); |
763 |
draw_text(560, 400, stringsetloc(DO NOT"DO NOT", "obj_shop_ch2_spamton_slash_Draw_0_gml_801_0" )); |
764 |
if (right_p()) |
765 |
ynchoice = 1; |
766 |
if (left_p()) |
767 |
ynchoice = 0; |
768 |
draw_sprite(spr_heart, 0, 120 + (ynchoice * 400), 400); |
769 |
ynchoicebuffer--; |
770 |
if (ynchoicebuffer < 0 && button1_p()) |
771 |
{ |
772 |
if (ynchoice == 0) |
773 |
{ |
774 |
selling = 4; |
775 |
scr_speakerscr_speakerfunction 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"); |
776 |
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" ); |
777 |
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" ); |
778 |
instance_create(30, 270, obj_writer); |
779 |
} |
780 |
else |
781 |
{ |
782 |
scr_speakerscr_speakerfunction 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"); |
783 |
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" ); |
784 |
instance_create(30, 270, obj_writer); |
785 |
selling = 1; |
786 |
} |
787 |
} |
788 |
} |
789 |
if (selling == 4 && !i_ex(obj_writer)) |
790 |
{ |
791 |
selling = 0; |
792 |
sell = 0; |
793 |
menu = 999; |
794 |
greybg = 1; |
795 |
global.flag[309 spamton_plot] = 7; |
796 |
scr_keyitemremovescr_keyitemremovefunction 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); |
797 |
scr_keyitemremovescr_keyitemremovefunction 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); |
798 |
scr_keyitemgetscr_keyitemgetfunction 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); |
799 |
snd_stop(global.currentsong[1]); |
800 |
} |
801 |
} |
802 |
if (down_p()) |
803 |
{ |
804 |
if (menu != 11 && menu != 12 && menu != 13 && greybg != 1) |
805 |
{ |
806 |
menuc[menu] += 1; |
807 |
if (menuc[menu] > menumax) |
808 |
menuc[menu] = 0; |
809 |
} |
810 |
} |
811 |
if (up_p()) |
812 |
{ |
813 |
if (menu != 11 && menu != 12 && menu != 13 && greybg != 1) |
814 |
{ |
815 |
menuc[menu] -= 1; |
816 |
if (menuc[menu] < 0) |
817 |
menuc[menu] = menumax; |
818 |
} |
819 |
} |
820 |
if (menu < 4 || menu >= 10) |
821 |
{ |
822 |
draw_text(440, 420, string_hash_to_newline(string(global.gold) + stringsetloc( KROMER" KROMER", "obj_shop_ch2_spamton_slash_Draw_0_gml_872_0" ))); |
823 |
if (menu == 1 || menu == 2) |
824 |
{ |
825 |
if (menuc[1] < 4) |
826 |
{ |
827 |
if (itemtype[menuc[1]] == "item") |
828 |
scr_itemcheck_inventory_and_pocket(0); |
829 |
if (itemtype[menuc[1]] == "armor") |
830 |
scr_armorcheck_inventory(0); |
831 |
if (itemtype[menuc[1]] == "weapon") |
832 |
scr_weaponcheck_inventory(0); |
833 |
} |
834 |
} |
835 |
} |
836 |
onebuffer -= 1; |
837 |
twobuffer -= 1; |