1 |
door = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (236, 26, spr_classdoor); |
2 |
with (door) |
3 |
scr_depth(); |
4 |
con = 0; |
5 |
customcon = 0; |
6 |
customconb = 0; |
7 |
global.facing = 0; |
8 |
noelle_npc = instance_create(76, 152, obj_npc_facing); |
9 |
berdly_npc = instance_create(148, 152, obj_npc_facing); |
10 |
introtime = 0; |
11 |
nonpctime = 0; |
12 |
sunsettime = 0; |
13 |
doormake = 0; |
14 |
alphystime = 0; |
15 |
if (global.chapter == 1) |
16 |
{ |
17 |
if (global.plot < 2) |
18 |
introtime = 1; |
19 |
if (global.plot >= 3) |
20 |
{ |
21 |
sunsettime = 1; |
22 |
doormake = 1; |
23 |
} |
24 |
} |
25 |
if (global.chapter == 2) |
26 |
{ |
27 |
if (global.plot < 3) |
28 |
introtime = 1; |
29 |
if (global.plot >= 3) |
30 |
{ |
31 |
nonpctime = 1; |
32 |
doormake = 1; |
33 |
alphystime = 1; |
34 |
} |
35 |
if (global.plot >= 5) |
36 |
{ |
37 |
nonpctime = 1; |
38 |
alphystime = 0; |
39 |
} |
40 |
if (global.plot >= 100) |
41 |
sunsettime = 1; |
42 |
} |
43 |
if (introtime == 1) |
44 |
{ |
45 |
snd_free_all(); |
46 |
global.facing = 0; |
47 |
con = 1; |
48 |
with (obj_mainchara) |
49 |
{ |
50 |
x = 240; |
51 |
y = 30; |
52 |
scr_depth(); |
53 |
} |
54 |
alphys = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (50, 50, spr_alphysd); |
55 |
with (alphys) |
56 |
scr_depth(); |
57 |
global.interact = 1; |
58 |
} |
59 |
if (nonpctime == 1) |
60 |
{ |
61 |
with (obj_npc_facing) |
62 |
instance_destroy(); |
63 |
if (global.plot < 200) |
64 |
{ |
65 |
with (obj_tem_school) |
66 |
instance_destroy(); |
67 |
} |
68 |
} |
69 |
if (doormake == 1) |
70 |
{ |
71 |
doorb = instance_create(242, 48, obj_doorB); |
72 |
with (door) |
73 |
depth = 900000; |
74 |
with (doorb) |
75 |
{ |
76 |
doorFacing = 0; |
77 |
doorPreset = 1; |
78 |
} |
79 |
} |
80 |
if (sunsettime == 1) |
81 |
{ |
82 |
with (obj_npc_facing) |
83 |
instance_destroy(); |
84 |
if (global.plot < 200) |
85 |
{ |
86 |
with (obj_tem_school) |
87 |
instance_destroy(); |
88 |
} |
89 |
sunset = scr_markerscr_markerfunction scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (3, 0, spr_torielclass_sunsetoverlay); |
90 |
with (sunset) |
91 |
{ |
92 |
image_alpha = 0.4; |
93 |
depth = 2000; |
94 |
} |
95 |
instance_destroy(); |
96 |
} |