1 |
if (ambushed == 0) |
2 |
{ |
3 |
scr_ambushscr_ambushfunction scr_ambush()
{
with (obj_writer)
instance_destroy();
with (obj_face)
instance_destroy();
global.charturn = 3;
global.mnfight = 1;
global.myfight = -1;
with (obj_monsterparent)
ambushed = 1;
} (); |
4 |
ambushed = 1; |
5 |
} |
6 |
if (plot != 3) |
7 |
{ |
8 |
global.charmove[0] = 1; |
9 |
global.charmove[1] = 0; |
10 |
if (global.charspecial[0] == 100) |
11 |
spare_used = 1; |
12 |
else |
13 |
spare_used = 0; |
14 |
} |
15 |
else |
16 |
{ |
17 |
global.charmove[0] = 0; |
18 |
global.charmove[1] = 1; |
19 |
if (global.charspecial[1] == 100) |
20 |
ral_wrongcommand = 1; |
21 |
if (global.charaction[1] == 4) |
22 |
ral_wrongcommand = 1; |
23 |
if (global.charaction[1] != 2 && global.charaction[1] != 4) |
24 |
{ |
25 |
with (obj_attackpress) |
26 |
{ |
27 |
with (obj_heroparent) |
28 |
{ |
29 |
if (state == 1) |
30 |
state = 0; |
31 |
attacked = 0; |
32 |
itemed = 0; |
33 |
} |
34 |
global.mnfight = 1; |
35 |
global.myfight = -1; |
36 |
instance_destroy(); |
37 |
} |
38 |
global.charaction[1] = 0; |
39 |
global.faceaction[1] = 0; |
40 |
} |
41 |
} |
42 |
if (global.monster[myself] == 1) |
43 |
{ |
44 |
global.flag[51 + myself] = 4; |
45 |
commanded = 0; |
46 |
if (global.mnfight == 1 && talked == 0) |
47 |
{ |
48 |
global.writerimg[0] = spr_btfight; |
49 |
global.writerimg[1] = spr_btdefend; |
50 |
global.writerimg[2] = spr_bttech; |
51 |
global.writerimg[3] = spr_btact; |
52 |
global.writerimg[4] = spr_btspare; |
53 |
global.writerimg[5] = spr_btitem; |
54 |
if (attackcon == 0) |
55 |
{ |
56 |
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);
} (); |
57 |
abletotarget = 1; |
58 |
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0) |
59 |
abletotarget = 0; |
60 |
mytarget = choose(0); |
61 |
if (abletotarget == 1) |
62 |
{ |
63 |
while (global.charcantarget[mytarget] == 0) |
64 |
mytarget = choose(0); |
65 |
} |
66 |
else |
67 |
{ |
68 |
target = 3; |
69 |
} |
70 |
global.targeted[mytarget] = 1; |
71 |
attackcon = 1; |
72 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
73 |
instance_create(0, 0, obj_darkener); |
74 |
} |
75 |
global.typer = 45; |
76 |
global.fc = 2; |
77 |
global.fe = 1; |
78 |
global.msg[0] = stringsetloc(* SkipWait for inputClose Message"* Skip/%", "obj_dummyenemy_slash_Step_0_gml_81_0" ); |
79 |
if (plot == 0 && attackcon == 1) |
80 |
{ |
81 |
global.fe = 0; |
82 |
global.flag[30 ralsei_hat_state] = 0; |
83 |
global.msg[0] = stringsetloc(Face 0* See that HEART, Kris?Wait for input"\\E0* See that \\cRHEART\\cW, Kris?/", "obj_dummyenemy_slash_Step_0_gml_87_0" ); |
84 |
global.msg[1] = stringsetloc(* That's your SOUL, the culmination of your being!Wait for input"* That's your \\cRSOUL\\cW, the culmination of your being!/", "obj_dummyenemy_slash_Step_0_gml_88_0" ); |
85 |
global.msg[2] = stringsetloc(Face B* Within,Delay 11 it holds your WILL...Delay 11 your COMPASSION...Wait for input"\\EB* Within^1, it holds your WILL..^1. your COMPASSION.../", "obj_dummyenemy_slash_Step_0_gml_89_0" ); |
86 |
global.msg[3] = stringsetloc(Face 1* ... and the FATE of the world.Wait for input"\\E1* ... and the FATE of the world./", "obj_dummyenemy_slash_Step_0_gml_90_0" ); |
87 |
global.msg[4] = stringsetloc(Face B* If it gets hit,Delay 11 you and your friends will lose HP.Wait for input"\\EB* If it gets hit^1, you and your friends will lose HP./", "obj_dummyenemy_slash_Step_0_gml_91_0" ); |
88 |
global.msg[5] = stringsetloc(Face 3* If everyone's HP reaches 0,Delay 11 we'll lose the battle.Wait for input"\\E3* If everyone's HP reaches 0^1, we'll lose the battle./", "obj_dummyenemy_slash_Step_0_gml_92_0" ); |
89 |
global.msg[6] = stringsetloc(Face 0* So,Delay 11 please take care to avoid the enemy's attack.Wait for input"\\E0* So^1, please take care to avoid the enemy's attack./", "obj_dummyenemy_slash_Step_0_gml_93_0" ); |
90 |
global.msg[7] = stringsetloc(Face 8* Ready?Delay 11 * Let's try dodging!Wait for inputClose Message"\\E8* Ready^1?&* Let's try dodging!/%", "obj_dummyenemy_slash_Step_0_gml_94_0" ); |
91 |
} |
92 |
if (plot >= 1) |
93 |
{ |
94 |
dial = 0; |
95 |
if (global.charaction[0] == 1) |
96 |
{ |
97 |
if (dummyhp > global.monsterhp[0]) |
98 |
dial = 1; |
99 |
if (dummyhp == global.monsterhp[0] && plot == 1) |
100 |
dial = 2; |
101 |
if (dummyhp == global.monsterhp[0] && misstime == 9 && plot == 2) |
102 |
{ |
103 |
dial = 3; |
104 |
global.flag[205 tutorial_end] = 6; |
105 |
} |
106 |
if (dial == 1 && hitdum >= 3) |
107 |
{ |
108 |
hitdum = 4; |
109 |
dial = 3; |
110 |
global.flag[205 tutorial_end] = 4; |
111 |
} |
112 |
} |
113 |
if (global.charaction[0] == 10 && commanded == 0) |
114 |
{ |
115 |
global.fe = 0; |
116 |
global.msg[0] = stringsetloc(Face 0* That's DEFENDING,Delay 11 Kris.Delay 11 * You'll recover TP and take less damage.Wait for input"\\E0* That's DEFENDING^1, Kris^1.&* You'll recover TP and take less damage./", "obj_dummyenemy_slash_Step_0_gml_115_0" ); |
117 |
global.msg[1] = stringsetloc(Face 8* You should learn to ATTACK first,Delay 11 though.Wait for inputClose Message"\\E8* You should learn to ATTACK first^1, though./%", "obj_dummyenemy_slash_Step_0_gml_116_0" ); |
118 |
if (defendtime == 1) |
119 |
{ |
120 |
global.msg[0] = stringsetloc(Face 8* Gee,Delay 11 Kris!Delay 11 * You sure are good at defending!Wait for input"\\E8* Gee^1, Kris^1!&* You sure are good at defending!/", "obj_dummyenemy_slash_Step_0_gml_120_0" ); |
121 |
global.msg[1] = stringsetloc(Face 6* I'm not attacking,Delay 11 you,Delay 11 though, so... * No need to defend!Wait for inputClose Message"\\E6* I'm not attacking^1, you^1, though, so...&* No need to defend!/%", "obj_dummyenemy_slash_Step_0_gml_121_0" ); |
122 |
} |
123 |
if (defendtime == 2) |
124 |
{ |
125 |
global.fe = 1; |
126 |
global.msg[0] = stringsetloc(Face 1* Ummm...Delay 11 * Kris?Wait for input"\\E1* Ummm..^1.&* Kris?/", "obj_dummyenemy_slash_Step_0_gml_127_0" ); |
127 |
global.msg[1] = stringsetloc(Face 8* There are no bullets,Delay 11 and you can't use TP...Wait for input"\\E8* There are no bullets^1, and you can't use TP.../", "obj_dummyenemy_slash_Step_0_gml_128_0" ); |
128 |
global.msg[2] = stringsetloc(Face 8* So,Delay 11 umm,Delay 11 maybe you could stop defending?Wait for inputClose Message"\\E8* So^1, umm^1, maybe you could stop defending?/%", "obj_dummyenemy_slash_Step_0_gml_129_0" ); |
129 |
} |
130 |
if (defendtime == 3) |
131 |
{ |
132 |
global.fe = 9; |
133 |
global.msg[0] = stringsetloc(Face 9* ...Wait for inputClose Message"\\E9* .../%", "obj_dummyenemy_slash_Step_0_gml_136_0" ); |
134 |
} |
135 |
if (plot == 2) |
136 |
{ |
137 |
global.writerimg[2] = spr_bttech; |
138 |
global.msg[0] = stringsetloc(Face 8* Great job,Delay 11 Kris!Delay 11 * Now that you've gathered TP -Wait for input"\\E8* Great job^1, Kris^1!&* Now that you've gathered TP -/", "obj_dummyenemy_slash_Step_0_gml_142_0" ); |
139 |
global.msg[1] = stringsetloc(Face 0* How about spending that TP on one of my SPELLs?Wait for input"\\E0* How about spending that TP on one of my \\cYSPELLs\\cW?/", "obj_dummyenemy_slash_Step_0_gml_143_0" ); |
140 |
global.msg[2] = stringsetloc(* Because you hit the enemy enough,Delay 11 it got TIRED.Wait for input"* Because you hit the enemy enough^1, it got \\cBTIRED\\cW./", "obj_dummyenemy_slash_Step_0_gml_144_0" ); |
141 |
global.msg[3] = stringsetloc(* Now,Delay 11 if I use my PACIFY spell on it...Wait for input"* Now^1, if I use my \\cYPACIFY\\cW spell on it.../", "obj_dummyenemy_slash_Step_0_gml_145_0" ); |
142 |
global.msg[4] = stringsetloc(Face 8* It'll fall asleep,Delay 11 and we'll win peacefully!Wait for inputClose Message"\\E8* It'll fall asleep^1, and we'll win peacefully!/%", "obj_dummyenemy_slash_Step_0_gml_146_0" ); |
143 |
if (global.monsterhp[0] == global.monstermaxhp[0]) |
144 |
{ |
145 |
global.msg[2] = stringsetloc(Face 1* If you had,Delay 11 um,Delay 11 hit the enemy,Delay 11 it'd be TIRED now.Wait for input"\\E1* If you had^1, um^1, hit the enemy^1, it'd be TIRED now./", "obj_dummyenemy_slash_Step_0_gml_150_0" ); |
146 |
global.msg[3] = stringsetloc(Face 0* In that case,Delay 11 we use my PACIFY spell on it...Wait for input"\\E0* In that case^1, we use my \\cYPACIFY\\cW spell on it.../", "obj_dummyenemy_slash_Step_0_gml_151_0" ); |
147 |
} |
148 |
plot = 3; |
149 |
if (defendtime == 4) |
150 |
defendtime = 3; |
151 |
} |
152 |
if (defendtime >= 4) |
153 |
{ |
154 |
dial = 3; |
155 |
global.flag[205 tutorial_end] = 5; |
156 |
} |
157 |
defendtime += 1; |
158 |
commanded = 1; |
159 |
} |
160 |
if (global.charaction[0] == 4 && commanded == 0) |
161 |
{ |
162 |
global.fe = 0; |
163 |
global.msg[0] = stringsetloc(Face 0* Oh,Delay 11 Kris,Delay 11 you found an ITEM?Wait for input"\\E0* Oh^1, Kris^1, you found an \\cYITEM\\cW?/", "obj_dummyenemy_slash_Step_0_gml_167_0" ); |
164 |
global.msg[1] = stringsetloc(Face 1* I figured ITEMs are self-explanatory,Delay 11 so...Wait for input"\\E1* I figured \\cYITEMs\\cW are self-explanatory^1, so.../", "obj_dummyenemy_slash_Step_0_gml_168_0" ); |
165 |
global.msg[2] = stringsetloc(Face 6* Let's skip over them for now,Delay 11 OK?Wait for inputClose Message"\\E6* Let's skip over them for now^1, OK?/%", "obj_dummyenemy_slash_Step_0_gml_169_0" ); |
166 |
if (item_command == 1) |
167 |
{ |
168 |
global.fe = 1; |
169 |
global.msg[0] = stringsetloc(Face 3* You really want to learn about ITEMS, Kris...?Wait for input"\\E3* You really want to learn about \\cYITEMS\\cW, Kris...?/", "obj_dummyenemy_slash_Step_0_gml_174_0" ); |
170 |
global.msg[1] = stringsetloc(Face 0* OK,Delay 11 I'll teach you!Wait for input"\\E0* OK^1, I'll teach you!/", "obj_dummyenemy_slash_Step_0_gml_175_0" ); |
171 |
global.msg[2] = stringsetloc(Face 1* Errm...Wait for input"\\E1* Errm.../", "obj_dummyenemy_slash_Step_0_gml_176_0" ); |
172 |
global.msg[3] = stringsetloc(Face 0* You use them,Delay 11 and something happens.Wait for input"\\E0* You use them^1, and something happens./", "obj_dummyenemy_slash_Step_0_gml_177_0" ); |
173 |
global.msg[4] = stringsetloc(Face 8* ... is that sufficient?Wait for inputClose Message"\\E8* ... is that sufficient?/%", "obj_dummyenemy_slash_Step_0_gml_178_0" ); |
174 |
} |
175 |
if (item_command == 2) |
176 |
{ |
177 |
global.fe = 6; |
178 |
global.msg[0] = stringsetloc(Face 6* Yes,Delay 11 haha,Delay 11 that ITEM is very pretty,Delay 11 isn't it?Wait for input"\\E6* Yes^1, haha^1, that \\cYITEM\\cW is very pretty^1, isn't it?/", "obj_dummyenemy_slash_Step_0_gml_184_0" ); |
179 |
global.msg[1] = stringsetloc(Face 8* I'm glad you're enjoying yourself,Delay 11 Kris...!Wait for inputClose Message"\\E8* I'm glad you're enjoying yourself^1, Kris...!/%", "obj_dummyenemy_slash_Step_0_gml_185_0" ); |
180 |
} |
181 |
if (item_command == 3) |
182 |
{ |
183 |
global.fe = 0; |
184 |
global.msg[0] = stringsetloc(Face 8* Kris,Delay 11 we can find lots more ITEMs on our journey!Wait for input"\\E8* Kris^1, we can find lots more ITEMs on our journey!/", "obj_dummyenemy_slash_Step_0_gml_191_0" ); |
185 |
global.msg[1] = stringsetloc(Face 0* Which,Delay 11 will continue...Delay 11 after this tutorial.Wait for inputClose Message"\\E0* Which^1, will continue..^1. after this tutorial./%", "obj_dummyenemy_slash_Step_0_gml_192_0" ); |
186 |
} |
187 |
if (item_command >= 4) |
188 |
dial = 3; |
189 |
commanded = 1; |
190 |
item_command += 1; |
191 |
} |
192 |
if (ral_wrongcommand == 1 && commanded == 0) |
193 |
{ |
194 |
global.msg[0] = stringsetloc(Face 8* Kris,Delay 11 please ask me to do a spell.Wait for inputClose Message"\\E8* Kris^1, please ask me to do a spell./%", "obj_dummyenemy_slash_Step_0_gml_206_0" ); |
195 |
if (ral_wrongcommand_count == 0) |
196 |
global.msg[0] = stringsetloc(Face 8* Kris,Delay 11 wouldn't you rather learn about SPELLs?Wait for inputClose Message"\\E8* Kris^1, wouldn't you rather learn about \\cYSPELLs\\cW?/%", "obj_dummyenemy_slash_Step_0_gml_211_0" ); |
197 |
if (ral_wrongcommand_count == 1) |
198 |
{ |
199 |
global.msg[0] = stringsetloc(Face 6* Kris,Delay 11 do you...Delay 11 know what a SPELL is?Wait for input"\\E6* Kris^1, do you..^1. know what a \\cYSPELL\\cW is?/", "obj_dummyenemy_slash_Step_0_gml_216_0" ); |
200 |
global.msg[1] = stringsetloc(Face 1* Can humans not even ASK people to use them...?Wait for inputClose Message"\\E1* Can humans not even ASK people to use them...?/%", "obj_dummyenemy_slash_Step_0_gml_217_0" ); |
201 |
} |
202 |
if (ral_wrongcommand_count == 2) |
203 |
global.msg[0] = stringsetloc(Face 6* Kris,Delay 11 what if you just give me a hand sign?Wait for inputClose Message"\\E6* Kris^1, what if you just give me a hand sign?/%", "obj_dummyenemy_slash_Step_0_gml_222_0" ); |
204 |
if (ral_wrongcommand_count == 3) |
205 |
{ |
206 |
global.msg[0] = stringsetloc(*Face 8 Ummm,Delay 11 if this is too difficult...Wait for input"*\\E8 Ummm^1, if this is too difficult.../", "obj_dummyenemy_slash_Step_0_gml_227_0" ); |
207 |
global.msg[1] = stringsetloc(* Let's move to the next lesson,Delay 11 OK?Wait for input"* Let's move to the next lesson^1, OK?/", "obj_dummyenemy_slash_Step_0_gml_228_0" ); |
208 |
global.msg[2] = stringsetloc(* \\I3 ing!Delay 11 Through this,Delay 11 even the most violent enemies...Wait for input"* \\I3 ing^1! Through this^1, even the most violent enemies.../", "obj_dummyenemy_slash_Step_0_gml_229_0" ); |
209 |
global.msg[3] = stringsetloc(Face 8* Can be defeated through various \\I3 s of kindness!Wait for input"\\E8* Can be defeated through various \\I3 s of kindness!/", "obj_dummyenemy_slash_Step_0_gml_230_0" ); |
210 |
global.msg[4] = stringsetloc(* Kris,Delay 11 though it's just a dummy,Delay 11 why not give it a HUG?Wait for inputClose Message"* Kris^1, though it's just a dummy^1, why not give it a HUG?/%", "obj_dummyenemy_slash_Step_0_gml_231_0" ); |
211 |
if (plot == 3) |
212 |
plot = 4; |
213 |
if (global.mercymod[myself] >= 100) |
214 |
{ |
215 |
global.msg[2] = stringsetloc(Face B* Remember when you HUGGED the dummy by \\I3 ing on it?Wait for input"\\EB* Remember when you \\cYHUGGED\\cW the dummy by \\I3 ing on it?/", "obj_dummyenemy_slash_Step_0_gml_237_0" ); |
216 |
global.msg[3] = stringsetloc(Face 0* Because of that,Delay 11 its name turned YELLOW!Wait for input"\\E0* Because of that^1, its name turned \\cYYELLOW\\cW!/", "obj_dummyenemy_slash_Step_0_gml_238_0" ); |
217 |
global.msg[4] = stringsetloc(* Now by using the SPARE (\\I4 ) command,Delay 11 you can win!Wait for inputClose Message"* Now by using the \\cYSPARE\\cW (\\I4 ) command^1, you can win!/%", "obj_dummyenemy_slash_Step_0_gml_239_0" ); |
218 |
plot = 5; |
219 |
} |
220 |
} |
221 |
ral_wrongcommand_count += 1; |
222 |
commanded = 0; |
223 |
} |
224 |
if (global.charaction[1] == 2 && ral_wrongcommand == 0 && commanded == 0) |
225 |
{ |
226 |
global.msg[0] = stringsetloc(Face 0* Great,Delay 11 Kris!Delay 11 A healing spell works too!Wait for input"\\E0* Great^1, Kris^1! A healing spell works too!/", "obj_dummyenemy_slash_Step_0_gml_252_0" ); |
227 |
global.msg[1] = stringsetloc(* Now I have just a little more to teach you!Wait for input"* Now I have just a little more to teach you!/", "obj_dummyenemy_slash_Step_0_gml_253_0" ); |
228 |
global.msg[2] = stringsetloc(* \\I3 ing!Delay 11 Through this,Delay 11 even the most violent enemies...Wait for input"* \\I3 ing^1! Through this^1, even the most violent enemies.../", "obj_dummyenemy_slash_Step_0_gml_254_0" ); |
229 |
global.msg[3] = stringsetloc(Face 8* Can be defeated through various \\I3 s of kindness!Wait for input"\\E8* Can be defeated through various \\I3 s of kindness!/", "obj_dummyenemy_slash_Step_0_gml_255_0" ); |
230 |
global.msg[4] = stringsetloc(Face 6* Kris,Delay 11 though it's just a dummy,Delay 11 why not give it a HUG?Wait for inputClose Message"\\E6* Kris^1, though it's just a dummy^1, why not give it a HUG?/%", "obj_dummyenemy_slash_Step_0_gml_256_0" ); |
231 |
if (pacifycon == 1) |
232 |
{ |
233 |
global.msg[0] = stringsetloc(Face 0* Great,Delay 11 Kris!Delay 11 We would have won the battle by now!Wait for input"\\E0* Great^1, Kris^1! We would have won the battle by now!/", "obj_dummyenemy_slash_Step_0_gml_260_0" ); |
234 |
if (global.monsterstatus[myself] == 0) |
235 |
global.msg[0] = stringsetloc(Face 0* Great,Delay 11 Kris!Delay 11 If it was TIRED we would have won!Wait for input"\\E0* Great^1, Kris^1! If it was TIRED we would have won!/", "obj_dummyenemy_slash_Step_0_gml_262_0" ); |
236 |
} |
237 |
plot = 4; |
238 |
if (global.mercymod[myself] >= 100) |
239 |
{ |
240 |
global.msg[2] = stringsetloc(Face 0* Remember when you HUGGED the dummy by \\I3 ing on it?Wait for input"\\E0* Remember when you \\cYHUGGED\\cW the dummy by \\I3 ing on it?/", "obj_dummyenemy_slash_Step_0_gml_268_0" ); |
241 |
global.msg[3] = stringsetloc(* Because of that,Delay 11 its name turned YELLOW!Wait for input"* Because of that^1, its name turned \\cYYELLOW\\cW!/", "obj_dummyenemy_slash_Step_0_gml_269_0" ); |
242 |
global.msg[4] = stringsetloc(* Now by using the SPARE (\\I4 ) command,Delay 11 you can win!Wait for inputClose Message"* Now by using the \\cYSPARE\\cW (\\I4 ) command^1, you can win!/%", "obj_dummyenemy_slash_Step_0_gml_270_0" ); |
243 |
plot = 5; |
244 |
} |
245 |
commanded = 1; |
246 |
} |
247 |
if (spare_used == 1 && commanded == 0) |
248 |
{ |
249 |
if (plot < 5) |
250 |
{ |
251 |
global.fe = 0; |
252 |
if (spare_command == 0) |
253 |
global.msg[0] = stringsetloc(Face 8* Ah,Delay 11 Kris,Delay 11 don't worry about that command yet!Wait for inputClose Message"\\E8* Ah^1, Kris^1, don't worry about that command yet!/%", "obj_dummyenemy_slash_Step_0_gml_282_0" ); |
254 |
if (spare_command == 1) |
255 |
global.msg[0] = stringsetloc(Face 6* You're really merciful,Delay 11 aren't you,Delay 11 Kris?Wait for inputClose Message"\\E6* You're really merciful^1, aren't you^1, Kris?/%", "obj_dummyenemy_slash_Step_0_gml_283_0" ); |
256 |
if (spare_command >= 2) |
257 |
global.msg[0] = stringsetloc(Face 1* Kris,Delay 11 you are aware it's just a dummy,Delay 11 right...?Wait for inputClose Message"\\E1* Kris^1, you are aware it's just a dummy^1, right...?/%", "obj_dummyenemy_slash_Step_0_gml_284_0" ); |
258 |
if (global.mercymod[myself] >= 100) |
259 |
win_spare += 1; |
260 |
if (win_spare == 1) |
261 |
{ |
262 |
global.fe = 6; |
263 |
global.msg[0] = stringsetloc(Face 0* Kris,Delay 11 since you SPARED an enemy after ACTING,Wait for input"\\E0* Kris^1, since you SPARED an enemy after ACTING,/", "obj_dummyenemy_slash_Step_0_gml_289_0" ); |
264 |
global.msg[1] = stringsetloc(Face 1* You would have won in a real battle, but, um...Wait for input"\\E1* You would have won in a real battle, but, um.../", "obj_dummyenemy_slash_Step_0_gml_290_0" ); |
265 |
global.msg[2] = stringsetloc(Face 0* Don't you want to learn other things,Delay 11 first?Wait for inputClose Message"\\E0* Don't you want to learn other things^1, first?/%", "obj_dummyenemy_slash_Step_0_gml_291_0" ); |
266 |
} |
267 |
if (win_spare == 2) |
268 |
{ |
269 |
global.fe = 6; |
270 |
global.msg[0] = stringsetloc(Face 0* I see...Delay 11 Then,Delay 11 perhaps we can just end here.Wait for input"\\E0* I see..^1. Then^1, perhaps we can just end here./", "obj_dummyenemy_slash_Step_0_gml_296_0" ); |
271 |
global.msg[1] = stringsetloc(Face 1* You know how to win peacefully, so...Wait for input"\\E1* You know how to win peacefully, so.../", "obj_dummyenemy_slash_Step_0_gml_297_0" ); |
272 |
global.msg[2] = stringsetloc(Face 8* That's good enough for me!Wait for inputClose Message"\\E8* That's good enough for me!/%", "obj_dummyenemy_slash_Step_0_gml_298_0" ); |
273 |
won = 1; |
274 |
} |
275 |
} |
276 |
if (plot == 5) |
277 |
{ |
278 |
global.msg[0] = stringsetloc(Face 0* Great job,Delay 11 Kris!Delay 11 * That'd be the end in a real battle!Wait for input"\\E0* Great job^1, Kris^1!&* That'd be the end in a real battle!/", "obj_dummyenemy_slash_Step_0_gml_307_0" ); |
279 |
global.msg[1] = stringsetloc(Face 8* I'm really happy I had the chance to teach you,Delay 11 Kris!Wait for inputClose Message"\\E8* I'm really happy I had the chance to teach you^1, Kris!/%", "obj_dummyenemy_slash_Step_0_gml_308_0" ); |
280 |
won = 1; |
281 |
} |
282 |
spare_used = 0; |
283 |
spare_command += 1; |
284 |
commanded = 1; |
285 |
} |
286 |
if (dial == 1) |
287 |
{ |
288 |
if (plot == 1) |
289 |
{ |
290 |
global.fe = 3; |
291 |
if (dummyhp > (global.monsterhp[0] + 50)) |
292 |
{ |
293 |
global.msg[0] = stringsetloc(Face 3* W-wow,Delay 11 Kris!Delay 11 * That was an amazing attack!Wait for input"\\E3* W-wow^1, Kris^1!&* That was an amazing attack!/", "obj_dummyenemy_slash_Step_0_gml_327_0" ); |
294 |
global.msg[1] = stringsetloc(Face 8* Have you done this before or something...?Wait for input"\\E8* Have you done this before or something...?/", "obj_dummyenemy_slash_Step_0_gml_328_0" ); |
295 |
} |
296 |
else |
297 |
{ |
298 |
global.msg[0] = stringsetloc(Face 0* Good job,Delay 11 Kris!Delay 11 * By the way,Delay 11 you'll do more damage...Wait for input"\\E0* Good job^1, Kris^1!&* By the way^1, you'll do more damage.../", "obj_dummyenemy_slash_Step_0_gml_332_0" ); |
299 |
global.msg[1] = stringsetloc(Face 8* Pressing Z when the cursor enters the box on the left!Wait for input"\\E8* Pressing Z when the cursor enters the box on the left!/", "obj_dummyenemy_slash_Step_0_gml_333_0" ); |
300 |
} |
301 |
if (misstime >= 6) |
302 |
{ |
303 |
global.fe = 8; |
304 |
global.msg[0] = stringsetloc(Face 3* Kris!Delay 11 * You did it!!!Wait for input"\\E3* Kris^1!&* You did it!!!/", "obj_dummyenemy_slash_Step_0_gml_338_0" ); |
305 |
global.msg[1] = stringsetloc(Face 8* (I was really just about at my limit...)Wait for input"\\E8* (I was really just about at my limit...)/", "obj_dummyenemy_slash_Step_0_gml_339_0" ); |
306 |
} |
307 |
global.msg[2] = stringsetloc(Face 0* OK, next let's try DEFENDING. (\\I1 )Wait for input"\\E0* OK, next let's try DEFENDING. (\\I1 )/", "obj_dummyenemy_slash_Step_0_gml_341_0" ); |
308 |
global.msg[3] = stringsetloc(* Simply (\\I1 ),Delay 11 and the enemy's attack will hurt you less...Wait for input"* Simply (\\I1 )^1, and the enemy's attack will hurt you less.../", "obj_dummyenemy_slash_Step_0_gml_342_0" ); |
309 |
global.msg[4] = stringsetloc(* Not only that,Delay 11 but you'll also gather TP!Wait for input"* Not only that^1, but you'll also gather \\cYTP\\cW!/", "obj_dummyenemy_slash_Step_0_gml_343_0" ); |
310 |
global.msg[5] = stringsetloc(* (Watch the orange big bar on the left!Delay 11 I'll explain it next!)Wait for inputClose Message"* (Watch the orange big bar on the left^1! I'll explain it next!)/%", "obj_dummyenemy_slash_Step_0_gml_344_0" ); |
311 |
plot = 2; |
312 |
if (defendtime >= 1) |
313 |
{ |
314 |
global.msg[2] = stringsetloc(Face 0* Kris,Delay 11 if you didn't notice,Delay 11 when you DEFENDED before -Wait for input"\\E0* Kris^1, if you didn't notice^1, when you DEFENDED before -/", "obj_dummyenemy_slash_Step_0_gml_348_0" ); |
315 |
global.msg[3] = stringsetloc(* The big orange TP bar on the left filled up a bit!Wait for input"* The big orange TP bar on the left filled up a bit!/", "obj_dummyenemy_slash_Step_0_gml_349_0" ); |
316 |
global.msg[4] = stringsetloc(* How about spending that TP on one of my SPELLs?Wait for input"* How about spending that TP on one of my \\cYSPELLs\\cW?/", "obj_dummyenemy_slash_Step_0_gml_350_0" ); |
317 |
global.msg[5] = stringsetloc(* Because you hit the enemy enough,Delay 11 it got TIRED.Wait for input"* Because you hit the enemy enough^1, it got \\cBTIRED\\cW./", "obj_dummyenemy_slash_Step_0_gml_351_0" ); |
318 |
global.msg[6] = stringsetloc(* Now,Delay 11 if I use my PACIFY spell on it...Wait for input"* Now^1, if I use my \\cYPACIFY\\cW spell on it.../", "obj_dummyenemy_slash_Step_0_gml_352_0" ); |
319 |
global.msg[7] = stringsetloc(* It'll fall asleep,Delay 11 and we'll win peacefully!Wait for inputClose Message"* It'll fall asleep^1, and we'll win peacefully!/%", "obj_dummyenemy_slash_Step_0_gml_353_0" ); |
320 |
plot = 3; |
321 |
} |
322 |
} |
323 |
else |
324 |
{ |
325 |
if (hitdum == 0) |
326 |
{ |
327 |
global.fe = 1; |
328 |
global.msg[0] = stringsetloc(Face 1* Ummm...Delay 11 Kris?Delay 11 * You don't need to hit it anymore.Wait for input"\\E1* Ummm..^1. Kris^1?&* You don't need to hit it anymore./", "obj_dummyenemy_slash_Step_0_gml_364_0" ); |
329 |
global.msg[1] = stringsetloc(Face 8* I already know you're great at attacking!Wait for inputClose Message"\\E8* I already know you're great at attacking!/%", "obj_dummyenemy_slash_Step_0_gml_365_0" ); |
330 |
} |
331 |
if (hitdum == 1) |
332 |
{ |
333 |
global.fe = 1; |
334 |
global.msg[0] = stringsetloc(Face 1* U-umm,Delay 11 Kris...Delay 11 H-How do I put this...?Wait for input"\\E1* U-umm^1, Kris..^1. H-How do I put this...?/", "obj_dummyenemy_slash_Step_0_gml_372_0" ); |
335 |
global.msg[1] = stringsetloc(Face 1* Kris,Delay 11 seeing you,Delay 11 um,Delay 11 attack an effigy of myself...Wait for input"\\E1* Kris^1, seeing you^1, um^1, attack an effigy of myself.../", "obj_dummyenemy_slash_Step_0_gml_373_0" ); |
336 |
global.msg[2] = stringsetloc(Face 6* ... Kris,Delay 11 are you trying to say something?Wait for inputClose Message"\\E6* ... Kris^1, are you trying to say something?/%", "obj_dummyenemy_slash_Step_0_gml_374_0" ); |
337 |
} |
338 |
if (hitdum == 2) |
339 |
{ |
340 |
global.fe = 6; |
341 |
global.msg[0] = stringsetloc(Face 6* Ah,Delay 11 Kris...Delay 11 I...Delay 11 um,Delay 11 I think I understand.Wait for input"\\E6* Ah^1, Kris..^1. I..^1. um^1, I think I understand./", "obj_dummyenemy_slash_Step_0_gml_380_0" ); |
342 |
global.msg[1] = stringsetloc(Face 1* W-Delay 11well,Delay 11 if...Delay 11 during our adventure,Wait for input"\\E1* W^1-well^1, if..^1. during our adventure,/", "obj_dummyenemy_slash_Step_0_gml_381_0" ); |
343 |
global.msg[2] = stringsetloc(Face 7* ... if you want to hit me,Delay 11 that's OK,Delay 11 too!Wait for inputClose Message"\\E7* ... if you want to hit me^1, that's OK^1, too!/%", "obj_dummyenemy_slash_Step_0_gml_382_0" ); |
344 |
} |
345 |
if (hitdum >= 3) |
346 |
dial = 3; |
347 |
hitdum += 1; |
348 |
} |
349 |
} |
350 |
if (dial == 2) |
351 |
{ |
352 |
global.fe = 3; |
353 |
global.msg[0] = stringsetloc(Face 3* Oh,Delay 11 sorry,Delay 11 Kris!Delay 11 * I forgot to mention!Delay 11 * When you're ATTACKing...Wait for input"\\E3* Oh^1, sorry^1, Kris^1!&* I forgot to mention^1!&* When you're ATTACKing.../", "obj_dummyenemy_slash_Step_0_gml_398_0" ); |
354 |
global.msg[1] = stringsetsubloc("\\E8* Press ~1 again when the cursor goes in the box!/%", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (4), "obj_dummyenemy_slash_Step_0_gml_399_0"); |
355 |
if (misstime >= 1) |
356 |
{ |
357 |
global.fe = 8; |
358 |
global.msg[0] = stringsetloc(Face 8* It's OK,Delay 11 Kris!Delay 11 * You'll get it!Delay 11 * Try again!Wait for inputClose Message"\\E8* It's OK^1, Kris^1!&* You'll get it^1!&* Try again!/%", "obj_dummyenemy_slash_Step_0_gml_403_0" ); |
359 |
if (misstime == 2) |
360 |
global.msg[0] = stringsetloc(Face 8* Press Z when the white rectangle's in the blue box!Wait for inputClose Message"\\E8* Press Z when the white rectangle's in the blue box!/%", "obj_dummyenemy_slash_Step_0_gml_404_0" ); |
361 |
if (misstime == 3) |
362 |
global.msg[0] = stringsetsubloc("\\E6* Ummm..^1. you can press ~1 a lot^1, if it helps!/%", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (4), "obj_dummyenemy_slash_Step_0_gml_405_0"); |
363 |
if (misstime == 4) |
364 |
global.msg[0] = stringsetsubloc("\\E6* Kris..^1.&* Please try to press ~1./%", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (4), "obj_dummyenemy_slash_Step_0_gml_406_0"); |
365 |
if (misstime == 5) |
366 |
global.msg[0] = stringsetloc(Face 6* Ummm,Delay 11 Kris?Delay 11 * Can you see the white rectangle?Wait for inputClose Message"\\E6* Ummm^1, Kris^1?&* Can you see the white rectangle?/%", "obj_dummyenemy_slash_Step_0_gml_407_0" ); |
367 |
if (misstime == 6) |
368 |
global.msg[0] = stringsetloc(Face 8* You know rectangles?Delay 11 * They're like messed-up squares?Wait for inputClose Message"\\E8* You know rectangles^1?&* They're like messed-up squares?/%", "obj_dummyenemy_slash_Step_0_gml_408_0" ); |
369 |
if (misstime == 7) |
370 |
{ |
371 |
global.fe = 9; |
372 |
global.msg[0] = stringsetloc(Face 9* ...Wait for inputClose Message"\\E9* .../%", "obj_dummyenemy_slash_Step_0_gml_412_0" ); |
373 |
} |
374 |
if (misstime == 8) |
375 |
{ |
376 |
global.fe = 1; |
377 |
global.msg[0] = stringsetloc(Face 6* Umm,Delay 11 perhaps we should try something else?Wait for inputClose Message"\\E6* Umm^1, perhaps we should try something else?/%", "obj_dummyenemy_slash_Step_0_gml_417_0" ); |
378 |
plot = 2; |
379 |
if (defendtime >= 1) |
380 |
{ |
381 |
global.msg[0] = stringsetloc(Face 6* Umm,Delay 11 perhaps we should try something else?Wait for input"\\E6* Umm^1, perhaps we should try something else?/", "obj_dummyenemy_slash_Step_0_gml_421_0" ); |
382 |
global.msg[1] = stringsetloc(Face 0* Kris,Delay 11 if you didn't notice,Delay 11 when you DEFENDED before -Wait for input"\\E0* Kris^1, if you didn't notice^1, when you DEFENDED before -/", "obj_dummyenemy_slash_Step_0_gml_422_0" ); |
383 |
global.msg[2] = stringsetloc(* The big orange TP bar on the left filled up a bit!Wait for input"* The big orange TP bar on the left filled up a bit!/", "obj_dummyenemy_slash_Step_0_gml_423_0" ); |
384 |
global.msg[3] = stringsetloc(* How about spending that TP on one of my SPELLs?Wait for input"* How about spending that TP on one of my \\cYSPELLs\\cW?/", "obj_dummyenemy_slash_Step_0_gml_424_0" ); |
385 |
global.msg[4] = stringsetloc(* Because you hit the enemy enough,Delay 11 it got TIRED.Wait for input"* Because you hit the enemy enough^1, it got \\cBTIRED\\cW./", "obj_dummyenemy_slash_Step_0_gml_425_0" ); |
386 |
global.msg[5] = stringsetloc(* Now,Delay 11 if I use my PACIFY spell on it...Wait for input"* Now^1, if I use my \\cYPACIFY\\cW spell on it.../", "obj_dummyenemy_slash_Step_0_gml_426_0" ); |
387 |
global.msg[6] = stringsetloc(* It'll fall asleep,Delay 11 and we'll win peacefully!Wait for inputClose Message"* It'll fall asleep^1, and we'll win peacefully!/%", "obj_dummyenemy_slash_Step_0_gml_427_0" ); |
388 |
plot = 3; |
389 |
} |
390 |
} |
391 |
} |
392 |
misstime += 1; |
393 |
} |
394 |
if (dial == 3) |
395 |
{ |
396 |
global.fe = 9; |
397 |
global.msg[0] = stringsetloc(Face 9* ...Wait for input"\\E9* .../", "obj_dummyenemy_slash_Step_0_gml_441_0" ); |
398 |
global.msg[1] = stringsetloc(Face 8* Kris,Delay 11 I think I've,Delay 11 um,Delay 11 perhaps...Wait for input"\\E8* Kris^1, I think I've^1, um^1, perhaps.../", "obj_dummyenemy_slash_Step_0_gml_442_0" ); |
399 |
global.msg[2] = stringsetloc(Face 1* Reached the limits of what I can teach you today.Wait for input"\\E1* Reached the limits of what I can teach you today./", "obj_dummyenemy_slash_Step_0_gml_443_0" ); |
400 |
global.msg[3] = stringsetloc(Face 0* Let's go find Susie.Wait for inputClose Message"\\E0* Let's go find Susie./%", "obj_dummyenemy_slash_Step_0_gml_444_0" ); |
401 |
if (hitdum >= 4) |
402 |
{ |
403 |
global.msg[0] = stringsetloc(Face 9* Kris,Delay 11 I don't mean to interrupt,Delay 11 but...Wait for input"\\E9* Kris^1, I don't mean to interrupt^1, but.../", "obj_dummyenemy_slash_Step_0_gml_447_0" ); |
404 |
global.msg[1] = stringsetloc(Face 3* You're going to break the dummy at this rate.Wait for input"\\E3* You're going to break the dummy at this rate./", "obj_dummyenemy_slash_Step_0_gml_448_0" ); |
405 |
global.msg[2] = stringsetloc(Face 1* I suppose we'll have to stop here for now.Wait for inputClose Message"\\E1* I suppose we'll have to stop here for now./%", "obj_dummyenemy_slash_Step_0_gml_449_0" ); |
406 |
} |
407 |
won = 1; |
408 |
global.myfight = 999; |
409 |
global.mnfight = 999; |
410 |
} |
411 |
} |
412 |
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
} (); |
413 |
if (global.msg[0] == "* Skip/%") |
414 |
{ |
415 |
with (obj_writer) |
416 |
instance_destroy(); |
417 |
} |
418 |
acting = 0; |
419 |
spare_used = 0; |
420 |
dummyhp = global.monsterhp[myself]; |
421 |
talked = 1; |
422 |
talktimer = 0; |
423 |
ral_wrongcommand = 0; |
424 |
} |
425 |
if (global.mnfight == 9786 && attacked == 0) |
426 |
{ |
427 |
turns += 1; |
428 |
global.turntimer = -1; |
429 |
scr_mnendturnscr_mnendturnfunction scr_mnendturn()
{
if (global.char[0] == 2)
sus = 0;
if (global.char[1] == 2)
sus = 1;
if (global.char[2] == 2)
sus = 2;
techwon = 0;
if ( scr_monsterpop() == 0)
techwon = 1;
if ( global.flag[39 dojo_abort?] == 1)
techwon = 1;
if (techwon == 1)
scr_wincombat();
if (techwon == 0)
{
with (obj_battlecontroller)
{
messagepriority = -1;
attackpriority = -1;
}
scr_battlecursor_memory_reset();
global.mnfight = 0;
global.myfight = 0;
global.bmenuno = 0;
global.charturn = 0;
skip = 0;
for (i = 0; i < 3; i += 1)
{
global.hittarget[i] = 0;
with (global.charinstance[i])
tu = 0;
hptarget = global.char[i];
if (global.char[i] != 0 && global.hp[hptarget] <= 0)
{
healamt = ceil(global.maxhp[hptarget] / 8);
dmgwr = instance_create(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight) - 24, obj_dmgwriter);
with (dmgwr)
{
delay = 1;
type = 3;
}
dmgwr.damage = scr_heal(i, healamt);
if (global.hp[hptarget] >= 1)
{
with (dmgwr)
specialmessage = 4;
}
}
}
if (global.charmove[0] == 0 || global.charauto[global.char[0]] == 1)
global.charturn = 1;
if (global.charturn == 1)
{
if (global.charmove[1] == 0 || global.charauto[global.char[1]] == 1)
global.charturn = 2;
}
if (global.charturn == 2)
{
if (global.charmove[2] == 0 || global.charauto[global.char[2]] == 1)
skip = 1;
}
for (i = 0; i < 3; i += 1)
{
global.acting[i] = 0;
global.actingsingle[i] = 0;
global.actingsimul[i] = 0;
global.actingtarget[i] = 0;
global.temptension[i] = global.tension;
global.charspecial[i] = 0;
global.targeted[i] = 0;
global.charaction[i] = 0;
global.faceaction[i] = 0;
global.monsterattackname[i] = " ";
}
global.currentactingchar = 0;
with (obj_monsterparent)
{
attacked = 0;
talked = 0;
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
if (skip == 1)
{
if (global.char[0] == 2 && global.charauto[2] == 1)
{
global.acting[0] = 1;
global.myfight = 3;
}
scr_endturn();
}
for (i = 0; i < 12; i += 1)
{
for (j = 0; j < 3; j += 1)
tempitem[i][j] = global.item[i];
}
}
... (); |
430 |
attacked = 1; |
431 |
rr = floor(random(0)); |
432 |
global.typer = 6; |
433 |
global.fc = 0; |
434 |
if (rr == 0) |
435 |
global.battlemsg[0] = stringsetloc(* Ralsei looks on expectedly."* Ralsei looks on expectedly.", "obj_dummyenemy_slash_Step_0_gml_489_0" ); |
436 |
} |
437 |
if (talked == 1 && global.mnfight == 1) |
438 |
{ |
439 |
if (won == 0) |
440 |
{ |
441 |
rtimer = 0; |
442 |
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;
}
}
} (-1); |
443 |
if (global.mnfight == 2 && attackcon == 1) |
444 |
{ |
445 |
if (!instance_exists(obj_moveheart) && !instance_exists(obj_heart)) |
446 |
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);
} (); |
447 |
if (!instance_exists(obj_growtangle)) |
448 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
449 |
} |
450 |
} |
451 |
else if (!instance_exists(obj_writer)) |
452 |
{ |
453 |
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 (fatal == 1)
global.flag[44 kills]++;
}
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 (global.flag[51 + myself] == 6)
{
global.flag[45 freezes] += 1;
global.monstergold[3] += 24;
}
if ( scr_monsterpop() == 0)
{
_amt_add = 0;
_frozened = 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 (global.flag[51 + d_i] == 6)
_frozened += 1;
}
if (_frozened > 0)
global.flag[50 last_encounter_end] = 6;
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;
if (_frozened > 0)
{
if (_pacified > 0 || _violenced > 0 || _spared > 0)
global.flag[50 last_encounter_end] = 1;
}
if ( global.flag[50 last_encounter_end] == 6)
global.flag[926 iceshocked_encounters]++;
if ( global.flag[54 encounter_pointer] != 0)
{
global.flag[ global.flag[54 encounter_pointer]] = global.flag[50 last_encounter_end];
global.flag[54 encounter_pointer] = 0;
}
}
event_user(11);
}
} (); |
454 |
scr_mnendturnscr_mnendturnfunction scr_mnendturn()
{
if (global.char[0] == 2)
sus = 0;
if (global.char[1] == 2)
sus = 1;
if (global.char[2] == 2)
sus = 2;
techwon = 0;
if ( scr_monsterpop() == 0)
techwon = 1;
if ( global.flag[39 dojo_abort?] == 1)
techwon = 1;
if (techwon == 1)
scr_wincombat();
if (techwon == 0)
{
with (obj_battlecontroller)
{
messagepriority = -1;
attackpriority = -1;
}
scr_battlecursor_memory_reset();
global.mnfight = 0;
global.myfight = 0;
global.bmenuno = 0;
global.charturn = 0;
skip = 0;
for (i = 0; i < 3; i += 1)
{
global.hittarget[i] = 0;
with (global.charinstance[i])
tu = 0;
hptarget = global.char[i];
if (global.char[i] != 0 && global.hp[hptarget] <= 0)
{
healamt = ceil(global.maxhp[hptarget] / 8);
dmgwr = instance_create(global.charinstance[i].x, (global.charinstance[i].y + global.charinstance[i].myheight) - 24, obj_dmgwriter);
with (dmgwr)
{
delay = 1;
type = 3;
}
dmgwr.damage = scr_heal(i, healamt);
if (global.hp[hptarget] >= 1)
{
with (dmgwr)
specialmessage = 4;
}
}
}
if (global.charmove[0] == 0 || global.charauto[global.char[0]] == 1)
global.charturn = 1;
if (global.charturn == 1)
{
if (global.charmove[1] == 0 || global.charauto[global.char[1]] == 1)
global.charturn = 2;
}
if (global.charturn == 2)
{
if (global.charmove[2] == 0 || global.charauto[global.char[2]] == 1)
skip = 1;
}
for (i = 0; i < 3; i += 1)
{
global.acting[i] = 0;
global.actingsingle[i] = 0;
global.actingsimul[i] = 0;
global.actingtarget[i] = 0;
global.temptension[i] = global.tension;
global.charspecial[i] = 0;
global.targeted[i] = 0;
global.charaction[i] = 0;
global.faceaction[i] = 0;
global.monsterattackname[i] = " ";
}
global.currentactingchar = 0;
with (obj_monsterparent)
{
attacked = 0;
talked = 0;
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
if (skip == 1)
{
if (global.char[0] == 2 && global.charauto[2] == 1)
{
global.acting[0] = 1;
global.myfight = 3;
}
scr_endturn();
}
for (i = 0; i < 12; i += 1)
{
for (j = 0; j < 3; j += 1)
tempitem[i][j] = global.item[i];
}
}
... (); |
455 |
} |
456 |
} |
457 |
if (global.mnfight == 2 && attacked == 0) |
458 |
{ |
459 |
if (attackcon != 1) |
460 |
rtimer = 8; |
461 |
rtimer += 1; |
462 |
if (rtimer >= 8) |
463 |
{ |
464 |
rr = choose(0); |
465 |
if (rr == 0) |
466 |
{ |
467 |
dc = instance_create(x, y, obj_dbulletcontroller); |
468 |
dc.type = 14; |
469 |
dc.target = mytarget; |
470 |
dc.damage = global.monsterat[myself] * 5; |
471 |
} |
472 |
turns += 1; |
473 |
global.turntimer = 150; |
474 |
if (attackcon == 1) |
475 |
battlecancel = 2; |
476 |
if (attackcon != 1) |
477 |
{ |
478 |
global.turntimer = -100; |
479 |
with (dc) |
480 |
instance_destroy(); |
481 |
} |
482 |
attackcon = 2; |
483 |
attacked = 1; |
484 |
global.typer = 6; |
485 |
global.fc = 0; |
486 |
global.battlemsg[0] = stringsetloc(* What?"* What?", "obj_dummyenemy_slash_Step_0_gml_548_0" ); |
487 |
global.writerimg[0] = spr_btfight; |
488 |
global.writerimg[1] = spr_btdefend; |
489 |
global.writerimg[2] = spr_bttech; |
490 |
global.writerimg[3] = spr_btact; |
491 |
global.writerimg[4] = spr_btspare; |
492 |
global.writerimg[5] = spr_btitem; |
493 |
global.fc = 0; |
494 |
if (plot == 1) |
495 |
global.battlemsg[0] = stringsetloc(* Let's try FIGHTing! (\\I0 )"* Let's try FIGHTing!& (\\I0 )", "obj_dummyenemy_slash_Step_0_gml_556_0" ); |
496 |
if (plot == 2) |
497 |
global.battlemsg[0] = stringsetloc(* Let's try DEFENDing! (\\I1 )"* Let's try DEFENDing!& (\\I1 )", "obj_dummyenemy_slash_Step_0_gml_557_0" ); |
498 |
if (plot == 3) |
499 |
global.battlemsg[0] = stringsetloc(* Let's try SPELLs! (\\I2 )"* Let's try SPELLs!& (\\I2 )", "obj_dummyenemy_slash_Step_0_gml_558_0" ); |
500 |
if (plot == 4) |
501 |
global.battlemsg[0] = stringsetloc(* Let's ACT! (\\I3 )"* Let's ACT!& (\\I3 )", "obj_dummyenemy_slash_Step_0_gml_559_0" ); |
502 |
if (plot == 5) |
503 |
global.battlemsg[0] = stringsetloc(* Let's SPARE! (\\I4 )"* Let's SPARE!& (\\I4 )", "obj_dummyenemy_slash_Step_0_gml_560_0" ); |
504 |
spare_used = 0; |
505 |
ral_wrongcommand = 0; |
506 |
} |
507 |
else |
508 |
{ |
509 |
global.turntimer = 150; |
510 |
} |
511 |
} |
512 |
if (global.mnfight == 2) |
513 |
{ |
514 |
if (global.turntimer <= 1) |
515 |
{ |
516 |
if (battlecancel == 2) |
517 |
{ |
518 |
with (obj_battlecontroller) |
519 |
noreturn = 1; |
520 |
con = 1; |
521 |
battlecancel = 3; |
522 |
} |
523 |
} |
524 |
} |
525 |
} |
526 |
if (con == 1) |
527 |
{ |
528 |
con = 2; |
529 |
alarm[5] = 2; |
530 |
} |
531 |
if (con == 3) |
532 |
{ |
533 |
global.typer = 45; |
534 |
global.fc = 2; |
535 |
global.fe = 0; |
536 |
global.writerimg[0] = spr_btfight; |
537 |
global.msg[0] = stringsetloc(* Great job,Delay 11 Kris!Delay 11 * You're a natural!Wait for input"* Great job^1, Kris^1!&* You're a natural!/", "obj_dummyenemy_slash_Step_0_gml_598_0" ); |
538 |
if (kris_inithp > global.hp[1]) |
539 |
{ |
540 |
global.fe = 6; |
541 |
global.msg[0] = stringsetloc(Face 6* Ouch,Delay 11 it's OK,Delay 11 Kris!Delay 11 You're still learning!Wait for input"\\E6* Ouch^1, it's OK^1, Kris^1! You're still learning!/", "obj_dummyenemy_slash_Step_0_gml_602_0" ); |
542 |
} |
543 |
global.msg[1] = stringsetloc(Face 8* Anyhow,Delay 11 after the enemy attacks,Delay 11 it's our turn,Delay 11 Kris!Wait for input"\\E8* Anyhow^1, after the enemy attacks^1, it's our turn^1, Kris!/", "obj_dummyenemy_slash_Step_0_gml_604_0" ); |
544 |
global.msg[2] = stringsetloc(Face 0* First,Delay 11 I'll teach you how to FIGHT (\\I0 ).Wait for input"\\E0* First^1, I'll teach you how to \\cYFIGHT\\cW (\\I0 )./", "obj_dummyenemy_slash_Step_0_gml_605_0" ); |
545 |
global.msg[3] = stringsetloc(Face 1* Though FIGHTing is unnecessary in this world...Wait for input"\\E1* Though \\cYFIGHTing\\cW is unnecessary in this world.../", "obj_dummyenemy_slash_Step_0_gml_606_0" ); |
546 |
global.msg[4] = stringsetloc(Face 8* There's no harm in a thorough lesson!Wait for inputClose Message"\\E8* There's no harm in a thorough lesson!/%", "obj_dummyenemy_slash_Step_0_gml_607_0" ); |
547 |
global.battlemsg[0] = stringsetloc(* Let's try FIGHTing! (\\I0 )"* Let's try FIGHTing!& (\\I0 )", "obj_dummyenemy_slash_Step_0_gml_610_0" ); |
548 |
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
} (); |
549 |
con = 6; |
550 |
} |
551 |
if (con == 6 && !instance_exists(obj_writer)) |
552 |
{ |
553 |
with (obj_battlecontroller) |
554 |
{ |
555 |
noreturn = 0; |
556 |
alarm[2] |
557 |
} |
558 |
battlecancel = 0; |
559 |
if (plot == 0) |
560 |
plot = 1; |
561 |
con = 7; |
562 |
} |
563 |
if (global.myfight == 3) |
564 |
{ |
565 |
xx = __view_get(e__VW.XView, 0); |
566 |
yy = __view_get(e__VW.YView, 0); |
567 |
if (acting == 1 && actcon == 0) |
568 |
{ |
569 |
actcon = 1; |
570 |
global.msg[0] = stringsetloc(* DUMMY - AT 0 DF 0 * Cotton heart and button eye * Looks just like a fluffy guy.Wait for inputClose Message"* DUMMY - AT 0 DF 0&* Cotton heart and button eye&* Looks just like a fluffy guy./%", "obj_dummyenemy_slash_Step_0_gml_642_0" ); |
571 |
if (checked == 0) |
572 |
{ |
573 |
global.msg[0] = stringsetloc(* DUMMY - AT 0 DF 0 * Cotton heart and button eye * Looks just like a fluffy guy.Wait for input"* DUMMY - AT 0 DF 0&* Cotton heart and button eye&* Looks just like a fluffy guy./", "obj_dummyenemy_slash_Step_0_gml_645_0" ); |
574 |
scr_ralfacescr_ralfacefunction scr_ralface(arg0, arg1)
{
global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FR \\TR %", string(arg1), "scr_ralface_slash_scr_ralface_gml_1_0");
} (1, 6); |
575 |
global.msg[2] = stringsetloc(* Er,Delay 11 sorry,Delay 11 it kind of looks like me...Wait for input"* Er^1, sorry^1, it kind of looks like me.../", "obj_dummyenemy_slash_Step_0_gml_647_0" ); |
576 |
global.msg[3] = stringsetloc(Face 1* I've been alone,Delay 11 so I didn't have anyone to model it after...Wait for input"\\E1* I've been alone^1, so I didn't have anyone to model it after.../", "obj_dummyenemy_slash_Step_0_gml_648_0" ); |
577 |
global.msg[4] = stringsetloc(Face 6* Kris,Delay 11 since it's me,Delay 11 please be kind to it,Delay 11 OK?Wait for inputClose Message"\\E6* Kris^1, since it's me^1, please be kind to it^1, OK?/%", "obj_dummyenemy_slash_Step_0_gml_649_0" ); |
578 |
} |
579 |
checked += 1; |
580 |
scr_battletext_default(); |
581 |
} |
582 |
if (acting == 2 && actcon == 0) |
583 |
{ |
584 |
actcon = 10; |
585 |
with (obj_herokris) |
586 |
{ |
587 |
global.faceaction[myself] = 0; |
588 |
state = 0; |
589 |
acttimer = 0; |
590 |
} |
591 |
global.msg[0] = stringsetloc(* You hug the DUMMY.Wait for inputClose Message"* You hug the DUMMY./%", "obj_dummyenemy_slash_Step_0_gml_666_0" ); |
592 |
scr_battletext_default(); |
593 |
} |
594 |
if (actcon == 1 && !instance_exists(obj_writer)) |
595 |
{ |
596 |
global.acting[0] = 0; |
597 |
global.acting[1] = 0; |
598 |
global.acting[2] = 0; |
599 |
actcon = 0; |
600 |
acting = -1; |
601 |
scr_attackphasescr_attackphasefunction scr_attackphase()
{
with (obj_battlecontroller)
{
techwon = 0;
if ( scr_monsterpop() == 0)
techwon = 1;
if (global.chapter == 2 && i_ex(obj_berdlyb_enemy) && obj_berdlyb_enemy.endcon == 1)
techwon = 1;
else if (techwon == 1)
scr_wincombat();
if (techwon == 0)
{
for (__hiti = 0; __hiti < 3; __hiti++)
global.hittarget[__hiti] = 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);
}
}
}
} (); |
602 |
} |
603 |
if (actcon == 10) |
604 |
{ |
605 |
with (global.charinstance[0]) |
606 |
visible = 0; |
607 |
k = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (global.charinstance[0].x, global.charinstance[0].y, spr_kris_hug); |
608 |
with (k) |
609 |
scr_move_to_point_over_time(global.monsterx[0] - 42, global.monstery[0] - 30, 15); |
610 |
actcon = 11; |
611 |
alarm[4] = 25; |
612 |
} |
613 |
if (actcon == 12) |
614 |
{ |
615 |
with (k) |
616 |
image_speed = 0.25; |
617 |
actcon = 13; |
618 |
alarm[4] = 12; |
619 |
} |
620 |
if (actcon == 14) |
621 |
{ |
622 |
with (k) |
623 |
image_speed = 0; |
624 |
actcon = 15; |
625 |
} |
626 |
if (actcon == 15 && !instance_exists(obj_writer)) |
627 |
{ |
628 |
global.flag[205 tutorial_end] = 1; |
629 |
global.typer = 45; |
630 |
global.fc = 2; |
631 |
global.fe = 0; |
632 |
global.msg[0] = stringsetloc(* How caring,Delay 11 Kris!Wait for inputClose Message"* How caring^1, Kris!/%", "obj_dummyenemy_slash_Step_0_gml_711_0" ); |
633 |
if (plot == 5) |
634 |
{ |
635 |
global.msg[0] = stringsetloc(* That's great,Delay 11 Kris!Delay 11 * Just one hug is enough,Delay 11 though!Wait for inputClose Message"* That's great^1, Kris^1!&* Just one hug is enough^1, though!/%", "obj_dummyenemy_slash_Step_0_gml_714_0" ); |
636 |
if (hugtime >= 1) |
637 |
global.msg[0] = stringsetloc(Face 8* Kris,Delay 11 you don't need to hug it anymore.Wait for inputClose Message"\\E8* Kris^1, you don't need to hug it anymore./%", "obj_dummyenemy_slash_Step_0_gml_715_0" ); |
638 |
hugtime += 1; |
639 |
} |
640 |
if (plot == 1) |
641 |
{ |
642 |
global.fe = 3; |
643 |
global.msg[0] = stringsetloc(* Huh...?Delay 11 Kris,Delay 11 you'd rather hug it out than fight?Wait for input"* Huh...^1? Kris^1, you'd rather hug it out than fight?/", "obj_dummyenemy_slash_Step_0_gml_722_0" ); |
644 |
global.msg[1] = stringsetloc(Face 1* ...Wait for input"\\E1* .../", "obj_dummyenemy_slash_Step_0_gml_723_0" ); |
645 |
global.msg[2] = stringsetloc(Face 8* You know what,Delay 11 that's fine!Delay 11 We don't need to fight!Wait for input"\\E8* You know what^1, that's fine^1! We don't need to fight!/", "obj_dummyenemy_slash_Step_0_gml_724_0" ); |
646 |
global.msg[3] = stringsetloc(* OK, next let's try DEFENDING. (\\I1 )Wait for input"* OK, next let's try DEFENDING. (\\I1 )/", "obj_dummyenemy_slash_Step_0_gml_725_0" ); |
647 |
global.msg[4] = stringsetloc(* Simply (\\I1 ),Delay 11 and the enemy's attack will hurt you less...Wait for input"* Simply (\\I1 )^1, and the enemy's attack will hurt you less.../", "obj_dummyenemy_slash_Step_0_gml_726_0" ); |
648 |
global.msg[5] = stringsetloc(* Not only that,Delay 11 but you'll also gather TP!Wait for input"* Not only that^1, but you'll also gather \\cYTP\\cW!/", "obj_dummyenemy_slash_Step_0_gml_727_0" ); |
649 |
global.msg[6] = stringsetloc(* (Watch the orange big bar on the left!Delay 11 I'll explain it next!Wait for inputClose Message"* (Watch the orange big bar on the left^1! I'll explain it next!/%", "obj_dummyenemy_slash_Step_0_gml_728_0" ); |
650 |
plot = 2; |
651 |
if (defendtime >= 1) |
652 |
{ |
653 |
global.msg[3] = stringsetloc(* Kris,Delay 11 if you didn't notice,Delay 11 when you DEFENDED before -Wait for input"* Kris^1, if you didn't notice^1, when you DEFENDED before -/", "obj_dummyenemy_slash_Step_0_gml_733_0" ); |
654 |
global.msg[4] = stringsetloc(* The big orange TP bar on the left filled up a bit!Wait for input"* The big orange TP bar on the left filled up a bit!/", "obj_dummyenemy_slash_Step_0_gml_734_0" ); |
655 |
global.msg[5] = stringsetloc(* How about spending that TP on one of my SPELLs?Wait for input"* How about spending that TP on one of my \\cYSPELLs\\cW?/", "obj_dummyenemy_slash_Step_0_gml_735_0" ); |
656 |
global.msg[6] = stringsetloc(* Because you hit the enemy enough,Delay 11 it got TIRED.Wait for input"* Because you hit the enemy enough^1, it got \\cBTIRED\\cW./", "obj_dummyenemy_slash_Step_0_gml_736_0" ); |
657 |
global.msg[7] = stringsetloc(* Now,Delay 11 if I use my PACIFY spell on it...Wait for input"* Now^1, if I use my \\cYPACIFY\\cW spell on it.../", "obj_dummyenemy_slash_Step_0_gml_737_0" ); |
658 |
global.msg[8] = stringsetloc(* It'll fall asleep,Delay 11 and we'll win peacefully!Wait for inputClose Message"* It'll fall asleep^1, and we'll win peacefully!/%", "obj_dummyenemy_slash_Step_0_gml_738_0" ); |
659 |
plot = 3; |
660 |
} |
661 |
} |
662 |
if (plot == 4) |
663 |
{ |
664 |
global.fe = 8; |
665 |
global.msg[0] = stringsetloc(* Aww,Delay 11 that's great,Delay 11 Kris!Wait for input"* Aww^1, that's great^1, Kris!/", "obj_dummyenemy_slash_Step_0_gml_746_0" ); |
666 |
global.msg[1] = stringsetloc(Face 0* Each enemy has different ACTs that satisfy them.Wait for input"\\E0* Each enemy has different ACTs that satisfy them./", "obj_dummyenemy_slash_Step_0_gml_747_0" ); |
667 |
global.msg[2] = stringsetloc(* When an enemy is satisfied,Delay 11 its name turns YELLOW.Wait for input"* When an enemy is satisfied^1, its name turns \\cYYELLOW\\cW./", "obj_dummyenemy_slash_Step_0_gml_748_0" ); |
668 |
global.msg[3] = stringsetloc(* When that happens,Delay 11 you can defeat it by SPARING (\\I4 ) it!Wait for input"* When that happens^1, you can defeat it by SPARING (\\I4 ) it!/", "obj_dummyenemy_slash_Step_0_gml_749_0" ); |
669 |
global.msg[4] = stringsetloc(* If we SPARE all the enemies we meet,Delay 11 we'll never have to FIGHT!Wait for inputClose Message"* If we \\cYSPARE\\cW all the enemies we meet^1, we'll never have to \\cYFIGHT\\cW!/%", "obj_dummyenemy_slash_Step_0_gml_750_0" ); |
670 |
plot = 5; |
671 |
} |
672 |
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
} (); |
673 |
actcon = 16; |
674 |
} |
675 |
if (actcon == 16 && !instance_exists(obj_writer)) |
676 |
{ |
677 |
with (myface) |
678 |
instance_destroy(); |
679 |
with (k) |
680 |
image_speed = -0.25; |
681 |
actcon = 17; |
682 |
alarm[4] = 12; |
683 |
} |
684 |
if (actcon == 18) |
685 |
{ |
686 |
with (k) |
687 |
image_speed = 0; |
688 |
with (k) |
689 |
scr_move_to_point_over_time(global.charinstance[0].x, global.charinstance[0].y, 15); |
690 |
actcon = 19; |
691 |
alarm[4] = 25; |
692 |
} |
693 |
if (actcon == 20) |
694 |
{ |
695 |
with (k) |
696 |
instance_destroy(); |
697 |
global.mercymod[0] = 100; |
698 |
global.mercymod[1] = 100; |
699 |
global.charinstance[0].visible = 1; |
700 |
actcon = 1; |
701 |
} |
702 |
if (acting == 3 && actcon == 0) |
703 |
{ |
704 |
makekris = 0; |
705 |
with (obj_herokris) |
706 |
{ |
707 |
global.faceaction[myself] = 0; |
708 |
state = 0; |
709 |
acttimer = 0; |
710 |
} |
711 |
with (obj_heroralsei) |
712 |
{ |
713 |
global.faceaction[myself] = 0; |
714 |
state = 0; |
715 |
acttimer = 0; |
716 |
} |
717 |
actcon = 30; |
718 |
global.msg[0] = stringsetloc(* You hug RALSEI.Wait for inputClose Message"* You hug RALSEI./%", "obj_dummyenemy_slash_Step_0_gml_808_0" ); |
719 |
scr_battletext_default(); |
720 |
} |
721 |
if (actcon == 30) |
722 |
{ |
723 |
makekris = 1; |
724 |
maker = 0; |
725 |
with (global.charinstance[0]) |
726 |
visible = 0; |
727 |
k = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (global.charinstance[0].x, global.charinstance[0].y, spr_kris_hug); |
728 |
with (k) |
729 |
scr_move_to_point_over_time(obj_heroralsei.x - 24, obj_heroralsei.y + 10, 15); |
730 |
actcon = 31; |
731 |
alarm[4] = 25; |
732 |
} |
733 |
if (actcon == 32) |
734 |
{ |
735 |
maker = 1; |
736 |
with (obj_heroralsei) |
737 |
visible = 0; |
738 |
rb = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (obj_heroralsei.x, obj_heroralsei.y, spr_ralseil_blush); |
739 |
with (k) |
740 |
image_speed = 0.25; |
741 |
actcon = 33; |
742 |
alarm[4] = 12; |
743 |
} |
744 |
if (actcon == 34) |
745 |
{ |
746 |
with (k) |
747 |
image_speed = 0; |
748 |
actcon = 35; |
749 |
} |
750 |
if (actcon == 35 && !instance_exists(obj_writer)) |
751 |
{ |
752 |
global.typer = 45; |
753 |
global.fc = 2; |
754 |
global.fe = 2; |
755 |
global.msg[0] = stringsetloc(* K...Delay 11 Kris!?Wait for inputClose Message"* K..^1. Kris!?/%", "obj_dummyenemy_slash_Step_0_gml_846_0" ); |
756 |
if (r_hugtime == 0) |
757 |
{ |
758 |
global.msg[0] = stringsetloc(* K...Delay 11 Kris!?Wait for input"* K..^1. Kris!?/", "obj_dummyenemy_slash_Step_0_gml_850_0" ); |
759 |
global.msg[1] = stringsetloc(Face 8* Ummm,Delay 11 I don't think,Delay 11 um...Wait for input"\\E8* Ummm^1, I don't think^1, um.../", "obj_dummyenemy_slash_Step_0_gml_851_0" ); |
760 |
global.msg[2] = stringsetloc(* This is what you're supposed to be doing.Wait for input"* This is what you're supposed to be doing./", "obj_dummyenemy_slash_Step_0_gml_852_0" ); |
761 |
global.msg[3] = stringsetloc(Face 2* ... but...Wait for inputClose Message"\\E2* ... but.../%", "obj_dummyenemy_slash_Step_0_gml_853_0" ); |
762 |
} |
763 |
if (r_hugtime == 1) |
764 |
{ |
765 |
global.msg[0] = stringsetloc(* Kris...?Wait for input"* Kris...?/", "obj_dummyenemy_slash_Step_0_gml_858_0" ); |
766 |
global.msg[1] = stringsetloc(Face 2* Are you trying,Delay 11 to,Delay 11 um...Wait for input"\\E2* Are you trying^1, to^1, um.../", "obj_dummyenemy_slash_Step_0_gml_859_0" ); |
767 |
global.msg[2] = stringsetloc(Face 6* Ask me to give you a tutorial on hugging...?Wait for inputClose Message"\\E6* Ask me to give you a tutorial on hugging...?/%", "obj_dummyenemy_slash_Step_0_gml_860_0" ); |
768 |
} |
769 |
if (r_hugtime == 2) |
770 |
{ |
771 |
global.msg[0] = stringsetloc(* Ummm,Delay 11 I've never hugged anyone before...Wait for input"* Ummm^1, I've never hugged anyone before.../", "obj_dummyenemy_slash_Step_0_gml_868_0" ); |
772 |
global.msg[1] = stringsetloc(Face 1* (Besides the dummy,Delay 11 to test it out,)Wait for input"\\E1* (Besides the dummy^1, to test it out,)/", "obj_dummyenemy_slash_Step_0_gml_869_0" ); |
773 |
global.msg[2] = stringsetloc(Face 2* So I don't know anything about it,Delay 11 sorry...Wait for input"\\E2* So I don't know anything about it^1, sorry.../", "obj_dummyenemy_slash_Step_0_gml_870_0" ); |
774 |
global.msg[3] = stringsetloc(Face 7* I suppose you're the one teaching me,Delay 11 haha!Wait for inputClose Message"\\E7* I suppose you're the one teaching me^1, haha!/%", "obj_dummyenemy_slash_Step_0_gml_871_0" ); |
775 |
} |
776 |
if (r_hugtime >= 3) |
777 |
global.msg[0] = stringsetloc(Face 2* ...Wait for inputClose Message"\\E2* .../%", "obj_dummyenemy_slash_Step_0_gml_876_0" ); |
778 |
r_hugtime += 1; |
779 |
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
} (); |
780 |
actcon = 36; |
781 |
} |
782 |
if (actcon == 36 && !instance_exists(obj_writer)) |
783 |
{ |
784 |
with (myface) |
785 |
instance_destroy(); |
786 |
with (k) |
787 |
image_speed = -0.25; |
788 |
actcon = 37; |
789 |
alarm[4] = 12; |
790 |
} |
791 |
if (actcon == 38) |
792 |
{ |
793 |
with (k) |
794 |
image_speed = 0; |
795 |
with (k) |
796 |
scr_move_to_point_over_time(global.charinstance[0].x, global.charinstance[0].y, 15); |
797 |
actcon = 39; |
798 |
alarm[4] = 25; |
799 |
} |
800 |
if (actcon == 40) |
801 |
{ |
802 |
makekris = 0; |
803 |
maker = 0; |
804 |
with (rb) |
805 |
instance_destroy(); |
806 |
with (obj_heroralsei) |
807 |
visible = 1; |
808 |
with (k) |
809 |
instance_destroy(); |
810 |
global.charinstance[0].visible = 1; |
811 |
actcon = 1; |
812 |
} |
813 |
if (actcon >= 30 && actcon < 40) |
814 |
{ |
815 |
if (makekris == 1) |
816 |
{ |
817 |
with (k) |
818 |
scr_depth(); |
819 |
with (k) |
820 |
depth -= 100000; |
821 |
} |
822 |
if (maker == 1) |
823 |
{ |
824 |
with (rb) |
825 |
scr_depth(); |
826 |
with (rb) |
827 |
depth -= 100000; |
828 |
} |
829 |
} |
830 |
} |
831 |
if (instance_exists(obj_battlecontroller) == false) |
832 |
instance_destroy(); |
833 |
|
834 |
enum e__VW |
835 |
{ |
836 |
XView, |
837 |
YView, |
838 |
WView, |
839 |
HView, |
840 |
Angle, |
841 |
HBorder, |
842 |
VBorder, |
843 |
HSpeed, |
844 |
VSpeed, |
845 |
Object, |
846 |
Visible, |
847 |
XPort, |
848 |
YPort, |
849 |
WPort, |
850 |
HPort, |
851 |
Camera, |
852 |
SurfaceID |
853 |
} |