1 |
scr_depth(); |
2 |
global.currentroom = scr_get_id_by_room_index(room); |
3 |
scr_initialize_charnamesscr_initialize_charnamesfunction scr_initialize_charnames()
{
global.lcharname = stringsetloc( Kris"Kris", "scr_gamestart_slash_scr_gamestart_gml_396_0" );
global.charname[0] = stringsetloc( " ", "scr_gamestart_slash_scr_gamestart_gml_101_0_b" );
global.charname[1] = stringsetloc( Kris"Kris", "scr_gamestart_slash_scr_gamestart_gml_99_0" );
global.charname[2] = stringsetloc( Susie"Susie", "scr_gamestart_slash_scr_gamestart_gml_100_0" );
global.charname[3] = stringsetloc( Ralsei"Ralsei", "scr_gamestart_slash_scr_gamestart_gml_101_0" );
global.charname[4] = stringsetloc( Noelle"Noelle", "scr_gamestart_slash_scr_gamestart_gml_105_0" );
} (); |
4 |
autorun = 0; |
5 |
bg = 0; |
6 |
if (instance_exists(obj_backgrounderparent)) |
7 |
bg = 1; |
8 |
stepping = 0; |
9 |
stepped = 0; |
10 |
drawbattlemode = 1; |
11 |
battlemode = 0; |
12 |
battleheart = instance_create(x, y, obj_overworldheart); |
13 |
battleheart.image_alpha = 0; |
14 |
battleheart.image_speed = 0; |
15 |
battlealpha = 0; |
16 |
becamebattle = 0; |
17 |
sliding = 0; |
18 |
becamesword = 0; |
19 |
swordmode = 0; |
20 |
swordcon = 0; |
21 |
swordtimer = 0; |
22 |
stop_movement = 0; |
23 |
roomenterfreezeend = 0; |
24 |
darkmode = global.darkzone; |
25 |
if (darkmode == 1) |
26 |
{ |
27 |
stepping = 1; |
28 |
image_xscale = 2; |
29 |
image_yscale = 2; |
30 |
} |
31 |
cutscene = 0; |
32 |
press_l = 0; |
33 |
press_r = 0; |
34 |
press_d = 0; |
35 |
press_u = 0; |
36 |
px = 0; |
37 |
py = 0; |
38 |
wallcheck = 0; |
39 |
wspeed = 3; |
40 |
bwspeed = 3; |
41 |
if (darkmode == 1) |
42 |
{ |
43 |
bwspeed = 4; |
44 |
wspeed = 4; |
45 |
} |
46 |
run = 0; |
47 |
runtimer = 0; |
48 |
runcounter = 0; |
49 |
subxspeed = 0; |
50 |
subyspeed = 0; |
51 |
subx = 0; |
52 |
suby = 0; |
53 |
walkanim = 0; |
54 |
walkbuffer = 0; |
55 |
walktimer = 0; |
56 |
image_speed = 0; |
57 |
dsprite = spr_krisd; |
58 |
rsprite = spr_krisr; |
59 |
usprite = spr_krisu; |
60 |
lsprite = spr_krisl; |
61 |
if (global.darkzone == 1) |
62 |
{ |
63 |
dsprite = spr_krisd_dark; |
64 |
rsprite = spr_krisr_dark; |
65 |
lsprite = spr_krisl_dark; |
66 |
usprite = spr_krisu_dark; |
67 |
} |
68 |
swordfacing = 1; |
69 |
swordsprite = rsprite; |
70 |
fun = 0; |
71 |
if (global.facing == 0) |
72 |
sprite_index = dsprite; |
73 |
if (global.facing == 1) |
74 |
sprite_index = rsprite; |
75 |
if (global.facing == 2) |
76 |
sprite_index = usprite; |
77 |
if (global.facing == 3) |
78 |
sprite_index = lsprite; |
79 |
onebuffer = 0; |
80 |
twobuffer = 0; |
81 |
threebuffer = 0; |
82 |
global.menuno = 0; |
83 |
for (i = 0; i < 10; i += 1) |
84 |
global.menucoord[i] = 0; |
85 |
cameFromEntrance = global.entrance; |
86 |
if (global.interact == 3) |
87 |
{ |
88 |
noentrancefound = 0; |
89 |
if (global.entrance > 0) |
90 |
{ |
91 |
if (global.flag[21 door_freeze_timer] <= 0) |
92 |
{ |
93 |
global.interact = 0; |
94 |
global.flag[21 door_freeze_timer] = -10; |
95 |
roomenterfreezeend = 1; |
96 |
} |
97 |
switch (global.entrance) |
98 |
{ |
99 |
case 1: |
100 |
if (i_ex(obj_markerA)) |
101 |
setxy(obj_markerA.x, obj_markerA.y); |
102 |
else |
103 |
noentrancefound = 1; |
104 |
break; |
105 |
case 2: |
106 |
if (i_ex(obj_markerB)) |
107 |
setxy(obj_markerB.x, obj_markerB.y); |
108 |
else |
109 |
noentrancefound = 1; |
110 |
break; |
111 |
case 3: |
112 |
if (i_ex(obj_markerC)) |
113 |
setxy(obj_markerC.x, obj_markerC.y); |
114 |
else |
115 |
noentrancefound = 1; |
116 |
break; |
117 |
case 4: |
118 |
if (i_ex(obj_markerD)) |
119 |
setxy(obj_markerD.x, obj_markerD.y); |
120 |
else |
121 |
noentrancefound = 1; |
122 |
break; |
123 |
case 5: |
124 |
if (i_ex(obj_markerE)) |
125 |
setxy(obj_markerE.x, obj_markerE.y); |
126 |
else |
127 |
noentrancefound = 1; |
128 |
break; |
129 |
case 6: |
130 |
if (i_ex(obj_markerF)) |
131 |
setxy(obj_markerF.x, obj_markerF.y); |
132 |
else |
133 |
noentrancefound = 1; |
134 |
break; |
135 |
case 18: |
136 |
if (i_ex(obj_markerr)) |
137 |
setxy(obj_markerr.x, obj_markerr.y); |
138 |
else |
139 |
noentrancefound = 1; |
140 |
break; |
141 |
case 19: |
142 |
if (i_ex(obj_markers)) |
143 |
setxy(obj_markers.x, obj_markers.y); |
144 |
else |
145 |
noentrancefound = 1; |
146 |
break; |
147 |
case 20: |
148 |
if (i_ex(obj_markert)) |
149 |
setxy(obj_markert.x, obj_markert.y); |
150 |
else |
151 |
noentrancefound = 1; |
152 |
break; |
153 |
case 21: |
154 |
if (i_ex(obj_markeru)) |
155 |
setxy(obj_markeru.x, obj_markeru.y); |
156 |
else |
157 |
noentrancefound = 1; |
158 |
break; |
159 |
case 22: |
160 |
if (i_ex(obj_markerv)) |
161 |
setxy(obj_markerv.x, obj_markerv.y); |
162 |
else |
163 |
noentrancefound = 1; |
164 |
break; |
165 |
case 23: |
166 |
if (i_ex(obj_markerw)) |
167 |
setxy(obj_markerw.x, obj_markerw.y); |
168 |
else |
169 |
noentrancefound = 1; |
170 |
break; |
171 |
case 24: |
172 |
if (i_ex(obj_markerX)) |
173 |
setxy(obj_markerX.x, obj_markerX.y); |
174 |
else |
175 |
noentrancefound = 1; |
176 |
break; |
177 |
default: |
178 |
noentrancefound = 1; |
179 |
} |
180 |
if (noentrancefound == 1) |
181 |
{ |
182 |
if (i_ex(obj_markerAny)) |
183 |
{ |
184 |
with (obj_markerAny) |
185 |
{ |
186 |
if (image_index == global.entrance) |
187 |
{ |
188 |
other.x = x; |
189 |
other.y = y; |
190 |
} |
191 |
} |
192 |
} |
193 |
else |
194 |
{ |
195 |
setxy(room_width / 2, room_height / 2); |
196 |
} |
197 |
} |
198 |
} |
199 |
} |
200 |
initwd = sprite_width; |
201 |
initht = sprite_height; |
202 |
mywidth = sprite_width; |
203 |
myheight = sprite_height; |
204 |
for (i = 0; i < 3; i += 1) |
205 |
global.battledf[i] = global.df[global.char[i]] + global.itemdf[global.char[i]][0] + global.itemdf[global.char[i]][1] + global.itemdf[global.char[i]][2]; |
206 |
if (global.chapter == 2) |
207 |
{ |
208 |
if (global.flag[302 toy_deliver_progress] == 1) |
209 |
instance_create(x, y, obj_kris_headobj); |
210 |
} |