Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_07_controller_neutral_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 0:
4
        if (obj_pl.x <= 90)
5
            cutscene_advance()
6
        break
7
    case 1:
8
        scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
9
        cutscene_advance()
10
        break
11
    case 2:
12
        cutscene_sfx_play(snd_success, 1)
13
        break
14
    case 3:
15
        cutscene_instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
16
        break
17
    case 4:
18
        cutscene_npc_walk(1168, 80, 105, 3, "x", "up")
19
        break
20
    case 5:
21
        cutscene_wait(0.5)
22
        break
23
    case 6:
24
        with (obj_steamworks_07_lever)
25
        {
26
            image_speed = (1/3)
27
            audio_play_sound(snd_switch, 1, 0)
28
        }
29
        with (obj_steamworks_steam_blaster)
30
            instance_destroy()
31
        cutscene_advance()
32
        break
33
    case 7:
34
        if (obj_steamworks_07_lever.image_speed == 0)
35
            cutscene_advance()
36
        break
37
    case 8:
38
        cutscene_wait(1)
39
        break
40
    case 9:
41
        global.sworks_flag[8] = 1
42
        cutscene_end()
43
        break
44
}