1 |
global.hp = 0; |
2 |
if (global.battlegroup == 22) |
3 |
obj_torielboss.sprite_index = spr_torielboss_mouthcover; |
4 |
if (instance_exists(obj_asgoreb)) |
5 |
{ |
6 |
ossafe_ini_open("undertale.ini"); |
7 |
ky = ini_read_real("Asgore", "KillYou", 0); |
8 |
ini_write_real("Asgore", "KillYou", ky + 1); |
9 |
ossafe_ini_close(); |
10 |
ossafe_savedata_save(); |
11 |
} |
12 |
if (instance_exists(obj_spiderb)) |
13 |
global.tempvalue[11] += 1; |
14 |
ossafe_ini_open("undertale.ini"); |
15 |
g_o = ini_read_real("General", "Gameover", 0); |
16 |
ossafe_ini_close(); |
17 |
audio_stop_all(); |
18 |
caster_stop(all); |
19 |
caster_free(all); |
20 |
if (instance_exists(obj_heart)) |
21 |
{ |
22 |
global.myxb = obj_heart.x; |
23 |
global.myyb = obj_heart.y; |
24 |
} |
25 |
if (instance_exists(obj_fakeheart)) |
26 |
{ |
27 |
global.myxb = obj_fakeheart.x; |
28 |
global.myyb = obj_fakeheart.y; |
29 |
} |
30 |
room_goto(room_gameover Game Over [Dogchecked]); |