Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_16_controller_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 0:
4
        if instance_exists(obj_ex)
5
        {
6
            persistent = true
7
            cutscene_advance()
8
        }
9
        break
10
    case 1:
11
        if (room != rm_battle)
12
            return;
13
        cutscene_advance()
14
        break
15
    case 2:
16
        if (room == rm_battle)
17
            return;
18
        if instance_exists(obj_enemy_kill_check_pacifist_steamworks)
19
        {
20
            instance_destroy()
21
            return;
22
        }
23
        instance_destroy(global.party_member)
24
        instance_create(250, 190, obj_ceroba_npc)
25
        obj_ceroba_npc.npc_direction = "left"
26
        obj_pl.x = 220
27
        obj_pl.y = 190
28
        obj_pl.direction = 0
29
        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 }
()
30
        cutscene_advance()
31
        break
32
    case 3:
33
        cutscene_wait(2)
34
        break
35
    case 4:
36
        cutscene_dialogue()
37
        with (msg)
38
        {
39
            talker[0] = 1161
40
            message[0] = "* They're gone."
41
            message[1] = "* Sigh... This is so#  confusing..."
42
            message[2] = "* I thought Axis said he#  was the last of his#  kind?"
43
            message[3] = "* Wait... he introduced#  himself as \"Model 014\"."
44
            message[4] = "* There must have been 13#  other guard-bot#  prototypes."
45
            message[5] = "* Guess we're lucky only#  one still functions,#  huh."
46
            message[6] = "* Still, this thing#  definitely wasn't a#  guard-bot..."
47
            message[7] = "* We don't know how many#  other robot types are#  out there."
48
            message[8] = "* We'll figure it out in#  due time, I'm sure."
49
            message[9] = "* Just... be extremely#  careful."
50
            prt[0] = 394
51
            prt[1] = 394
52
            prt[2] = 370
53
            prt[3] = 393
54
            prt[4] = 370
55
            prt[5] = 395
56
            prt[6] = 370
57
            prt[7] = 370
58
            prt[8] = 377
59
            prt[9] = 394
60
        }
61
        break
62
    case 5:
63
        with (instance_create(obj_ceroba_npc.x, obj_ceroba_npc.y, global.party_member))
64
        {
65
            sprite_index = left_sprite_idle
66
            npc_reset = true
67
        }
68
        instance_destroy(obj_ceroba_npc)
69
        global.sworks_flag[4] = 1
70
        cutscene_end()
71
        break
72
}