|
1
|
function 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();
} ()
|
|
2
|
{
|
|
3
|
var __frozen;
|
|
4
|
if (object_is_ancestor(object_index, obj_monsterparent))
|
|
5
|
{
|
|
6
|
__frozen = 0;
|
|
7
|
if (global.flag[51 + myself] == 6)
|
|
8
|
__frozen = 1;
|
|
9
|
if (__frozen == 1)
|
|
10
|
{
|
|
11
|
_rtext = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim);
|
|
12
|
_rtext.image_index = 12;
|
|
13
|
if (recruitable == 1)
|
|
14
|
global.flag[global.monstertype[myself] + 600] = -1;
|
|
15
|
global.flag[63 violenced_last] = 1;
|
|
16
|
}
|
|
17
|
if (recruitable == 1 && global.flag[61 disable_recruiting] == 0 && __frozen == 0)
|
|
18
|
{
|
|
19
|
global.flag[63 violenced_last] = 1;
|
|
20
|
if (global.flag[global.monstertype[myself] + 600] != -1)
|
|
21
|
{
|
|
22
|
global.flag[global.monstertype[myself] + 600] = -1;
|
|
23
|
_rtext = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim);
|
|
24
|
_rtext.image_index = 7;
|
|
25
|
}
|
|
26
|
}
|
|
27
|
}
|
|
28
|
else
|
|
29
|
{
|
|
30
|
fatal = 0;
|
|
31
|
}
|
|
32
|
if (!__frozen)
|
|
33
|
{
|
|
34
|
if (fatal == 1)
|
|
35
|
defeatanim = instance_create(x, y, obj_deathanim);
|
|
36
|
else
|
|
37
|
defeatanim = instance_create(x, y, obj_defeatanim);
|
|
38
|
}
|
|
39
|
else if (__frozen)
|
|
40
|
{
|
|
41
|
defeatanim = instance_create(x, y, obj_frozennpc);
|
|
42
|
defeatanim.depth = depth;
|
|
43
|
defeatanim.inbattle = 1;
|
|
44
|
}
|
|
45
|
defeatanim.sprite_index = sprite_index;
|
|
46
|
defeatanim.sprite_index = hurtsprite;
|
|
47
|
defeatanim.image_index = 0;
|
|
48
|
defeatanim.image_xscale = image_xscale;
|
|
49
|
defeatanim.image_yscale = image_yscale;
|
|
50
|
instance_destroy();
|
|
51
|
}
|