|
1
|
if (init == 0)
|
|
2
|
{
|
|
3
|
init = 1;
|
|
4
|
if (i_ex(obj_tenna_board4_enemy))
|
|
5
|
{
|
|
6
|
global.actactor[0][0] = 4;
|
|
7
|
global.actactor[0][1] = 4;
|
|
8
|
global.actactor[0][2] = 4;
|
|
9
|
scr_spellmenu_setupscr_spellmenu_setup
function scr_spellmenu_setup()
{
var __actnamecheck = 0;
var __monstertype = global.monstertype[0];
for (__i = 1; __i < 3; __i++)
{
if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype)
__actnamecheck = 1;
}
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 6; __fj++)
{
global.battlespell[__i][__fj] = 0;
if (global.char[__i] == 1)
{
if (global.canact[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcost[0][__fj];
global.battlespellname[__i][__fj] = global.actname[0][__fj];
global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj];
global.battlespelltarget[__i][__fj] = 0;
global.battlespellspecial[__i][__fj] = 1;
}
}
if (global.char[__i] == 2)
{
if (global.canactsus[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj];
global.battlespellname[__i][__fj] = global.actnamesus[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(S-Action"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0" );
if (__actnamecheck && global.chapter == 3 && i_ex(obj_elnina_lanino_controller))
global.battlespellname[__i][__fj] = stringsetloc(ILoveTV"ILoveTV", "scr_spellmenu_setup_slash_scr_spellmenu_setup_gml_39_0" );
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 2;
}
}
if (global.char[__i] == 3)
{
if (global.canactral[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostral[0][__fj];
global.battlespellname[__i][__fj] = global.actnameral[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(R-Action"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0" );
if (__actnamecheck && global.chapter == 3 && i_ex(obj_elnina_lanino_controller))
global.battlespellname[__i][__fj] = stringsetloc(ILoveTV"ILoveTV", "scr_spellmenu_setup_slash_scr_spellmenu_setup_gml_54_0" );
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 3;
}
}
if (global.char[__i] == 4)
{
if (global.canactnoe[0][__fj] == 1)
{
global.battlespell[__i][__fj] = -1;
if (global.battleactcount[__i] < (__fj + 1))
global.battleactcount[__i] = __fj + 1;
global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj];
global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj];
if (__actnamecheck)
global.battlespellname[__i][__fj] = stringsetloc(N-Action"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0" );
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj];
global.battlespelltarget[__i][__fj] = 2;
global.battlespellspecial[__i][__fj] = 4;
}
}
}
}
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++)
{
for (__fj = 0; __fj < 12; __fj++)
{
__ib = global.battleactcount[__i] + __fj;
global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj];
global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj];
global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj];
global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj];
global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj];
}
}
} ();
|
|
10
|
}
|
|
11
|
}
|
|
12
|
if (global.monster[myself] == 1)
|
|
13
|
{
|
|
14
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && talked == 0)
|
|
15
|
{
|
|
16
|
scr_randomtargetscr_randomtarget
function scr_randomtarget()
{
abletotarget = 1;
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0)
abletotarget = 0;
mytarget = choose(0, 1, 2);
if (abletotarget == 1)
{
while (global.charcantarget[mytarget] == 0)
mytarget = choose(0, 1, 2);
}
else
{
mytarget = 3;
}
global.targeted[mytarget] = 1;
if (global.chapter >= 2 && mytarget != 3)
{
if (global.charcantarget[0])
global.targeted[0] = 1;
if (global.charcantarget[1])
global.targeted[1] = 1;
if (global.charcantarget[2])
global.targeted[2] = 1;
mytarget = 4;
}
} ();
|
|
17
|
myattackchoice = choose(0, 1);
|
|
18
|
myattackpriority = 1;
|
|
19
|
if (myattackchoice == 2)
|
|
20
|
myattackpriority = 50;
|
|
21
|
scr_attackpriorityscr_attackpriority
function scr_attackpriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.attackpriority < arg0)
{
obj_battlecontroller.attackpriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (myattackpriority - 1);
|
|
22
|
if (!instance_exists(obj_darkener))
|
|
23
|
instance_create(0, 0, obj_darkener);
|
|
24
|
if (!i_ex(obj_tenna_board4_enemy))
|
|
25
|
{
|
|
26
|
global.typer = 50;
|
|
27
|
rr = choose(0, 1, 2, 3);
|
|
28
|
if (rr == 0)
|
|
29
|
msgsetloc(0, Hoofah doofah."Hoofah&doofah.", "obj_zapper_enemy_slash_Step_0_gml_41_0" );
|
|
30
|
if (rr == 1)
|
|
31
|
msgsetloc(0, Yeah, yeah, Mr. Tenna's orders."Yeah, yeah,&Mr. Tenna's&orders.", "obj_zapper_enemy_slash_Step_0_gml_42_0" );
|
|
32
|
if (rr == 2)
|
|
33
|
msgsetloc(0, Yeah, yeah, show your ID!"Yeah, yeah,&show your ID!", "obj_zapper_enemy_slash_Step_0_gml_43_0" );
|
|
34
|
if (rr == 3)
|
|
35
|
msgsetloc(0, Deez buttons ain't for show, twerps."Deez buttons&ain't for&show, twerps.", "obj_zapper_enemy_slash_Step_0_gml_44_0" );
|
|
36
|
if (ractused)
|
|
37
|
{
|
|
38
|
ractused = false;
|
|
39
|
msgsetloc(0, Hey, I can see da music.!"Hey, I can&see da music.!", "obj_zapper_enemy_slash_Step_0_gml_45_0" );
|
|
40
|
}
|
|
41
|
if (sactused)
|
|
42
|
{
|
|
43
|
sactused = false;
|
|
44
|
msgsetloc(0, D-don't touch that, you's!"D-don't touch&that, you's!", "obj_zapper_enemy_slash_Step_0_gml_46_0" );
|
|
45
|
}
|
|
46
|
if (sharpshootballoon == true)
|
|
47
|
{
|
|
48
|
sharpshootballoon = false;
|
|
49
|
msgsetloc(0, My buttons... pushed."My buttons... pushed.", "obj_zapper_enemy_slash_Step_0_gml_51_0_b" );
|
|
50
|
}
|
|
51
|
if (volumeused)
|
|
52
|
{
|
|
53
|
volumeused = false;
|
|
54
|
if (myself == 0)
|
|
55
|
msgsetloc(0, CAN SOMEONE TURN THAT BACK DOWN?"CAN SOMEONE&TURN THAT&BACK DOWN?", "obj_zapper_enemy_slash_Step_0_gml_50_0" );
|
|
56
|
if (myself == 1)
|
|
57
|
msgsetloc(0, WHAT? I CAN'T HEAR YOU!!!"WHAT? I CAN'T&HEAR YOU!!!", "obj_zapper_enemy_slash_Step_0_gml_51_0" );
|
|
58
|
if (myself == 2)
|
|
59
|
msgsetloc(0, TURN IT UP?? OKAY, YOU DA BOSS!"TURN IT UP??&OKAY, YOU DA BOSS!", "obj_zapper_enemy_slash_Step_0_gml_52_0" );
|
|
60
|
}
|
|
61
|
if (mutedlastturn)
|
|
62
|
{
|
|
63
|
mutedlastturn = false;
|
|
64
|
msgsetloc(0, " ", "obj_zapper_enemy_slash_Step_0_gml_54_0" );
|
|
65
|
}
|
|
66
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (x - 0, y + 36, 10);
|
|
67
|
}
|
|
68
|
talked = 1;
|
|
69
|
talktimer = 0;
|
|
70
|
rtimer = 0;
|
|
71
|
}
|
|
72
|
if (talked == 1 && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk"))
|
|
73
|
scr_blconskipscr_blconskip
function scr_blconskip(arg0)
{
if (arg0 >= 0)
{
if (button1_p() && talktimer > arg0)
talktimer = talkmax;
talktimer += 1;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 1.5;
}
}
else if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 1.5;
}
else if (arg0 == -2)
{
talktimer += 1;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 1.5;
}
}
} (15);
|
|
74
|
if (global.mnfight == 1.5)
|
|
75
|
{
|
|
76
|
if (scr_attackpriorityscr_attackpriority
function scr_attackpriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.attackpriority < arg0)
{
obj_battlecontroller.attackpriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (myattackpriority))
|
|
77
|
{
|
|
78
|
if (!instance_exists(obj_growtangle))
|
|
79
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
80
|
if (!instance_exists(obj_moveheart))
|
|
81
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
82
|
global.mnfight = 2;
|
|
83
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (90);
|
|
84
|
}
|
|
85
|
}
|
|
86
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets") && attacked == 0)
|
|
87
|
{
|
|
88
|
rtimer += 1;
|
|
89
|
if (rtimer == 12)
|
|
90
|
{
|
|
91
|
if (i_ex(obj_tenna_board4_enemy))
|
|
92
|
myattackchoice = 0;
|
|
93
|
if (i_ex(obj_shutta_enemy))
|
|
94
|
myattackchoice = 1;
|
|
95
|
if (i_ex(obj_shadowman_enemy) && i_ex(obj_volumeup))
|
|
96
|
myattackchoice = 1;
|
|
97
|
if (i_ex(obj_pippins_enemy) && i_ex(obj_volumeup))
|
|
98
|
myattackchoice = 0;
|
|
99
|
if (myattackchoice == 0)
|
|
100
|
{
|
|
101
|
global.monsterattackname[myself] = "zapper laser";
|
|
102
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
103
|
dc.type = 65;
|
|
104
|
}
|
|
105
|
else if (myattackchoice == 1)
|
|
106
|
{
|
|
107
|
global.monsterattackname[myself] = "zapper cannon";
|
|
108
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
109
|
dc.type = 66;
|
|
110
|
}
|
|
111
|
else if (myattackchoice == 2)
|
|
112
|
{
|
|
113
|
global.monsterattackname[myself] = "volume control";
|
|
114
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
115
|
dc.type = 67;
|
|
116
|
}
|
|
117
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (200);
|
|
118
|
turns += 1;
|
|
119
|
if (!i_ex(obj_tenna_board4_enemy))
|
|
120
|
{
|
|
121
|
global.typer = 6;
|
|
122
|
global.fc = 0;
|
|
123
|
rr = choose(0, 1, 2, 3);
|
|
124
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (random(2)))
|
|
125
|
{
|
|
126
|
if (rr == 0)
|
|
127
|
global.battlemsg[0] = stringsetloc(* Zapper clicks and clacks, zip and zaps."* Zapper clicks and clacks, zip and zaps.", "obj_zapper_enemy_slash_Step_0_gml_124_0" );
|
|
128
|
if (rr == 1)
|
|
129
|
global.battlemsg[0] = stringsetloc(* Zapper quickly presses the buttons on its chest."* Zapper quickly presses the buttons on its chest.", "obj_zapper_enemy_slash_Step_0_gml_125_0" );
|
|
130
|
if (rr == 2)
|
|
131
|
global.battlemsg[0] = stringsetloc(* Zapper keeps just popping all night long."* Zapper keeps just popping all night long.", "obj_zapper_enemy_slash_Step_0_gml_126_0" );
|
|
132
|
if (rr == 3)
|
|
133
|
global.battlemsg[0] = stringsetloc(* Zapper checks if Tenna is watching."* Zapper checks if Tenna is watching.", "obj_zapper_enemy_slash_Step_0_gml_127_0" );
|
|
134
|
}
|
|
135
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
|
|
136
|
{
|
|
137
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (100 + random(2)))
|
|
138
|
global.battlemsg[0] = stringsetloc(* Zapper's buttons feel mushy."* Zapper's buttons feel mushy.", "obj_zapper_enemy_slash_Step_0_gml_133_0" );
|
|
139
|
}
|
|
140
|
if (global.monsterstatus[myself] == 1)
|
|
141
|
{
|
|
142
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (100 + random(2)))
|
|
143
|
global.battlemsg[0] = stringsetloc(* Zapper's seeing visions of Lanino."* Zapper's seeing visions of Lanino.", "obj_zapper_enemy_slash_Step_0_gml_139_0" );
|
|
144
|
}
|
|
145
|
if (global.mercymod[myself] >= 100)
|
|
146
|
{
|
|
147
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (100 + random(2)))
|
|
148
|
global.battlemsg[0] = stringsetloc(* Zapper blushes in infrared, too."* Zapper blushes in infrared, too.", "obj_zapper_enemy_slash_Step_0_gml_145_0" );
|
|
149
|
}
|
|
150
|
}
|
|
151
|
attacked = 1;
|
|
152
|
}
|
|
153
|
}
|
|
154
|
if (global.mnfight == 2 && global.turntimer < 1)
|
|
155
|
{
|
|
156
|
muted = false;
|
|
157
|
closedcaptioncon = 0;
|
|
158
|
if (volumecountdestination > 10)
|
|
159
|
{
|
|
160
|
volumecountdestination = 10;
|
|
161
|
displayvolumetimer = 20;
|
|
162
|
snd_volume(global.batmusic[1], 1, 1);
|
|
163
|
}
|
|
164
|
with (obj_volumeup)
|
|
165
|
instance_destroy();
|
|
166
|
with (obj_volumeup2)
|
|
167
|
instance_destroy();
|
|
168
|
}
|
|
169
|
}
|
|
170
|
if (global.myfight == 3)
|
|
171
|
{
|
|
172
|
xx = __view_get(e__VW.XView, 0);
|
|
173
|
yy = __view_get(e__VW.YView, 0);
|
|
174
|
if (acting == 1 && actcon == 0)
|
|
175
|
{
|
|
176
|
actcon = 1;
|
|
177
|
if (!i_ex(obj_tenna_board4_enemy))
|
|
178
|
msgsetsubloc(0, "* ZAPPER - \"Hoofer\", \"Clicker-Clacker\", any name, it'll do the work./%", string(global.monsterat[myself]), string(global.monsterdf[myself]), "obj_zapper_enemy_slash_Step_0_gml_183_0");
|
|
179
|
else
|
|
180
|
msgsetsubloc(0, "* ZAPPER - When it changes channels, who knows where you'll end up?/%", string(global.monsterat[myself]), string(global.monsterdf[myself]), "obj_zapper_enemy_slash_Step_0_gml_184_0");
|
|
181
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
182
|
}
|
|
183
|
if (acting == 2 && actcon == 0)
|
|
184
|
{
|
|
185
|
volumeused = true;
|
|
186
|
audio_resume_sound(global.batmusic[1]);
|
|
187
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 25);
|
|
188
|
VolumeUpcount++;
|
|
189
|
if (VolumeUpcount == 1)
|
|
190
|
{
|
|
191
|
msgsetloc(0, * You turned up the volume!Wait for inputClose Message"* You turned up the volume!/%", "obj_zapper_enemy_slash_Step_0_gml_198_0" );
|
|
192
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
193
|
acting = 20;
|
|
194
|
if (i_ex(obj_tenna_board4_enemy))
|
|
195
|
closedcaptioncon2 = 1;
|
|
196
|
instance_create(x, y, obj_volumeup);
|
|
197
|
}
|
|
198
|
else if (VolumeUpcount > 1)
|
|
199
|
{
|
|
200
|
msgsetloc(0, * The bullets increased in volume! Try getting close to gather TP!Wait for inputClose Message"* The bullets increased in volume! Try getting close to gather TP!/%", "obj_zapper_enemy_slash_Step_0_gml_207_0" );
|
|
201
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
202
|
instance_create(x, y, obj_volumeup);
|
|
203
|
actcon = 1;
|
|
204
|
volumecountdestination = 15;
|
|
205
|
displayvolumetimer = 60;
|
|
206
|
snd_volume(global.batmusic[1], 1.4, 1);
|
|
207
|
}
|
|
208
|
}
|
|
209
|
if (acting == 20 && actcon == 0 && !i_ex(obj_writer))
|
|
210
|
{
|
|
211
|
volumecountdestination = 15;
|
|
212
|
displayvolumetimer = 60;
|
|
213
|
snd_volume(global.batmusic[1], 1.4, 1);
|
|
214
|
msgsetloc(0, * ...Wait for inputClose Message"* .../%", "obj_zapper_enemy_slash_Step_0_gml_230_0" );
|
|
215
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
216
|
acting = 21;
|
|
217
|
}
|
|
218
|
if (acting == 21 && actcon == 0 && !i_ex(obj_writer))
|
|
219
|
{
|
|
220
|
msgsetloc(0, * The bullets increased in volume, too...! (But, they'll give more TP!)Wait for inputClose Message"* The bullets increased in volume, too...!&(But, they'll give more TP!)/%", "obj_zapper_enemy_slash_Step_0_gml_236_0" );
|
|
221
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
222
|
instance_create(x, y, obj_volumeup);
|
|
223
|
actcon = 1;
|
|
224
|
if (i_ex(obj_tenna_board4_enemy))
|
|
225
|
closedcaptioncon2 = 0;
|
|
226
|
}
|
|
227
|
if (acting == 3 && actcon == 0)
|
|
228
|
{
|
|
229
|
msgsetloc(0, * You hit the MUTE button!Wait for inputClose Message"* You hit the MUTE button!/%", "obj_zapper_enemy_slash_Step_0_gml_246_0" );
|
|
230
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
231
|
acting = 30;
|
|
232
|
}
|
|
233
|
if (acting == 30 && actcon == 0 && !i_ex(obj_writer))
|
|
234
|
{
|
|
235
|
volumecountdestination = 0;
|
|
236
|
displayvolumetimer = 60;
|
|
237
|
audio_pause_sound(global.batmusic[1]);
|
|
238
|
msgsetloc(0, * ...Wait for inputClose Message"* .../%", "obj_zapper_enemy_slash_Step_0_gml_256_0" );
|
|
239
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
240
|
acting = 31;
|
|
241
|
with (obj_zapper_enemy)
|
|
242
|
{
|
|
243
|
muted = true;
|
|
244
|
mutedlastturn = true;
|
|
245
|
}
|
|
246
|
}
|
|
247
|
if (acting == 31 && actcon == 0 && !i_ex(obj_writer))
|
|
248
|
{
|
|
249
|
with (obj_monsterparent)
|
|
250
|
{
|
|
251
|
if (global.monsterstatus[myself] != 1 && object_index != obj_tenna_board4_enemy)
|
|
252
|
scr_monster_make_tiredscr_monster_make_tired
function scr_monster_make_tired(arg0)
{
if (image_alpha > 0)
{
if (global.monsterstatus[arg0] == 0)
{
__tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter);
__tiredwriter.type = 13;
global.hittarget[arg0] += 1;
snd_play_x(snd_spellcast, 0.5, 0.9);
}
global.monstercomment[arg0] = stringsetloc((Tired)"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0" );
global.monsterstatus[arg0] = 1;
}
} (myself);
|
|
253
|
}
|
|
254
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 75);
|
|
255
|
msgsetloc(0, * All foes became TIRED!Wait for inputClose Message"* All foes became TIRED!/%", "obj_zapper_enemy_slash_Step_0_gml_269_0" );
|
|
256
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
257
|
actcon = 1;
|
|
258
|
}
|
|
259
|
if (acting == 4 && actcon == 0)
|
|
260
|
{
|
|
261
|
msgsetloc(0, * You hit the OFF button!Wait for inputClose Message"* You hit the OFF button!/%", "obj_zapper_enemy_slash_Step_0_gml_276_0" );
|
|
262
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
263
|
acting = 40;
|
|
264
|
}
|
|
265
|
if (acting == 40 && actcon == 0 && !i_ex(obj_writer))
|
|
266
|
{
|
|
267
|
if (i_ex(obj_tenna_board4_enemy))
|
|
268
|
snd_free_all();
|
|
269
|
instance_create(x, y, obj_tvturnoff_manager);
|
|
270
|
acting = 41;
|
|
271
|
}
|
|
272
|
if (acting == 41 && actcon == 0 && !i_ex(obj_tvturnoff_manager))
|
|
273
|
{
|
|
274
|
if (!i_ex(obj_tenna_board4_enemy))
|
|
275
|
{
|
|
276
|
with (obj_monsterparent)
|
|
277
|
scr_sparescr_spare
function scr_spare(arg0)
{
with (global.monsterinstance[arg0])
event_user(10);
} (myself);
|
|
278
|
actcon = 1;
|
|
279
|
}
|
|
280
|
else
|
|
281
|
{
|
|
282
|
talktimer = 0;
|
|
283
|
acting = 42;
|
|
284
|
}
|
|
285
|
}
|
|
286
|
if (acting == 42 && actcon == 0)
|
|
287
|
{
|
|
288
|
talktimer++;
|
|
289
|
if (talktimer == 60)
|
|
290
|
{
|
|
291
|
with (obj_writer)
|
|
292
|
instance_destroy();
|
|
293
|
global.fc = 22;
|
|
294
|
global.typer = 81;
|
|
295
|
msgsetloc(0, H-huh!?"H-huh!?", "obj_zapper_enemy_slash_Step_0_gml_317_0" );
|
|
296
|
with (scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (obj_tenna_board4_enemy.tenna_actor.x - 56, obj_tenna_board4_enemy.tenna_actor.y - 140, 10))
|
|
297
|
{
|
|
298
|
}
|
|
299
|
myblcon.depth = depth - 10;
|
|
300
|
talktimer = 0;
|
|
301
|
acting = 42.5;
|
|
302
|
obj_tenna_board4_enemy.tenna_actor.sprite_index = spr_tenna_point_up_b;
|
|
303
|
}
|
|
304
|
}
|
|
305
|
if (acting == 42.5 && actcon == 0)
|
|
306
|
{
|
|
307
|
talktimer++;
|
|
308
|
if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
|
|
309
|
{
|
|
310
|
with (obj_writer)
|
|
311
|
instance_destroy();
|
|
312
|
obj_tenna_board4_enemy.tenna_actor.preset = 12;
|
|
313
|
with (obj_tenna_board4_enemy.tenna_actor)
|
|
314
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (x - 250, y, 10);
|
|
315
|
acting = 43;
|
|
316
|
talktimer = 0;
|
|
317
|
}
|
|
318
|
}
|
|
319
|
if (acting == 43 && actcon == 0)
|
|
320
|
{
|
|
321
|
talktimer++;
|
|
322
|
if (talktimer == 15)
|
|
323
|
{
|
|
324
|
with (obj_writer)
|
|
325
|
instance_destroy();
|
|
326
|
global.fc = 22;
|
|
327
|
global.typer = 81;
|
|
328
|
msgsetloc(0, Susie...? Kris...? Hey...? HEY!!!"Susie...?&Kris...?&Hey...?&HEY!!!", "obj_zapper_enemy_slash_Step_0_gml_343_0" );
|
|
329
|
with (scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (obj_tenna_board4_enemy.tenna_actor.x + 90, obj_tenna_board4_enemy.tenna_actor.y - 140, 10))
|
|
330
|
side = -1;
|
|
331
|
myblcon.depth = depth - 10;
|
|
332
|
talktimer = 0;
|
|
333
|
acting = 44;
|
|
334
|
}
|
|
335
|
}
|
|
336
|
if (acting == 44 && actcon == 0)
|
|
337
|
{
|
|
338
|
talktimer++;
|
|
339
|
if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
|
|
340
|
{
|
|
341
|
with (obj_writer)
|
|
342
|
instance_destroy();
|
|
343
|
global.fc = 22;
|
|
344
|
global.typer = 81;
|
|
345
|
msgsetloc(0, DON'T TELL ME YOU DIDN'T LIKE YOUR CUSTOM MADE TOY BALLS!?"DON'T TELL ME&YOU DIDN'T LIKE&YOUR CUSTOM MADE&TOY BALLS!?", "obj_zapper_enemy_slash_Step_0_gml_358_0" );
|
|
346
|
with (scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (obj_tenna_board4_enemy.tenna_actor.x + 90, obj_tenna_board4_enemy.tenna_actor.y - 140, 10))
|
|
347
|
side = -1;
|
|
348
|
myblcon.depth = depth - 10;
|
|
349
|
talktimer = 0;
|
|
350
|
acting = 45;
|
|
351
|
obj_tenna_board4_enemy.tenna_actor.image_speed = 1.5;
|
|
352
|
}
|
|
353
|
}
|
|
354
|
if (acting == 45 && actcon == 0)
|
|
355
|
{
|
|
356
|
talktimer++;
|
|
357
|
if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
|
|
358
|
{
|
|
359
|
with (obj_writer)
|
|
360
|
instance_destroy();
|
|
361
|
global.fc = 22;
|
|
362
|
global.typer = 81;
|
|
363
|
msgsetloc(0, Hey, Mike?"Hey, Mike?", "obj_zapper_enemy_slash_Step_0_gml_373_0_b" );
|
|
364
|
with (scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (obj_tenna_board4_enemy.tenna_actor.x + 90, obj_tenna_board4_enemy.tenna_actor.y - 140, 10))
|
|
365
|
side = -1;
|
|
366
|
myblcon.depth = depth - 10;
|
|
367
|
talktimer = 0;
|
|
368
|
acting = 46;
|
|
369
|
with (obj_tenna_board4_enemy.tenna_actor)
|
|
370
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_speed", 2, 0, 60, 2, "out");
|
|
371
|
}
|
|
372
|
}
|
|
373
|
if (acting == 46 && actcon == 0)
|
|
374
|
{
|
|
375
|
talktimer++;
|
|
376
|
if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
|
|
377
|
{
|
|
378
|
with (obj_writer)
|
|
379
|
instance_destroy();
|
|
380
|
global.fc = 22;
|
|
381
|
global.typer = 81;
|
|
382
|
msgsetloc(0, Could you, uh, cancel my 4am shock therapy session?"Could you, uh, cancel&my 4am shock therapy&session?", "obj_zapper_enemy_slash_Step_0_gml_392_0" );
|
|
383
|
with (scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (obj_tenna_board4_enemy.tenna_actor.x + 90, obj_tenna_board4_enemy.tenna_actor.y - 140, 10))
|
|
384
|
side = -1;
|
|
385
|
myblcon.depth = depth - 10;
|
|
386
|
talktimer = 0;
|
|
387
|
acting = 47;
|
|
388
|
with (obj_tenna_board4_enemy.tenna_actor)
|
|
389
|
{
|
|
390
|
wobblestate = 0;
|
|
391
|
wobbletime = 0;
|
|
392
|
wobbleamt = 0;
|
|
393
|
}
|
|
394
|
}
|
|
395
|
}
|
|
396
|
if (acting == 47 && actcon == 0)
|
|
397
|
{
|
|
398
|
talktimer++;
|
|
399
|
if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
|
|
400
|
{
|
|
401
|
with (obj_writer)
|
|
402
|
instance_destroy();
|
|
403
|
global.fc = 22;
|
|
404
|
global.typer = 81;
|
|
405
|
msgsetloc(0, 'Cause it looks like it's happening right now."'Cause it looks&like it's&happening right&now.", "obj_zapper_enemy_slash_Step_0_gml_412_0" );
|
|
406
|
with (scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (obj_tenna_board4_enemy.tenna_actor.x + 90, obj_tenna_board4_enemy.tenna_actor.y - 140, 10))
|
|
407
|
side = -1;
|
|
408
|
myblcon.depth = depth - 10;
|
|
409
|
talktimer = 0;
|
|
410
|
acting = 48;
|
|
411
|
obj_tenna_board4_enemy.tenna_actor.sprite_index = spr_tenna_whisper;
|
|
412
|
}
|
|
413
|
}
|
|
414
|
if (acting == 48 && actcon == 0)
|
|
415
|
{
|
|
416
|
talktimer++;
|
|
417
|
if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
|
|
418
|
{
|
|
419
|
with (obj_writer)
|
|
420
|
instance_destroy();
|
|
421
|
global.fc = 22;
|
|
422
|
global.typer = 81;
|
|
423
|
msgsetloc(0, ALL HANDS ON DECK!!! EVERYONE FIND THE LIGHTNERS!!!"ALL HANDS ON DECK!!!&EVERYONE FIND THE&LIGHTNERS!!!", "obj_zapper_enemy_slash_Step_0_gml_427_0" );
|
|
424
|
with (scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (obj_tenna_board4_enemy.tenna_actor.x + 90, obj_tenna_board4_enemy.tenna_actor.y - 140, 10))
|
|
425
|
side = -1;
|
|
426
|
myblcon.depth = depth - 10;
|
|
427
|
talktimer = 0;
|
|
428
|
acting = 49;
|
|
429
|
with (obj_lerpvar)
|
|
430
|
instance_destroy();
|
|
431
|
obj_tenna_board4_enemy.tenna_actor.preset = 12;
|
|
432
|
snd_loop(snd_tv_alarm);
|
|
433
|
depth = obj_tenna_board4_enemy.depth - 100;
|
|
434
|
redalarm = true;
|
|
435
|
}
|
|
436
|
}
|
|
437
|
if (acting >= 48)
|
|
438
|
{
|
|
439
|
with (obj_zapper_enemy)
|
|
440
|
{
|
|
441
|
if (i_ex(obj_battleblcon))
|
|
442
|
depth = obj_battleblcon.depth + 1;
|
|
443
|
}
|
|
444
|
with (obj_actor_tenna)
|
|
445
|
{
|
|
446
|
if (preset == 12)
|
|
447
|
image_speed = 0.35;
|
|
448
|
}
|
|
449
|
}
|
|
450
|
if (acting == 49 && actcon == 0)
|
|
451
|
{
|
|
452
|
talktimer++;
|
|
453
|
if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
|
|
454
|
{
|
|
455
|
with (obj_writer)
|
|
456
|
instance_destroy();
|
|
457
|
talktimer = 0;
|
|
458
|
acting = 49.5;
|
|
459
|
obj_tenna_board4_enemy.tenna_actor.hspeed = 20;
|
|
460
|
}
|
|
461
|
}
|
|
462
|
if (acting == 49.5 && actcon == 0)
|
|
463
|
{
|
|
464
|
talktimer++;
|
|
465
|
if (talktimer == 20)
|
|
466
|
{
|
|
467
|
talktimer = 0;
|
|
468
|
acting = 50;
|
|
469
|
}
|
|
470
|
}
|
|
471
|
if (acting == 50 && actcon == 0)
|
|
472
|
{
|
|
473
|
talktimer++;
|
|
474
|
if (talktimer >= 40)
|
|
475
|
lightfade += 0.05;
|
|
476
|
with (obj_tenna_board4_enemy)
|
|
477
|
battleresult = 1;
|
|
478
|
if (!i_ex(obj_ch3_GSD01_screen_scroll))
|
|
479
|
instance_create(0, 0, obj_ch3_GSD01_screen_scroll);
|
|
480
|
}
|
|
481
|
if (actingsus == 1 && actconsus == 1)
|
|
482
|
{
|
|
483
|
msgsetloc(0, * Susie mashed random buttons!Wait for inputClose Message"* Susie mashed random buttons!/%", "obj_zapper_enemy_slash_Step_0_gml_396_0" );
|
|
484
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 25);
|
|
485
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
486
|
snd_play(snd_damage);
|
|
487
|
shakex = 9;
|
|
488
|
state = 3;
|
|
489
|
hurttimer = 30;
|
|
490
|
actingsus = 30;
|
|
491
|
sactused = true;
|
|
492
|
}
|
|
493
|
if (actingsus == 30)
|
|
494
|
{
|
|
495
|
if (!audio_is_playing(snd_fountain_make))
|
|
496
|
snd_play(snd_fountain_make);
|
|
497
|
if (changecolorcon == 0)
|
|
498
|
{
|
|
499
|
colortarget2 = make_color_hsv(irandom(255), 250, 255);
|
|
500
|
if (changecolorcount == 5)
|
|
501
|
colortarget2 = 16777215;
|
|
502
|
pitchtarget2 = 1 + random(2);
|
|
503
|
changecolorcon = 1;
|
|
504
|
}
|
|
505
|
if (changecolorcon == 1)
|
|
506
|
{
|
|
507
|
changecolortimer++;
|
|
508
|
image_blend = merge_color(colortarget, colortarget2, changecolortimer / 3);
|
|
509
|
pitch = lerp(pitchtarget, pitchtarget2, changecolortimer / 3);
|
|
510
|
snd_pitch(snd_fountain_make, pitch);
|
|
511
|
if (changecolortimer == 3)
|
|
512
|
{
|
|
513
|
colortarget = colortarget2;
|
|
514
|
pitchtarget = pitchtarget2;
|
|
515
|
changecolorcount++;
|
|
516
|
changecolorcon = 0;
|
|
517
|
changecolortimer = 0;
|
|
518
|
}
|
|
519
|
}
|
|
520
|
if (changecolorcount == 6)
|
|
521
|
{
|
|
522
|
snd_stop(snd_fountain_make);
|
|
523
|
image_blend = c_white;
|
|
524
|
changecolorcount = 0;
|
|
525
|
actcon = 1;
|
|
526
|
actingsus = 0;
|
|
527
|
}
|
|
528
|
}
|
|
529
|
if (actingral == 1 && actconral == 1)
|
|
530
|
{
|
|
531
|
msgsetloc(0, * Ralsei enabled captions!Wait for inputClose Message"* Ralsei enabled captions!/%", "obj_zapper_enemy_slash_Step_0_gml_455_0" );
|
|
532
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 25);
|
|
533
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
534
|
actconral = 2;
|
|
535
|
ractused = true;
|
|
536
|
}
|
|
537
|
if (actingral == 1 && actconral == 2 && !i_ex(obj_writer))
|
|
538
|
{
|
|
539
|
actconral = 3;
|
|
540
|
alarm[4] = 70; gml_Object_obj_zapper_enemy_Alarm_4.gml
con += 1;
|
|
541
|
if (muted == false)
|
|
542
|
closedcaptioncon = 1;
|
|
543
|
else
|
|
544
|
alarm[4] = 1; gml_Object_obj_zapper_enemy_Alarm_4.gml
con += 1;
|
|
545
|
}
|
|
546
|
if (actconral == 3 && con == 1)
|
|
547
|
{
|
|
548
|
con = 0;
|
|
549
|
actcon = 1;
|
|
550
|
actconral = 0;
|
|
551
|
closedcaptioncon = 0;
|
|
552
|
}
|
|
553
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
554
|
{
|
|
555
|
if (scr_terminate_writerscr_terminate_writer
function scr_terminate_writer()
{
__writerkilled = 0;
__writerkillable = 0;
__writerended = 0;
if (instance_exists(obj_writer))
{
obj_writer.__endcheckid = id;
with (obj_writer)
{
if (reachedend == 1)
{
with (__endcheckid)
__writerended++;
}
}
if (__writerended == instance_number(obj_writer))
__writerkillable = 1;
}
else
{
__writerkilled = 1;
}
if (button1_p() && __writerkillable == 1)
{
with (obj_writer)
instance_destroy();
__writerkilled = 1;
}
return __writerkilled;
} ())
|
|
556
|
{
|
|
557
|
actconsus = -1;
|
|
558
|
actconral = -1;
|
|
559
|
actcon = 1;
|
|
560
|
}
|
|
561
|
}
|
|
562
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
563
|
scr_nextactscr_nextact
function scr_nextact()
{
global.acting[0] = 0;
global.acting[1] = 0;
global.acting[2] = 0;
global.actingsingle[global.currentactingchar] = 0;
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
with (__minstance)
{
acting = 0;
actcon = 0;
actconsus = 0;
actconral = 0;
actconnoe = 0;
}
var singleactcomplete = 0;
while (global.currentactingchar < 3)
{
global.currentactingchar++;
if (global.currentactingchar < 3)
{
if (global.actingsingle[global.currentactingchar] == 1)
{
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
if (global.char[global.currentactingchar] == 2)
{
with (__minstance)
actconsus = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 3)
{
with (__minstance)
actconral = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 4)
{
with (__minstance)
actconnoe = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
}
}
}
if (global.currentactingchar >= 3)
{
with (obj_monsterparent)
{
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
global.currentactingchar = 0;
scr_attackphase();
}
else if (!singleactcomplete)
{
scr_act_simul();
}
} ();
|
|
564
|
}
|
|
565
|
if (state == 3)
|
|
566
|
{
|
|
567
|
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);
|
|
568
|
scr_enemy_hurtscr_enemy_hurt
function scr_enemy_hurt()
{
hurttimer -= 1;
if (hurttimer < 0)
{
state = 0;
}
else
{
if (global.monster[myself] == 0)
scr_defeatrun();
hurtshake += 1;
if (hurtshake > 1)
{
if (shakex > 0)
shakex -= 1;
if (shakex < 0)
shakex += 1;
shakex = -shakex;
hurtshake = 0;
}
}
} ();
|
|
569
|
}
|
|
570
|
|
|
571
|
enum e__VW
|
|
572
|
{
|
|
573
|
XView,
|
|
574
|
YView,
|
|
575
|
WView,
|
|
576
|
HView,
|
|
577
|
Angle,
|
|
578
|
HBorder,
|
|
579
|
VBorder,
|
|
580
|
HSpeed,
|
|
581
|
VSpeed,
|
|
582
|
Object,
|
|
583
|
Visible,
|
|
584
|
XPort,
|
|
585
|
YPort,
|
|
586
|
WPort,
|
|
587
|
HPort,
|
|
588
|
Camera,
|
|
589
|
SurfaceID
|
|
590
|
}
|