Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_16_in_battle_cutscene_Step_0

(view raw script w/o annotations or w/e)
1
switch (scene)
2
{
3
    case 0:
4
        scr_text_battle
scr_text_battle

function scr_text_battle() { if (!instance_exists(obj_dialogue_battle)) msg = instance_create(x, y, obj_dialogue_battle); }
();
5
        with (msg)
6
        {
7
            sndfnt = 108;
8
            message[0] = "* Wait! Another robot!?";
9
            prt[0] = 381;
10
        }
11
        if (!global.dialogue_open)
12
            cutscene_advance();
13
        break;
14
    case 1:
15
        instance_create(402, 68, obj_quote_bubble_battle_yellow_2);
16
        instance_create(0, 0, obj_quote_battle_jandroid_a);
17
        cutscene_advance();
18
        break;
19
    case 2:
20
        if (!instance_exists(obj_quote_battle_jandroid_a))
21
        {
22
            with (obj_heart_battle_fighting_parent)
23
                moveable = false;
24
            cutscene_advance();
25
        }
26
        break;
27
    case 3:
28
        scr_text_battle
scr_text_battle

function scr_text_battle() { if (!instance_exists(obj_dialogue_battle)) msg = instance_create(x, y, obj_dialogue_battle); }
();
29
        with (msg)
30
        {
31
            sndfnt = 108;
32
            message[0] = "* No way! We can't fight#  this thing!";
33
            message[1] = "* What if Chujin built-";
34
            message[2] = "* You know what? We'll#  talk later.";
35
            message[3] = "* Let's find a peaceful#  way around them.";
36
            message[4] = "* I'll do my best to#  provide defense for us.";
37
            prt[0] = 388;
38
            prt[1] = 381;
39
            prt[2] = 394;
40
            prt[3] = 377;
41
            prt[4] = 371;
42
        }
43
        if (!global.dialogue_open)
44
            cutscene_advance();
45
        break;
46
    case 4:
47
        with (obj_heart_battle_fighting_parent)
48
            image_alpha = 1;
49
        with (obj_quote_bubble_battle)
50
            instance_destroy();
51
        instance_destroy();
52
        global.sworks_flag[4] = true;
53
        with (obj_dialogue_box_battle_transformation_any)
54
            event_user(0);
55
        break;
56
}