|
1
|
scr_enemy_object_initscr_enemy_object_init
function scr_enemy_object_init()
{
becomeflash = 0;
flash = 0;
turnt = 0;
turns = 0;
talktimer = 0;
state = 0;
siner = 0;
fsiner = 0;
talked = 0;
attacked = 0;
hurt = 0;
hurttimer = 0;
hurtshake = 0;
shakex = 0;
acting = 0;
actcon = 0;
mywriter = 343249823;
acttimer = 0;
con = 0;
dodgetimer = 0;
fatal = 0;
candodge = 0;
mytarget = 0;
ambushed = 0;
firststrike = 0;
damage = -1;
grazepoints = -1;
timepoints = -1;
inv = -1;
target = -1;
grazed = -1;
grazetimer = -1;
element = "none";
acting = 0;
actingsus = 0;
actingnoe = 0;
actingral = 0;
actconsus = 0;
actconral = 0;
actconnoe = 0;
simulorderkri = -1;
simulordersus = -1;
simulorderral = -1;
simulordernoe = -1;
simultotal = 0;
simulboss = -1;
talkmax = 90;
mercymod = 0;
maxmercy = 100;
recruitable = 1;
freezable = 1;
recruitcount = 1;
sactionboxx = 0;
sactionboxy = 0;
hurtspriteoffx = 0;
hurtspriteoffy = 0;
image_xscale = 2;
image_yscale = 2;
image_speed = 0.2;
idlesprite = spr_diamond_knight_overworld;
hurtsprite = spr_diamond_knight_hurt;
sparedsprite = spr_diamond_knight_spared;
custombody = 0;
for (i = 0; i < 10; i++)
_charactsprite[i] = 382938298329;
depth = 90 - ((y - cameray()) / 50);
} ();
|
|
2
|
instance_create(-1000, -1000, obj_boxingqueen_black_bg);
|
|
3
|
instance_create(x, y, obj_3d_bg_effect);
|
|
4
|
instance_create(x, y, o_boxingcontroller);
|
|
5
|
instance_create(x, y, o_boxingqueen);
|
|
6
|
with (obj_battleback)
|
|
7
|
visible = false;
|
|
8
|
init = 0;
|
|
9
|
turn = 0;
|
|
10
|
battlemsgtimer = 0;
|
|
11
|
if (i_ex(obj_battlecontroller))
|
|
12
|
{
|
|
13
|
obj_battlecontroller.cantspare[0] = 1;
|
|
14
|
cantspareinit = 1;
|
|
15
|
}
|
|
16
|
kris_save_hp = global.hp[1];
|
|
17
|
kris_save_max_hp = global.maxhp[1];
|
|
18
|
var hprecruit = 0;
|
|
19
|
if (global.flag[254 starwalker] == 1)
|
|
20
|
hprecruit += 5;
|
|
21
|
if (global.flag[357 recruit_hacker] == 1)
|
|
22
|
hprecruit += 5;
|
|
23
|
if (global.flag[630 recruit_medic] == 1)
|
|
24
|
hprecruit += 5;
|
|
25
|
if (global.flag[631 recruit_poppup] == 1)
|
|
26
|
hprecruit += 5;
|
|
27
|
if (global.flag[632 recruit_tasque] == 1)
|
|
28
|
hprecruit += 5;
|
|
29
|
if (global.flag[633 recruit_plugboy] == 1)
|
|
30
|
hprecruit += 5;
|
|
31
|
if (global.flag[634 recruit_maus] == 1)
|
|
32
|
hprecruit += 5;
|
|
33
|
if (global.flag[635 recruit_viro] == 1)
|
|
34
|
hprecruit += 5;
|
|
35
|
if (global.flag[636 recruit_butler] == 1)
|
|
36
|
hprecruit += 5;
|
|
37
|
if (global.flag[640 recruit_www] == 1)
|
|
38
|
hprecruit += 5;
|
|
39
|
if (global.flag[642 recruit_task_manager] == 1)
|
|
40
|
hprecruit += 5;
|
|
41
|
if (global.flag[644 recruit_mauswheel] == 1)
|
|
42
|
hprecruit += 5;
|
|
43
|
if (hprecruit > 50)
|
|
44
|
hprecruit = 50;
|
|
45
|
global.hp[1] = 200 + hprecruit;
|
|
46
|
global.maxhp[1] = 200 + hprecruit;
|
|
47
|
global.charname[1] = stringsetloc(Thrash Machine"Thrash Machine", "obj_gigaqueen_enemy_slash_Create_0_gml_19_0" );
|
|
48
|
balloonorder = 0;
|
|
49
|
ballooncon = 0;
|
|
50
|
balloonend = 1;
|
|
51
|
talkedcon = 0;
|
|
52
|
playerhasntdodged = 0;
|
|
53
|
playerhasntdodgedorder = 0;
|
|
54
|
didntdodgethisturn = 0;
|
|
55
|
didntpunchthisturn = 0;
|
|
56
|
didntcounterthisturn = 0;
|
|
57
|
recentphasetransition = 0;
|
|
58
|
healcount = 0;
|
|
59
|
haventusedspell = 1;
|
|
60
|
init = 0;
|
|
61
|
finalconvcon = 0;
|
|
62
|
missleattack = 0;
|
|
63
|
breathattack = 0;
|
|
64
|
extradamage = 0;
|
|
65
|
actpunchtext = 0;
|
|
66
|
for (j = 0; j < 13; j += 1)
|
|
67
|
items[j] = global.item[j];
|