Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_geno_narration_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
if (place_meeting(x, y, obj_pl))
4
{
5
    var narrator = instance_create_depth(0, 0, -100, obj_dialogue_narrator);
6
    with (narrator)
7
    {
8
        for (var i = 0; i < array_length(other.message); i++)
9
            message[i] = other.message[i];
10
        draw_set_font(fnt_main);
11
        text_x[1] = 160 - (string_width(message[0]) * 0.5);
12
    }
13
    if (target_flag > global.hotland_flag[8])
14
        global.hotland_flag[8] = target_flag;
15
    instance_destroy();
16
}