Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_05_leave_trigger_Step_0

(view raw script w/o annotations or w/e)
1
if (place_meeting(x, y, obj_pl) && scene == 0)
2
{
3
    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 }
()
4
    scene = 1
5
}
6
if (scene == 1)
7
{
8
    cutscene_dialogue()
9
    with (msg)
10
    {
11
        sndfnt_array[0] = 108
12
        message[0] = "* Hey Clover, come back here.#  I think I figured it out."
13
    }
14
}
15
else if (scene == 2)
16
    cutscene_instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
17
else if (scene == 3)
18
    cutscene_npc_walk_relative(1168, 0, 30, 2, "y", "down")
19
else if (scene == 4)
20
{
21
    instance_destroy(obj_player_npc)
22
    scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
23
    scene = 0
24
}