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 |
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 |
global.msg[0] = ; |
12 |
if (rr == 1) |
13 |
global.msg[0] = ; |
14 |
if (rr == 2) |
15 |
global.msg[0] = ; |
16 |
if (rr == 3) |
17 |
global.msg[0] = I'm the, diamond, here's the rough! ; |
18 |
if (acting == 2) |
19 |
global.msg[0] = Enough! You can't convince me! ; |
20 |
if (acting == 3) |
21 |
{ |
22 |
if (rr == 0 || rr == 1) |
23 |
global.msg[0] = No one ever said THAT to me before ... ; |
24 |
if (rr == 2 || rr == 3) |
25 |
global.msg[0] = The King never said THAT to me before... ; |
26 |
if (complimented >= 2) |
27 |
global.msg[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 - 160, y, 3); |
30 |
talked = 1; |
31 |
talktimer = 0; |
32 |
} |
33 |
if (talked == 1 && global.mnfight == 1) |
34 |
{ |
35 |
rtimer = 0; |
36 |
scr_blconskipscr_blconskipfunction scr_blconskip(arg0)
{
if (arg0 != -1)
{
if (button1_p() && talktimer > arg0)
talktimer = talkmax;
talktimer += 1;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 2;
}
}
if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 2;
}
} (15); |
37 |
if (global.mnfight == 2) |
38 |
{ |
39 |
if (!instance_exists(obj_moveheart)) |
40 |
scr_moveheart(); |
41 |
if (!instance_exists(obj_growtangle)) |
42 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
43 |
} |
44 |
} |
45 |
if (global.mnfight == 2 && attacked == 0) |
46 |
{ |
47 |
rtimer += 1; |
48 |
if (rtimer == 12) |
49 |
{ |
50 |
rr = instance_number(object_index); |
51 |
if (rr == 99) |
52 |
{ |
53 |
dc = instance_create(x, y, obj_dbulletcontroller); |
54 |
dc.type = 1; |
55 |
dc.target = mytarget; |
56 |
dc.damage = global.monsterat[myself] * 5; |
57 |
dc.ratio = 1; |
58 |
} |
59 |
else |
60 |
{ |
61 |
visible = 0; |
62 |
dc = instance_create(x, y, obj_dknight_slasher); |
63 |
dc.inv = 60; |
64 |
dc.target = mytarget; |
65 |
dc.grazepoints = 6; |
66 |
dc.timepoints = 2; |
67 |
dc.active = 0; |
68 |
dc.creator = id; |
69 |
dc.damage = global.monsterat[myself] * 5; |
70 |
} |
71 |
turns += 1; |
72 |
global.turntimer = 180; |
73 |
attacked = 1; |
74 |
global.typer = 6; |
75 |
global.fc = 0; |
76 |
rr = choose(0, 1, 2, 3, 4); |
77 |
if (rr == 0) |
78 |
global.battlemsg[0] = * Rudinn Ranger gleams gallantly. ; |
79 |
if (rr == 1) |
80 |
global.battlemsg[0] = * Rudinn Ranger puts a power limiter on its feelings. ; |
81 |
if (rr == 2) |
82 |
global.battlemsg[0] = * Rudinn Ranger fantasizes about divine gems. ; |
83 |
if (rr == 3) |
84 |
global.battlemsg[0] = * Rudinn Ranger pledges allegiance. ; |
85 |
if (rr == 4) |
86 |
global.battlemsg[0] = ; |
87 |
if (global.monsterstatus[myself] == 1) |
88 |
global.battlemsg[0] = * Rudinn Ranger is starting to fall asleep. ; |
89 |
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3)) |
90 |
global.battlemsg[0] = * Rudinn Ranger's luster begins to fade. ; |
91 |
if (global.mercymod[myself] >= global.mercymax[myself]) |
92 |
global.msg[0] = * Rudinn Ranger seems totally flattered. ; |
93 |
} |
94 |
else |
95 |
{ |
96 |
global.turntimer = 120; |
97 |
} |
98 |
} |
99 |
if (global.mnfight == 2) |
100 |
{ |
101 |
if (global.turntimer <= 1) |
102 |
{ |
103 |
if (battlecancel == 1) |
104 |
global.mercymod[myself] = 999; |
105 |
if (battlecancel == 2) |
106 |
{ |
107 |
with (obj_battlecontroller) |
108 |
noreturn = 1; |
109 |
con = 1; |
110 |
battlecancel = 3; |
111 |
} |
112 |
} |
113 |
} |
114 |
} |
115 |
if (con == 1) |
116 |
{ |
117 |
con = 2; |
118 |
alarm[4] = 10; |
119 |
} |
120 |
if (con == 3) |
121 |
{ |
122 |
global.typer = 50; |
123 |
global.mercymod[myself] = 999; |
124 |
global.msg[0] = Alright,Delay 11 you convinced me!!Wait for inputClose Message ; |
125 |
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 - 160, y, 3); |
126 |
con = 4; |
127 |
} |
128 |
if (con == 4 && !instance_exists(obj_writer)) |
129 |
{ |
130 |
hspeed = 15; |
131 |
con = 5; |
132 |
alarm[4] = 15; |
133 |
with (obj_battlecontroller) |
134 |
alarm[2] |
135 |
} |
136 |
if (con == 6) |
137 |
{ |
138 |
with (obj_battlecontroller) |
139 |
noreturn = 0; |
140 |
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);
}
} (); |
141 |
instance_destroy(); |
142 |
con = 7; |
143 |
} |
144 |
if (global.myfight == 3) |
145 |
{ |
146 |
xx = __view_get(e__VW.XView, 0); |
147 |
yy = __view_get(e__VW.YView, 0); |
148 |
if (acting == 1 && actcon == 0) |
149 |
{ |
150 |
actcon = 1; |
151 |
global.msg[0] = * RUDINN RANGER - AT 8 DF 0 * Ideally multicolored, but they all wanted to be red.Wait for inputClose Message ; |
152 |
scr_battletext_default(); |
153 |
} |
154 |
if (acting == 2 && actcon == 0) |
155 |
{ |
156 |
global.msg[0] = * You tried to explain why fighting is bad.Wait for input ; |
157 |
global.msg[1] = * But Rudinn Ranger just became \cBTIRED\cW...Wait for inputClose Message ; |
158 |
global.monstercomment[myself] = ; |
159 |
global.monsterstatus[myself] = 1; |
160 |
scr_mercyaddscr_mercyaddfunction scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 50); |
161 |
scr_battletext_default(); |
162 |
actcon = 1; |
163 |
} |
164 |
if (acting == 3 && actcon == 0) |
165 |
{ |
166 |
global.msg[0] = * Susie COMPLIMENTed the enemy...?Wait for input ; |
167 |
scr_susface(1, 2); |
168 |
rrr = choose(0, 1, 2); |
169 |
if (rrr == 0) |
170 |
global.msg[2] = * "Your outfit is NOT disgusting."Wait for inputClose Message ; |
171 |
if (rrr == 1) |
172 |
global.msg[2] = * "Please keep body tackling the soda machine."Wait for inputClose Message ; |
173 |
if (rrr == 2) |
174 |
global.msg[2] = * Nice,Delay 11 you guys look like you're gonna kill me.Wait for inputClose Message ; |
175 |
if (global.flag[503 susie_complimented] == 0) |
176 |
{ |
177 |
global.msg[0] = * You told Susie to COMPLIMENT the enemy!Wait for input ; |
178 |
scr_susface(1, 0); |
179 |
global.msg[2] = * ... uhhh,Delay 11 are you serious?Wait for input ; |
180 |
global.msg[3] = \E2* What good can I say about someone trying to kill us?Wait for input ; |
181 |
scr_ralface(4, 6); |
182 |
global.msg[5] = * Aww,Delay 11 Susie...Delay 11 if you're stuck,Delay 11 why not try...Wait for input ; |
183 |
global.msg[6] = * ... saying something you wish someone'd say to you?Wait for input ; |
184 |
scr_susface(7, 0); |
185 |
global.msg[8] = ; |
186 |
global.msg[9] = \E2* "You are unbanned from free ham sandwich day"Wait for inputClose Message ; |
187 |
global.flag[503 susie_complimented] = 1; |
188 |
} |
189 |
if (complimented >= 1) |
190 |
{ |
191 |
global.msg[0] = * Susie actively didn't COMPLIMENT the enemy!Wait for input ; |
192 |
scr_susface(1, 0); |
193 |
global.msg[2] = * Look,Delay 11 it's just gonna be weird if I keep going.Wait for inputClose Message ; |
194 |
complimented = 2; |
195 |
} |
196 |
scr_battletext_default(); |
197 |
actcon = 1; |
198 |
if (complimented == 0) |
199 |
complimented = 1; |
200 |
} |
201 |
if (actcon == 1 && !instance_exists(obj_writer)) |
202 |
{ |
203 |
if (acting == 3) |
204 |
scr_mercyaddscr_mercyaddfunction scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 100); |
205 |
actcon = 0; |
206 |
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();
}
}
} (); |
207 |
} |
208 |
if (actcon == 10 && instance_exists(obj_writer) == false) |
209 |
{ |
210 |
global.typer = 50; |
211 |
global.msg[0] = You kidding? I can't quit. Stopping you is my job!Wait for inputClose Message ; |
212 |
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 - 160, y, 3); |
213 |
actcon = 11; |
214 |
} |
215 |
if (actcon == 11 && instance_exists(obj_writer) == false) |
216 |
{ |
217 |
global.typer = 45; |
218 |
global.fc = 2; |
219 |
global.fe = 8; |
220 |
global.msg[0] = * Really?Delay 11 * What do you spend your money on?Wait for inputClose Message ; |
221 |
scr_battletextscr_battletextfunction scr_battletext()
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
if (global.fc != 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
if (global.fc == 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
myface = instance_create(xx + 26, yy + 380, obj_face);
with (battlewriter)
{
dialoguer = 1;
facer = 1;
if (global.fc == 0 && originalcharline == 33)
charline = 26;
}
return battlewriter;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (); |
222 |
actcon = 12; |
223 |
} |
224 |
if (actcon == 12 && instance_exists(obj_writer) == false) |
225 |
{ |
226 |
global.typer = 50; |
227 |
global.msg[0] = I'm a normal person.Wait for input ; |
228 |
global.msg[1] = I spend all my money on RENT and MYSTIC GEMs.Wait for inputClose Message ; |
229 |
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 - 160, y, 3); |
230 |
actcon = 14; |
231 |
} |
232 |
if (actcon == 14 && instance_exists(obj_writer) == false) |
233 |
{ |
234 |
global.typer = 45; |
235 |
global.fc = 2; |
236 |
global.fe = 3; |
237 |
global.msg[0] = * (Kris,Delay 11 let's try CONVINCING them again...)Wait for inputClose Message ; |
238 |
scr_battletextscr_battletextfunction scr_battletext()
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
if (global.fc != 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
if (global.fc == 0)
battlewriter = instance_create(xx + 30, yy + 376, obj_writer);
myface = instance_create(xx + 26, yy + 380, obj_face);
with (battlewriter)
{
dialoguer = 1;
facer = 1;
if (global.fc == 0 && originalcharline == 33)
charline = 26;
}
return battlewriter;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (); |
239 |
nexttry = 1; |
240 |
actcon = 1; |
241 |
} |
242 |
} |
243 |
if (global.myfight == 7) |
244 |
hspeed = 15; |
245 |
|
246 |
enum e__VW |
247 |
{ |
248 |
XView, |
249 |
YView, |
250 |
WView, |
251 |
HView, |
252 |
Angle, |
253 |
HBorder, |
254 |
VBorder, |
255 |
HSpeed, |
256 |
VSpeed, |
257 |
Object, |
258 |
Visible, |
259 |
XPort, |
260 |
YPort, |
261 |
WPort, |
262 |
HPort, |
263 |
Camera, |
264 |
SurfaceID |
265 |
} |