Undertale script viewer

← back to main script listing

gml_Object_obj_battleblcon_Alarm_0

(view raw script w/o annotations or w/e)
1
global.flag[10 spared_last] = 0;
2
global.flag[11 escaped_last] = 0;
3
global.flag[12 killed_last] = 0;
4
global.flag[13 bored_last] = 0;
5
global.entrance = 0;
6
obj_mainchara.depth = -600;
7
battle = 1;
8
if (room == room_asghouse1)
9
    battle = 2;
10
if (room == room_asghouse2)
11
    battle = 2;
12
if (room == room_asghouse3)
13
    battle = 2;
14
if (room == room_kitchen_final)
15
    battle = 2;
16
if (battle == 1)
17
{
18
    if (instance_exists(obj_battler) == 0)
19
        instance_create(0, 0, obj_battler);
20
}
21
if (battle == 2)
22
{
23
    if (instance_exists(obj_battlerstory) == 0)
24
        instance_create(0, 0, obj_battlerstory);
25
}
26
instance_destroy();