Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_macro_froggit_Step_0

(view raw script w/o annotations or w/e)
1
script_execute(gml_Script_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
switch global.turns_passed
10
{
11
    case 0:
12
        script_execute(gml_Script_scr_cutscene_battle_macro_1)
13
        break
14
}
15
16
if (!draw_enabled)
17
    return;
18
if key_revert_pressed
19
{
20
    characters = message_length
21
    message_draw = string_copy(message[message_current], 0, characters)
22
}
23
if (characters < message_length)
24
{
25
    if (counter == 0)
26
    {
27
        script_execute(gml_Script_scr_text_increase)
28
        script_execute(gml_Script_scr_talking_normal, voice_pitch)
29
    }
30
    else
31
        can_talk = false
32
}
33
else
34
{
35
    can_talk = false
36
    if (key_select_pressed && skippable == true)
37
    {
38
        if (message_current < message_end)
39
            message_adv = true
40
        else
41
        {
42
            with (obj_heart_battle_fighting_parent)
43
                moveable = true
44
            with (obj_quote_bubble_battle)
45
                instance_destroy()
46
            instance_destroy()
47
        }
48
    }
49
}
50
if (message_adv == true)
51
{
52
    message_current += 1
53
    message_length = string_length(message[message_current])
54
    characters = 0
55
    message_draw = ""
56
    draw_enabled = true
57
    message_adv = false
58
}
59
script_execute(gml_Script_scr_text_counter)