|
1
|
if (myself == 1)
|
|
2
|
{
|
|
3
|
if (pipisSignAlpha > 0)
|
|
4
|
{
|
|
5
|
pipisSignAlpha -= 0.1;
|
|
6
|
var lang = 0;
|
|
7
|
if (global.lang == "ja")
|
|
8
|
lang = 1;
|
|
9
|
draw_sprite_ext(spr_pipissign, lang, (x - 4) + random_range(0, 1), y + (sprite_height / 2) + 12 + random_range(0, 1), 1, 1, 0, c_white, pipisSignAlpha);
|
|
10
|
}
|
|
11
|
}
|
|
12
|
if (state == 3)
|
|
13
|
{
|
|
14
|
scr_enemyhurt_tired_after_damagescr_enemyhurt_tired_after_damage
function scr_enemyhurt_tired_after_damage(arg0)
{
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] * arg0))
scr_monster_make_tired(myself);
} (0.5);
|
|
15
|
fatal = 1;
|
|
16
|
hurttimer -= 1;
|
|
17
|
if (hurttimer < 0)
|
|
18
|
{
|
|
19
|
state = 0;
|
|
20
|
}
|
|
21
|
else
|
|
22
|
{
|
|
23
|
if (global.monster[myself] == 0)
|
|
24
|
{
|
|
25
|
x = xstart - 16;
|
|
26
|
y = ystart - 12;
|
|
27
|
scr_defeatrunscr_defeatrun
function scr_defeatrun()
{
var __frozen;
if (object_is_ancestor(object_index, obj_monsterparent))
{
__frozen = 0;
if (global.flag[51 + myself] == 6)
__frozen = 1;
if (__frozen == 1)
{
_rtext = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim);
_rtext.image_index = 12;
if (recruitable == 1)
global.flag[global.monstertype[myself] + 600] = -1;
global.flag[63 violenced_last] = 1;
}
if (recruitable == 1 && global.flag[61 disable_recruiting] == 0 && __frozen == 0)
{
global.flag[63 violenced_last] = 1;
if (global.flag[global.monstertype[myself] + 600] != -1)
{
global.flag[global.monstertype[myself] + 600] = -1;
_rtext = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim);
_rtext.image_index = 7;
}
}
}
else
{
fatal = 0;
}
if (!__frozen)
{
if (fatal == 1)
defeatanim = instance_create(x, y, obj_deathanim);
else
defeatanim = instance_create(x, y, obj_defeatanim);
}
else if (__frozen)
{
defeatanim = instance_create(x, y, obj_frozennpc);
defeatanim.depth = depth;
defeatanim.inbattle = 1;
}
defeatanim.sprite_index = sprite_index;
defeatanim.sprite_index = hurtsprite;
defeatanim.image_index = 0;
defeatanim.image_xscale = image_xscale;
defeatanim.image_yscale = image_yscale;
instance_destroy();
} ();
|
|
28
|
}
|
|
29
|
hurtshake += 1;
|
|
30
|
if (hurtshake > 1)
|
|
31
|
{
|
|
32
|
if (shakex > 0)
|
|
33
|
shakex -= 1;
|
|
34
|
if (shakex < 0)
|
|
35
|
shakex += 1;
|
|
36
|
shakex = -shakex;
|
|
37
|
hurtshake = 0;
|
|
38
|
}
|
|
39
|
draw_sprite_ext(hurtsprite, 0, x + shakex + hurtspriteoffx, y + hurtspriteoffy, 2, 2, 0, image_blend, 1);
|
|
40
|
}
|
|
41
|
}
|
|
42
|
if (custom_draw_example == 0)
|
|
43
|
{
|
|
44
|
scr_enemy_drawidle_genericscr_enemy_drawidle_generic
function scr_enemy_drawidle_generic(arg0)
{
if (state == 0)
{
fsiner += 1;
siner += arg0;
thissprite = idlesprite;
if (global.mercymod[myself] >= global.mercymax[myself])
thissprite = sparedsprite;
draw_monster_body_part(thissprite, siner, x, y);
}
} (0);
|
|
45
|
}
|
|
46
|
else if (state == 0)
|
|
47
|
{
|
|
48
|
if (flash == 1)
|
|
49
|
fsiner++;
|
|
50
|
siner += 0.16666666666666666;
|
|
51
|
if (global.mercymod[myself] >= global.mercymax[myself])
|
|
52
|
{
|
|
53
|
draw_monster_body_part(sparedsprite, siner, x, y);
|
|
54
|
}
|
|
55
|
else
|
|
56
|
{
|
|
57
|
draw_monster_body_part(spr_diamondm_custom_body_example, 1, x + (sin(siner) * 2), y);
|
|
58
|
draw_monster_body_part(spr_diamondm_custom_body_example, 0, x - (sin(siner) * 2), y + cos(siner));
|
|
59
|
}
|
|
60
|
}
|
|
61
|
if (becomeflash == 0)
|
|
62
|
flash = 0;
|
|
63
|
becomeflash = 0;
|