Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_game_over_text_Step_0

(view raw script w/o annotations or w/e)
1
if (fade_out == true)
2
{
3
    if (image_alpha > 1)
4
        image_alpha -= 0.2
5
    else
6
    {
7
        instance_create(0, 0, obj_game_over_choice)
8
        instance_destroy()
9
    }
10
    return;
11
}
12
var battle_enemy_name = global.battle_enemy_name
13
script_execute(gml_Script_scr_controls_text)
14
if key_revert_pressed
15
{
16
    characters = message_length
17
    message_draw = string_copy(message[message_current], 0, characters)
18
}
19
if (characters < message_length)
20
{
21
    if (counter == 0)
22
    {
23
        script_execute(gml_Script_scr_text_increase)
24
        script_execute(gml_Script_scr_talking_game_over)
25
    }
26
    else
27
        can_talk = false
28
}
29
if (characters == message_length && no_loop == false)
30
{
31
    can_talk = false
32
    if key_select_pressed
33
    {
34
        if (message_current < message_end)
35
        {
36
            message_current += 1
37
            message_length = string_length(message[message_current])
38
            characters = 0
39
            message_draw = ""
40
        }
41
        else
42
        {
43
            fade_out = true
44
            no_loop = true
45
        }
46
    }
47
}
48
script_execute(gml_Script_scr_text_counter)