Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_sell_screen_shop_Create_0

(view raw script w/o annotations or w/e)
1
depth = (-room_height) - 164
2
var main_shop_screen_number = global.main_shop_screen_number
3
var sell_shop_screen_number = global.sell_shop_screen_number
4
sell_shop_screen_number = global.sell_shop_screen_number
5
if (sell_shop_screen_number == 1)
6
{
7
    x = obj_talk_screen_shop.x + 19
8
    y = obj_talk_screen_shop.y + 19
9
}
10
else if (sell_shop_screen_number == 2)
11
{
12
    x = obj_talk_screen_shop.x + 19
13
    y = obj_talk_screen_shop.y + 39
14
}
15
else if (sell_shop_screen_number == 3)
16
{
17
    x = obj_talk_screen_shop.x + 19
18
    y = obj_talk_screen_shop.y + 59
19
}
20
else if (sell_shop_screen_number == 4)
21
{
22
    x = obj_talk_screen_shop.x + 19
23
    y = obj_talk_screen_shop.y + 79
24
}
25
else if (sell_shop_screen_number == 5)
26
{
27
    x = obj_talk_screen_shop.x + 179
28
    y = obj_talk_screen_shop.y + 19
29
}
30
else if (sell_shop_screen_number == 6)
31
{
32
    x = obj_talk_screen_shop.x + 179
33
    y = obj_talk_screen_shop.y + 39
34
}
35
else if (sell_shop_screen_number == 7)
36
{
37
    x = obj_talk_screen_shop.x + 179
38
    y = obj_talk_screen_shop.y + 59
39
}
40
else if (sell_shop_screen_number == 8)
41
{
42
    x = obj_talk_screen_shop.x + 179
43
    y = obj_talk_screen_shop.y + 79
44
}
45
else if (sell_shop_screen_number == 9)
46
{
47
    x = obj_talk_screen_shop.x + 19
48
    y = obj_talk_screen_shop.y + 99
49
}
50
var player_character = global.player_character
51
switch player_character
52
{
53
    case "CLOVER":
54
        sprite_index = spr_heart_yellow_overworld
55
        break
56
}