Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_shop2_Draw_0

related scripts: Alarm_3Alarm_5Create_0Draw_0 Other_11

(view raw script w/o annotations or w/e)
1
siner += 1;
2
draw_sprite_ext(spr_shop_rurusbg, 0, 0, 0, 2, 2, 0, c_white, 1);
3
draw_sprite_ext(spr_shop_rurussparkle, 0, 148 + (sin(siner / 6) * 4), 52 + (cos(siner / 6) * 4), 2, (sin(siner / 8) * 3) - 1, 0, c_white, (sin(siner / 8) * 2) - 1);
4
draw_sprite_ext(spr_shop_rurussparkle, 0, 48 + (sin(siner / 6) * 4), 42 + (cos(siner / 6) * 4), 2, (cos(siner / 8) * 3) - 1, 0, c_white, (cos(siner / 8) * 2) - 1);
5
draw_sprite_ext(spr_shop_rurusface, global.fe, 72, 62, 2, 2, 0, c_white, 1);
6
draw_sprite_ext(spr_shop_rurushand, siner / 3.73, 200, 56, 2, 2, 0, c_white, 1);
7
draw_sprite_ext(spr_shop_rurusfoot, siner / 3.73, 340, 150, 2, 2, 0, c_white, 1);
8
draw_sprite_ext(spr_shop_rurussteam, siner / 20, 422, 168 + (sin(siner / 8) * 2), 2, 2, 0, c_white, 1);
9
for (i = 0; i < worm_max; i += 1)
10
{
11
    worm_image[i] += 0.2;
12
    if (worm_image[i] >= 3)
13
        worm_siner[i] += worm_image[i] / 3;
14
    if (worm_image[i] >= 6)
15
        worm_image[i] -= 6;
16
    complexwormx = (sin(worm_siner[i] / 50) * 20) + (sin(worm_siner[i] / 3) * 2);
17
    complexwormy = cos(worm_siner[i] / 8);
18
    draw_sprite_ext(spr_shop_rurusworm, worm_image[i], 530 + complexwormx, 204 + complexwormy + worm_y[i], 2, 2, 0, c_white, 1);
19
}
20
draw_set_color(c_black);
21
draw_rectangle(0, 240, 640, 480, false);
22
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);
23
if (menu <= 3 || menu >= 10)
24
{
25
    
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);
26
    
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);
27
}
28
if (menu == 4)
29
    
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);
30
if (menu == 0)
31
{
32
    sell = 0;
33
    selling = 0;
34
    sidemessage = 0;
35
    menuc[1] = 0;
36
    menuc[2] = 0;
37
    menuc[3] = 0;
38
    menuc[4] = 0;
39
    if (instance_exists(obj_writer) == false)
40
    {
41
        global.typer = 6;
42
        global.msg[0] = stringsetloc(
Face 0* Anything else?
"\\E0* Anything else?", "obj_shop2_slash_Draw_0_gml_70_0"
);
43
        if (mainmessage == 0)
44
        {
45
            global.msg[0] = stringsetloc(
Face 0* Welcome to my
shop,Delay 11 you
ungrateful worms.
"\\E0* Welcome to my&shop^1, you&ungrateful worms.", "obj_shop2_slash_Draw_0_gml_73_0"
);
46
            if (friendly == 1)
47
                global.msg[0] = stringsetloc(
Face 0* Welcome,Delay 11 welcome,Delay 11
my Heroick Comrades!
"\\E0* Welcome^1, welcome^1,&my Heroick Comrades!", "obj_shop2_slash_Draw_0_gml_74_0"
);
48
        }
49
        instance_create(30, 270, obj_writer);
50
    }
51
    menumax = 3;
52
    draw_set_color(c_white);
53
    
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");
54
    draw_text(480, 260, string_hash_to_newline(stringsetloc(
Buy
"Buy", "obj_shop2_slash_Draw_0_gml_82_0"
)));
55
    draw_text(480, 300, string_hash_to_newline(stringsetloc(
Sell
"Sell", "obj_shop2_slash_Draw_0_gml_83_0"
)));
56
    draw_text(480, 340, string_hash_to_newline(stringsetloc(
Talk
"Talk", "obj_shop2_slash_Draw_0_gml_84_0"
)));
57
    draw_text(480, 380, string_hash_to_newline(stringsetloc(
Exit
"Exit", "obj_shop2_slash_Draw_0_gml_85_0"
)));
58
    menuc[menu] = min(menuc[menu], menumax);
59
    draw_sprite(spr_heart, 0, 450, (135 + (menuc[0] * 20)) * 2);
60
    if (button1_p())
61
    {
62
        onebuffer = 2;
63
        mainmessage = 1;
64
        with (obj_writer)
65
            instance_destroy();
66
        if (menuc[0] == 0)
67
            menu = 1;
68
        if (menuc[0] == 1)
69
        {
70
            menu = 10;
71
            sidemessage = 0;
72
        }
73
        if (menuc[0] == 2)
74
            menu = 3;
75
        if (menuc[0] == 3)
76
        {
77
            sell = 2;
78
            menu = 4;
79
        }
80
    }
81
}
82
if (menu == 1 || menu == 2)
83
{
84
    draw_set_color(c_white);
85
    
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");
86
    for (i = 0; i < itemtotal; i += 1)
87
    {
88
        draw_text(60, 260 + (i * 40), string_hash_to_newline(shopitemname[i]));
89
        draw_text(300, 260 + (i * 40), string_hash_to_newline(stringsetsubloc(
$Argument №11
"$~1", string(buyvalue[i]), "obj_shop2_slash_Draw_0_gml_113_0"
)));
90
    }
91
    draw_text(60, 260 + (itemtotal * 40), string_hash_to_newline(stringsetloc(
Exit
"Exit", "obj_shop2_slash_Draw_0_gml_115_0"
)));
92
    if (menu == 1)
93
    {
94
        menumax = 4;
95
        if (instance_exists(obj_writer) == false)
96
        {
97
            if (sidemessage == 0)
98
                global.msg[0] = stringsetloc(
Face 0What
shalt
thou buy?
"\\E0What&shalt&thou buy?", "obj_shop2_slash_Draw_0_gml_124_0"
);
99
            if (sidemessage == 1)
100
            {
101
                global.msg[0] = stringsetloc(
Face 2Thanks,
worm.
"\\E2Thanks,&worm.", "obj_shop2_slash_Draw_0_gml_125_0"
);
102
                if (friendly == 1)
103
                    global.msg[0] = stringsetloc(
Face 2Thanks,
hero!
"\\E2Thanks,&hero!", "obj_shop2_slash_Draw_0_gml_126_0"
);
104
            }
105
            if (sidemessage == 2)
106
                global.msg[0] = stringsetloc(
Face 3Perhaps
another
ware?
"\\E3Perhaps&another&ware?", "obj_shop2_slash_Draw_0_gml_127_0"
);
107
            if (sidemessage == 3)
108
                global.msg[0] = stringsetloc(
Face 6Your
funds are
lacking.
"\\E6Your&funds are&lacking.", "obj_shop2_slash_Draw_0_gml_128_0"
);
109
            if (sidemessage == 4)
110
                global.msg[0] = stringsetloc(
Face 3Thou doth
carry
too much!
"\\E3Thou doth&carry&too much!", "obj_shop2_slash_Draw_0_gml_129_0"
);
111
            if (murder == 1)
112
                global.msg[0] = stringsetloc(
Wait for input*
"/*", "obj_shop2_slash_Draw_0_gml_130_0"
);
113
            instance_create(450, 260, obj_writer);
114
        }
115
        menuc[menu] = min(menuc[menu], menumax);
116
        draw_sprite(spr_heart, 0, 30, 270 + (menuc[1] * 40));
117
        if (button1_p() && onebuffer < 0)
118
        {
119
            menu = 2;
120
            onebuffer = 2;
121
            with (obj_writer)
122
                instance_destroy();
123
            if (menuc[1] == menumax)
124
                menu = 0;
125
        }
126
        if (button2_p() && twobuffer < 0 && onebuffer < 2)
127
        {
128
            menu = 0;
129
            twobuffer = 2;
130
            minimenuy = 220;
131
            with (obj_writer)
132
                instance_destroy();
133
        }
134
        menuc[2] = 0;
135
    }
136
    if (menu == 2)
137
    {
138
        menumax = 1;
139
        draw_set_color(c_white);
140
        
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");
141
        var y1_off = langopt(260, 290);
142
        var y2_off = langopt(290, 260);
143
        draw_text(460, y1_off, string_hash_to_newline(stringsetloc(
Buyeth for
"Buyeth for", "obj_shop2_slash_Draw_0_gml_144_0"
)));
144
        draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc(
$Argument №11 ?
"$~1 ?", string(buyvalue[menuc[1]]), "obj_shop2_slash_Draw_0_gml_147_0_b"
)));
145
        draw_text(480, 340, string_hash_to_newline(stringsetloc(
Yes
"Yes", "obj_shop2_slash_Draw_0_gml_146_0"
)));
146
        draw_text(480, 370, string_hash_to_newline(stringsetloc(
No
"No", "obj_shop2_slash_Draw_0_gml_147_0"
)));
147
        menuc[menu] = min(menuc[menu], menumax);
