Undertale script viewer

← back to main script listing

gml_Object_obj_forcedright_Collision_1576

(view raw script w/o annotations or w/e)
1
if (global.plot < 50 && t == 0)
2
{
3
    if (instance_exists(obj_encountererparent))
4
    {
5
        with (obj_encountererparent)
6
            steps += 200;
7
        global.encounter = 0;
8
    }
9
    t = 1;
10
    global.interact = 1;
11
    obj_mainchara.hspeed = 3;
12
    obj_mainchara.image_speed = 0.25;
13
    alarm[0] = 30;
gml_Object_obj_forcedright_Alarm_0.gml

global.facing = 0; obj_mainchara.hspeed = 0; obj_mainchara.image_index = 0; obj_mainchara.image_speed = 0; t = 2; dog1 = instance_create(obj_mainchara.x - 34, room_height - 40, obj_mandog_actor); dog2 = instance_create(obj_mainchara.x + 20, room_height - 40, obj_womandog_actor); dog1.vspeed = -1; dog2.vspeed = -1; alarm[2] = 142;
14
    vol = caster_get_volume(global.currentsong);
15
    vol1 = vol;
16
}