|
1
|
var _battlemode = battlemode;
|
|
2
|
with (target_object)
|
|
3
|
{
|
|
4
|
if (object_index == obj_dw_church_pushableshelf_3x3)
|
|
5
|
{
|
|
6
|
draw_set_blend_mode(bm_subtract);
|
|
7
|
draw_sprite_ext(sprite_index, image_index, screenx(), screeny(), image_xscale, image_yscale, 0, c_black, 1);
|
|
8
|
draw_set_blend_mode(bm_normal);
|
|
9
|
}
|
|
10
|
if (object_index == obj_character_church_window_silhouette)
|
|
11
|
{
|
|
12
|
event_user(6);
|
|
13
|
}
|
|
14
|
else
|
|
15
|
{
|
|
16
|
if (object_index == obj_darkness_unlit_object || object_index == obj_darkness_illusion)
|
|
17
|
{
|
|
18
|
draw_sprite_ext(sprite_index, image_index, x - camerax(), y - cameray(), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
19
|
continue;
|
|
20
|
}
|
|
21
|
else if (object_index == obj_darkness_bullet)
|
|
22
|
{
|
|
23
|
draw_sprite_ext(dark_sprite, image_index, x - camerax(), y - cameray(), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
24
|
continue;
|
|
25
|
}
|
|
26
|
var _outlineColor = scr_get_outline_colorscr_get_outline_color
function scr_get_outline_color(arg0, arg1 = 8421504, arg2 = 1)
{
var col = arg1;
var krcol = 15245824;
var sucol = 13138410;
var racol = 1959605;
var gercol = 2533989;
var nocol = 12320748;
if (arg2 == 2)
{
col = 12736850;
krcol = 13462088;
sucol = 10305336;
racol = 13265482;
gercol = 12736850;
nocol = 12736850;
}
if (arg0.object_index == obj_mainchara)
col = krcol;
if (arg0.object_index == obj_caterpillarchara)
{
if (arg0.name == "susie")
col = sucol;
else if (arg0.name == "ralsei")
col = racol;
else if (arg0.name == "noelle")
col = nocol;
else
return 8421504;
}
if (object_get_parent(arg0.object_index) == 1276)
{
if (arg0.object_index == obj_herokris)
col = krcol;
else if (arg0.object_index == obj_herosusie)
col = sucol;
else if (arg0.object_index == obj_heroralsei)
col = racol;
else if (arg0.object_index == obj_heronoelle)
col = nocol;
}
if (arg0.object_index == obj_actor)
{
if (arg0.name == "kris")
col = krcol;
if (arg0.name == "susie")
col = sucol;
if (arg0.name == "ralsei")
col = racol;
if (arg0.name == "noelle")
col = nocol;
if (arg0.name == "gerson")
col = gercol;
}
if (room == room_dw_church_darkmaze)
{
with (obj_dw_church_darkmaze)
{
if (arg0 == germark)
col = gercol;
if (arg0 == gerson)
col = gercol;
if (arg0 == sumark)
col = sucol;
if (arg0 == ramark)
col = racol;
}
}
if (room == room_dw_church_intro_gerson)
{
with (obj_dw_church_intro_gerson)
{
if (arg0 == gerson)
col = gercol;
}
}
return col;
} (self);
|
|
27
|
if (_battlemode && obj_battlealphaer.battlealpha > 0)
|
|
28
|
_outlineColor = merge_color(_outlineColor, c_black, obj_battlealphaer.battlealpha);
|
|
29
|
d3d_set_fog(true, _outlineColor, 0, 1);
|
|
30
|
draw_sprite_ext(sprite_index, image_index, x - camerax(), y - cameray(), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
31
|
d3d_set_fog(false, c_black, 0, 1);
|
|
32
|
gpu_set_alphatestenable(true);
|
|
33
|
gpu_set_blendmode_ext_sepalpha(bm_src_alpha, bm_inv_src_alpha, bm_dest_alpha, bm_zero);
|
|
34
|
draw_sprite_ext(sprite_index, image_index, x - camerax(), (y - cameray()) + 2, image_xscale, image_yscale, image_angle, c_black, image_alpha);
|
|
35
|
draw_set_blend_mode(bm_normal);
|
|
36
|
gpu_set_alphatestenable(false);
|
|
37
|
if (object_index == obj_mainchara && _battlemode && battlealpha > 0)
|
|
38
|
{
|
|
39
|
if (fun == 0)
|
|
40
|
{
|
|
41
|
if (global.facing == 0)
|
|
42
|
draw_sprite_ext(spr_krisd_heart_outline, image_index, screenx(), screeny(), image_xscale, image_yscale, 0, image_blend, battlealpha);
|
|
43
|
if (global.facing == 1)
|
|
44
|
draw_sprite_ext(spr_krisr_heart_outline, image_index, screenx(), screeny(), image_xscale, image_yscale, 0, image_blend, battlealpha);
|
|
45
|
if (global.facing == 2)
|
|
46
|
draw_sprite_ext(spr_krisu_heart_outline, image_index, screenx(), screeny(), image_xscale, image_yscale, 0, image_blend, battlealpha);
|
|
47
|
if (global.facing == 3)
|
|
48
|
draw_sprite_ext(spr_krisl_heart_outline, image_index, screenx(), screeny(), image_xscale, image_yscale, 0, image_blend, battlealpha);
|
|
49
|
}
|
|
50
|
else if (sprite_index == spr_krisd_slide)
|
|
51
|
{
|
|
52
|
draw_sprite_ext(spr_krisd_slide_heart_outline, image_index, x, y, image_xscale, image_yscale, 0, image_blend, battlealpha);
|
|
53
|
}
|
|
54
|
draw_sprite_ext(spr_heart_outline2, 0, screenx() + 12, screeny() + 40, 1, 1, 0, c_white, battlealpha * 2);
|
|
55
|
}
|
|
56
|
}
|
|
57
|
}
|