1 |
depth = (-room_height) - 164 |
2 |
var main_shop_screen_number = global.main_shop_screen_number |
3 |
var buy_shop_screen_number = global.buy_shop_screen_number |
4 |
item_max_count = 1 |
5 |
if (main_shop_screen_number == 1) |
6 |
{ |
7 |
for (i = 2; i <= 4; i += 1) |
8 |
{ |
9 |
if (global.shop_item[i] != "Nothing") |
10 |
item_max_count += 1 |
11 |
} |
12 |
} |
13 |
else if (main_shop_screen_number == 3) |
14 |
{ |
15 |
for (i = 2; i <= 4; i += 1) |
16 |
{ |
17 |
if (global.shop_talk[i] != "Nothing") |
18 |
item_max_count += 1 |
19 |
} |
20 |
} |
21 |
buy_shop_screen_number = global.buy_shop_screen_number |
22 |
if (buy_shop_screen_number == 1) |
23 |
{ |
24 |
x = obj_main_screen_shop.x + 19 |
25 |
y = obj_main_screen_shop.y + 19 |
26 |
} |
27 |
else if (buy_shop_screen_number == 2) |
28 |
{ |
29 |
x = obj_main_screen_shop.x + 19 |
30 |
y = obj_main_screen_shop.y + 39 |
31 |
} |
32 |
else if (buy_shop_screen_number == 3) |
33 |
{ |
34 |
x = obj_main_screen_shop.x + 19 |
35 |
y = obj_main_screen_shop.y + 59 |
36 |
} |
37 |
else if (buy_shop_screen_number == 4) |
38 |
{ |
39 |
x = obj_main_screen_shop.x + 19 |
40 |
y = obj_main_screen_shop.y + 79 |
41 |
} |
42 |
else if (buy_shop_screen_number == 5) |
43 |
{ |
44 |
x = obj_main_screen_shop.x + 19 |
45 |
y = obj_main_screen_shop.y + 99 |
46 |
} |
47 |
var player_character = global.player_character |
48 |
switch player_character |
49 |
{ |
50 |
case "CLOVER": |
51 |
sprite_index = spr_heart_yellow_overworld |
52 |
break |
53 |
} |