|
1
|
if (state == 3)
|
|
2
|
{
|
|
3
|
hurttimer -= 1;
|
|
4
|
if (hurttimer < 0 && global.monster[myself] == 1)
|
|
5
|
{
|
|
6
|
state = 0;
|
|
7
|
}
|
|
8
|
else
|
|
9
|
{
|
|
10
|
if (global.monster[myself] == 0 && !i_ex(obj_writer))
|
|
11
|
{
|
|
12
|
hurtsprite = spr_berdly_hurt_kneel_battle;
|
|
13
|
if (endbattle == 0)
|
|
14
|
{
|
|
15
|
endbattle = 1;
|
|
16
|
if (global.flag[915 snowgrave_plot] == 5 && global.flag[916 snowgrave_fail] == 0)
|
|
17
|
{
|
|
18
|
instance_create(obj_heronoelle.x, obj_heronoelle.y, obj_berdlyb2_postBattle_noelle);
|
|
19
|
scr_sideb_failscr_sideb_fail
function scr_sideb_fail()
{
if (global.flag[916 snowgrave_fail] == 0)
{
global.flag[916 snowgrave_fail] = 1;
if (argument_count > 0 && argument[0] == 1)
{
if (global.flag[915 snowgrave_plot] > 0)
{
}
}
}
} ();
|
|
20
|
}
|
|
21
|
scr_wincombatscr_wincombat
function scr_wincombat()
{
if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1)
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
else
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0;
for (__j = 0; __j < 3; __j++)
{
if (global.monstertype[__j] != 0(None))
{
_newmonster = scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800;
global.monsterinstance[_newmonster].y = global.monstermakey[__j];
with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
}
}
global.myfight = 5;
myfightreturntimer = 15;
global.mnfight = -1;
}
} ();
|
|
22
|
}
|
|
23
|
}
|
|
24
|
hurtshake += 1;
|
|
25
|
if (hurtshake > 1)
|
|
26
|
{
|
|
27
|
if (shakex > 0)
|
|
28
|
shakex -= 1;
|
|
29
|
if (shakex < 0)
|
|
30
|
shakex += 1;
|
|
31
|
shakex = -shakex;
|
|
32
|
hurtshake = 0;
|
|
33
|
}
|
|
34
|
draw_sprite_ext(hurtsprite, 0, x + shakex + hurtspriteoffx, y + hurtspriteoffy, 2, 2, 0, image_blend, 1);
|
|
35
|
}
|
|
36
|
}
|
|
37
|
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.16666666666666666);
|
|
38
|
if (becomeflash == 0)
|
|
39
|
flash = 0;
|
|
40
|
becomeflash = 0;
|