148
        draw_sprite(spr_heart, 0, 450, 350 + (menuc[2] * 30));
149
        if (button2_p() && twobuffer < 0)
150
        {
151
            menu = 1;
152
            sidemessage = 2;
153
            twobuffer = 2;
154
            onebuffer = 2;
155
        }
156
        if (button1_p() && onebuffer < 0 && twobuffer < 0)
157
        {
158
            if (menuc[2] == 0)
159
            {
160
                afford = 0;
161
                if (global.gold >= buyvalue[menuc[1]])
162
                    afford = 1;
163
                if (afford == 1)
164
                {
165
                    if (itemtype[menuc[1]] == "item")
166
                        
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]]);
167
                    if (itemtype[menuc[1]] == "weapon")
168
                        
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]]);
169
                    if (itemtype[menuc[1]] == "armor")
170
                        
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]]);
171
                    if (noroom == 0)
172
                    {
173
                        global.gold -= buyvalue[menuc[1]];
174
                        sidemessage = 1;
175
                        snd_play(snd_locker);
176
                    }
177
                    if (noroom == 1)
178
                        sidemessage = 4;
179
                }
180
                else
181
                {
182
                    sidemessage = 3;
183
                }
184
            }
185
            if (menuc[2] == 1)
186
                sidemessage = 2;
