|
1
|
if (global.monster[myself] == 1)
|
|
2
|
{
|
|
3
|
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)
|
|
4
|
{
|
|
5
|
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;
}
} ();
|
|
6
|
myattackchoice = choose(0, 1);
|
|
7
|
myattackpriority = 1;
|
|
8
|
if (myattackchoice == 2)
|
|
9
|
myattackpriority = 50;
|
|
10
|
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);
|
|
11
|
if (!instance_exists(obj_darkener))
|
|
12
|
instance_create(0, 0, obj_darkener);
|
|
13
|
global.typer = 50;
|
|
14
|
rr = choose(0, 1, 2, 3);
|
|
15
|
if (rr == 0)
|
|
16
|
msgsetloc(0, Hoofah doofah."Hoofah&doofah.", "obj_zapper_enemy_slash_Step_0_gml_41_0" );
|
|
17
|
if (rr == 1)
|
|
18
|
msgsetloc(0, Yeah, yeah, Mr. Tenna's orders."Yeah, yeah,&Mr. Tenna's&orders.", "obj_zapper_enemy_slash_Step_0_gml_42_0" );
|
|
19
|
if (rr == 2)
|
|
20
|
msgsetloc(0, Yeah, yeah, show your ID!"Yeah, yeah,&show your ID!", "obj_zapper_enemy_slash_Step_0_gml_43_0" );
|
|
21
|
if (rr == 3)
|
|
22
|
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" );
|
|
23
|
if (ractused)
|
|
24
|
{
|
|
25
|
ractused = false;
|
|
26
|
msgsetloc(0, Hey, I can see da music.!"Hey, I can&see da music.!", "obj_zapper_enemy_slash_Step_0_gml_45_0" );
|
|
27
|
}
|
|
28
|
if (sactused)
|
|
29
|
{
|
|
30
|
sactused = false;
|
|
31
|
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" );
|
|
32
|
}
|
|
33
|
if (sharpshootballoon == true)
|
|
34
|
{
|
|
35
|
sharpshootballoon = false;
|
|
36
|
msgsetloc(0, My buttons... pushed."My buttons... pushed.", "obj_zapper_enemy_slash_Step_0_gml_51_0_b" );
|
|
37
|
}
|
|
38
|
if (volumeused)
|
|
39
|
{
|
|
40
|
volumeused = false;
|
|
41
|
if (myself == 0)
|
|
42
|
msgsetloc(0, CAN SOMEONE TURN THAT BACK DOWN?"CAN SOMEONE&TURN THAT&BACK DOWN?", "obj_zapper_enemy_slash_Step_0_gml_50_0" );
|
|
43
|
if (myself == 1)
|
|
44
|
msgsetloc(0, WHAT? I CAN'T HEAR YOU!!!"WHAT? I CAN'T&HEAR YOU!!!", "obj_zapper_enemy_slash_Step_0_gml_51_0" );
|
|
45
|
if (myself == 2)
|
|
46
|
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" );
|
|
47
|
}
|
|
48
|
if (mutedlastturn)
|
|
49
|
{
|
|
50
|
mutedlastturn = false;
|
|
51
|
msgsetloc(0, " ", "obj_zapper_enemy_slash_Step_0_gml_54_0" );
|
|
52
|
}
|
|
53
|
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_z;
return myblcon;
}
} (x - 0, y + 36, 10);
|
|
54
|
talked = 1;
|
|
55
|
talktimer = 0;
|
|
56
|
rtimer = 0;
|
|
57
|
}
|
|
58
|
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"))
|
|
59
|
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();
with (obj_guei_balloon)
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();
with (obj_guei_balloon)
instance_destroy();
global.mnfight = 1.5;
}
}
} (15);
|
|
60
|
if (global.mnfight == 1.5)
|
|
61
|
{
|
|
62
|
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))
|
|
63
|
{
|
|
64
|
if (!instance_exists(obj_growtangle))
|
|
65
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
66
|
if (!instance_exists(obj_moveheart))
|
|
67
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
if (global.chapter == 4 && (i_ex(obj_hammer_of_justice_enemy) || i_ex(obj_sound_of_justice_enemy)))
return instance_create(obj_herosusie.x - 250, obj_herosusie.y + 40, obj_moveheart);
else
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
68
|
global.mnfight = 2;
|
|
69
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (90);
|
|
70
|
}
|
|
71
|
}
|
|
72
|
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)
|
|
73
|
{
|
|
74
|
rtimer += 1;
|
|
75
|
if (rtimer == 12)
|
|
76
|
{
|
|
77
|
if (i_ex(obj_pippins_enemy) && i_ex(obj_volumeup))
|
|
78
|
myattackchoice = 0;
|
|
79
|
if (myattackchoice == 0)
|
|
80
|
{
|
|
81
|
global.monsterattackname[myself] = "zapper laser";
|
|
82
|
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);
|
|
83
|
dc.type = 65;
|
|
84
|
}
|
|
85
|
else if (myattackchoice == 1)
|
|
86
|
{
|
|
87
|
global.monsterattackname[myself] = "zapper cannon";
|
|
88
|
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);
|
|
89
|
dc.type = 66;
|
|
90
|
}
|
|
91
|
else if (myattackchoice == 2)
|
|
92
|
{
|
|
93
|
global.monsterattackname[myself] = "volume control";
|
|
94
|
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);
|
|
95
|
dc.type = 67;
|
|
96
|
}
|
|
97
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (200);
|
|
98
|
turns += 1;
|
|
99
|
global.typer = 6;
|
|
100
|
global.fc = 0;
|
|
101
|
rr = choose(0, 1, 2, 3);
|
|
102
|
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)))
|
|
103
|
{
|
|
104
|
if (rr == 0)
|
|
105
|
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" );
|
|
106
|
if (rr == 1)
|
|
107
|
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" );
|
|
108
|
if (rr == 2)
|
|
109
|
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" );
|
|
110
|
if (rr == 3)
|
|
111
|
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" );
|
|
112
|
}
|
|
113
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
|
|
114
|
{
|
|
115
|
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)))
|
|
116
|
global.battlemsg[0] = stringsetloc(* Zapper's buttons feel mushy."* Zapper's buttons feel mushy.", "obj_zapper_enemy_slash_Step_0_gml_133_0" );
|
|
117
|
}
|
|
118
|
if (global.monsterstatus[myself] == 1)
|
|
119
|
{
|
|
120
|
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)))
|
|
121
|
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" );
|
|
122
|
}
|
|
123
|
if (global.mercymod[myself] >= 100)
|
|
124
|
{
|
|
125
|
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)))
|
|
126
|
global.battlemsg[0] = stringsetloc(* Zapper blushes in infrared, too."* Zapper blushes in infrared, too.", "obj_zapper_enemy_slash_Step_0_gml_145_0" );
|
|
127
|
}
|
|
128
|
attacked = 1;
|
|
129
|
}
|
|
130
|
}
|
|
131
|
if (global.mnfight == 2 && global.turntimer < 1)
|
|
132
|
{
|
|
133
|
muted = false;
|
|
134
|
closedcaptioncon = 0;
|
|
135
|
if (volumecountdestination > 10)
|
|
136
|
{
|
|
137
|
volumecountdestination = 10;
|
|
138
|
displayvolumetimer = 20;
|
|
139
|
snd_volume(global.batmusic[1], 1, 1);
|
|
140
|
}
|
|
141
|
with (obj_volumeup)
|
|
142
|
instance_destroy();
|
|
143
|
with (obj_volumeup2)
|
|
144
|
instance_destroy();
|
|
145
|
}
|
|
146
|
}
|
|
147
|
if (global.myfight == 3)
|
|
148
|
{
|
|
149
|
xx = __view_get(e__VW.XView, 0);
|
|
150
|
yy = __view_get(e__VW.YView, 0);
|
|
151
|
if (acting == 1 && actcon == 0)
|
|
152
|
{
|
|
153
|
actcon = 1;
|
|
154
|
msgsetloc(0, * ZAPPER - When it changes channels, who knows where you'll end up?Wait for inputClose Message"* ZAPPER - When it changes channels, who knows where you'll end up?/%", "obj_zapper_enemy_slash_Step_0_gml_184_0" );
|
|
155
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
156
|
}
|
|
157
|
if (acting == 2 && actcon == 0)
|
|
158
|
{
|
|
159
|
volumeused = true;
|
|
160
|
audio_resume_sound(global.batmusic[1]);
|
|
161
|
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);
|
|
162
|
VolumeUpcount++;
|
|
163
|
if (VolumeUpcount == 1)
|
|
164
|
{
|
|
165
|
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" );
|
|
166
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
167
|
acting = 20;
|
|
168
|
instance_create(x, y, obj_volumeup);
|
|
169
|
}
|
|
170
|
else if (VolumeUpcount > 1)
|
|
171
|
{
|
|
172
|
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" );
|
|
173
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
174
|
instance_create(x, y, obj_volumeup);
|
|
175
|
actcon = 1;
|
|
176
|
volumecountdestination = 15;
|
|
177
|
displayvolumetimer = 60;
|
|
178
|
snd_volume(global.batmusic[1], 1.4, 1);
|
|
179
|
}
|
|
180
|
}
|
|
181
|
if (acting == 20 && actcon == 0 && !i_ex(obj_writer))
|
|
182
|
{
|
|
183
|
volumecountdestination = 15;
|
|
184
|
displayvolumetimer = 60;
|
|
185
|
snd_volume(global.batmusic[1], 1.4, 1);
|
|
186
|
msgsetloc(0, * ...Wait for inputClose Message"* .../%", "obj_zapper_enemy_slash_Step_0_gml_230_0" );
|
|
187
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
188
|
acting = 21;
|
|
189
|
}
|
|
190
|
if (acting == 21 && actcon == 0 && !i_ex(obj_writer))
|
|
191
|
{
|
|
192
|
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" );
|
|
193
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
194
|
instance_create(x, y, obj_volumeup);
|
|
195
|
actcon = 1;
|
|
196
|
}
|
|
197
|
if (acting == 3 && actcon == 0)
|
|
198
|
{
|
|
199
|
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" );
|
|
200
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
201
|
acting = 30;
|
|
202
|
}
|
|
203
|
if (acting == 30 && actcon == 0 && !i_ex(obj_writer))
|
|
204
|
{
|
|
205
|
volumecountdestination = 0;
|
|
206
|
displayvolumetimer = 60;
|
|
207
|
audio_pause_sound(global.batmusic[1]);
|
|
208
|
msgsetloc(0, * ...Wait for inputClose Message"* .../%", "obj_zapper_enemy_slash_Step_0_gml_256_0" );
|
|
209
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
210
|
acting = 31;
|
|
211
|
muted = true;
|
|
212
|
mutedlastturn = true;
|
|
213
|
}
|
|
214
|
if (acting == 31 && actcon == 0 && !i_ex(obj_writer))
|
|
215
|
{
|
|
216
|
with (obj_monsterparent)
|
|
217
|
{
|
|
218
|
if (global.monsterstatus[myself] != 1)
|
|
219
|
scr_monster_make_tiredscr_monster_make_tired
function scr_monster_make_tired(arg0)
{
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);
|
|
220
|
}
|
|
221
|
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);
|
|
222
|
msgsetloc(0, * All foes became TIRED!Wait for inputClose Message"* All foes became TIRED!/%", "obj_zapper_enemy_slash_Step_0_gml_269_0" );
|
|
223
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
224
|
actcon = 1;
|
|
225
|
}
|
|
226
|
if (acting == 4 && actcon == 0)
|
|
227
|
{
|
|
228
|
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" );
|
|
229
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
230
|
acting = 40;
|
|
231
|
}
|
|
232
|
if (acting == 40 && actcon == 0 && !i_ex(obj_writer))
|
|
233
|
{
|
|
234
|
instance_create(x, y, obj_tvturnoff_manager);
|
|
235
|
acting = 41;
|
|
236
|
}
|
|
237
|
if (acting == 41 && actcon == 0 && !i_ex(obj_tvturnoff_manager))
|
|
238
|
{
|
|
239
|
with (obj_monsterparent)
|
|
240
|
scr_sparescr_spare
function scr_spare(arg0)
{
with (global.monsterinstance[arg0])
event_user(10);
} (myself);
|
|
241
|
actcon = 1;
|
|
242
|
}
|
|
243
|
if (actingsus == 1 && actconsus == 1)
|
|
244
|
{
|
|
245
|
msgsetloc(0, * Susie mashed random buttons!Wait for inputClose Message"* Susie mashed random buttons!/%", "obj_zapper_enemy_slash_Step_0_gml_396_0" );
|
|
246
|
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);
|
|
247
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
248
|
snd_play(snd_damage);
|
|
249
|
shakex = 9;
|
|
250
|
state = 3;
|
|
251
|
hurttimer = 30;
|
|
252
|
actingsus = 30;
|
|
253
|
sactused = true;
|
|
254
|
}
|
|
255
|
if (actingsus == 30)
|
|
256
|
{
|
|
257
|
if (!audio_is_playing(snd_fountain_make))
|
|
258
|
snd_play(snd_fountain_make);
|
|
259
|
if (changecolorcon == 0)
|
|
260
|
{
|
|
261
|
colortarget2 = make_color_hsv(irandom(255), 250, 255);
|
|
262
|
if (changecolorcount == 5)
|
|
263
|
colortarget2 = 16777215;
|
|
264
|
pitchtarget2 = 1 + random(2);
|
|
265
|
changecolorcon = 1;
|
|
266
|
}
|
|
267
|
if (changecolorcon == 1)
|
|
268
|
{
|
|
269
|
changecolortimer++;
|
|
270
|
image_blend = merge_color(colortarget, colortarget2, changecolortimer / 3);
|
|
271
|
pitch = lerp(pitchtarget, pitchtarget2, changecolortimer / 3);
|
|
272
|
snd_pitch(snd_fountain_make, pitch);
|
|
273
|
if (changecolortimer == 3)
|
|
274
|
{
|
|
275
|
colortarget = colortarget2;
|
|
276
|
pitchtarget = pitchtarget2;
|
|
277
|
changecolorcount++;
|
|
278
|
changecolorcon = 0;
|
|
279
|
changecolortimer = 0;
|
|
280
|
}
|
|
281
|
}
|
|
282
|
if (changecolorcount == 6)
|
|
283
|
{
|
|
284
|
snd_stop(snd_fountain_make);
|
|
285
|
image_blend = c_white;
|
|
286
|
changecolorcount = 0;
|
|
287
|
actcon = 1;
|
|
288
|
actingsus = 0;
|
|
289
|
}
|
|
290
|
}
|
|
291
|
if (actingral == 1 && actconral == 1)
|
|
292
|
{
|
|
293
|
msgsetloc(0, * Ralsei enabled captions!Wait for inputClose Message"* Ralsei enabled captions!/%", "obj_zapper_enemy_slash_Step_0_gml_455_0" );
|
|
294
|
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);
|
|
295
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
296
|
actconral = 2;
|
|
297
|
ractused = true;
|
|
298
|
}
|
|
299
|
if (actingral == 1 && actconral == 2 && !i_ex(obj_writer))
|
|
300
|
{
|
|
301
|
actconral = 3;
|
|
302
|
alarm[4] = 70; gml_Object_obj_zapper_enemy_Alarm_4.gml
con += 1;
|
|
303
|
if (muted == false)
|
|
304
|
closedcaptioncon = 1;
|
|
305
|
else
|
|
306
|
alarm[4] = 1; gml_Object_obj_zapper_enemy_Alarm_4.gml
con += 1;
|
|
307
|
}
|
|
308
|
if (actconral == 3 && con == 1)
|
|
309
|
{
|
|
310
|
con = 0;
|
|
311
|
actcon = 1;
|
|
312
|
actconral = 0;
|
|
313
|
closedcaptioncon = 0;
|
|
314
|
}
|
|
315
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
316
|
{
|
|
317
|
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;
} ())
|
|
318
|
{
|
|
319
|
actconsus = -1;
|
|
320
|
actconral = -1;
|
|
321
|
actcon = 1;
|
|
322
|
}
|
|
323
|
}
|
|
324
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
325
|
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 (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1)
{
global.charturn = 3;
global.myfight = 3;
global.currentactingchar = 0;
if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit;
}
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();
}
} ();
|
|
326
|
}
|
|
327
|
if (state == 3)
|
|
328
|
{
|
|
329
|
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);
|
|
330
|
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;
}
}
} ();
|
|
331
|
}
|
|
332
|
|
|
333
|
enum e__VW
|
|
334
|
{
|
|
335
|
XView,
|
|
336
|
YView,
|
|
337
|
WView,
|
|
338
|
HView,
|
|
339
|
Angle,
|
|
340
|
HBorder,
|
|
341
|
VBorder,
|
|
342
|
HSpeed,
|
|
343
|
VSpeed,
|
|
344
|
Object,
|
|
345
|
Visible,
|
|
346
|
XPort,
|
|
347
|
YPort,
|
|
348
|
WPort,
|
|
349
|
HPort,
|
|
350
|
Camera,
|
|
351
|
SurfaceID
|
|
352
|
}
|