1 |
if (global.monster[myself] == 1) |
2 |
{ |
3 |
if (global.mnfight == 1 && 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;
} (); |
6 |
global.flag[51 + myself] = 4; |
7 |
global.targeted[mytarget] = 1; |
8 |
if (!instance_exists(obj_darkener)) |
9 |
instance_create(0, 0, obj_darkener); |
10 |
global.typer = 50; |
11 |
if (turns == 0) |
12 |
global.msg[0] = Halt, clowns! This bike is fueled by victory!!! ; |
13 |
if (turns == 1) |
14 |
global.msg[0] = I love to get thrashed... Just kidding! That's you!! ; |
15 |
if (turns == 2) |
16 |
global.msg[0] = So what are you guys doing after this??? ; |
17 |
if (turns >= 3) |
18 |
global.msg[0] = ; |
19 |
if (compliment_just == 1) |
20 |
{ |
21 |
if (compliment == 1) |
22 |
global.msg[0] = Oh! You make my feelings do wheelies! Sweet wheelys ; |
23 |
if (compliment == 2) |
24 |
global.msg[0] = Did you not realize I can mask my self- esteem levels? ; |
25 |
if (compliment == 3) |
26 |
global.msg[0] = Stop!! My personality's getting too deep!!! ; |
27 |
compliment_just = 0; |
28 |
} |
29 |
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;
}
} (x - 235, y - 65, 3); |
30 |
talked = 1; |
31 |
talktimer = 0; |
32 |
} |
33 |
if (talked == 1 && global.mnfight == 1) |
34 |
{ |
35 |
if (button1_p() && talktimer > 15) |
36 |
talktimer = talkmax; |
37 |
talktimer += 1; |
38 |
if (talktimer >= talkmax) |
39 |
{ |
40 |
if (!instance_exists(obj_moveheart)) |
41 |
scr_moveheart(); |
42 |
if (!instance_exists(obj_growtangle)) |
43 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
44 |
with (obj_writer) |
45 |
instance_destroy(); |
46 |
global.mnfight = 2; |
47 |
} |
48 |
} |
49 |
if (global.mnfight == 2 && attacked == 0) |
50 |
{ |
51 |
if (attacks == 0) |
52 |
{ |
53 |
bike = instance_create(x, y, obj_lancerbike); |
54 |
visible = 0; |
55 |
bike.racecon = 1; |
56 |
bike.target = mytarget; |
57 |
bike.damage = global.monsterat[myself] * 5; |
58 |
attacks = 1; |
59 |
} |
60 |
else |
61 |
{ |
62 |
bike = instance_create(x, y, obj_lancerbike); |
63 |
visible = 0; |
64 |
bike.lcon = 1; |
65 |
bike.target = mytarget; |
66 |
bike.damage = global.monsterat[myself] * 5; |
67 |
attacks = 0; |
68 |
} |
69 |
turns += 1; |
70 |
global.turntimer = 999; |
71 |
attacked = 1; |
72 |
rr = floor(random(5)); |
73 |
global.typer = 6; |
74 |
global.fc = 0; |
75 |
if (rr == 0) |
76 |
global.battlemsg[0] = * Lancer's riding it out. ; |
77 |
if (rr == 1) |
78 |
global.battlemsg[0] = * Lancer is thinking about chips. ; |
79 |
if (rr == 2) |
80 |
global.battlemsg[0] = * Lancer's motorcycle is actually just a bike that's on fire. ; |
81 |
if (rr == 3) |
82 |
global.battlemsg[0] = * Lancer switches gears randomly to appear competent. ; |
83 |
if (rr == 4) |
84 |
global.battlemsg[0] = ; |
85 |
if (turns == 1) |
86 |
{ |
87 |
global.typer = 47; |
88 |
global.fc = 1; |
89 |
global.fe = 2; |
90 |
global.battlemsg[0] = * Dunno how I got an ax but,Delay 11 like,Delay 11 that's cool. ; |
91 |
} |
92 |
} |
93 |
} |
94 |
if (global.myfight == 3) |
95 |
{ |
96 |
xx = __view_get(e__VW.XView, 0); |
97 |
yy = __view_get(e__VW.YView, 0); |
98 |
if (acting == 1 && actcon == 0) |
99 |
{ |
100 |
actcon = 1; |
101 |
global.msg[0] = * LANCER - AT 7 DF 1 * Not to call a spade a spade,Delay 11 but he's a spade.Wait for input ; |
102 |
global.msg[1] = * Not old enough to ride a motorcycle,Delay 11 so he set his bike on fire.Wait for inputClose Message ; |
103 |
scr_battletext_default(); |
104 |
} |
105 |
if (acting == 2 && actcon == 0) |
106 |
{ |
107 |
actcon = 1; |
108 |
if (global.automiss[myself] == 0) |
109 |
{ |
110 |
global.msg[0] = * You tell Lancer to watch out for Susie's attack.Delay 11 * He readies himself.Wait for inputClose Message ; |
111 |
global.automiss[myself] = 1; |
112 |
} |
113 |
else |
114 |
{ |
115 |
global.msg[0] = * Lancer laughs at the idea he would need your help!Wait for inputClose Message ; |
116 |
} |
117 |
scr_battletext_default(); |
118 |
} |
119 |
if (acting == 3 && actcon == 0) |
120 |
{ |
121 |
if (compliment >= 3) |
122 |
global.msg[0] = * You say some kind words.Delay 11 * Lancer absorbs them into his skin.Wait for inputClose Message ; |
123 |
if (compliment == 2) |
124 |
{ |
125 |
global.msg[0] = * You compliment LANCER.Delay 11 * He gets confused as to your sincerity.Wait for input ; |
126 |
global.msg[1] = * Instead of going up or down,Delay 11 his ATTACK power goes sideways...?Wait for inputClose Message ; |
127 |
scr_mercyaddscr_mercyaddfunction scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 20); |
128 |
} |
129 |
if (compliment == 1) |
130 |
{ |
131 |
global.msg[0] = * You try to compliment LANCER again...Wait for input ; |
132 |
global.msg[1] = * But he sees it as insincere.Delay 11 * His ATTACK POWER goes back up!Wait for inputClose Message ; |
133 |
scr_mercyaddscr_mercyaddfunction scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 20); |
134 |
global.monsterat[myself] += 1; |
135 |
} |
136 |
if (compliment == 0) |
137 |
{ |
138 |
global.msg[0] = * You tell Lancer you can't tell the difference between his clothes and his body.Wait for input ; |
139 |
global.msg[1] = * He seems flattered...Delay 11 * His ATTACK POWER went down!Wait for inputClose Message ; |
140 |
scr_mercyaddscr_mercyaddfunction scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 20); |
141 |
global.monsterat[myself] -= 1; |
142 |
} |
143 |
compliment_just = 1; |
144 |
compliment += 1; |
145 |
scr_battletext_default(); |
146 |
actcon = 1; |
147 |
} |
148 |
if (actcon == 1 && !instance_exists(obj_writer)) |
149 |
{ |
150 |
actcon = 0; |
151 |
scr_attackphasescr_attackphasefunction scr_attackphase()
{
with (obj_battlecontroller)
{
techwon = 0;
if ( scr_monsterpop() == 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(xx + 2, yy + 365, obj_attackpress);
}
else
{
global.myfight = 4;
instance_create(0, 0, obj_spellphase);
}
}
else
{
scr_wincombat();
}
}
} (); |
152 |
} |
153 |
} |
154 |
if (con == 1) |
155 |
{ |
156 |
alarm[4] = 5; |
157 |
con = 2; |
158 |
} |
159 |
if (con == 3) |
160 |
{ |
161 |
global.typer = 50; |
162 |
global.msg[0] = Wait!Delay 11 Wait a second!Wait for input ; |
163 |
global.msg[1] = My bike's running out of fuel...!Wait for input ; |
164 |
global.msg[2] = Alright, you punk- a-roos!Wait for input ; |
165 |
global.msg[3] = You had the luck of the draw this time,Delay 11 but...Wait for input ; |
166 |
global.msg[4] = Next time,Delay 11 the losers will be YOU!!!Wait for input ; |
167 |
global.msg[5] = Hahaha!!!Delay 11 Bye,Delay 11 losers!!Wait for input ; |
168 |
global.msg[6] = I gotta get home before dinner!!!Wait for inputClose Message ; |
169 |
con = 4; |
170 |
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;
}
} (x - 235, y - 65, 3); |
171 |
} |
172 |
if (con == 4 && !instance_exists(obj_writer)) |
173 |
{ |
174 |
hspeed = 20; |
175 |
con = 5; |
176 |
alarm[4] = 15; |
177 |
with (obj_battlecontroller) |
178 |
{ |
179 |
noreturn = 0; |
180 |
alarm[2] |
181 |
} |
182 |
} |
183 |
if (con == 6) |
184 |
{ |
185 |
global.monsterexp[myself] -= 0; |
186 |
global.monstergold[myself] += 10; |
187 |
if (global.plot < 22) |
188 |
global.plot = 22; |
189 |
scr_monsterdefeatscr_monsterdefeatfunction scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
global.monstergold[3] += global.monstergold[myself];
global.monsterexp[3] += global.monsterexp[myself];
global.monster[myself] = 0;
if (global.flag[51 + myself] == 0)
{
global.flag[51 + myself] = 2;
if (global.monsterhp[myself] <= 0)
global.flag[51 + myself] = 1;
}
if (global.flag[51 + myself] == 1)
global.flag[40 violences] += 1;
if (global.flag[51 + myself] == 2)
global.flag[41 spares] += 1;
if (global.flag[51 + myself] == 3)
global.flag[42 pacifies] += 1;
if (global.flag[51 + myself] == 5)
global.flag[43 autosusie_violences] += 1;
if ( scr_monsterpop() == 0)
{
_amt_add = 0;
_violenced = 0;
_spared = 0;
_pacified = 0;
for (d_i = 0; d_i < 3; d_i += 1)
{
if (global.flag[51 + d_i] != 0)
_amt_add += 1;
if (global.flag[51 + d_i] == 1)
_violenced += 1;
if (global.flag[51 + d_i] == 2)
_spared += 1;
if (global.flag[51 + d_i] == 3)
_pacified += 1;
}
if (_pacified > 0)
global.flag[50 last_encounter_end] = 3;
if (_spared > 0)
global.flag[50 last_encounter_end] = 2;
if (_violenced > 0)
global.flag[50 last_encounter_end] = 1;
}
event_user(11);
}
} (); |
190 |
instance_destroy(); |
191 |
con = 7; |
192 |
} |
193 |
|
194 |
enum e__VW |
195 |
{ |
196 |
XView, |
197 |
YView, |
198 |
WView, |
199 |
HView, |
200 |
Angle, |
201 |
HBorder, |
202 |
VBorder, |
203 |
HSpeed, |
204 |
VSpeed, |
205 |
Object, |
206 |
Visible, |
207 |
XPort, |
208 |
YPort, |
209 |
WPort, |
210 |
HPort, |
211 |
Camera, |
212 |
SurfaceID |
213 |
} |