187
            menu = 1;
188
        }
189
    }
190
    if (menuc[1] != 4)
191
    {
192
        if (minimenuy <= 20)
193
            minimenuy = 20;
194
        if (minimenuy > 20)
195
            minimenuy -= 5;
196
        if (minimenuy > 50)
197
            minimenuy -= 5;
198
        if (minimenuy > 100)
199
            minimenuy -= 8;
200
        if (minimenuy > 150)
201
            minimenuy -= 10;
202
    }
203
    else if (minimenuy < 200)
204
    {
205
        minimenuy += 40;
206
    }
207
    if (minimenuy >= 200)
208
        minimenuy = 200;
209
}
210
if (menu == 3)
211
{
212
    menumax = 4;
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
    draw_text(80, 260, string_hash_to_newline(stringsetloc(
About yourself
"About yourself", "obj_shop2_slash_Draw_0_gml_194_0"
)));
216
    draw_text(80, 300, string_hash_to_newline(stringsetloc(
Why sell to us
"Why sell to us", "obj_shop2_slash_Draw_0_gml_195_0"
)));
217
    draw_text(80, 340, string_hash_to_newline(stringsetloc(
The King
"The King", "obj_shop2_slash_Draw_0_gml_196_0"
)));
218
    draw_text(80, 380, string_hash_to_newline(stringsetloc(
The King's Son
"The King's Son", "obj_shop2_slash_Draw_0_gml_197_0"
)));
219
    draw_text(80, 420, string_hash_to_newline(stringsetloc(
Exit
"Exit", "obj_shop2_slash_Draw_0_gml_198_0"
)));
220
    if (instance_exists(obj_writer) == false)
221
    {
222
        global.msg[0] = stringsetloc(
Face 5Ah,Delay 11 what is
thine
Intereste?
"\\E5Ah^1, what is&thine&Intereste?", "obj_shop2_slash_Draw_0_gml_202_0"
);
223
        instance_create(440, 260, obj_writer);
224
    }
225
    menuc[menu] = min(menuc[menu], menumax);
226
    draw_sprite(spr_heart, 0, 50, 270 + (menuc[3] * 40));
227
    if (button1_p() && onebuffer < 0)
228
    {
229
        onebuffer = 2;
230
        with (obj_writer)
231
            instance_destroy();
232
        if (menuc[3] < menumax)
233
        {
234
            sell = menuc[3] + 3;
235
            menu = 4;
236
        }
237
        else
238
        {
239
            menu = 0;
240
        }
241
    }
242
    else if (button2_p() && twobuffer < 0 && onebuffer < 0)
243
    {
244
        twobuffer = 2;
245
        menu = 0;
246
        with (obj_writer)
247
            instance_destroy();
248
    }
249
}
250
if (menu == 10)
251
{
252
    menuc[11] = 0;
253
    menuc[12] = 0;
254
    menuc[13] = 0;
255
    menumax = 3;
256
    draw_set_color(c_white);
257
    
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");
258
    draw_text(80, 260, string_hash_to_newline(stringsetloc(
Selleth Items
"Selleth Items", "obj_shop2_slash_Draw_0_gml_236_0"
)));
259
    draw_text(80, 300, string_hash_to_newline(stringsetloc(
Selleth Weapons
"Selleth Weapons", "obj_shop2_slash_Draw_0_gml_237_0"
)));
260
    draw_text(80, 340, string_hash_to_newline(stringsetloc(
Selleth Armor
"Selleth Armor", "obj_shop2_slash_Draw_0_gml_238_0"
)));
261
    draw_text(80, 380, string_hash_to_newline(stringsetloc(
Returnst
"Returnst", "obj_shop2_slash_Draw_0_gml_239_0"
)));
262
    if (instance_exists(obj_writer) == false)
263
    {
264
        if (sidemessage == 0)
265
            global.msg[0] = stringsetloc(
Face 0Showeth
me your
treasure!
"\\E0Showeth&me your&treasure!", "obj_shop2_slash_Draw_0_gml_243_0"
);
266
        if (sidemessage == 1)
267
            global.msg[0] = stringsetloc(
Face 2That seems
to be all,
no?
"\\E2That seems&to be all,&no?", "obj_shop2_slash_Draw_0_gml_244_0"
);
268
        if (sidemessage == 2)
269
            global.msg[0] = stringsetloc(
Face 6You have
none!
"\\E6You have&none!", "obj_shop2_slash_Draw_0_gml_245_0"
);
270
        instance_create(460, 260, obj_writer);
271
    }
272
    menuc[menu] = min(menuc[menu], menumax);
273
    draw_sprite(spr_heart, 0, 50, 270 + (menuc[10] * 40));
274
    if (button1_p() && onebuffer < 0)
275
    {
276
        pagemax = 0;
277
        sidemessage2 = 0;
278
        onebuffer = 2;
279
        with (obj_writer)
280
            instance_destroy();
281
        can = 1;
282
        idealmenu = menuc[10] + 11;
283
        if (idealmenu == 11)
284
        {
285
            
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);
286
            if (itemcount == 12)
287
            {
288
                sidemessage = 2;
289
                can = 0;
290
            }
291
            
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; } }
();
292
        }
