Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_martlet_genocide_apologize_Step_0

(view raw script w/o annotations or w/e)
1
script_execute(gml_Script_scr_controls_text)
2
if key_revert_pressed
3
{
4
    characters = message_length
5
    message_draw = string_copy(message[message_current], 0, characters)
6
}
7
if (characters < message_length)
8
{
9
    if (counter == 0)
10
    {
11
        script_execute(gml_Script_scr_text_increase)
12
        script_execute(gml_Script_scr_talking_martlet)
13
    }
14
    else
15
        can_talk = false
16
}
17
else
18
{
19
    can_talk = false
20
    if key_select_pressed
21
    {
22
        if (message_current < message_end)
23
        {
24
            message_current += 1
25
            message_length = string_length(message[message_current])
26
            characters = 0
27
            message_draw = ""
28
        }
29
        else if (global.action_1_selected_count >= 2)
30
        {
31
            if (!instance_exists(obj_battle_fade_out_screen))
32
            {
33
                instance_create(0, 0, obj_battle_justice_effect)
34
                instance_create(0, 0, obj_battle_fade_out_screen)
35
                global.snowdin_flag[21] = 0
36
                global.snowdin_flag[13] = 3
37
                global.enemy_spared = true
38
            }
39
        }
40
        else
41
        {
42
            script_execute(gml_Script_scr_martlet_genocide_no_attack)
43
            with (obj_quote_bubble_battle)
44
                instance_destroy()
45
            instance_destroy()
46
        }
47
    }
48
}
49
script_execute(gml_Script_scr_text_counter)