Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_shop2_Draw_0

(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] = 
\E0* Anything else?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_70_0")
;
43
        if (mainmessage == 0)
44
        {
45
            global.msg[0] = 
\E0* Welcome to my
shop,Delay 11 you
ungrateful worms.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_73_0")
;
46
            if (friendly == 1)
47
                global.msg[0] = 
\E0* Welcome,Delay 11 welcome,Delay 11
my Heroick Comrades!
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("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(
Buy
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_82_0")
));
55
    draw_text(480, 300, string_hash_to_newline(
Sell
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_83_0")
));
56
    draw_text(480, 340, string_hash_to_newline(
Talk
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_84_0")
));
57
    draw_text(480, 380, string_hash_to_newline(
Exit
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_85_0")
));
58
    draw_sprite(spr_heart, 0, 450, (135 + (menuc[0] * 20)) * 2);
59
    if (button1_p())
60
    {
61
        onebuffer = 2;
62
        mainmessage = 1;
63
        with (obj_writer)
64
            instance_destroy();
65
        if (menuc[0] == 0)
66
            menu = 1;
67
        if (menuc[0] == 1)
68
        {
69
            menu = 10;
70
            sidemessage = 0;
71
        }
72
        if (menuc[0] == 2)
73
            menu = 3;
74
        if (menuc[0] == 3)
75
        {
76
            sell = 2;
77
            menu = 4;
78
        }
79
    }
