1 |
if (global.monster[myself] == 1) |
2 |
{ |
3 |
if (scr_isphasescr_isphasefunction 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_randomtargetfunction 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 |
if (!instance_exists(obj_darkener)) |
7 |
instance_create(0, 0, obj_darkener); |
8 |
global.typer = 50; |
9 |
rr = choose(0, 1, 2, 3); |
10 |
if (rr == 0) |
11 |
msgset(0, ""); |
12 |
if (rr == 1) |
13 |
msgset(0, ""); |
14 |
if (rr == 2) |
15 |
msgset(0, ""); |
16 |
if (rr == 3) |
17 |
msgset(0, ""); |
18 |
scr_enemyblconscr_enemyblconfunction 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_clubs;
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_clubs;
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;
}
} (x - 10, global.monstery[myself], 10); |
19 |
talked = 1; |
20 |
talktimer = 0; |
21 |
} |
22 |
if (talked == 1 && scr_isphasescr_isphasefunction 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")) |
23 |
{ |
24 |
rtimer = 0; |
25 |
scr_blconskipscr_blconskipfunction 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 = 2;
}
}
else if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 2;
}
else if (arg0 == -2)
{
talktimer += 1;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 2;
}
}
} (15); |
26 |
if (global.mnfight == 2) |
27 |
global.mnfight = 7; |
28 |
} |
29 |
if (global.mnfight == 7 && buildedblocks == 0) |
30 |
{ |
31 |
buildedblockstimer++; |
32 |
if (buildedblockstimer > 60) |
33 |
{ |
34 |
global.mnfight = 2; |
35 |
buildedblocks = 1; |
36 |
buildedblockstimer = 0; |
37 |
} |
38 |
} |
39 |
if (scr_isphasescr_isphasefunction 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") && buildedblocks == 1) |
40 |
{ |
41 |
buildedblocks = 2; |
42 |
if (!instance_exists(obj_moveheart)) |
43 |
scr_moveheartscr_moveheartfunction scr_moveheart()
{
global.inv = 0;
if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy))
return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart);
else
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} (); |
44 |
if (!instance_exists(obj_growtangle)) |
45 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
46 |
} |
47 |
if (scr_isphasescr_isphasefunction 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 && buildedblocks == 2) |
48 |
{ |
49 |
rtimer += 1; |
50 |
if (rtimer == 12) |
51 |
{ |
52 |
rr = (bulletoverride >= 0) ? bulletoverride : irandom(2); |
53 |
if (rr == 0) |
54 |
{ |
55 |
global.monsterattackname[myself] = "ThrashHead"; |
56 |
dc = scr_bulletspawnerscr_bulletspawnerfunction scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller); |
57 |
dc.type = 26; |
58 |
} |
59 |
else if (rr == 1) |
60 |
{ |
61 |
global.monsterattackname[myself] = "ThrashFoot"; |
62 |
dc = scr_bulletspawnerscr_bulletspawnerfunction scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller); |
63 |
dc.type = 27; |
64 |
} |
65 |
else |
66 |
{ |
67 |
global.monsterattackname[myself] = "PuzzleBlocks"; |
68 |
dc = scr_bulletspawnerscr_bulletspawnerfunction scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller); |
69 |
dc.type = 28; |
70 |
} |
71 |
scr_turntimer(200); |
72 |
turns += 1; |
73 |
global.typer = 6; |
74 |
global.fc = 0; |
75 |
rr = choose(0, 1, 2, 3); |
76 |
if (rr == 0) |
77 |
global.battlemsg[0] = ""; |
78 |
if (rr == 1) |
79 |
global.battlemsg[0] = ""; |
80 |
if (rr == 2) |
81 |
global.battlemsg[0] = ""; |
82 |
if (rr == 3) |
83 |
global.battlemsg[0] = ""; |
84 |
attacked = 1; |
85 |
buildedblocks = 0; |
86 |
} |
87 |
else |
88 |
{ |
89 |
scr_turntimer(120); |
90 |
} |
91 |
} |
92 |
} |
93 |
if (global.myfight == 3) |
94 |
{ |
95 |
xx = __view_get(e__VW.XView, 0); |
96 |
yy = __view_get(e__VW.YView, 0); |
97 |
if (acting == 1 && actcon == 0) |
98 |
{ |
99 |
actcon = 1; |
100 |
msgset(0, ""); |
101 |
scr_battletext_default(); |
102 |
} |
103 |
if (acting == 2 && actcon == 0) |
104 |
{ |
105 |
actcon = 1; |
106 |
if (global.automiss[myself] == 0) |
107 |
{ |
108 |
msgset(0, ""); |
109 |
global.monstercomment[myself] = "(Warned)"; |
110 |
global.automiss[myself] = 1; |
111 |
} |
112 |
scr_battletext_default(); |
113 |
} |
114 |
if (acting == 3 && actcon == 0) |
115 |
{ |
116 |
msgset(0, ""); |
117 |
scr_mercyaddscr_mercyaddfunction 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;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_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, 35); |
118 |
scr_battletext_default(); |
119 |
actcon = 1; |
120 |
} |
121 |
if (acting == 4 && actcon == 0) |
122 |
{ |
123 |
msgset(0, ""); |
124 |
if (simultotal == 1) |
125 |
msgset(0, ""); |
126 |
scr_mercyaddscr_mercyaddfunction 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;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_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, 35); |
127 |
scr_simultextscr_simultextfunction scr_simultext(arg0)
{
__simulorder = 0;
if (arg0 == "kris")
__simulorder = simulorderkri;
if (arg0 == "susie")
__simulorder = simulordersus;
if (arg0 == "ralsei")
__simulorder = simulorderral;
if (arg0 == "noelle")
__simulorder = simulordernoe;
__yoffset = __simulorder * 30;
global.typer = 4;
battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer);
} ("kris"); |
128 |
if (simulorderkri == 0) |
129 |
actcon = 20; |
130 |
else |
131 |
actcon = -1; |
132 |
} |
133 |
if (acting == 5 && actcon == 0) |
134 |
{ |
135 |
msgset(0, ""); |
136 |
scr_battletext_default(); |
137 |
actcon = 1; |
138 |
} |
139 |
if (acting == 6 && actcon == 0) |
140 |
{ |
141 |
msgset(0, ""); |
142 |
scr_monster_make_tiredscr_monster_make_tiredfunction scr_monster_make_tired(arg0)
{
global.monstercomment[arg0] = stringsetloc( (Tired)"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0" );
global.monsterstatus[arg0] = 1;
} (myself); |
143 |
scr_battletext_default(); |
144 |
actcon = 1; |
145 |
} |
146 |
if (actingsus == 1 && actconsus == 1) |
147 |
{ |
148 |
msgset(0, ""); |
149 |
scr_mercyaddscr_mercyaddfunction 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;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_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, 35); |
150 |
scr_battletext_default(); |
151 |
actcon = 1; |
152 |
actconsus = 0; |
153 |
} |
154 |
if (actingsus == 2 && actconsus == 1) |
155 |
{ |
156 |
msgset(0, ""); |
157 |
scr_mercyaddscr_mercyaddfunction 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;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_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, 35); |
158 |
scr_simultextscr_simultextfunction scr_simultext(arg0)
{
__simulorder = 0;
if (arg0 == "kris")
__simulorder = simulorderkri;
if (arg0 == "susie")
__simulorder = simulordersus;
if (arg0 == "ralsei")
__simulorder = simulorderral;
if (arg0 == "noelle")
__simulorder = simulordernoe;
__yoffset = __simulorder * 30;
global.typer = 4;
battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer);
} ("susie"); |
159 |
if (simulordersus == 0) |
160 |
actconsus = 20; |
161 |
else |
162 |
actconsus = 0; |
163 |
} |
164 |
if (actingral == 1 && actconral == 1) |
165 |
{ |
166 |
msgset(0, ""); |
167 |
scr_mercyaddscr_mercyaddfunction 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;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_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, 35); |
168 |
scr_battletext_default(); |
169 |
actcon = 1; |
170 |
actconral = 0; |
171 |
} |
172 |
if (actingral == 2 && actconral == 1) |
173 |
{ |
174 |
msgset(0, ""); |
175 |
scr_mercyaddscr_mercyaddfunction 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;
if (i_ex(obj_dmgwriter))
{
with (obj_dmgwriter)
{
if (type == 5)
_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, 35); |
176 |
scr_simultextscr_simultextfunction scr_simultext(arg0)
{
__simulorder = 0;
if (arg0 == "kris")
__simulorder = simulorderkri;
if (arg0 == "susie")
__simulorder = simulordersus;
if (arg0 == "ralsei")
__simulorder = simulorderral;
if (arg0 == "noelle")
__simulorder = simulordernoe;
__yoffset = __simulorder * 30;
global.typer = 4;
battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer);
} ("ralsei"); |
177 |
if (simulorderral == 0) |
178 |
actconral = 20; |
179 |
else |
180 |
actconral = 0; |
181 |
} |
182 |
if (actcon == 20 || actconsus == 20 || actconral == 20) |
183 |
{ |
184 |
if (scr_terminate_writerscr_terminate_writerfunction 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;
} ()) |
185 |
{ |
186 |
actconsus = -1; |
187 |
actconral = -1; |
188 |
actcon = 1; |
189 |
} |
190 |
} |
191 |
if (actcon == 1 && !instance_exists(obj_writer)) |
192 |
scr_nextactscr_nextactfunction 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();
}
} (); |
193 |
} |
194 |
if (scr_debug()) |
195 |
{ |
196 |
if (keyboard_check_pressed(189)) |
197 |
{ |
198 |
keytestmode = 1 - keytestmode; |
199 |
if (keytestmode == 1) |
200 |
keyboard_lastchar = ""; |
201 |
} |
202 |
if (keytestmode && keyboard_lastchar != "") |
203 |
keyboard_lastchar = ""; |
204 |
if (keyboard_check_pressed(vk_numpad7) || keyboard_check_pressed(ord("1"))) |
205 |
bulletoverride = 0; |
206 |
if (keyboard_check_pressed(vk_numpad8) || keyboard_check_pressed(ord("2"))) |
207 |
bulletoverride = 1; |
208 |
if (keyboard_check_pressed(vk_numpad9) || keyboard_check_pressed(ord("3"))) |
209 |
bulletoverride = 2; |
210 |
if (keyboard_check_pressed(vk_numpad5) || keyboard_check_pressed(ord("4"))) |
211 |
bulletoverride = -1; |
212 |
if (keyboard_check_pressed(ord("N"))) |
213 |
{ |
214 |
if (instance_exists(obj_power_up_fx)) |
215 |
{ |
216 |
instance_destroy(obj_power_up_fx); |
217 |
instance_destroy(obj_power_up_thrash); |
218 |
} |
219 |
else |
220 |
{ |
221 |
d = scr_following_afterimagescr_following_afterimagefunction scr_following_afterimage()
{
var __source = (argument_count == 2) ? argument[1] : self;
afterimage = instance_create(__source.x, __source.y, argument[0]);
afterimage.parent = __source;
afterimage.sprite_index = __source.sprite_index;
afterimage.image_index = __source.image_index;
afterimage.image_blend = __source.image_blend;
afterimage.image_speed = 0;
afterimage.depth = __source.depth;
afterimage.image_xscale = __source.image_xscale;
afterimage.image_yscale = __source.image_yscale;
afterimage.image_angle = __source.image_angle;
return afterimage;
} (obj_power_up_fx, self); |
222 |
d.depth -= 1; |
223 |
d = scr_following_afterimagescr_following_afterimagefunction scr_following_afterimage()
{
var __source = (argument_count == 2) ? argument[1] : self;
afterimage = instance_create(__source.x, __source.y, argument[0]);
afterimage.parent = __source;
afterimage.sprite_index = __source.sprite_index;
afterimage.image_index = __source.image_index;
afterimage.image_blend = __source.image_blend;
afterimage.image_speed = 0;
afterimage.depth = __source.depth;
afterimage.image_xscale = __source.image_xscale;
afterimage.image_yscale = __source.image_yscale;
afterimage.image_angle = __source.image_angle;
return afterimage;
} (obj_power_up_thrash, obj_thrashmachine); |
224 |
d.depth -= 1; |
225 |
} |
226 |
} |
227 |
scr_music_mutescr_music_mutefunction scr_music_mute()
{
if ( scr_debug() && keyboard_check_pressed(ord("M")) && audio_is_playing(global.batmusic[1]))
{
if (!audio_is_paused(global.batmusic[1]))
audio_pause_sound(global.batmusic[1]);
else
audio_resume_sound(global.batmusic[1]);
}
} (); |
228 |
} |
229 |
|
230 |
enum e__VW |
231 |
{ |
232 |
XView, |
233 |
YView, |
234 |
WView, |
235 |
HView, |
236 |
Angle, |
237 |
HBorder, |
238 |
VBorder, |
239 |
HSpeed, |
240 |
VSpeed, |
241 |
Object, |
242 |
Visible, |
243 |
XPort, |
244 |
YPort, |
245 |
WPort, |
246 |
HPort, |
247 |
Camera, |
248 |
SurfaceID |
249 |
} |