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] = Long live the guy who pays us! ; |
12 |
if (rr == 1) |
13 |
global.msg[0] = ; |
14 |
if (rr == 2) |
15 |
global.msg[0] = ; |
16 |
if (rr == 3) |
17 |
global.msg[0] = ; |
18 |
if (acting == 2) |
19 |
global.msg[0] = Yeah I guess that makes sense. ; |
20 |
if (acting == 3) |
21 |
global.msg[0] = ; |
22 |
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); |
23 |
talked = 1; |
24 |
talktimer = 0; |
25 |
} |
26 |
if (talked == 1 && global.mnfight == 1) |
27 |
{ |
28 |
rtimer = 0; |
29 |
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); |
30 |
if (global.mnfight == 2) |
31 |
{ |
32 |
if (!instance_exists(obj_moveheart)) |
33 |
scr_moveheart(); |
34 |
if (!instance_exists(obj_growtangle)) |
35 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
36 |
} |
37 |
} |
38 |
if (global.mnfight == 2 && attacked == 0) |
39 |
{ |
40 |
rtimer += 1; |
41 |
if (rtimer == 12) |
42 |
{ |
43 |
rr = choose(0, 1); |
44 |
if (rr == 0) |
45 |
{ |
46 |
dc = instance_create(x, y, obj_dbulletcontroller); |
47 |
dc.type = 0; |
48 |
dc.target = mytarget; |
49 |
dc.damage = global.monsterat[myself] * 5; |
50 |
} |
51 |
else |
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 |
} |
58 |
turns += 1; |
59 |
global.turntimer = 140; |
60 |
attacked = 1; |
61 |
global.typer = 6; |
62 |
global.fc = 0; |
63 |
rr = choose(0, 1, 2, 3, 4); |
64 |
if (rr == 0) |
65 |
global.battlemsg[0] = * Rudinn is glimmering plainly. ; |
66 |
if (rr == 1) |
67 |
global.battlemsg[0] = * Rudinn has no strong opinions one way or the other. ; |
68 |
if (rr == 2) |
69 |
global.battlemsg[0] = * Rudinn thinks about elaborate stones. ; |
70 |
if (rr == 3) |
71 |
global.battlemsg[0] = * Rudinn dislikes its boss,Delay 11 but doesn't care enough to quit. ; |
72 |
if (rr == 4) |
73 |
global.battlemsg[0] = ; |
74 |
if (global.monsterstatus[myself] == 1) |
75 |
global.battlemsg[0] = * Rudinn is starting to fall asleep. ; |
76 |
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3)) |
77 |
global.battlemsg[0] = * Rudinn's luster begins to fade. ; |
78 |
if (global.mercymod[myself] >= global.mercymax[myself]) |
79 |
global.msg[0] = * Rudinn is alright with not fighting. ; |
80 |
} |
81 |
else |
82 |
{ |
83 |
global.turntimer = 120; |
84 |
} |
85 |
} |
86 |
if (global.mnfight == 2) |
87 |
{ |
88 |
if (global.turntimer <= 1) |
89 |
{ |
90 |
if (battlecancel == 1) |
91 |
global.mercymod[myself] = 999; |
92 |
if (battlecancel == 2) |
93 |
{ |
94 |
with (obj_battlecontroller) |
95 |
noreturn = 1; |
96 |
con = 1; |
97 |
battlecancel = 3; |
98 |
} |
99 |
} |
100 |
} |
101 |
} |
102 |
if (con == 1) |
103 |
{ |
104 |
con = 2; |
105 |
alarm[4] = 10; |
106 |
} |
107 |
if (con == 3) |
108 |
{ |
109 |
global.typer = 50; |
110 |
global.mercymod[myself] = 999; |
111 |
global.msg[0] = Alright,Delay 11 you convinced me!!Wait for inputClose Message ; |
112 |
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); |
113 |
con = 4; |
114 |
} |
115 |
if (con == 4 && !instance_exists(obj_writer)) |
116 |
{ |
117 |
hspeed = 15; |
118 |
con = 5; |
119 |
alarm[4] = 15; |
120 |
with (obj_battlecontroller) |
121 |
alarm[2] |
122 |
} |
123 |
if (con == 6) |
124 |
{ |
125 |
with (obj_battlecontroller) |
126 |
noreturn = 0; |
127 |
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);
}
} (); |
128 |
instance_destroy(); |
129 |
con = 7; |
130 |
} |
131 |
if (global.myfight == 3) |
132 |
{ |
133 |
xx = __view_get(e__VW.XView, 0); |
134 |
yy = __view_get(e__VW.YView, 0); |
135 |
if (acting == 1 && actcon == 0) |
136 |
{ |
137 |
actcon = 1; |
138 |
global.msg[0] = * RUDINN - AT 6 DF 0 * This ambivalent diamond isn't any girl's best friend.Wait for inputClose Message ; |
139 |
scr_battletext_default(); |
140 |
} |
141 |
if (acting == 2 && actcon == 0) |
142 |
{ |
143 |
if (nexttry == 1) |
144 |
global.flag[208 re_convinced_rudinn] = 1; |
145 |
global.msg[0] = * You told Rudinn to quit fighting.Delay 11 * It was utterly swayed.Wait for inputClose Message ; |
146 |
scr_mercyaddscr_mercyaddfunction scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 100); |
147 |
scr_battletext_default(); |
148 |
actcon = 1; |
149 |
} |
150 |
if (acting == 3 && actcon == 0) |
151 |
{ |
152 |
global.msg[0] = * You lectured the enemies on the importance of kindness.Wait for input ; |
153 |
global.msg[1] = * The enemies became \cBTIRED\cW...Wait for inputClose Message ; |
154 |
for (i = 0; i < 3; i += 1) |
155 |
{ |
156 |
global.monstercomment[i] = ; |
157 |
global.monsterstatus[i] = 1; |
158 |
} |
159 |
scr_mercyaddscr_mercyaddfunction scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
} (myself, 50); |
160 |
scr_battletext_default(); |
161 |
actcon = 1; |
162 |
} |
163 |
if (acting == 4 && actcon == 0) |
164 |
{ |
165 |
actcon = 1; |
166 |
global.msg[0] = * You and Ralsei warned Rudinn about Susie.Delay 11 * The enemy went on guard...Wait for inputClose Message ; |
167 |
if (scr_monsterpop() > 1) |
168 |
global.msg[0] = * You and Ralsei warned the enemies about Susie.Delay 11 * Everyone went on guard.Wait for inputClose Message ; |
169 |
for (i = 0; i < 3; i += 1) |
170 |
{ |
171 |
global.monstercomment[i] = ; |
172 |
global.automiss[i] = 1; |
173 |
} |
174 |
scr_battletext_default(); |
175 |
} |
176 |
if (actcon == 1 && !instance_exists(obj_writer)) |
177 |
{ |
178 |
actcon = 0; |
179 |
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();
}
}
} (); |
180 |
} |
181 |
if (actcon == 10 && instance_exists(obj_writer) == false) |
182 |
{ |
183 |
global.typer = 50; |
184 |
global.msg[0] = You kidding? I can't quit. Stopping you is my job!Wait for inputClose Message ; |
185 |
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); |
186 |
actcon = 11; |
187 |
} |
188 |
if (actcon == 11 && instance_exists(obj_writer) == false) |
189 |
{ |
190 |
global.typer = 45; |
191 |
global.fc = 2; |
192 |
global.fe = 8; |
193 |
global.msg[0] = * Really?Delay 11 * What do you spend your money on?Wait for inputClose Message ; |
194 |
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
} (); |
195 |
actcon = 12; |
196 |
} |
197 |
if (actcon == 12 && instance_exists(obj_writer) == false) |
198 |
{ |
199 |
global.typer = 50; |
200 |
global.msg[0] = I'm a normal person.Wait for input ; |
201 |
global.msg[1] = I spend all my money on RENT and MYSTIC GEMs.Wait for inputClose Message ; |
202 |
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); |
203 |
actcon = 14; |
204 |
} |
205 |
if (actcon == 14 && instance_exists(obj_writer) == false) |
206 |
{ |
207 |
global.typer = 45; |
208 |
global.fc = 2; |
209 |
global.fe = 3; |
210 |
global.msg[0] = * (Kris,Delay 11 let's try CONVINCING them again...)Wait for inputClose Message ; |
211 |
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
} (); |
212 |
nexttry = 1; |
213 |
actcon = 1; |
214 |
} |
215 |
} |
216 |
if (global.myfight == 7) |
217 |
hspeed = 15; |
218 |
|
219 |
enum e__VW |
220 |
{ |
221 |
XView, |
222 |
YView, |
223 |
WView, |
224 |
HView, |
225 |
Angle, |
226 |
HBorder, |
227 |
VBorder, |
228 |
HSpeed, |
229 |
VSpeed, |
230 |
Object, |
231 |
Visible, |
232 |
XPort, |
233 |
YPort, |
234 |
WPort, |
235 |
HPort, |
236 |
Camera, |
237 |
SurfaceID |
238 |
} |