Undertale script viewer

← back to main script listing

gml_Object_obj_battlecontroller_Other_10

related scripts: Alarm_0 • Create_0 • Destroy_0 • Draw_0 • KeyPress_117 • KeyPress_37 • KeyPress_38 • KeyPress_39 • KeyPress_40 • KeyPress_46 • KeyPress_49 • KeyPress_50 • KeyPress_80 • Keyboard_56 • Keyboard_57 • Other_10 • Other_5 • Step_0 • Step_1

(view raw script w/o annotations or w/e)
1
if (won == 1)
2
{
3
    if (instance_exists(OBJ_WRITER) == 0)
4
        room_goto(global.currentroom);
5
}
6
if (won == 1)
7
{
8
    if (instance_exists(OBJ_WRITER) == 1)
9
    {
10
        if (OBJ_WRITER.halt != 0)
11
            room_goto(global.currentroom);
12
    }
13
}