|
1
|
if (con < 0)
|
|
2
|
exit;
|
|
3
|
if (con == 0)
|
|
4
|
{
|
|
5
|
con = 1;
|
|
6
|
alarm[0] = 12; gml_Object_obj_credits_ch5_castle_rooms_susie_Alarm_0.gml
con++;
|
|
7
|
global.interact = 1;
|
|
8
|
global.facing = 0;
|
|
9
|
with (obj_caterpillarchara)
|
|
10
|
{
|
|
11
|
follow = 0;
|
|
12
|
x = camerax() - 100;
|
|
13
|
visible = 0;
|
|
14
|
}
|
|
15
|
}
|
|
16
|
if (con == 2)
|
|
17
|
{
|
|
18
|
con = 10;
|
|
19
|
cutscene_master = scr_cutscene_makescr_cutscene_make
function scr_cutscene_make()
{
_cutscene_master = instance_create(0, 0, obj_cutscene_master);
_cutscene_master.master_object = id;
return _cutscene_master;
} ();
|
|
20
|
scr_maincharacters_actorsscr_maincharacters_actors
function scr_maincharacters_actors()
{
if (i_ex(obj_plat_player))
{
scr_maincharacters_actors_plat();
exit;
}
actor_count = 0;
kr = 0;
kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index;
kr_actor.depth = obj_mainchara.depth;
with (obj_mainchara)
visible = 0;
for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++)
{
if (i_ex(global.cinstance[__jj]))
{
if (global.cinstance[__jj].name == "susie")
{
actor_count++;
su = __jj + 1;
su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index;
su_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "ralsei")
{
actor_count++;
ra = __jj + 1;
ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index;
ra_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "noelle")
{
actor_count++;
no = __jj + 1;
no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index;
no_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
}
}
} ();
|
|
21
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
22
|
c_visiblec_visible
function c_visible(arg0)
{
c_cmd("visible", arg0, 0, 0, 0);
} (0);
|
|
23
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (su);
|
|
24
|
c_visiblec_visible
function c_visible(arg0)
{
c_cmd("visible", arg0, 0, 0, 0);
} (0);
|
|
25
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (ra);
|
|
26
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_ralsei_walk_up_cake);
|
|
27
|
c_visiblec_visible
function c_visible(arg0)
{
c_cmd("visible", arg0, 0, 0, 0);
} (1);
|
|
28
|
c_setxyc_setxy
function c_setxy(arg0, arg1)
{
c_cmd("setxy", arg0, arg1, 0, 0);
} (287, 500);
|
|
29
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
30
|
c_imagespeedc_imagespeed
function c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
}
function c_image_speed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
} (0.2);
|
|
31
|
c_walkdirect_waitc_walkdirect_wait
function c_walkdirect_wait(arg0, arg1, arg2)
{
c_walkdirect(arg0, arg1, arg2);
c_wait(arg2);
} (287, 142, 120);
|
|
32
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_ralsei_walk_left_cake);
|
|
33
|
c_haltc_halt
function c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
} ();
|
|
34
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (15);
|
|
35
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_ralsei_leave_cake);
|
|
36
|
c_var_lerpc_var_lerp
function c_var_lerp()
{
if (argument_count < 5)
c_cmd_x("var", 0, argument[0], argument[1], argument[2], argument[3], 0);
else if (argument_count == 5)
c_cmd_x("var", 0, argument[0], argument[1], argument[2], argument[3], argument[4]);
else
c_cmd_x("var", 0, argument[0], argument[1], argument[2], argument[3], string(argument[4]) + string(argument[5]));
} ("image_index", 0, 5, 30);
|
|
37
|
c_wait_ifc_wait_if
function c_wait_if(arg0, arg1, arg2, arg3)
{
c_cmd("waitif", arg0, arg1, arg2, arg3);
} (ra_actor, "image_index", ">=", 5);
|
|
38
|
c_customfuncc_customfunc
function c_customfunc(arg0, arg1 = -1)
{
if (instance_exists(obj_cutscene_master))
{
with (obj_cutscene_master)
array_push(customfuncs, arg0);
c_cmd("customfunc", arg1, 0, 0, 0);
}
} (function()
|
|
39
|
{
|
|
40
|
var cake_marker = scr_dark_markerscr_dark_marker
function 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;
} (ra_actor.x, ra_actor.y, spr_ralsei_leave_cake);
|
|
41
|
cake_marker.image_index = 6;
|
|
42
|
cake_marker.depth = ra_actor.depth - 1;
|
|
43
|
});
|
|
44
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (ra);
|
|
45
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("l");
|
|
46
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (20);
|
|
47
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (ra);
|
|
48
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_ralsei_walk_left_smile);
|
|
49
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (15);
|
|
50
|
c_customfuncc_customfunc
function c_customfunc(arg0, arg1 = -1)
{
if (instance_exists(obj_cutscene_master))
{
with (obj_cutscene_master)
array_push(customfuncs, arg0);
c_cmd("customfunc", arg1, 0, 0, 0);
}
} (function()
|
|
51
|
{
|
|
52
|
scr_losecharscr_losechar
function scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
global.submenu = 0;
global.charselect = -1;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
} ();
|
|
53
|
scr_become_lightscr_become_light
function scr_become_light()
{
if (scr_litemcheck(5) == 0)
scr_litemget(5);
if (scr_keyitemcheck(2))
{
if (scr_litemcheck(8) == 0)
scr_litemget(8);
}
else
{
scr_litemremove(8);
}
if (scr_keyitemcheck(13))
{
if (scr_litemcheck(11) == 0)
scr_litemget(11);
}
else
{
scr_litemremove(11);
}
global.lhp = ceil((global.hp[1] / global.maxhp[1]) * global.lmaxhp);
if (global.lhp < 1)
global.lhp = 1;
if (global.lhp > global.lmaxhp)
global.lhp = global.lmaxhp;
scr_equip_lw_weapon_by_dw_id(global.charweapon[1]);
global.lwstrength = get_lw_weapon_strength(global.lweapon);
if (scr_weaponcheck_inventory(26) > 0 || scr_weaponcheck_equipped_any(26) > 0)
{
if (!scr_litemcheck(17) && global.lweapon != 17)
scr_litemget(17);
}
var armorconverted = 0;
if (armorconverted == 1)
global.ladef = 1;
else
global.ladef = 0;
global.darkzone = 0;
} ();
|
|
54
|
});
|
|
55
|
c_customfuncc_customfunc
function c_customfunc(arg0, arg1 = -1)
{
if (instance_exists(obj_cutscene_master))
{
with (obj_cutscene_master)
array_push(customfuncs, arg0);
c_cmd("customfunc", arg1, 0, 0, 0);
}
} (function()
|
|
56
|
{
|
|
57
|
blackall = scr_dark_markerscr_dark_marker
function 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;
} (-10, -10, spr_pixel_white);
|
|
58
|
blackall.image_xscale = 999;
|
|
59
|
blackall.image_yscale = 999;
|
|
60
|
blackall.depth = 100;
|
|
61
|
blackall.image_blend = c_black;
|
|
62
|
blackall.image_alpha = 0;
|
|
63
|
with (blackall)
|
|
64
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_alpha", 0, 1, 45);
|
|
65
|
});
|
|
66
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (60);
|
|
67
|
c_waitcustomc_waitcustom
function c_waitcustom()
{
c_cmd("waitcustom", 0, 0, 0, 0);
} ();
|
|
68
|
}
|