Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_martlet_genocide_final_intro_Step_0

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