1 |
if (firstskip == 1) |
2 |
{ |
3 |
global.acting[0] = 1; |
4 |
acting = 1; |
5 |
with (obj_writer_ch1) |
6 |
instance_destroy(); |
7 |
with (obj_face_ch1) |
8 |
instance_destroy(); |
9 |
with (obj_smallface_ch1) |
10 |
instance_destroy(); |
11 |
if (global.charaction[0] == 1) |
12 |
global.attacking = 1; |
13 |
global.charturn = 3; |
14 |
global.myfight = 3; |
15 |
} |
16 |
if (global.monster[myself] == 1) |
17 |
{ |
18 |
global.flag[51 + myself] = 4; |
19 |
global.acting[0] = 1; |
20 |
acting = 1; |
21 |
if (global.mnfight == 1 && talked == 0) |
22 |
{ |
23 |
actcon = 0; |
24 |
scr_randomtarget_ch1scr_randomtarget_ch1function scr_randomtarget_ch1()
{
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;
} (); |
25 |
if (!instance_exists(obj_darkener_ch1)) |
26 |
instance_create_ch1(0, 0, obj_darkener_ch1); |
27 |
talked = 1; |
28 |
talktimer = 0; |
29 |
} |
30 |
if (talked == 1 && global.mnfight == 1) |
31 |
{ |
32 |
rtimer = 0; |
33 |
scr_blconskip_ch1scr_blconskip_ch1function scr_blconskip_ch1(arg0)
{
if (arg0 != -1)
{
if (button1_p_ch1() && talktimer > arg0)
talktimer = talkmax;
talktimer += 1;
if (talktimer >= talkmax)
{
with (obj_writer_ch1)
instance_destroy();
global.mnfight = 2;
}
}
if (arg0 == -1)
{
if (instance_exists(obj_writer_ch1) == false)
global.mnfight = 2;
}
} (-1); |
34 |
if (global.mnfight == 2) |
35 |
{ |
36 |
if (!instance_exists(obj_moveheart_ch1) && hmake == 0) |
37 |
{ |
38 |
scr_moveheart_ch1(); |
39 |
hmake = 1; |
40 |
} |
41 |
if (!instance_exists(obj_growtangle_ch1)) |
42 |
instance_create_ch1(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle_ch1); |
43 |
} |
44 |
} |
45 |
if (global.mnfight == 2 && attacked == 0) |
46 |
{ |
47 |
rtimer += 1; |
48 |
if (rtimer == 12) |
49 |
{ |
50 |
global.turntimer = 140; |
51 |
if (turns == 0 || turns == 2) |
52 |
{ |
53 |
dc = instance_create_ch1(x, y, obj_dbulletcontroller_ch1); |
54 |
dc.type = 20; |
55 |
dc.target = mytarget; |
56 |
dc.damage = global.monsterat[myself] * 5; |
57 |
if (global.hp[global.char[0]] <= 70) |
58 |
dc.damage = global.monsterat[myself] * 3; |
59 |
global.turntimer = 180; |
60 |
} |
61 |
if (turns == 1) |
62 |
{ |
63 |
dc = instance_create_ch1(x, y, obj_dbulletcontroller_ch1); |
64 |
dc.type = 21; |
65 |
dc.target = mytarget; |
66 |
dc.damage = global.monsterat[myself] * 5; |
67 |
if (global.hp[global.char[0]] <= 70) |
68 |
dc.damage = global.monsterat[myself] * 3; |
69 |
global.turntimer = 180; |
70 |
} |
71 |
if (turns >= 3) |
72 |
{ |
73 |
dc = instance_create_ch1(x, y, obj_dbulletcontroller_ch1); |
74 |
dc.difficulty = turns * 2; |
75 |
if (turns == 6) |
76 |
dc.difficulty = 30; |
77 |
if (turns == 7) |
78 |
dc.difficulty = 90; |
79 |
dc.type = 24; |
80 |
dc.target = mytarget; |
81 |
dc.damage = global.monsterat[myself] * 5; |
82 |
} |
83 |
turns += 1; |
84 |
attacked = 1; |
85 |
global.typer = 6; |
86 |
global.fc = 0; |
87 |
global.battlemsg[0] = ; |
88 |
} |
89 |
else |
90 |
{ |
91 |
global.turntimer = 150; |
92 |
} |
93 |
} |
94 |
if (global.mnfight == 2) |
95 |
{ |
96 |
if (global.turntimer <= 10) |
97 |
hmake = 0; |
98 |
} |
99 |
} |
100 |
if (global.myfight == 3) |
101 |
{ |
102 |
xx = __view_get(e__VW.XView, 0); |
103 |
yy = __view_get(e__VW.YView, 0); |
104 |
if (acting == 1 && actcon == 0) |
105 |
{ |
106 |
firstskip = 0; |
107 |
global.typer = 53; |
108 |
rr = choose(0, 1, 2, 3); |
109 |
actcon = 1; |
110 |
if (turns == 0) |
111 |
global.msg[0] = Hey, wanna see what happens to traitors?Wait for inputClose Message ; |
112 |
if (turns == 1) |
113 |
global.msg[0] = They. Get. Crushed.Wait for inputClose Message ; |
114 |
if (turns == 2) |
115 |
{ |
116 |
global.msg[0] = If you don't get out of the way...Wait for input ; |
117 |
global.msg[1] = ...I'll kill you.Wait for inputClose Message ; |
118 |
} |
119 |
if (turns == 3) |
120 |
global.msg[0] = Get it? I'll KILL you.Wait for inputClose Message ; |
121 |
if (turns == 4) |
122 |
global.msg[0] = Heh... You missed, idiot!Wait for inputClose Message ; |
123 |
if (turns == 5) |
124 |
{ |
125 |
global.msg[0] = ... wait, why aren't you fighting back...?Wait for inputClose Message ; |
126 |
with (obj_herosusie_ch1) |
127 |
{ |
128 |
idlesprite = spr_susieb_idle_serious_ch1; |
129 |
attacksprite = spr_susieb_attack_serious_ch1; |
130 |
} |
131 |
} |
132 |
if (turns == 6) |
133 |
{ |
134 |
global.msg[0] = ... Heh, you think I CARE?Wait for input ; |
135 |
global.msg[1] = If you just wanna lie down and die?Wait for input ; |
136 |
global.msg[2] = You're just making it easier for me!Wait for inputClose Message ; |
137 |
with (obj_herosusie_ch1) |
138 |
{ |
139 |
idlesprite = spr_susieb_idle_ch1; |
140 |
attacksprite = spr_susieb_attack_ch1; |
141 |
} |
142 |
} |
143 |
if (turns == 7) |
144 |
{ |
145 |
global.typer = 54; |
146 |
global.msg[0] = ........ Alright, that's enough.Wait for input ; |
147 |
global.msg[1] = If you wanna die so much...Wait for input ; |
148 |
global.msg[2] = THEN DIE!Wait for inputClose Message ; |
149 |
actcon = 2; |
150 |
} |
151 |
global.monsterdf[myself] -= 5; |
152 |
scr_enemyblcon_ch1scr_enemyblcon_ch1function scr_enemyblcon_ch1(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create_ch1(arg0, arg1, obj_writer_ch1);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create_ch1(arg0, arg1, obj_battleblcon_ch1);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create_ch1(arg0, arg1, obj_battleblcon_ch1);
myblcon.sprite_index = spr_battleblcon_v_ch1;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create_ch1(arg0, arg1, obj_battleblcon_ch1);
myblcon.sprite_index = spr_battleblcon_long_ch1;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create_ch1(arg0, arg1, obj_battleblcon_ch1);
myblcon.sprite_index = spr_battleblcon_clubs_ch1;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create_ch1(arg0, arg1, obj_battleblcon_ch1);
myblcon.sprite_index = spr_battleblcon_clubs_ch1;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create_ch1(arg0, arg1, obj_battleblcon_ch1);
myblcon.sprite_index = spr_battleblcon_clubs_ch1;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create_ch1(arg0, arg1, obj_battleblcon_ch1);
myblcon.sprite_index = spr_battleblcon_long_r_ch1;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create_ch1(arg0, arg1, obj_battleblcon_ch1);
myblcon.sprite_index = spr_battleblcon_long_tall_ch1;
return myblcon;
}
} (obj_herosusie_ch1.x + 100, obj_herosusie_ch1.y, 7); |
153 |
with (obj_writer_ch1) |
154 |
skippable = 0; |
155 |
} |
156 |
if (actcon == 1 && !instance_exists(obj_writer_ch1)) |
157 |
{ |
158 |
actcon = 0; |
159 |
scr_attackphase_ch1scr_attackphase_ch1function scr_attackphase_ch1()
{
with (obj_battlecontroller_ch1)
{
techwon = 0;
if ( scr_monsterpop_ch1() == 0)
techwon = 1;
if (techwon == 0)
{
fightphase = 1;
global.charturn = 3;
if (global.charaction[0] == 4 || global.charaction[0] == 2)
fightphase = 0;
if (global.charaction[1] == 4 || global.charaction[1] == 2)
fightphase = 0;
if (global.charaction[2] == 4 || global.charaction[2] == 2)
fightphase = 0;
if (global.myfight == 4)
fightphase = 1;
if (fightphase == 1)
{
global.myfight = 1;
instance_create_ch1(xx + 2, yy + 365, obj_attackpress_ch1);
}
else
{
global.myfight = 4;
instance_create_ch1(0, 0, obj_spellphase_ch1);
}
}
else
{
scr_wincombat_ch1();
}
}
} (); |
160 |
} |
161 |
if (actcon == 2 && !instance_exists(obj_writer_ch1)) |
162 |
{ |
163 |
snd_free_all_ch1(); |
164 |
snd_play_ch1(snd_laz_c_ch1); |
165 |
black = scr_dark_marker_ch1scr_dark_marker_ch1function scr_dark_marker_ch1(arg0, arg1, arg2)
{
thismarker = instance_create_ch1(arg0, arg1, obj_marker_ch1);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (__view_get(e__VW.XView, 0) - 20, __view_get(e__VW.YView, 0) - 20, spr_pixel_white_ch1); |
166 |
with (black) |
167 |
{ |
168 |
image_blend = c_black; |
169 |
depth = -10000; |
170 |
image_xscale = 900; |
171 |
image_yscale = 900; |
172 |
} |
173 |
actcon = 3; |
174 |
acttimer = 0; |
175 |
if (instance_exists(obj_lancerbattle2_event_ch1)) |
176 |
{ |
177 |
obj_lancerbattle2_event_ch1.black = black; |
178 |
with (obj_lancerbattle2_event_ch1) |
179 |
{ |
180 |
con = 52; |
181 |
alarm[4] = 80; |
182 |
} |
183 |
} |
184 |
} |
185 |
if (actcon == 3) |
186 |
{ |
187 |
} |
188 |
} |
189 |
|
190 |
enum e__VW |
191 |
{ |
192 |
XView, |
193 |
YView, |
194 |
WView, |
195 |
HView, |
196 |
Angle, |
197 |
HBorder, |
198 |
VBorder, |
199 |
HSpeed, |
200 |
VSpeed, |
201 |
Object, |
202 |
Visible, |
203 |
XPort, |
204 |
YPort, |
205 |
WPort, |
206 |
HPort, |
207 |
Camera, |
208 |
SurfaceID |
209 |
} |