Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_35_in_battle_cutscene_2_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 0:
4
        cutscene_wait(0.75)
5
        break
6
    case 1:
7
        cutscene_sfx_play(snd_undertale_explosion, 1)
8
        scr_screenshake_battle
scr_screenshake_battle

function scr_screenshake_battle() //gml_Script_scr_screenshake_battle { instance_destroy(obj_screenshake_battle) var screenshake = instance_create(0, 0, obj_screenshake_battle) battle_screenshake_duration = argument[0] battle_screenshake_intensity = argument[1] battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration }
(20, 2)
9
        break
10
    case 2:
11
        cutscene_wait(1.5)
12
        break
13
    case 3:
14
        obj_dialogue_box_battle_transformation_any.battle_box_resize_midfight = true
15
        scene++
16
        break
17
    case 4:
18
        if (obj_dialogue_box_battle_transformation_any.battle_box_resize_midfight == false)
19
            cutscene_advance()
20
        break
21
    case 5:
22
        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) }
()
23
        with (msg)
24
        {
25
            sndfnt = 108
26
            message[0] = "* And there we go!"
27
            message[1] = "* Good job holding your#  own while I was#  occupied."
28
            message[2] = "* Axis seems pretty#  dazed, one more shock#  should do him in!"
29
            message[3] = "* Let's end this!"
30
            prt[0] = 372
31
            prt[1] = 372
32
            prt[2] = 371
33
            prt[3] = 370
34
        }
35
        if (!global.dialogue_open)
36
            cutscene_advance()
37
        break
38
    case 6:
39
        global.party_member = 1171
40
        scene++
41
        break
42
    case 7:
43
        with (obj_dialogue_box_battle_transformation_any)
44
            event_user(0)
45
        instance_destroy()
46
        break
47
}