80
}
81
if (menu == 1 || menu == 2)
82
{
83
    draw_set_color(c_white);
84
    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");
85
    for (i = 0; i < itemtotal; i += 1)
86
    {
87
        draw_text(60, 260 + (i * 40), string_hash_to_newline(shopitemname[i]));
88
        draw_text(300, 260 + (i * 40), string_hash_to_newline("$" + string(buyvalue[i])));
89
    }
90
    draw_text(60, 260 + (itemtotal * 40), string_hash_to_newline(
Exit
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_115_0")
));
91
    if (menu == 1)
92
    {
93
        menumax = 4;
94
        if (instance_exists(obj_writer) == false)
95
        {
96
            if (sidemessage == 0)
97
                global.msg[0] = 
\E0What
shalt
thou buy?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_124_0")
;
98
            if (sidemessage == 1)
99
            {
100
                global.msg[0] = 
\E2Thanks,
worm.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_125_0")
;
101
                if (friendly == 1)
102
                    global.msg[0] = 
\E2Thanks,
hero!
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_126_0")
;
103
            }
104
            if (sidemessage == 2)
105
                global.msg[0] = 
\E3Perhaps
another
ware?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_127_0")
;
106
            if (sidemessage == 3)
107
                global.msg[0] = 
\E6Your
funds are
lacking.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_128_0")
;
108
            if (sidemessage == 4)
109
                global.msg[0] = 
\E3Thou doth
carry
too much!
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_129_0")
;
110
            if (murder == 1)
111
                global.msg[0] = 
Wait for input*
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_130_0")
;
112
            instance_create(450, 260, obj_writer);
113
        }
114
        draw_sprite(spr_heart, 0, 30, 270 + (menuc[1] * 40));
115
        if (button1_p() && onebuffer < 0)
116
        {
117
            menu = 2;
118
            onebuffer = 2;
119
            with (obj_writer)
120
                instance_destroy();
121
            if (menuc[1] == menumax)
122
                menu = 0;
123
        }
124
        if (button2_p() && twobuffer < 0 && onebuffer < 2)
125
        {
126
            menu = 0;
127
            twobuffer = 2;
128
            minimenuy = 220;
129
            with (obj_writer)
130
                instance_destroy();
131
        }
132
        menuc[2] = 0;
133
    }
134
    if (menu == 2)
135
    {
136
        menumax = 1;
137
        draw_set_color(c_white);
138
        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");
139
        if (global.lang == "ja")
140
        {
141
            draw_text(460, 290, string_hash_to_newline(
Buyeth for
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_144_0")
));
142
            draw_text(460, 260, "$" + string_hash_to_newline(string(buyvalue[menuc[1]]) + 
?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_145_0")
));
143
        }
144
        else
145
        {
146
            draw_text(460, 260, string_hash_to_newline(
Buyeth for
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_144_0")
));
147
            draw_text(460, 290, "$" + string_hash_to_newline(string(buyvalue[menuc[1]]) + 
?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_145_0")
));
148
        }
149
        draw_text(480, 340, string_hash_to_newline(
Yes
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_146_0")
));
150
        draw_text(480, 370, string_hash_to_newline(
No
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_147_0")
));
151
        draw_sprite(spr_heart, 0, 450, 350 + (menuc[2] * 30));
152
        if (button2_p() && twobuffer < 0)
153
        {
154
            menu = 1;
155
            sidemessage = 2;
156
            twobuffer = 2;
157
            onebuffer = 2;
158
        }
159
        if (button1_p() && onebuffer < 0 && twobuffer < 0)
160
        {
161
            if (menuc[2] == 0)
162
            {
163
                afford = 0;
164
                if (global.gold >= buyvalue[menuc[1]])
165
                    afford = 1;
166
                if (afford == 1)
167
                {
168
                    if (itemtype[menuc[1]] == "item")
169
                        scr_itemget
scr_itemget

function scr_itemget(arg0) { i = 0; loop = 1; noroom = 0; global.item[12] = 999; while (loop == 1) { if (global.item[i] == 0) { global.item[i] = arg0; break; } if (i == 12) { noroom = 1; break; } i += 1; } script_execute(scr_iteminfo_all); }
(item[menuc[1]]);
170
                    if (itemtype[menuc[1]] == "weapon")
171
                        scr_weaponget
scr_weaponget

function scr_weaponget(arg0) { i = 0; loop = 1; noroom = 0; global.weapon[12] = 999; while (loop == 1) { if (global.weapon[i] == 0) { global.weapon[i] = arg0; break; } if (i == 12) { noroom = 1; break; } i += 1; } script_execute(scr_weaponinfo_all); }
(item[menuc[1]]);
172
                    if (itemtype[menuc[1]] == "armor")
173
                        scr_armorget
scr_armorget

function scr_armorget(arg0) { i = 0; loop = 1; noroom = 0; global.armor[12] = 999; while (loop == 1) { if (global.armor[i] == 0) { global.armor[i] = arg0; break; } if (i == 12) { noroom = 1; break; } i += 1; } script_execute(scr_armorinfo_all); }
(item[menuc[1]]);
174
                    if (noroom == 0)
175
                    {
176
                        global.gold -= buyvalue[menuc[1]];
177
                        sidemessage = 1;
178
                        snd_play(snd_locker);
179
                    }
180
                    if (noroom == 1)
181
                        sidemessage = 4;
182
                }
183
                else
184
                {
185
                    sidemessage = 3;
186
                }
187
            }
188
            if (menuc[2] == 1)
189
                sidemessage = 2;
190
            menu = 1;
191
        }
192
    }
193
    if (menuc[1] != 4)
194
    {
195
        if (minimenuy <= 20)
196
            minimenuy = 20;
197
        if (minimenuy > 20)
198
            minimenuy -= 5;
199
        if (minimenuy > 50)
200
            minimenuy -= 5;
201
        if (minimenuy > 100)
202
            minimenuy -= 8;
203
        if (minimenuy > 150)
204
            minimenuy -= 10;
205
    }
206
    else if (minimenuy < 200)
207
    {
208
        minimenuy += 40;
209
    }
210
    if (minimenuy >= 200)
211
        minimenuy = 200;
212
}
213
if (menu == 3)
214
{
215
    menumax = 4;
216
    draw_set_color(c_white);
217
    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");
218
    draw_text(80, 260, string_hash_to_newline(
About yourself
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_194_0")
));
219
    draw_text(80, 300, string_hash_to_newline(
Why sell to us
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_195_0")
));
220
    draw_text(80, 340, string_hash_to_newline(
The King
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_196_0")
));
221
    draw_text(80, 380, string_hash_to_newline(
The King's Son
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_197_0")
));
222
    draw_text(80, 420, string_hash_to_newline(
Exit
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_198_0")
));
223
    if (instance_exists(obj_writer) == false)
224
    {
225
        global.msg[0] = 
\E5Ah,Delay 11 what is
thine
Intereste?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_202_0")
;
226
        instance_create(440, 260, obj_writer);
227
    }
228
    draw_sprite(spr_heart, 0, 50, 270 + (menuc[3] * 40));
229
    if (button1_p() && onebuffer < 0)
230
    {
231
        onebuffer = 2;
232
        with (obj_writer)
233
            instance_destroy();
234
        if (menuc[3] < menumax)
235
        {
236
            sell = menuc[3] + 3;
237
            menu = 4;
238
        }
239
        else
240
        {
241
            menu = 0;
242
        }
243
    }
244
    else if (button2_p() && twobuffer < 0 && onebuffer < 0)
245
    {
246
        twobuffer = 2;
247
        menu = 0;
248
        with (obj_writer)
249
            instance_destroy();
250
    }
251
}
252
if (menu == 10)
253
{
254
    menuc[11] = 0;
255
    menuc[12] = 0;
256
    menuc[13] = 0;
257
    menumax = 3;
258
    draw_set_color(c_white);
259
    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");
260
    draw_text(80, 260, string_hash_to_newline(
Selleth Items
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_236_0")
));
261
    draw_text(80, 300, string_hash_to_newline(
Selleth Weapons
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_237_0")
));
262
    draw_text(80, 340, string_hash_to_newline(
Selleth Armor
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_238_0")
));
263
    draw_text(80, 380, string_hash_to_newline(
Returnst
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_239_0")
));
264
    if (instance_exists(obj_writer) == false)
265
    {
266
        if (sidemessage == 0)
267
            global.msg[0] = 
\E0Showeth
me your
treasure!
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_243_0")
;
268
        if (sidemessage == 1)
269
            global.msg[0] = 
\E2That seems
to be all,
no?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_244_0")
;
270
        if (sidemessage == 2)
271
            global.msg[0] = 
\E6You have
none!
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_245_0")
;
272
        instance_create(460, 260, obj_writer);
273
    }
274
    draw_sprite(spr_heart, 0, 50, 270 + (menuc[10] * 40));
275
    if (button1_p() && onebuffer < 0)
276
    {
277
        pagemax = 0;
278
        sidemessage2 = 0;
279
        onebuffer = 2;
280
        with (obj_writer)
281
            instance_destroy();
282
        can = 1;
283
        idealmenu = menuc[10] + 11;
284
        if (idealmenu == 11)
285
        {
286
            scr_itemcheck
scr_itemcheck

function scr_itemcheck(arg0) { haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.item[i] == arg0) haveit = 1; if (global.item[i] == arg0) itemcount += 1; } return haveit; }
(0);
287
            if (itemcount == 12)
288
            {
289
                sidemessage = 2;
290
                can = 0;
291
            }
292
            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; } }
