1 |
layer_set_visible("TILES_Checkboard", false); |
2 |
if (global.chapter == 2 && global.plot >= 9) |
3 |
{ |
4 |
var coody = instance_create(772, 194, obj_npc_room); |
5 |
coody.sprite_index = spr_npc_coody; |
6 |
coody.image_xscale = -2; |
7 |
with (coody) |
8 |
scr_depth(); |
9 |
var elegance = instance_create(494, 86, obj_npc_room); |
10 |
elegance.sprite_index = spr_npc_mrelegance; |
11 |
elegance.image_xscale = -2; |
12 |
with (elegance) |
13 |
scr_depth(); |
14 |
if (global.plot >= 200) |
15 |
{ |
16 |
layer_set_visible("TILES_Checkboard", true); |
17 |
var mannequin = instance_create(834, 150, obj_npc_room); |
18 |
mannequin.sprite_index = spr_mannequin_ralsei; |
19 |
with (mannequin) |
20 |
scr_depth(); |
21 |
var addison = instance_create(900, 156, obj_npc_room); |
22 |
addison.sprite_index = spr_npc_addison_blue; |
23 |
with (addison) |
24 |
scr_depth(); |
25 |
if (scr_get_total_recruitsscr_get_total_recruitsfunction scr_get_total_recruits()
{
var totalrecruits = 0;
var chapter = -1;
var start_index = 0;
var max_index = 100;
if (argument_count > 0)
chapter = argument[0];
if (chapter == 2)
{
start_index = 30;
max_index = 44;
}
for (var i = start_index; i < max_index; i++)
{
if (global.flag[i + 600] == 1)
totalrecruits++;
}
return totalrecruits;
} (2) >= 9) |
26 |
{ |
27 |
var music_shop = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (605, 6, bg_dw_castle_music_shop); |
28 |
with (music_shop) |
29 |
scr_depth(); |
30 |
var music_shop_solid1 = instance_create(633, 112, obj_solidblocksized); |
31 |
music_shop_solid1.image_xscale = 0.525; |
32 |
music_shop_solid1.image_yscale = 1.5; |
33 |
var music_shop_solid2 = instance_create(710, 120, obj_solidblocksized); |
34 |
music_shop_solid2.image_xscale = 1.675; |
35 |
music_shop_solid2.image_yscale = 1.3; |
36 |
var music_door = instance_create(music_shop.x + 35, music_shop.y + 120, obj_doorw_musfade); |
37 |
music_door.image_xscale = 4; |
38 |
music_door.image_yscale = 2; |
39 |
} |
40 |
else |
41 |
{ |
42 |
sweetnpc = instance_create(598, 41, obj_npc_room_animated); |
43 |
sweetnpc.sprite_index = spr_npc_sweet; |
44 |
with (sweetnpc) |
45 |
scr_depth(); |
46 |
capnnpc = instance_create(670, 74, obj_npc_room_animated); |
47 |
capnnpc.sprite_index = spr_npc_hatguy; |
48 |
with (capnnpc) |
49 |
scr_depth(); |
50 |
kknpc = instance_create(743, 28, obj_npc_room_animated); |
51 |
kknpc.sprite_index = spr_npc_kk; |
52 |
with (kknpc) |
53 |
scr_depth(); |
54 |
} |
55 |
} |
56 |
} |
57 |
else |
58 |
{ |
59 |
instance_destroy(); |
60 |
} |