Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_17b_controller_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 1:
4
        if (obj_steamworks_17_manta_gate_button.image_speed == 0)
5
        {
6
            audio_play_sound(snd_manta_gate_open, 1, 0)
7
            obj_steamworks_17_manta_gate_button.image_speed = (1/3)
8
        }
9
        if (obj_steamworks_17_manta_gate_button.image_index >= (obj_steamworks_17_manta_gate_button.image_number - 1))
10
        {
11
            obj_steamworks_17_manta_gate_button.image_speed = 0
12
            cutscene_advance()
13
        }
14
        break
15
    case 2:
16
        cutscene_wait(1)
17
        break
18
    case 3:
19
        cutscene_change_room(165, 690, 280, 0.1)
20
        break
21
    case 4:
22
        obj_pl.image_alpha = 0
23
        if (global.party_member != noone)
24
            global.party_member.image_alpha = 0
25
        cutscene_advance()
26
        break
27
    case 5:
28
        cutscene_wait(1)
29
        break
30
    case 6:
31
        with (obj_steamworks_17_bars)
32
        {
33
            sprite_index = spr_steamworks_17_bars
34
            image_speed = (1/3)
35
        }
36
        cutscene_advance()
37
        break
38
    case 7:
39
        if (obj_steamworks_17_bars.image_index >= (obj_steamworks_17_bars.image_number - 1))
40
        {
41
            obj_steamworks_17_bars.image_speed = 0
42
            cutscene_advance()
43
        }
44
        break
45
    case 8:
46
        cutscene_wait(1)
47
        break
48
    case 9:
49
        cutscene_change_room(279, 180, 140, 0.1)
50
        break
51
    case 10:
52
        obj_steamworks_17_manta_gate_button.image_index = obj_steamworks_17_manta_gate_button.image_number - 1
53
        obj_pl.image_alpha = 1
54
        if (global.party_member != noone)
55
        {
56
            global.party_member.image_alpha = 1
57
            global.party_member.y = obj_pl.y + 20
58
        }
59
        cutscene_advance()
60
        break
61
    case 11:
62
        cutscene_wait(0.5)
63
        break
64
    case 12:
65
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
66
        global.sworks_flag[9] = 1
67
        instance_destroy()
68
        break
69
}