Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_final_body_intro_Step_2

(view raw script w/o annotations or w/e)
1
var text_parent = obj_quote_battle_martlet_genocide_final_intro
2
if (sprite_index != spr_martlet_final_intro_1 && sprite_index != spr_martlet_final_intro_3)
3
    return;
4
if (instance_exists(text_parent) && text_parent.draw_enabled == true)
5
{
6
    if instance_exists(obj_quote_bubble_battle)
7
    {
8
        if (text_parent.can_talk == true)
9
        {
10
            if (can_talk_no_loop == false)
11
            {
12
                image_index = 1
13
                can_talk_no_loop = true
14
            }
15
            image_speed = global.text_speed * global.talk_speed_martlet * text_parent.hold
16
        }
17
        else
18
        {
19
            can_talk_no_loop = false
20
            image_speed = 0
21
            image_index = 0
22
        }
23
    }
24
    else
25
    {
26
        can_talk_no_loop = false
27
        image_speed = 0
28
        image_index = 0
29
    }
30
}