1 |
scr_depthscr_depthdepth = 50000 - ((y * 10) + (sprite_height * 10)); (0, 0, 0, 0, 0); |
2 |
if (global.flag[107 got_artifact] == 0) |
3 |
{ |
4 |
hasdog = 0; |
5 |
for (i = 0; i < 8; i += 1) |
6 |
{ |
7 |
if (global.item[i] == 27) |
8 |
hasdog = 1; |
9 |
} |
10 |
if (hasdog == 0) |
11 |
{ |
12 |
noroom = 0; |
13 |
scr_itemgetscr_itemgeti = 0;
loop = 1;
noroom = 0;
global.item[8] = 999;
while (loop == 1)
{
if (global.item[i] == 0)
{
global.item[i] = argument0;
break;
}
if (i == 8)
{
script_execute(scr_itemnospace);
break;
}
i += 1;
}
ossafe_ini_open("undertale.ini");
var bc = ini_read_real("General", "BC", 0);
if (bc < 4)
{
bc++;
ini_write_real("General", "BC", bc);
ossafe_ini_close();
ossafe_savedata_save();
}
else
{
ossafe_ini_close();
}
if (bc >= 1)
trophy_unlock("item_1");
if (bc >= 2)
trophy_unlock("item_2");
if (bc >= 3)
trophy_unlock("item_3");
if (bc >= 4)
trophy_unlock("item_4");
script_execute(scr_itemnameb);
script_execute(scr_itemname); (27); |
14 |
if (noroom != 1) |
15 |
global.flag[107 got_artifact] = 2; |
16 |
} |
17 |
} |
18 |
if (con == 1 && instance_exists(OBJ_WRITER) == 0) |
19 |
{ |
20 |
myinteract = 0; |
21 |
global.interact = 1; |
22 |
caster_pause(global.currentsong); |
23 |
snd_play(snd_grab); |
24 |
if (global.facing != 3) |
25 |
{ |
26 |
dog = instance_create(obj_mainchara.x + 30, obj_mainchara.y + 10, obj_tobdog_pendant); |
27 |
dog.sprite_index = spr_tobdogr; |
28 |
} |
29 |
else |
30 |
{ |
31 |
dog = instance_create(obj_mainchara.x - 30, obj_mainchara.y + 10, obj_tobdog_pendant); |
32 |
dog.sprite_index = spr_tobdogl; |
33 |
} |
34 |
alarm[4] = 30; |
35 |
con = 2; |
36 |
} |
37 |
if (con == 3) |
38 |
{ |
39 |
with (dog) |
40 |
con = 1; |
41 |
caster_play(dogsong, 1, 1); |
42 |
con = 4; |
43 |
} |
44 |
if (con == 5) |
45 |
{ |
46 |
res = floor(random(5)); |
47 |
scr_itemgetscr_itemgeti = 0;
loop = 1;
noroom = 0;
global.item[8] = 999;
while (loop == 1)
{
if (global.item[i] == 0)
{
global.item[i] = argument0;
break;
}
if (i == 8)
{
script_execute(scr_itemnospace);
break;
}
i += 1;
}
ossafe_ini_open("undertale.ini");
var bc = ini_read_real("General", "BC", 0);
if (bc < 4)
{
bc++;
ini_write_real("General", "BC", bc);
ossafe_ini_close();
ossafe_savedata_save();
}
else
{
ossafe_ini_close();
}
if (bc >= 1)
trophy_unlock("item_1");
if (bc >= 2)
trophy_unlock("item_2");
if (bc >= 3)
trophy_unlock("item_3");
if (bc >= 4)
trophy_unlock("item_4");
script_execute(scr_itemnameb);
script_execute(scr_itemname); (29 + res); |
48 |
global.interact = 0; |
49 |
caster_stop(dogsong); |
50 |
caster_set_volume(global.currentsong, 0); |
51 |
caster_resume(global.currentsong); |
52 |
instance_create(0, 0, obj_musfadein); |
53 |
global.flag[107 got_artifact] = 1; |
54 |
con = 6; |
55 |
myinteract = 0; |
56 |
anti_buffer = 0; |
57 |
} |
58 |
if (con > 0 && con < 6) |
59 |
{ |
60 |
global.interact = 1; |
61 |
anti_buffer = 1; |
62 |
} |