293
        if (idealmenu == 12)
294
        {
295
            
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);
296
            if (itemcount == 12)
297
            {
298
                sidemessage = 2;
299
                can = 0;
300
            }
301
            
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; } }
();
302
        }
303
        if (idealmenu == 13)
304
        {
305
            
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);
306
            if (itemcount == 12)
307
            {
308
                sidemessage = 2;
309
                can = 0;
310
            }
311
            
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; } }
();
312
        }
313
        if (menuc[10] < menumax)
314
        {
315
            if (can == 1)
316
                menu = menuc[10] + 11;
317
            sidemessage1 = 0;
318
        }
319
        else
320
        {
321
            menu = 0;
322
        }
323
        submenu = 0;
324
        submenuc[1] = 0;
325
    }
326
    if (button2_p() && twobuffer < 0 && onebuffer < 0)
327
    {
328
        twobuffer = 2;
329
        menu = 0;
330
        with (obj_writer)
331
            instance_destroy();
332
    }
333
}
334
if (menu == 11 || menu == 12 || menu == 13)
335
{
336
    if (instance_exists(obj_writer) == false)
337
    {
338
        if (sidemessage2 == 0 && menu == 11)
339
            global.msg[0] = stringsetloc(
Face 0What ITEM
shalt thou
proffer?
"\\E0What ITEM&shalt thou&proffer?", "obj_shop2_slash_Draw_0_gml_305_0"
);
340
        if (sidemessage2 == 0 && menu == 12)
341
            global.msg[0] = stringsetloc(
Face 0What WEAPON
shalt thou
proffer?
"\\E0What WEAPON&shalt thou&proffer?", "obj_shop2_slash_Draw_0_gml_306_0"
);
342
        if (sidemessage2 == 0 && menu == 13)
343
            global.msg[0] = stringsetloc(
Face 0What ARMOR
shalt thou
proffer?
"\\E0What ARMOR&shalt thou&proffer?", "obj_shop2_slash_Draw_0_gml_307_0"
);
344
        if (sidemessage2 == 1)
345
            global.msg[0] = stringsetloc(
Face 5I shall
make use
of this!
"\\E5I shall&make use&of this!", "obj_shop2_slash_Draw_0_gml_308_0"
);
346
        if (sidemessage2 == 2)
347
            global.msg[0] = stringsetloc(
Face 6What?
"\\E6What?", "obj_shop2_slash_Draw_0_gml_309_0"
);
348
        if (sidemessage2 == 3)
349
            global.msg[0] = stringsetloc(
Face 6Er, NO
thank you.
"\\E6Er, NO&thank you.", "obj_shop2_slash_Draw_0_gml_310_0"
);
350
        if (sidemessage2 == 4)
351
            global.msg[0] = stringsetloc(
Face 6What?
"\\E6What?", "obj_shop2_slash_Draw_0_gml_311_0"
);
352
        instance_create(450, 260, obj_writer);
353
    }
354
}
355
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);
356
if (menu == 15 || menu == 16 || menu == 17)
357
{
358
    menumax = 1;
359
    draw_set_color(c_white);
360
    
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");
361
    var y1_off = langopt(260, 290);
362
    var y2_off = langopt(290, 260);
363
    draw_text(460, y1_off, string_hash_to_newline(stringsetloc(
Sell it for
"Sell it for", "obj_shop2_slash_Draw_0_gml_323_0"
)));
364
    draw_text(460, y2_off, string_hash_to_newline(stringsetsubloc(
$Argument №11 ?
"$~1 ?", string(sellvalue), "obj_shop2_slash_Draw_0_gml_328_0"
)));
365
    draw_text(480, 340, string_hash_to_newline(stringsetloc(
Yes
"Yes", "obj_shop2_slash_Draw_0_gml_325_0"
)));
366
    draw_text(480, 370, string_hash_to_newline(stringsetloc(
No
"No", "obj_shop2_slash_Draw_0_gml_326_0"
)));
367
    menuc[menu] = min(menuc[menu], menumax);
368
    draw_sprite(spr_heart, 0, 450, 350 + (menuc[menu] * 30));
369
}
370
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);
371
if (menu == 4)
372
{
373
    if (sell == 0)
374
        menu = 0;
375
    if (instance_exists(obj_writer) == false && selling == 0)
376
    {
377
        if (sell == 1)
378
        {
379
        }
380
        if (sell == 2)
381
        {
382
            global.msg[0] = stringsetloc(
Face 5* See thou in the Dungeon,Delay 11 Worms!Wait for inputClose Message
"\\E5* See thou in the Dungeon^1, Worms!/%", "obj_shop2_slash_Draw_0_gml_353_0"
);
383
            if (friendly == 1)
384
                global.msg[0] = stringsetloc(
Face 5* Come by any time,Delay 11 my good Worms!Wait for inputClose Message
"\\E5* Come by any time^1, my good Worms!/%", "obj_shop2_slash_Draw_0_gml_354_0"
);
385
        }
386
        if (sell == 3)
387
        {
388
            global.msg[0] = stringsetloc(
Face 0* I amst the Duke of Puzzles,Delay 11 Rouxls Kaard.Wait for input
"\\E0* I amst the Duke of Puzzles^1, Rouxls Kaard./", "obj_shop2_slash_Draw_0_gml_358_0"
);
389
            global.msg[1] = stringsetloc(
Face 4* My hobbies includest calligraphy,Delay 11 lawkeeping,Delay 11 bugkeeping,Delay 11 cages...Wait for input
"\\E4* My hobbies includest calligraphy^1, lawkeeping^1, bugkeeping^1, cages.../", "obj_shop2_slash_Draw_0_gml_359_0"
);
390
            global.msg[2] = stringsetloc(
Face 1* ... and long walks in the dungeon.Wait for input
"\\E1* ... and long walks in the dungeon./", "obj_shop2_slash_Draw_0_gml_360_0"
);
391
            global.msg[3] = stringsetloc(
Face 5* Artest thou one of my admirers,Delay 11 worm?Wait for inputClose Message
"\\E5* Artest thou one of my admirers^1, worm?/%", "obj_shop2_slash_Draw_0_gml_361_0"
);
392
            if (friendly == 1)
393
                global.msg[3] = stringsetloc(
Face 5* By the way,Delay 11 no hard feelingst about earlier,Delay 11 right?Wait for inputClose Message
"\\E5* By the way^1, no hard feelingst about earlier^1, right?/%", "obj_shop2_slash_Draw_0_gml_364_0"
);
394
        }
395
        if (sell == 4)
396
        {
397
            global.msg[0] = stringsetloc(
Face 4* Hahaha!!Delay 11 So I might amasseth funds,Delay 11 Worms!Delay 11 An army of funds...Wait for input
"\\E4* Hahaha!^1! So I might amasseth funds^1, Worms^1! An army of funds.../", "obj_shop2_slash_Draw_0_gml_371_0"
);
398
            global.msg[1] = stringsetloc(
Face 1* So that I may crushest thou like Fermented Grapes,Delay 11 into a most delicious and adult beverage -Wait for input
"\\E1* So that I may crushest thou like Fermented Grapes^1, into a most delicious and adult beverage -/", "obj_shop2_slash_Draw_0_gml_372_0"
);
399
            global.msg[2] = stringsetloc(
Face 6* Vengeance!!Delay 11 Ahahaha!!!Wait for input
"\\E6* Vengeance!^1! Ahahaha!!!/", "obj_shop2_slash_Draw_0_gml_373_0"
);
400
            global.msg[3] = stringsetloc(
Face 5* Oh,Delay 11 how I amuse myself!!!Wait for inputClose Message
"\\E5* Oh^1, how I amuse myself!!!/%", "obj_shop2_slash_Draw_0_gml_374_0"
);
401
            if (friendly == 1)
402
            {
403
                global.msg[0] = stringsetloc(
Face 2* Haha,Delay 11 why of course I wouldst sell to my compatriarts,Delay 11 the Heroes Of Legend!Wait for input
"\\E2* Haha^1, why of course I wouldst sell to my compatriarts^1, the Heroes Of Legend!/", "obj_shop2_slash_Draw_0_gml_378_0"
);
404
                global.msg[1] = stringsetloc(
Face 5* Earlier art but a Test of your Heroick Resolve!Wait for input
"\\E5* Earlier art but a Test of your Heroick Resolve!/", "obj_shop2_slash_Draw_0_gml_379_0"
);
405
                global.msg[2] = stringsetloc(
Face 6* Rouxls is ALWAYS on the winning side!!Delay 11 Thou can bet on that!!!Wait for inputClose Message
"\\E6* Rouxls is ALWAYS on the winning side!^1! Thou can bet on that!!!/%", "obj_shop2_slash_Draw_0_gml_380_0"
);
406
            }
407
        }
408
        if (sell == 5)
409
        {
410
            global.msg[0] = stringsetloc(
Face 6* Our Lorde King art a cruel and terrifying Monarcke!Wait for input
"\\E6* Our Lorde King art a cruel and terrifying Monarcke!/", "obj_shop2_slash_Draw_0_gml_386_0"
);
411
            global.msg[1] = stringsetloc(
Face 2* However,Delay 11 he is also Brilliant,Delay 11 for he decidedesteth to appoinst ME,Delay 11 as Duke of Puzzles,Wait for input
"\\E2* However^1, he is also Brilliant^1, for he decidedesteth to appoinst ME^1, as Duke of Puzzles,/", "obj_shop2_slash_Draw_0_gml_387_0"
);
412
            global.msg[2] = stringsetloc(
Face 6* After pretty mucheth everyone else was firedst or placed inside a cage.Wait for input
"\\E6* After pretty mucheth everyone else was firedst or placed inside a cage./", "obj_shop2_slash_Draw_0_gml_388_0"
);
413
            global.msg[3] = stringsetloc(
Face 4* Truly, a benevolent ruler!Wait for inputClose Message
"\\E4* Truly, a benevolent ruler!/%", "obj_shop2_slash_Draw_0_gml_389_0"
);
414
            if (friendly == 1)
415
            {
416
                global.msg[0] = stringsetloc(
Face 6* Yes, the King!Delay 11 A terrible Man!Delay 11 An awful Monarcke!Delay 11Wait for input
"\\E6* Yes, the King^1! A terrible Man^1! An awful Monarcke^1!/", "obj_shop2_slash_Draw_0_gml_392_0"
);
417
                global.msg[1] = stringsetloc(
Face 2* Never likedeth that Guye,Delay 11 really!Wait for input
"\\E2* Never likedeth that Guye^1, really!/", "obj_shop2_slash_Draw_0_gml_393_0"
);
418
                global.msg[2] = stringsetloc(
Face 3* I just envisionethed,Delay 11 perhaps...Delay 11 If I acceptedst this High Ranking Positione...Wait for input
"\\E3* I just envisionethed^1, perhaps..^1. If I acceptedst this High Ranking Positione.../", "obj_shop2_slash_Draw_0_gml_394_0"
);
419
                global.msg[3] = stringsetloc(
Face 5* I could assist to overthroweth him from the Inside!Wait for input
"\\E5* I could assist to overthroweth him from the Inside!/", "obj_shop2_slash_Draw_0_gml_395_0"
);
420
                global.msg[4] = stringsetloc(
Face 6* ... What!?Delay 11 Cannot thou conceiveth of my plan?!?Wait for inputClose Message
"\\E6* ... What!^1? Cannot thou conceiveth of my plan?!?/%", "obj_shop2_slash_Draw_0_gml_396_0"
);
421
            }
422
        }
423
        if (sell == 6)
424
        {
425
            global.msg[0] = stringsetloc(
Face 0* His Son,Delay 11 on the other hand,Delay 11 is more troublesome than a fistful of fleas!Wait for input
"\\E0* His Son^1, on the other hand^1, is more troublesome than a fistful of fleas!/", "obj_shop2_slash_Draw_0_gml_402_0"
);
426
            global.msg[1] = stringsetloc(
Face 1* He alwayst asks me the Worste Queries,Wait for input
"\\E1* He alwayst asks me the Worste Queries,/", "obj_shop2_slash_Draw_0_gml_403_0"
);
427
            global.msg[2] = stringsetloc(
Face 3* And calleth me his "Lesser Dad."Wait for input
"\\E3* And calleth me his \"Lesser Dad.\"/", "obj_shop2_slash_Draw_0_gml_404_0"
);
428
            global.msg[3] = stringsetloc(
Face 6* Our relation is NONE,Delay 11 you little water-beetle!Delay 11 I placate you for your Father's sake!Wait for input
"\\E6* Our relation is NONE^1, you little water-beetle^1! I placate you for your Father's sake!/", "obj_shop2_slash_Draw_0_gml_405_0"
);
429
            global.msg[4] = stringsetloc(
Face 6* I do not Wisheth to hear your MP3's!Delay 11 I would rather listen to the sweet song of Death!Wait for input
"\\E6* I do not Wisheth to hear your MP3's^1! I would rather listen to the sweet song of Death!/", "obj_shop2_slash_Draw_0_gml_406_0"
);
430
            global.msg[5] = stringsetloc(
Face 3* ...Wait for input
"\\E3* .../", "obj_shop2_slash_Draw_0_gml_407_0"
);
431
            global.msg[6] = stringsetloc(
Face 2* How is he,Delay 11 anyhow?Wait for inputClose Message
"\\E2* How is he^1, anyhow?/%", "obj_shop2_slash_Draw_0_gml_408_0"
);
432
            if (friendly == 1)
433
            {
434
                global.msg[0] = stringsetloc(
Face 3* Perhaps my wording art a bit Harshe earlier... The King's offspring is a Darling!Wait for input
"\\E3* Perhaps my wording art a bit Harshe earlier... The King's offspring is a Darling!/", "obj_shop2_slash_Draw_0_gml_413_0"
);
435
                global.msg[1] = stringsetloc(
Face 6* A strange and irritating darling!Wait for input
"\\E6* A strange and irritating darling!/", "obj_shop2_slash_Draw_0_gml_414_0"
);
436
                global.msg[2] = stringsetloc(
Face 3* When his Father does not cook,Delay 11 his Son yells like a baby bird,Delay 11 until I feed him worms!Wait for input
"\\E3* When his Father does not cook^1, his Son yells like a baby bird^1, until I feed him worms!/", "obj_shop2_slash_Draw_0_gml_415_0"
);
437
                global.msg[3] = stringsetloc(
Face 6* Is this what it means to be High Ranking!?Wait for inputClose Message
"\\E6* Is this what it means to be High Ranking!?/%", "obj_shop2_slash_Draw_0_gml_416_0"
);
438
            }
439
        }
440
        instance_create(30, 270, obj_writer);
441
        selling = 1;
442
    }
443
    if (selling == 1 && instance_exists(obj_writer) == false)
444
    {
445
        if (sell == 2)
446
        {
447
            selling = 2;
448
            event_user(1);
449
        }
450
        else
451
        {
452
            if (sell == 1 || sell == 7)
453
                menu = 0;
454
            else
455
                menu = 3;
456
            sell = 0;
457
            selling = 0;
458
        }
459
    }
460
}
461
if (down_p())
462
{
463
    if (menu != 11 && menu != 12 && menu != 13)
464
    {
465
        menuc[menu] += 1;
466
        if (menuc[menu] > menumax)
467
            menuc[menu] = 0;
468
    }
469
}
470
if (up_p())
471
{
472
    if (menu != 11 && menu != 12 && menu != 13)
473
    {
474
        menuc[menu] -= 1;
475
        if (menuc[menu] < 0)
476
            menuc[menu] = menumax;
477
    }
478
}
479
if (menu < 4 || menu >= 10)
480
{
481
    draw_text(440, 420, "$" + string_hash_to_newline(string(global.gold)));
482
    if (menu == 1 || menu == 2)
483
    {
484
        if (menuc[1] < 4)
485
        {
486
            if (itemtype[menuc[1]] == "item")
487
                
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);
488
            if (itemtype[menuc[1]] == "armor")
489
                
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);
490
            if (itemtype[menuc[1]] == "weapon")
491
                
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);
492
            
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));
}
("dotumche");
493
            if (itemcount < 10)
494
                roomstring = "0" + string(itemcount);
495
            else
496
                roomstring = string(itemcount);
497
            if (itemcount > 0)
498
                draw_text(520, 430, string_hash_to_newline(stringsetsubloc(
Space:Argument №11
"Space:~1", roomstring, "obj_shop2_slash_Draw_0_gml_482_0"
)));
499
            if (itemcount == 0)
500
                draw_text(520, 430, string_hash_to_newline(stringsetloc(
NO SPACE
"NO SPACE", "obj_shop2_slash_Draw_0_gml_481_0"
)));
501
        }
502
    }
503
}
504
onebuffer -= 1;
505
twobuffer -= 1;