| 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_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); |
| 23 |
if (menu <= 3 || menu >= 10) |
| 24 |
{ |
| 25 |
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); |
| 26 |
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); |
| 27 |
} |
| 28 |
if (menu == 4) |
| 29 |
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); |
| 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] = ; |
| 43 |
if (mainmessage == 0) |
| 44 |
{ |
| 45 |
global.msg[0] = \E0* Welcome to my shop,Delay 11 you ungrateful worms. ; |
| 46 |
if (friendly == 1) |
| 47 |
global.msg[0] = \E0* Welcome,Delay 11 welcome,Delay 11 my Heroick Comrades! ; |
| 48 |
} |
| 49 |
instance_create(30, 270, obj_writer); |
| 50 |
} |
| 51 |
menumax = 3; |
| 52 |
draw_set_color(c_white); |
| 53 |
scr_84_set_draw_font("mainbig"); |
| 54 |
draw_text(480, 260, string_hash_to_newline()); |
| 55 |
draw_text(480, 300, string_hash_to_newline()); |
| 56 |
draw_text(480, 340, string_hash_to_newline()); |
| 57 |
draw_text(480, 380, string_hash_to_newline()); |
| 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("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()); |
| 91 |
if (menu == 1) |
| 92 |
{ |
| 93 |
menumax = 4; |
| 94 |
if (instance_exists(obj_writer) == false) |
| 95 |
{ |
| 96 |
if (sidemessage == 0) |
| 97 |
global.msg[0] = ; |
| 98 |
if (sidemessage == 1) |
| 99 |
{ |
| 100 |
global.msg[0] = ; |
| 101 |
if (friendly == 1) |
| 102 |
global.msg[0] = ; |
| 103 |
} |
| 104 |
if (sidemessage == 2) |
| 105 |
global.msg[0] = ; |
| 106 |
if (sidemessage == 3) |
| 107 |
global.msg[0] = ; |
| 108 |
if (sidemessage == 4) |
| 109 |
global.msg[0] = \E3Thou doth carry too much! ; |
| 110 |
if (murder == 1) |
| 111 |
global.msg[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("mainbig"); |
| 139 |
if (global.lang == "ja") |
| 140 |
{ |
| 141 |
draw_text(460, 290, string_hash_to_newline()); |
| 142 |
draw_text(460, 260, "$" + string_hash_to_newline(string(buyvalue[menuc[1]]) + )); |
| 143 |
} |
| 144 |
else |
| 145 |
{ |
| 146 |
draw_text(460, 260, string_hash_to_newline()); |
| 147 |
draw_text(460, 290, "$" + string_hash_to_newline(string(buyvalue[menuc[1]]) + )); |
| 148 |
} |
| 149 |
draw_text(480, 340, string_hash_to_newline()); |
| 150 |
draw_text(480, 370, string_hash_to_newline()); |
| 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_itemgetscr_itemgetfunction 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_weapongetscr_weapongetfunction 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_armorgetscr_armorgetfunction 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("mainbig"); |
| 218 |
draw_text(80, 260, string_hash_to_newline()); |
| 219 |
draw_text(80, 300, string_hash_to_newline()); |
| 220 |
draw_text(80, 340, string_hash_to_newline()); |
| 221 |
draw_text(80, 380, string_hash_to_newline()); |
| 222 |
draw_text(80, 420, string_hash_to_newline()); |
| 223 |
if (instance_exists(obj_writer) == false) |
| 224 |
{ |
| 225 |
global.msg[0] = \E5Ah,Delay 11 what is thine Intereste? ; |
| 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("mainbig"); |
| 260 |
draw_text(80, 260, string_hash_to_newline()); |
| 261 |
draw_text(80, 300, string_hash_to_newline()); |
| 262 |
draw_text(80, 340, string_hash_to_newline()); |
| 263 |
draw_text(80, 380, string_hash_to_newline()); |
| 264 |
if (instance_exists(obj_writer) == false) |
| 265 |
{ |
| 266 |
if (sidemessage == 0) |
| 267 |
global.msg[0] = \E0Showeth me your treasure! ; |
| 268 |
if (sidemessage == 1) |
| 269 |
global.msg[0] = \E2That seems to be all, no? ; |
| 270 |
if (sidemessage == 2) |
| 271 |
global.msg[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_itemcheckscr_itemcheckfunction 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_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;
}
} (); |
| 293 |
} |
| 294 |
if (idealmenu == 12) |
| 295 |
{ |
| 296 |
scr_weaponcheck_inventory(0); |
| 297 |
if (itemcount == 12) |
| 298 |
{ |
| 299 |
sidemessage = 2; |
| 300 |
can = 0; |
| 301 |
} |
| 302 |
scr_weaponinfo_allscr_weaponinfo_allfunction 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(0); |
| 307 |
if (itemcount == 12) |
| 308 |
{ |
| 309 |
sidemessage = 2; |
| 310 |
can = 0; |
| 311 |
} |
| 312 |
scr_armorinfo_allscr_armorinfo_allfunction 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? ; |
| 341 |
if (sidemessage2 == 0 && menu == 12) |
| 342 |
global.msg[0] = \E0What WEAPON shalt thou proffer? ; |
| 343 |
if (sidemessage2 == 0 && menu == 13) |
| 344 |
global.msg[0] = \E0What ARMOR shalt thou proffer? ; |
| 345 |
if (sidemessage2 == 1) |
| 346 |
global.msg[0] = \E5I shall make use of this! ; |
| 347 |
if (sidemessage2 == 2) |
| 348 |
global.msg[0] = ; |
| 349 |
if (sidemessage2 == 3) |
| 350 |
global.msg[0] = ; |
| 351 |
if (sidemessage2 == 4) |
| 352 |
global.msg[0] = ; |
| 353 |
instance_create(450, 260, obj_writer); |
| 354 |
} |
| 355 |
} |
| 356 |
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); |
| 357 |
if (menu == 15 || menu == 16 || menu == 17) |
| 358 |
{ |
| 359 |
menumax = 1; |
| 360 |
draw_set_color(c_white); |
| 361 |
scr_84_set_draw_font("mainbig"); |
| 362 |
if (global.lang == "ja") |
| 363 |
{ |
| 364 |
draw_text(460, 290, string_hash_to_newline()); |
| 365 |
draw_text(460, 260, "$" + string_hash_to_newline(string(sellvalue) + )); |
| 366 |
} |
| 367 |
else |
| 368 |
{ |
| 369 |
draw_text(460, 260, string_hash_to_newline()); |
| 370 |
draw_text(460, 290, "$" + string_hash_to_newline(string(sellvalue) + )); |
| 371 |
} |
| 372 |
draw_text(480, 340, string_hash_to_newline()); |
| 373 |
draw_text(480, 370, string_hash_to_newline()); |
| 374 |
draw_sprite(spr_heart, 0, 450, 350 + (menuc[menu] * 30)); |
| 375 |
} |
| 376 |
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); |
| 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 ; |
| 389 |
if (friendly == 1) |
| 390 |
global.msg[0] = \E5* Come by any time,Delay 11 my good Worms!Wait for inputClose Message ; |
| 391 |
} |
| 392 |
if (sell == 3) |
| 393 |
{ |
| 394 |
global.msg[0] = \E0* I amst the Duke of Puzzles,Delay 11 Rouxls Kaard.Wait for input ; |
| 395 |
global.msg[1] = \E4* My hobbies includest calligraphy,Delay 11 lawkeeping,Delay 11 bugkeeping,Delay 11 cages...Wait for input ; |
| 396 |
global.msg[2] = \E1* ... and long walks in the dungeon.Wait for input ; |
| 397 |
global.msg[3] = \E5* Artest thou one of my admirers,Delay 11 worm?Wait for inputClose Message ; |
| 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 ; |
| 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 ; |
| 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 ; |
| 405 |
global.msg[2] = \E6* Vengeance!!Delay 11 Ahahaha!!!Wait for input ; |
| 406 |
global.msg[3] = \E5* Oh,Delay 11 how I amuse myself!!!Wait for inputClose Message ; |
| 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 ; |
| 410 |
global.msg[1] = \E5* Earlier art but a Test of your Heroick Resolve!Wait for input ; |
| 411 |
global.msg[2] = \E6* Rouxls is ALWAYS on the winning side!!Delay 11 Thou can bet on that!!!Wait for inputClose Message ; |
| 412 |
} |
| 413 |
} |
| 414 |
if (sell == 5) |
| 415 |
{ |
| 416 |
global.msg[0] = \E6* Our Lorde King art a cruel and terrifying Monarcke!Wait for input ; |
| 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 ; |
| 418 |
global.msg[2] = \E6* After pretty mucheth everyone else was firedst or placed inside a cage.Wait for input ; |
| 419 |
global.msg[3] = \E4* Truly, a benevolent ruler!Wait for inputClose Message ; |
| 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 ; |
| 423 |
global.msg[1] = \E2* Never likedeth that Guye,Delay 11 really!Wait for input ; |
| 424 |
global.msg[2] = \E3* I just envisionethed,Delay 11 perhaps...Delay 11 If I acceptedst this High Ranking Positione...Wait for input ; |
| 425 |
global.msg[3] = \E5* I could assist to overthroweth him from the Inside!Wait for input ; |
| 426 |
global.msg[4] = \E6* ... What!?Delay 11 Cannot thou conceiveth of my plan?!?Wait for inputClose Message ; |
| 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 ; |
| 432 |
global.msg[1] = \E1* He alwayst asks me the Worste Queries,Wait for input ; |
| 433 |
global.msg[2] = \E3* And calleth me his "Lesser Dad."Wait for input ; |
| 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 ; |
| 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 ; |
| 436 |
global.msg[5] = ; |
| 437 |
global.msg[6] = \E2* How is he,Delay 11 anyhow?Wait for inputClose Message ; |
| 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 ; |
| 441 |
global.msg[1] = \E6* A strange and irritating darling!Wait for input ; |
| 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 ; |
| 443 |
global.msg[3] = \E6* Is this what it means to be High Ranking!?Wait for inputClose Message ; |
| 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_itemcheckscr_itemcheckfunction 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(0); |
| 496 |
if (itemtype[menuc[1]] == "weapon") |
| 497 |
scr_weaponcheck_inventory(0); |
| 498 |
scr_84_set_draw_font("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( + roomstring)); |
| 505 |
if (itemcount == 0) |
| 506 |
draw_text(520, 430, string_hash_to_newline()); |
| 507 |
} |
| 508 |
} |
| 509 |
} |
| 510 |
onebuffer -= 1; |
| 511 |
twobuffer -= 1; |