Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_29_in_battle_cutscene_1_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
        cutscene_wait(1)
7
        break
8
    case 1:
9
        obj_dialogue_box_battle_transformation_any.battle_box_resize_midfight = true
10
        scene++
11
        break
12
    case 2:
13
        if (obj_dialogue_box_battle_transformation_any.battle_box_resize_midfight == false)
14
            cutscene_advance()
15
        break
16
    case 3:
17
        scr_text_battle
scr_text_battle

function scr_text_battle() //gml_Script_scr_text_battle { if (!instance_exists(obj_dialogue_battle)) msg = instance_create(x, y, obj_dialogue_battle) }
()
18
        with (msg)
19
        {
20
            sndfnt = 108
21
            message[0] = "* Ack!"
22
            message[1] = "* I'm stuck, Clover!"
23
            message[2] = "* We need to find a way#  out of this! Fast!"
24
            prt[0] = 366
25
            prt[1] = 368
26
            prt[2] = 366
27
        }
28
        if (!global.dialogue_open)
29
            cutscene_advance()
30
        break
31
    case 4:
32
        instance_destroy()
33
        with (obj_dialogue_box_battle_transformation_any)
34
            event_user(0)
35
        break
36
}