Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_29_in_battle_cutscene_4_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
switch (scene)
4
{
5
    case 0:
6
        if (obj_heart_battle_fighting_parent.image_alpha > 0)
7
            obj_heart_battle_fighting_parent.image_alpha -= 0.2;
8
        else
9
            obj_heart_battle_fighting_parent.image_alpha = 0;
10
        cutscene_wait(1);
11
        break;
12
    case 1:
13
        obj_dialogue_box_battle_transformation_any.battle_box_resize_midfight = true;
14
        scene++;
15
        break;
16
    case 2:
17
        if (obj_dialogue_box_battle_transformation_any.battle_box_resize_midfight == false)
18
            cutscene_advance();
19
        break;
20
    case 3:
21
        scr_text_battle
scr_text_battle

function scr_text_battle() { if (!instance_exists(obj_dialogue_battle)) msg = instance_create(x, y, obj_dialogue_battle); }
();
22
        with (msg)
23
        {
24
            sndfnt = 108;
25
            message[0] = "* I think that did the#  trick!";
26
            message[1] = "* You're pretty clever in#  intense situations.";
27
            message[2] = "* I'm... impressed.";
28
            prt[0] = 374;
29
            prt[1] = 372;
30
            prt[2] = 370;
31
        }
32
        if (!global.dialogue_open)
33
            cutscene_advance();
34
        break;
35
    case 4:
36
        instance_destroy();
37
        with (obj_dialogue_box_battle_transformation_any)
38
            event_user(0);
39
        break;
40
}