Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_sell_real_shop_Create_0

(view raw script w/o annotations or w/e)
1
depth = -room_height - 164;
2
var game_mode = global.game_mode;
3
var shop_name = global.shop_name;
4
if (game_mode == "customs")
5
{
6
    if (shop_name == "Mart-2-Go")
7
    {
8
        message[0] = "* Alright, catch you on the flip#  side!#* Peace out!";
9
        portrait_author_head[0] = spr_author_head_normal_new_shop;
10
        portrait_author_torso[0] = spr_author_torso_normal_new_shop;
11
        point[0] = 1;
12
        talk_script[0] = scr_talking_author;
13
        for (i = 0; i < array_length_1d(message); i += 1)
14
            action[i] = "Nothing";
15
    }
16
}
17
else if (game_mode == "yellow")
18
{
19
    if (shop_name == "Mart-2-Go")
20
    {
21
        message[0] = "* Alright, catch you on the flip#  side!#* Peace out!";
22
        portrait_author_head[0] = spr_author_head_normal_new_shop;
23
        portrait_author_torso[0] = spr_author_torso_normal_new_shop;
24
        point[0] = 1;
25
        talk_script[0] = scr_talking_author;
26
        for (i = 0; i < array_length_1d(message); i += 1)
27
            action[i] = "Nothing";
28
    }
29
    else if (shop_name == "Honeydew Resort Normal")
30
    {
31
        message[0] = "* See ya! Thanks for being so#  kind!";
32
        portrait[0] = 1410;
33
        point[0] = 1;
34
        talk_script[0] = scr_talking_honeydew_bear;
35
        for (i = 0; i < array_length_1d(message); i += 1)
36
            action[i] = "Nothing";
37
    }
38
    else if (shop_name == "Wild East Gunshop")
39
    {
40
        message[0] = "* Thank you! I will make#  good use of this!";
41
        portrait[0] = 1412;
42
        point[0] = 1;
43
        talk_script[0] = scr_talking_blackjack;
44
        for (i = 0; i < array_length_1d(message); i += 1)
45
            action[i] = "Nothing";
46
    }
47
}
48
message_current = 0;
49
message_end = 0;
50
message_draw = "";
51
increase = global.text_speed;
52
characters = 0;
53
hold = 0;
54
message_length = string_length(message[message_current]);
55
script_execute(scr_generate_text_counters);