Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_intro_yellow_Step_0

(view raw script w/o annotations or w/e)
1
if ((!instance_exists(obj_battle_enemy_attack_friendliness_pellets_yellow)) && (!instance_exists(obj_quote_battle_flowey_intro_parent_yellow)) && (!instance_exists(obj_battle_fade_out_screen)))
2
{
3
    hit_self_count += global.hit_self
4
    instance_create(367, 134, obj_quote_bubble_battle)
5
    if (hit_self_count == 0)
6
        instance_create(0, 0, obj_quote_battle_flowey_intro_success_yellow)
7
    else if (global.hit_self == false)
8
        instance_create(0, 0, obj_quote_battle_flowey_intro_failure_yellow)
9
    else if (hit_self_count == 1)
10
        instance_create(0, 0, obj_quote_battle_flowey_intro_miss_1_yellow)
11
    else if (hit_self_count == 2)
12
        instance_create(0, 0, obj_quote_battle_flowey_intro_miss_2_yellow)
13
    else if (hit_self_count == 3)
14
        instance_create(0, 0, obj_quote_battle_flowey_intro_miss_3_yellow)
15
    global.hit_self = false
16
    can_decrease_audio = true
17
}
18
if (global.hit_self == true && can_decrease_audio == true)
19
{
20
    if (hit_self_count >= 2)
21
        execute_audio_silence = true
22
    else
23
    {
24
        audio_pitch -= audio_decrease_rate
25
        audio_sound_pitch(mus_floweynew_yellow, audio_pitch)
26
    }
27
    can_decrease_audio = false
28
}
29
if (execute_audio_silence == true)
30
{
31
    if (audio_pitch > 0)
32
        audio_pitch -= audio_silence_rate
33
    audio_sound_pitch(mus_floweynew_yellow, audio_pitch)
34
    if (audio_pitch <= 0)
35
        execute_audio_silence = false
36
}