Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_martlet_genocide_final_2_outro_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
script_execute(scr_controls_text);
4
if (instance_exists(obj_quote_bubble_battle))
5
{
6
    if (draw_enabled == false)
7
        obj_quote_bubble_battle.visible = 0;
8
    else
9
        obj_quote_bubble_battle.visible = 1;
10
}
11
script_execute(scr_cutscene_battle_martlet_final_2_outro);
12
if (save_message_alpha > 0)
13
    save_message_alpha -= 0.1;
14
else
15
    save_message_alpha = 0;
16
if (draw_enabled == false)
17
    exit;
18
if (key_revert_pressed)
19
{
20
    characters = message_length;
21
    message_draw = string_copy(message[message_current], 0, characters);
22
}
23
if (characters < message_length)
24
{
25
    if (counter == 0)
26
    {
27
        script_execute(scr_text_increase);
28
        if (message_current < 15)
29
        {
30
            script_execute(scr_talking_martlet);
31
        }
32
        else if (message_current < 42)
33
        {
34
            script_execute(scr_talking_flowey_1);
35
        }
36
        else
37
        {
38
            text_effect = "circle";
39
            script_execute(scr_talking_flowey_2);
40
        }
41
    }
42
    else
43
    {
44
        can_talk = false;
45
    }
46
}
47
else
48
{
49
    can_talk = false;
50
    if (key_select_pressed && skippable == true)
51
    {
52
        if (message_current < message_end)
53
        {
54
            message_adv = true;
55
        }
56
        else
57
        {
58
            with (obj_heart_battle_fighting_parent)
59
                moveable = true;
60
            with (obj_quote_bubble_battle)
61
                instance_destroy();
62
            instance_destroy();
63
        }
64
    }
65
}
66
if (message_adv == true)
67
{
68
    message_current += 1;
69
    message_length = string_length(message[message_current]);
70
    characters = 0;
71
    message_draw = "";
72
    draw_enabled = true;
73
    message_adv = false;
74
}
75
script_execute(scr_text_counter);