Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_defeat_Step_0

(view raw script w/o annotations or w/e)
1
var battle_enemy_name = global.battle_enemy_name
2
var game_mode = global.game_mode
3
script_execute(gml_Script_scr_controls_text)
4
if key_revert_pressed
5
{
6
    characters = message_length
7
    message_draw = string_copy(message[message_current], 0, characters)
8
}
9
if (characters < message_length)
10
{
11
    if (counter == 0)
12
    {
13
        script_execute(gml_Script_scr_text_increase)
14
        script_execute(talking_script)
15
    }
16
    else
17
        can_talk = false
18
}
19
else
20
{
21
    can_talk = false
22
    if key_select_pressed
23
    {
24
        if (message_current < message_end)
25
        {
26
            message_current += 1
27
            message_length = string_length(message[message_current])
28
            characters = 0
29
            message_draw = ""
30
        }
31
        else
32
        {
33
            if (game_mode == "yellow")
34
            {
35
                if (battle_enemy_name == "dalv")
36
                {
37
                    if (dialogue_extend == true)
38
                        alarm[0] = 30
alarm[0]

script_execute(gml_Script_scr_create_quote_bubble_battle_defeat) instance_create(0, 0, obj_quote_defeat_ext) instance_destroy()
39
                    else
40
                    {
41
                        global.enemy_dead = true
42
                        audio_play_sound(snd_monster_damage_death, 20, false)
43
                    }
44
                }
45
                else if (battle_enemy_name == "martlet genocide")
46
                    instance_create(0, 0, obj_battle_fade_out_screen)
47
                if (battle_enemy_name == "el bailador")
48
                {
49
                    global.enemy_dead = true
50
                    instance_create(0, 0, obj_dialogue_battle_win_genocide)
51
                    audio_play_sound(snd_monster_damage_death, 20, false)
52
                }
53
                else if (battle_enemy_name == "axis")
54
                {
55
                    global.enemy_dead = true
56
                    instance_create(0, 0, obj_dialogue_battle_win_genocide)
57
                    audio_play_sound(snd_monster_damage_death, 20, false)
58
                }
59
            }
60
            with (obj_quote_bubble_battle)
61
                instance_destroy()
62
            if (dialogue_extend == false)
63
                instance_destroy()
64
        }
65
    }
66
}
67
script_execute(gml_Script_scr_text_counter)