Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland_roof_martlet_vine_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 0:
4
        if (image_index >= 4)
5
        {
6
            audio_play_sound(snd_monster_damage_hit_critical, 1, 0)
7
            scene++
8
            image_speed = 0.3
9
            obj_martlet_npc.image_alpha = 0
10
            draw_white_overlay = true
11
            alarm[0] = 2
alarm[0]

draw_white_overlay = false
12
        }
13
        break
14
    case 1:
15
        if (image_index >= 12)
16
        {
17
            image_speed = 0
18
            obj_hotland_roof_cutscene_neutral.scene++
19
            scene++
20
        }
21
        break
22
    case 2:
23
        break
24
    case 3:
25
        image_speed = 1
26
        audio_play_sound(mus_flowey_roof_intro_1, 1, 0)
27
        scene++
28
        break
29
    case 4:
30
        if (image_index >= 47)
31
            cutscene_sfx_play(snd_monster_damage_death, 1)
32
        break
33
    case 5:
34
        if (image_index >= 60)
35
        {
36
            image_speed = 0
37
            cutscene_wait(1.5)
38
        }
39
        break
40
    case 6:
41
        image_speed = 1
42
        scene++
43
        break
44
    case 7:
45
        if (image_index >= (image_number - 1))
46
        {
47
            image_speed = 0
48
            image_index = image_number - 1
49
            scene++
50
        }
51
        break
52
    case 8:
53
        instance_create(obj_martlet_npc.x, obj_martlet_npc.y, obj_flowey_npc)
54
        obj_flowey_npc.down_sprite_idle = 441
55
        instance_destroy(obj_martlet_npc)
56
        obj_pl.y += 40
57
        obj_camera.y += 80
58
        cutscene_advance()
59
        break
60
    case 9:
61
        cutscene_wait(1)
62
        break
63
    case 10:
64
        overlay_alpha -= 0.01
65
        if (overlay_alpha <= 0)
66
        {
67
            obj_hotland_roof_cutscene_neutral.scene++
68
            instance_destroy(obj_screenshake_player)
69
            instance_destroy()
70
        }
71
        break
72
}