();
293
        }
294
        if (idealmenu == 12)
295
        {
296
            scr_weaponcheck_inventory
scr_weaponcheck_inventory

function scr_weaponcheck_inventory(arg0) { haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.weapon[i] == arg0) haveit = 1; if (global.weapon[i] == arg0) itemcount += 1; } return haveit; }
(0);
297
            if (itemcount == 12)
298
            {
299
                sidemessage = 2;
300
                can = 0;
301
            }
302
            scr_weaponinfo_all
scr_weaponinfo_all

function scr_weaponinfo_all() { for (i = 0; i < 12; i += 1) { scr_weaponinfo(global.weapon[i]); weaponname[i] = weaponnametemp; weapondesc[i] = weapondesctemp; wmessage2[i] = wmessage2temp; wmessage3[i] = wmessage3temp; 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; weaponvalue[i] = value; weaponability[i] = weaponabilitytemp; weaponabilityicon[i] = weaponabilityicontemp; weaponicon[i] = weaponicontemp; } }
();
303
        }
304
        if (idealmenu == 13)
305
        {
306
            scr_armorcheck_inventory
scr_armorcheck_inventory

function scr_armorcheck_inventory(arg0) { haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.armor[i] == arg0) haveit = 1; if (global.armor[i] == arg0) itemcount += 1; } return haveit; }
(0);
307
            if (itemcount == 12)
