Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_intro_yellow_Step_2

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