1 |
myinteract = 0; |
2 |
talked = 0; |
3 |
tempvar = 0; |
4 |
image_speed = 0; |
5 |
depthcancel = 0; |
6 |
normalanim = 1; |
7 |
remanimspeed = 0; |
8 |
if (global.darkzone == 0) |
9 |
{ |
10 |
if (room == room_krisroom) |
11 |
sprite_index = spr_redwagon; |
12 |
if (room == room_torhouse) |
13 |
{ |
14 |
sprite_index = spr_chairiel_empty; |
15 |
if (global.plot >= 250) |
16 |
sprite_index = spr_chairiel; |
17 |
} |
18 |
if (room == room_graveyard) |
19 |
{ |
20 |
sprite_index = spr_npc_bench; |
21 |
fence = 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;
} (81, 122, spr_npc_graveyardfence); |
22 |
with (fence) |
23 |
scr_depth(); |
24 |
} |
25 |
if (room == room_hospital_lobby) |
26 |
sprite_index = spr_npc_nurse; |
27 |
if (room == room_hospital_rudy) |
28 |
sprite_index = spr_rudy_d; |
29 |
if (room == room_library) |
30 |
sprite_index = spr_normalnpc; |
31 |
if (room == room_townhall) |
32 |
{ |
33 |
sprite_index = spr_npc_businessguy; |
34 |
if (x > 100) |
35 |
sprite_index = spr_npc_receptionist; |
36 |
if (x > 200) |
37 |
sprite_index = spr_npc_politicsbear; |
38 |
} |
39 |
if (room == room_diner) |
40 |
{ |
41 |
if (x < 120) |
42 |
sprite_index = spr_npc_cattiwaitress; |
43 |
if (x < 60) |
44 |
sprite_index = spr_npc_dragonfamily; |
45 |
if (x >= 120 && x <= 140) |
46 |
sprite_index = spr_npc_qc; |
47 |
if (y > 130) |
48 |
{ |
49 |
if (x > 180) |
50 |
sprite_index = spr_npc_dresslion; |
51 |
if (x > 240) |
52 |
{ |
53 |
sprite_index = spr_npc_greenfire; |
54 |
depth = 4000; |
55 |
depthcancel = 1; |
56 |
} |
57 |
if (x > 260) |
58 |
{ |
59 |
sprite_index = spr_npc_flanneldemon; |
60 |
depth = 4000; |
61 |
depthcancel = 1; |
62 |
} |
63 |
} |
64 |
if (y < 120) |
65 |
{ |
66 |
if (x > 160) |
67 |
sprite_index = spr_npc_most_improved_1997; |
68 |
if (x > 200) |
69 |
sprite_index = spr_npc_icewolf; |
70 |
} |
71 |
} |
72 |
if (room == room_town_south) |
73 |
{ |
74 |
if (x > 560) |
75 |
sprite_index = spr_npc_donutcar; |
76 |
if (x > 720) |
77 |
sprite_index = spr_npc_snailcar; |
78 |
} |
79 |
if (room == room_town_church) |
80 |
sprite_index = spr_npc_alvin; |
81 |
if (room == room_town_mid) |
82 |
{ |
83 |
if (x >= 1800) |
84 |
sprite_index = spr_mkid_dt; |
85 |
if (x >= 1900) |
86 |
sprite_index = spr_snowy_dt; |
87 |
} |
88 |
if (room == room_town_north) |
89 |
{ |
90 |
if (x >= 480) |
91 |
sprite_index = spr_npc_catty; |
92 |
if (x >= 640) |
93 |
sprite_index = spr_npc_cattydad; |
94 |
if (x >= 880) |
95 |
sprite_index = spr_npc_bratty; |
96 |
} |
97 |
if (room == room_beach) |
98 |
{ |
99 |
if (x >= 60) |
100 |
sprite_index = spr_npc_rgbun; |
101 |
if (x >= 100) |
102 |
sprite_index = spr_npc_rgdragon; |
103 |
} |
104 |
} |
105 |
if (global.darkzone == 1) |
106 |
{ |
107 |
image_xscale = 2; |
108 |
image_yscale = 2; |
109 |
if (room == room_castle_tutorial) |
110 |
sprite_index = spr_dummynpc; |
111 |
if (room == room_field2A || room == room_field_puzzle1 || room == room_field4) |
112 |
sprite_index = spr_candytree; |
113 |
if (room == room_field_topchef) |
114 |
{ |
115 |
sprite_index = spr_topchef; |
116 |
if (y <= 120) |
117 |
{ |
118 |
sprite_index = spr_smoldercake; |
119 |
alarm[11] = 1; |
120 |
} |
121 |
} |
122 |
if (room == room_field_puzzletutorial) |
123 |
{ |
124 |
sprite_index = spr_npc_puzzlepiece; |
125 |
if (global.flag[251 shortcut_door_help] == 1) |
126 |
instance_destroy(); |
127 |
} |
128 |
if (room == room_field_maze) |
129 |
{ |
130 |
if (x < 1600) |
131 |
sprite_index = spr_jigsawry_idle; |
132 |
if (x > 1600) |
133 |
sprite_index = spr_lancer_dt; |
134 |
} |
135 |
if (room == room_field_boxpuzzle) |
136 |
sprite_index = spr_npc_block_broken; |
137 |
if (room == room_field_checkers7) |
138 |
{ |
139 |
if (x <= (room_width / 2)) |
140 |
{ |
141 |
sprite_index = spr_npc_mrelegance; |
142 |
if (global.plot >= 60) |
143 |
instance_destroy(); |
144 |
} |
145 |
else |
146 |
{ |
147 |
sprite_index = spr_npc_mrsociety; |
148 |
} |
149 |
} |
150 |
if (room == room_forest_savepoint1) |
151 |
{ |
152 |
if (x <= (room_width / 2)) |
153 |
{ |
154 |
sprite_index = spr_npc_puzzlepiece; |
155 |
if (global.flag[251 shortcut_door_help] == 0) |
156 |
instance_destroy(); |
157 |
} |
158 |
else |
159 |
{ |
160 |
sprite_index = spr_npc_mrelegance; |
161 |
} |
162 |
} |
163 |
if (room == room_forest_area1) |
164 |
sprite_index = spr_diamond_overworld; |
165 |
if (room == room_forest_area2A) |
166 |
{ |
167 |
if (x <= (room_width / 2)) |
168 |
sprite_index = spr_jackperson; |
169 |
if (x >= (room_width / 2)) |
170 |
sprite_index = spr_ballperson; |
171 |
} |
172 |
if (room == room_forest_area3A) |
173 |
{ |
174 |
if (x <= (room_width / 2)) |
175 |
sprite_index = spr_blockler_b; |
176 |
if (x >= (room_width / 2)) |
177 |
sprite_index = spr_blockler_o; |
178 |
} |
179 |
if (room == room_forest_savepoint2) |
180 |
{ |
181 |
sprite_index = spr_bakesale_rudinn; |
182 |
if (x >= 800 && x <= 880) |
183 |
sprite_index = spr_bakesale_hathy; |
184 |
if (x >= 980) |
185 |
sprite_index = spr_bakesale_lancer; |
186 |
} |
187 |
if (room == room_forest_area4) |
188 |
sprite_index = spr_npc_coody; |
189 |
if (room == room_forest_starwalker) |
190 |
sprite_index = spr_npc_originalstarwalker; |
191 |
if (room == room_forest_savepoint_relax) |
192 |
{ |
193 |
if (x <= 200) |
194 |
sprite_index = spr_diamond_overworld; |
195 |
if (x > 260) |
196 |
{ |
197 |
if (global.plot >= 90) |
198 |
instance_destroy(); |
199 |
if (y >= 240) |
200 |
sprite_index = spr_lancer_dark_relax; |
201 |
else |
202 |
sprite_index = spr_susie_dark_relax; |
203 |
} |
204 |
} |
205 |
if (room == room_forest_fightsusie) |
206 |
{ |
207 |
sprite_index = spr_lancer_dt; |
208 |
if (global.plot >= 150) |
209 |
instance_destroy(); |
210 |
} |
211 |
if (room == room_cc_prison_cells) |
212 |
sprite_index = spr_diamond_trash; |
213 |
if (room == room_cc_prison2) |
214 |
{ |
215 |
global.flag[296 visited_jail] = 1; |
216 |
sprite_index = spr_npc_gouldensam; |
217 |
if (x > 240 && x < 440) |
218 |
{ |
219 |
king = instance_create(-100, -100, obj_npc_room); |
220 |
king.x = x; |
221 |
king.y = y; |
222 |
king.sprite_index = spr_npc_cage_king; |
223 |
scr_depth(); |
224 |
king.depth = depth - 10; |
225 |
} |
226 |
if (x > 480 && x < 680) |
227 |
{ |
228 |
x += 4; |
229 |
puzz = instance_create(-100, -100, obj_npc_room); |
230 |
puzz.x = 660; |
231 |
puzz.y = 130; |
232 |
puzz.sprite_index = spr_npc_puzzlepiece_jail; |
233 |
tempvar = 1; |
234 |
} |
235 |
if (x > 680 && x < 900) |
236 |
{ |
237 |
x += 8; |
238 |
rudinn = instance_create(-100, -100, obj_npc_room); |
239 |
rudinn.x = 900; |
240 |
rudinn.y = 115; |
241 |
rudinn.sprite_index = spr_diamond_overworld; |
242 |
tempvar = 2; |
243 |
} |
244 |
if (x > 900 && x < 1120) |
245 |
{ |
246 |
x += 12; |
247 |
tempvar = 3; |
248 |
animal = instance_create(-100, -100, obj_npc_room); |
249 |
animal.x = x; |
250 |
animal.y = y; |
251 |
animal.sprite_index = spr_npc_cage_animals; |
252 |
} |
253 |
} |
254 |
if (room == room_cc_rudinn) |
255 |
sprite_index = spr_diamond_overworld; |
256 |
if (room == room_cc_rurus1) |
257 |
sprite_index = spr_diamond_overworld; |
258 |
if (room == room_cc_hathy) |
259 |
sprite_index = spr_heartenemy_overworld; |
260 |
if (room == room_cc_rurus2) |
261 |
sprite_index = spr_diamond_overworld; |
262 |
if (room == room_cc_clover) |
263 |
{ |
264 |
sprite_index = spr_clubs_overworld; |
265 |
if (x < 160) |
266 |
sprite_index = spr_diamond_overworld; |
267 |
if (x > 400) |
268 |
sprite_index = spr_heartenemy_overworld; |
269 |
} |
270 |
if (room == room_cc_throneroom) |
271 |
{ |
272 |
if (global.plot < 240) |
273 |
{ |
274 |
instance_destroy(); |
275 |
} |
276 |
else if (y < 300 && y > 80) |
277 |
{ |
278 |
sprite_index = spr_npc_gouldensam; |
279 |
if (x < (room_width / 2)) |
280 |
{ |
281 |
king = instance_create(-100, -100, obj_npc_room); |
282 |
king.x = x; |
283 |
king.y = y; |
284 |
king.sprite_index = spr_npc_cage_king; |
285 |
scr_depth(); |
286 |
king.depth = depth - 10; |
287 |
} |
288 |
else |
289 |
{ |
290 |
tempvar = 1; |
291 |
animal = instance_create(-100, -100, obj_npc_room); |
292 |
animal.x = x; |
293 |
animal.y = y; |
294 |
animal.sprite_index = spr_npc_cage_animals; |
295 |
} |
296 |
} |
297 |
else if (x < (room_width / 2)) |
298 |
{ |
299 |
sprite_index = spr_diamond_overworld; |
300 |
} |
301 |
else |
302 |
{ |
303 |
sprite_index = spr_topchef; |
304 |
} |
305 |
} |
306 |
if (room == room_cc_preroof) |
307 |
{ |
308 |
if (global.plot < 240) |
309 |
instance_destroy(); |
310 |
if (x > 180) |
311 |
sprite_index = spr_diamond_overworld; |
312 |
if (x > 320) |
313 |
sprite_index = spr_heartenemy_overworld; |
314 |
if (x > 460) |
315 |
sprite_index = spr_clubs_overworld; |
316 |
if (x > 680) |
317 |
sprite_index = spr_diamond_overworld; |
318 |
} |
319 |
if (room == room_cc_kingbattle) |
320 |
{ |
321 |
if (global.plot < 240) |
322 |
instance_destroy(); |
323 |
if (x < 440) |
324 |
sprite_index = spr_rurus_idle; |
325 |
if (y < 160) |
326 |
{ |
327 |
if (x == 398) |
328 |
sprite_index = spr_npc_mrsociety; |
329 |
if (x == 522) |
330 |
sprite_index = spr_npc_mrelegance; |
331 |
if (x == 740) |
332 |
sprite_index = spr_blockler_b; |
333 |
if (x == 820) |
334 |
sprite_index = spr_blockler_o; |
335 |
if (x == 940) |
336 |
sprite_index = spr_blockler_o; |
337 |
if (x == 1020) |
338 |
sprite_index = spr_blockler_b; |
339 |
if (x > 1140) |
340 |
{ |
341 |
sprite_index = spr_npc_puzzlepiece_happy; |
342 |
if (global.flag[216 donated_to_hole] == 1) |
343 |
sprite_index = spr_npc_puzzlepiece_shaved; |
344 |
} |
345 |
} |
346 |
else if (x < 900) |
347 |
{ |
348 |
sprite_index = spr_jackperson; |
349 |
} |
350 |
else |
351 |
{ |
352 |
sprite_index = spr_ballperson; |
353 |
} |
354 |
} |
355 |
} |
356 |
if (depthcancel == 0) |
357 |
scr_depth(); |