Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_intro_shop_Step_0

(view raw script w/o annotations or w/e)
1
if (action[message_current] != "Override")
2
{
3
    script_execute(gml_Script_scr_controls_text)
4
    if (characters < message_length)
5
    {
6
        if (counter == 0)
7
        {
8
            script_execute(gml_Script_scr_text_increase)
9
            script_execute(talk_script[message_current])
10
        }
11
        else
12
            can_talk = false
13
    }
14
    else
15
    {
16
        can_talk = false
17
        if (key_select_pressed && skippable == true)
18
            message_advance = true
19
        if (message_advance == true)
20
        {
21
            if (message_current < message_end)
22
            {
23
                message_current += 1
24
                message_length = string_length(message[message_current])
25
                characters = 0
26
                message_draw = ""
27
                message_advance = false
28
            }
29
            else
30
            {
31
                global.sworks_flag[16] = 1
32
                instance_create(0, 120, obj_main_screen_shop)
33
                instance_create((obj_main_screen_shop.x + 210), obj_main_screen_shop.y, obj_item_description_screen_shop)
34
                if (global.route != 3)
35
                {
36
                    instance_create((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 10), obj_text_main_screen_shop)
37
                    instance_create((obj_main_screen_shop.x + 229), (obj_main_screen_shop.y + 19), obj_heart_main_screen_shop)
38
                    instance_create((obj_main_screen_shop.x + 20), (obj_main_screen_shop.y + 10), obj_dialogue_main_screen_shop)
39
                }
40
                else
41
                {
42
                    instance_create((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 10), obj_text_main_screen_shop_geno)
43
                    instance_create((obj_main_screen_shop.x + 229), (obj_main_screen_shop.y + 19), obj_heart_main_screen_shop_geno)
44
                    instance_create((obj_main_screen_shop.x + 20), (obj_main_screen_shop.y + 10), obj_dialogue_main_screen_shop_geno)
45
                }
46
                with (obj_talk_screen_shop)
47
                    instance_destroy()
48
                instance_destroy()
49
            }
50
        }
51
    }
52
    script_execute(gml_Script_scr_text_counter)
53
}