Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_battle_win_martlet_final_Step_0

(view raw script w/o annotations or w/e)
1
if (obj_dialogue_box_battle.image_alpha > 0)
2
{
3
    script_execute(gml_Script_scr_controls_text)
4
    if (can_check_display_text == true)
5
        display_text = script_execute(gml_Script_scr_determine_display_text_battle_boss_genocide)
6
    if (display_text == true)
7
    {
8
        if key_revert_pressed
9
        {
10
            characters = message_length
11
            message_draw = string_copy(message[message_current], 0, characters)
12
        }
13
        if (characters < message_length)
14
        {
15
            if (counter == 0)
16
            {
17
                script_execute(gml_Script_scr_text_increase)
18
                script_execute(gml_Script_scr_talking_text)
19
            }
20
            else
21
                can_talk = false
22
        }
23
        else
24
        {
25
            can_talk = false
26
            if key_select_pressed
27
            {
28
                if (message_current < message_end)
29
                {
30
                    message_current += 1
31
                    message_length = string_length(message[message_current])
32
                    characters = 0
33
                    message_draw = ""
34
                }
35
                else if (moveable == true)
36
                {
37
                    instance_destroy()
38
                    moveable = false
39
                }
40
            }
41
        }
42
        script_execute(gml_Script_scr_text_counter)
43
    }
44
}