308
            {
309
                sidemessage = 2;
310
                can = 0;
311
            }
312
            scr_armorinfo_all
scr_armorinfo_all

function scr_armorinfo_all() { for (i = 0; i < 12; i += 1) { scr_armorinfo(global.armor[i]); armorname[i] = armornametemp; armordesc[i] = armordesctemp; amessage2[i] = amessage2temp; amessage3[i] = amessage3temp; 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; armorvalue[i] = value; armorability[i] = armorabilitytemp; armorabilityicon[i] = armorabilityicontemp; armoricon[i] = armoricontemp; } }
();
313
        }
314
        if (menuc[10] < menumax)
315
        {
316
            if (can == 1)
317
                menu = menuc[10] + 11;
318
            sidemessage1 = 0;
319
        }
320
        else
321
        {
322
            menu = 0;
323
        }
324
        submenu = 0;
325
        submenuc[1] = 0;
326
    }
327
    if (button2_p() && twobuffer < 0 && onebuffer < 0)
328
    {
329
        twobuffer = 2;
330
        menu = 0;
331
        with (obj_writer)
332
            instance_destroy();
333
    }
334
}
335
if (menu == 11 || menu == 12 || menu == 13)
336
{
337
    if (instance_exists(obj_writer) == false)
338
    {
339
        if (sidemessage2 == 0 && menu == 11)
340
            global.msg[0] = 
\E0What ITEM
shalt thou
proffer?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_305_0")
;
341
        if (sidemessage2 == 0 && menu == 12)
342
            global.msg[0] = 
\E0What WEAPON
shalt thou
proffer?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_306_0")
;
343
        if (sidemessage2 == 0 && menu == 13)
344
            global.msg[0] = 
\E0What ARMOR
shalt thou
proffer?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_307_0")
;
345
        if (sidemessage2 == 1)
346
            global.msg[0] = 
\E5I shall
make use
of this!
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_308_0")
;
347
        if (sidemessage2 == 2)
348
            global.msg[0] = 
\E6What?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_309_0")
;
349
        if (sidemessage2 == 3)
350
            global.msg[0] = 
\E6Er, NO
thank you.
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_310_0")
;
351
        if (sidemessage2 == 4)
352
            global.msg[0] = 
\E6What?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_311_0")
;
353
        instance_create(450, 260, obj_writer);
354
    }
355
}
356
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);
357
if (menu == 15 || menu == 16 || menu == 17)
358
{
359
    menumax = 1;
360
    draw_set_color(c_white);
361
    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");
362
    if (global.lang == "ja")
363
    {
364
        draw_text(460, 290, string_hash_to_newline(
Sell it for
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_323_0")
));
365
        draw_text(460, 260, "$" + string_hash_to_newline(string(sellvalue) + 
?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_324_0")
));
366
    }
367
    else
368
    {
369
        draw_text(460, 260, string_hash_to_newline(
Sell it for
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_323_0")
));
370
        draw_text(460, 290, "$" + string_hash_to_newline(string(sellvalue) + 
?
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_324_0")
));
371
    }
372
    draw_text(480, 340, string_hash_to_newline(
Yes
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_325_0")
));
373
    draw_text(480, 370, string_hash_to_newline(
No
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_326_0")
));
374
    draw_sprite(spr_heart, 0, 450, 350 + (menuc[menu] * 30));
375
}
376
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);
377
if (menu == 4)
378
{
379
    if (sell == 0)
380
        menu = 0;
381
    if (instance_exists(obj_writer) == false && selling == 0)
382
    {
383
        if (sell == 1)
384
        {
385
        }
386
        if (sell == 2)
387
        {
388
            global.msg[0] = 
\E5* See thou in the Dungeon,Delay 11 Worms!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_353_0")
;
389
            if (friendly == 1)
390
                global.msg[0] = 
\E5* Come by any time,Delay 11 my good Worms!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_354_0")
;
391
        }
392
        if (sell == 3)
393
        {
394
            global.msg[0] = 
\E0* I amst the Duke of Puzzles,Delay 11 Rouxls Kaard.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_358_0")
;
395
            global.msg[1] = 
\E4* My hobbies includest calligraphy,Delay 11 lawkeeping,Delay 11 bugkeeping,Delay 11 cages...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_359_0")
;
396
            global.msg[2] = 
\E1* ... and long walks in the dungeon.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_360_0")
;
397
            global.msg[3] = 
\E5* Artest thou one of my admirers,Delay 11 worm?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_361_0")
;
398
            if (friendly == 1)
399
                global.msg[3] = 
\E5* By the way,Delay 11 no hard feelingst about earlier,Delay 11 right?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_364_0")
;
400
        }
401
        if (sell == 4)
402
        {
403
            global.msg[0] = 
\E4* Hahaha!!Delay 11 So I might amasseth funds,Delay 11 Worms!Delay 11 An army of funds...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_371_0")
;
404
            global.msg[1] = 
\E1* So that I may crushest thou like Fermented Grapes,Delay 11 into a most delicious and adult beverage -Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_372_0")
;
405
            global.msg[2] = 
\E6* Vengeance!!Delay 11 Ahahaha!!!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_373_0")
;
406
            global.msg[3] = 
\E5* Oh,Delay 11 how I amuse myself!!!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_374_0")
;
407
            if (friendly == 1)
408
            {
409
                global.msg[0] = 
\E2* Haha,Delay 11 why of course I wouldst sell to my compatriarts,Delay 11 the Heroes Of Legend!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_378_0")
;
410
                global.msg[1] = 
\E5* Earlier art but a Test of your Heroick Resolve!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_379_0")
;
411
                global.msg[2] = 
\E6* Rouxls is ALWAYS on the winning side!!Delay 11 Thou can bet on that!!!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_380_0")
;
412
            }
413
        }
414
        if (sell == 5)
415
        {
416
            global.msg[0] = 
\E6* Our Lorde King art a cruel and terrifying Monarcke!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_386_0")
;
417
            global.msg[1] = 
\E2* However,Delay 11 he is also Brilliant,Delay 11 for he decidedesteth to appoinst ME,Delay 11 as Duke of Puzzles,Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_387_0")
;
418
            global.msg[2] = 
\E6* After pretty mucheth everyone else was firedst or placed inside a cage.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_388_0")
;
419
            global.msg[3] = 
\E4* Truly, a benevolent ruler!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_389_0")
;
420
            if (friendly == 1)
421
            {
422
                global.msg[0] = 
\E6* Yes, the King!Delay 11 A terrible Man!Delay 11 An awful Monarcke!Delay 11Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_392_0")
;
423
                global.msg[1] = 
\E2* Never likedeth that Guye,Delay 11 really!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_393_0")
;
424
                global.msg[2] = 
\E3* I just envisionethed,Delay 11 perhaps...Delay 11 If I acceptedst this High Ranking Positione...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_394_0")
;
425
                global.msg[3] = 
\E5* I could assist to overthroweth him from the Inside!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_395_0")
;
426
                global.msg[4] = 
\E6* ... What!?Delay 11 Cannot thou conceiveth of my plan?!?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_396_0")
;
427
            }
428
        }
429
        if (sell == 6)
430
        {
431
            global.msg[0] = 
\E0* His Son,Delay 11 on the other hand,Delay 11 is more troublesome than a fistful of fleas!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_402_0")
;
432
            global.msg[1] = 
\E1* He alwayst asks me the Worste Queries,Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_403_0")
;
433
            global.msg[2] = 
\E3* And calleth me his "Lesser Dad."Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_404_0")
;
434
            global.msg[3] = 
\E6* Our relation is NONE,Delay 11 you little water-beetle!Delay 11 I placate you for your Father's sake!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_405_0")
;
435
            global.msg[4] = 
\E6* I do not Wisheth to hear your MP3's!Delay 11 I would rather listen to the sweet song of Death!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_406_0")
;
436
            global.msg[5] = 
\E3* ...Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_407_0")
;
437
            global.msg[6] = 
\E2* How is he,Delay 11 anyhow?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_408_0")
;
438
            if (friendly == 1)
439
            {
440
                global.msg[0] = 
\E3* Perhaps my wording art a bit Harshe earlier... The King's offspring is a Darling!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_413_0")
;
441
                global.msg[1] = 
\E6* A strange and irritating darling!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_414_0")
;
442
                global.msg[2] = 
\E3* 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
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_415_0")
;
443
                global.msg[3] = 
\E6* Is this what it means to be High Ranking!?Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_416_0")
;
444
            }
445
        }
446
        instance_create(30, 270, obj_writer);
447
        selling = 1;
448
    }
449
    if (selling == 1 && instance_exists(obj_writer) == false)
450
    {
451
        if (sell == 2)
452
        {
453
            selling = 2;
454
            event_user(1);
455
        }
456
        else
457
        {
458
            if (sell == 1 || sell == 7)
459
                menu = 0;
460
            else
461
                menu = 3;
462
            sell = 0;
463
            selling = 0;
464
        }
465
    }
466
}
467
if (down_p())
468
{
469
    if (menu != 11 && menu != 12 && menu != 13)
470
    {
471
        menuc[menu] += 1;
472
        if (menuc[menu] > menumax)
473
            menuc[menu] = 0;
474
    }
475
}
476
if (up_p())
477
{
478
    if (menu != 11 && menu != 12 && menu != 13)
479
    {
480
        menuc[menu] -= 1;
481
        if (menuc[menu] < 0)
482
            menuc[menu] = menumax;
483
    }
484
}
485
if (menu < 4 || menu >= 10)
486
{
487
    draw_text(440, 420, "$" + string_hash_to_newline(string(global.gold)));
488
    if (menu == 1 || menu == 2)
489
    {
490
        if (menuc[1] < 4)
491
        {
492
            if (itemtype[menuc[1]] == "item")
493
                scr_itemcheck
scr_itemcheck

function scr_itemcheck(arg0) { haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.item[i] == arg0) haveit = 1; if (global.item[i] == arg0) itemcount += 1; } return haveit; }
(0);
494
            if (itemtype[menuc[1]] == "armor")
495
                scr_armorcheck_inventory
scr_armorcheck_inventory

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

function scr_weaponcheck_inventory(arg0) { haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.weapon[i] == arg0) haveit = 1; if (global.weapon[i] == arg0) itemcount += 1; } return haveit; }
(0);
498
            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");
499
            if (itemcount < 10)
500
                roomstring = "0" + string(itemcount);
501
            else
502
                roomstring = string(itemcount);
503
            if (itemcount > 0)
504
                draw_text(520, 430, string_hash_to_newline(
Space:
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_478_0")
+ roomstring));
505
            if (itemcount == 0)
506
                draw_text(520, 430, string_hash_to_newline(
NO SPACE
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_shop2_slash_Draw_0_gml_481_0")
));
507
        }
508
    }
509
}
510
onebuffer -= 1;
511
twobuffer -= 1;