Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_genocide_yellow_Step_2

(view raw script w/o annotations or w/e)
1
if (sprite_index != spr_flowey_enter)
2
{
3
    if (instance_exists(obj_quote_battle_flowey_genocide_yellow) && instance_exists(obj_quote_bubble_battle))
4
    {
5
        if (sprite_index != obj_quote_battle_flowey_genocide_yellow.portrait[obj_quote_battle_flowey_genocide_yellow.message_current])
6
            sprite_index = obj_quote_battle_flowey_genocide_yellow.portrait[obj_quote_battle_flowey_genocide_yellow.message_current]
7
    }
8
    else
9
        sprite_index = spr_flowey_nice
10
    if (instance_exists(obj_quote_battle_flowey_genocide_yellow) && instance_exists(obj_quote_bubble_battle))
11
    {
12
        if (obj_quote_battle_flowey_genocide_yellow.can_talk == true)
13
        {
14
            if (can_talk_no_loop == false)
15
            {
16
                image_index = 1
17
                can_talk_no_loop = true
18
            }
19
            image_speed = global.text_speed * global.talk_speed_flowey * obj_quote_battle_flowey_genocide_yellow.hold
20
        }
21
        else
22
        {
23
            can_talk_no_loop = false
24
            image_speed = 0
25
            image_index = 0
26
        }
27
    }
28
    else
29
    {
30
        can_talk_no_loop = false
31
        image_speed = 0
32
        image_index = 0
33
    }
34
}