1 |
function scr_battle_core_directory_action_2_namescr_battle_core_directory_action_2_namefunction scr_battle_core_directory_action_2_name(argument0, argument1) //gml_Script_scr_battle_core_directory_action_2_name
{
if (global.battling_boss == true)
{
var battle_enemy_name = global.battle_enemy_name
if (global.action_2_important == true)
draw_set_color(global.action_2_color)
else
draw_set_color(c_white)
}
else
{
var act_number = global.act_number
switch act_number
{
case 1:
battle_enemy_name = global.battle_enemy_name_1
if (global.action_2_important == true)
draw_set_color(global.action_2_color)
else
draw_set_color(c_white)
break
case 2:
battle_enemy_name = global.battle_enemy_name_2
if (global.action_2_important_2 == true)
draw_set_color(global.action_2_color_2)
else
draw_set_color(c_white)
break
case 3:
battle_enemy_name = global.battle_enemy_name_3
if (global.action_2_important_3 == true)
draw_set_color(global.action_2_color_3)
else
draw_set_color(c_white)
break
default:
battle_enemy_name = global.battle_enemy_name_1
if (global.action_2_important == true)
{
draw_set_color(global.action_2_color)
break
}
else
draw_set_color(c_white)
}
}
var game_mode = global.game_mode
if (game_mode == "customs")
{
if (battle_enemy_name == "craniex")
{
battle_menu_option_x = obj_dialogue_box_battle.x + argument0
battle_menu_option_y = obj_dialogue_box_battle.y + argument1
battle_menu_option_string = "* Insult"
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
}
else if (battle_enemy_name == "ms mettaton")
{
var turns_passed = global.turns_passed
if (turns_passed > 4)
{
battle_menu_option_x = obj_dialogue_box_battle.x + argument0
battle_menu_option_y = obj_dialogue_box_battle.y + argument1
battle_menu_option_string = "* Ogle"
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
}
}
}
else if (game_mode == "yellow")
{
if (battle_enemy_name == "froggit intro")
{
battle_menu_option_x = obj_dialogue_box_battle.x + argument0
battle_menu_option_y = obj_dialogue_box_battle.y + argument1
battle_menu_option_string = "* Threat"
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
}
else if (battle_enemy_name == "flier a" || battle_enemy_name == "flier b" || battle_enemy_name == "flier c")
{
battle_menu_option_x = obj_dialogue_box_battle.x + argument0
battle_menu_option_y = obj_dialogue_box_battle.y + argument1
battle_menu_option_string = "* Compliment"
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
}
else if (battle_enemy_name == "penilla a" || battle_enemy_name == "penilla b")
{
battle_menu_option_x = obj_dialogue_box_battle.x + argument0
battle_menu_option_y = obj_dialogue_box_battle.y + argument1
battle_menu_option_string = "* Distract"
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
}
else if (battle_enemy_name == "sweet corn a" || battle_enemy_name == "sweet corn b")
{
battle_menu_option_x = obj_dialogue_box_battle.x + argument0
battle_menu_option_y = obj_dialogue_box_battle.y + argument1
battle_menu_option_string = "* Hug"
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
}
else if (battle_enemy_name == "crispy scroll a")
... (argument0, argument1) //gml_Script_scr_battle_core_directory_action_2_name |
2 |
{ |
3 |
if (global.battling_boss == true) |
4 |
{ |
5 |
var battle_enemy_name = global.battle_enemy_name |
6 |
if (global.action_2_important == true) |
7 |
draw_set_color(global.action_2_color) |
8 |
else |
9 |
draw_set_color(c_white) |
10 |
} |
11 |
else |
12 |
{ |
13 |
var act_number = global.act_number |
14 |
switch act_number |
15 |
{ |
16 |
case 1: |
17 |
battle_enemy_name = global.battle_enemy_name_1 |
18 |
if (global.action_2_important == true) |
19 |
draw_set_color(global.action_2_color) |
20 |
else |
21 |
draw_set_color(c_white) |
22 |
break |
23 |
case 2: |
24 |
battle_enemy_name = global.battle_enemy_name_2 |
25 |
if (global.action_2_important_2 == true) |
26 |
draw_set_color(global.action_2_color_2) |
27 |
else |
28 |
draw_set_color(c_white) |
29 |
break |
30 |
case 3: |
31 |
battle_enemy_name = global.battle_enemy_name_3 |
32 |
if (global.action_2_important_3 == true) |
33 |
draw_set_color(global.action_2_color_3) |
34 |
else |
35 |
draw_set_color(c_white) |
36 |
break |
37 |
default: |
38 |
battle_enemy_name = global.battle_enemy_name_1 |
39 |
if (global.action_2_important == true) |
40 |
{ |
41 |
draw_set_color(global.action_2_color) |
42 |
break |
43 |
} |
44 |
else |
45 |
draw_set_color(c_white) |
46 |
} |
47 |
|
48 |
} |
49 |
var game_mode = global.game_mode |
50 |
if (game_mode == "customs") |
51 |
{ |
52 |
if (battle_enemy_name == "craniex") |
53 |
{ |
54 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
55 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
56 |
battle_menu_option_string = "* Insult" |
57 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
58 |
} |
59 |
else if (battle_enemy_name == "ms mettaton") |
60 |
{ |
61 |
var turns_passed = global.turns_passed |
62 |
if (turns_passed > 4) |
63 |
{ |
64 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
65 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
66 |
battle_menu_option_string = "* Ogle" |
67 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
68 |
} |
69 |
} |
70 |
} |
71 |
else if (game_mode == "yellow") |
72 |
{ |
73 |
if (battle_enemy_name == "froggit intro") |
74 |
{ |
75 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
76 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
77 |
battle_menu_option_string = "* Threat" |
78 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
79 |
} |
80 |
else if (battle_enemy_name == "flier a" || battle_enemy_name == "flier b" || battle_enemy_name == "flier c") |
81 |
{ |
82 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
83 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
84 |
battle_menu_option_string = "* Compliment" |
85 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
86 |
} |
87 |
else if (battle_enemy_name == "penilla a" || battle_enemy_name == "penilla b") |
88 |
{ |
89 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
90 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
91 |
battle_menu_option_string = "* Distract" |
92 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
93 |
} |
94 |
else if (battle_enemy_name == "sweet corn a" || battle_enemy_name == "sweet corn b") |
95 |
{ |
96 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
97 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
98 |
battle_menu_option_string = "* Hug" |
99 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
100 |
} |
101 |
else if (battle_enemy_name == "crispy scroll a") |
102 |
{ |
103 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
104 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
105 |
battle_menu_option_string = "* Yell" |
106 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
107 |
} |
108 |
else if (battle_enemy_name == "rorrim a") |
109 |
{ |
110 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
111 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
112 |
battle_menu_option_string = "* Critique" |
113 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
114 |
} |
115 |
else if (battle_enemy_name == "decibat") |
116 |
{ |
117 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
118 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
119 |
battle_menu_option_string = "* Watch" |
120 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
121 |
} |
122 |
else if (battle_enemy_name == "dalv") |
123 |
{ |
124 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
125 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
126 |
battle_menu_option_string = "* Handshake" |
127 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
128 |
} |
129 |
else if (battle_enemy_name == "micro froggit") |
130 |
{ |
131 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
132 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
133 |
battle_menu_option_string = "* Threaten" |
134 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
135 |
} |
136 |
else if (battle_enemy_name == "insomnitot a" || battle_enemy_name == "insomnitot b") |
137 |
{ |
138 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
139 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
140 |
battle_menu_option_string = "* Lecture" |
141 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
142 |
} |
143 |
else if (battle_enemy_name == "know cone a" || battle_enemy_name == "know cone b") |
144 |
{ |
145 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
146 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
147 |
battle_menu_option_string = "* Educate" |
148 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
149 |
} |
150 |
else if (battle_enemy_name == "frostermit a") |
151 |
{ |
152 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
153 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
154 |
battle_menu_option_string = "* Dance" |
155 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
156 |
} |
157 |
else if (battle_enemy_name == "trihecta") |
158 |
{ |
159 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
160 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
161 |
battle_menu_option_string = "* Pull" |
162 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
163 |
} |
164 |
else if (battle_enemy_name == "martlet pacifist") |
165 |
{ |
166 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
167 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
168 |
battle_menu_option_string = "* Ignore" |
169 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
170 |
} |
171 |
else if (battle_enemy_name == "martlet genocide") |
172 |
{ |
173 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
174 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
175 |
battle_menu_option_string = "* Ignore" |
176 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
177 |
} |
178 |
else if (battle_enemy_name == "martlet genocide final") |
179 |
{ |
180 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
181 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
182 |
battle_menu_option_string = "* Endure" |
183 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
184 |
} |
185 |
else if (battle_enemy_name == "dunebud a" || battle_enemy_name == "dunebud b") |
186 |
{ |
187 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
188 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
189 |
battle_menu_option_string = "* Jiggle" |
190 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
191 |
} |
192 |
else if (battle_enemy_name == "cactony a") |
193 |
{ |
194 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
195 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
196 |
battle_menu_option_string = "* Avoid" |
197 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
198 |
} |
199 |
else if (battle_enemy_name == "slither a" || battle_enemy_name == "slither b") |
200 |
{ |
201 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
202 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
203 |
battle_menu_option_string = "* Believe" |
204 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
205 |
} |
206 |
else if (battle_enemy_name == "bowll a") |
207 |
{ |
208 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
209 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
210 |
battle_menu_option_string = "* Taunt" |
211 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
212 |
} |
213 |
else if (battle_enemy_name == "el bailador") |
214 |
{ |
215 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
216 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
217 |
battle_menu_option_string = "* Smile" |
218 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
219 |
} |
220 |
else if (battle_enemy_name == "flower girls") |
221 |
{ |
222 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
223 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
224 |
switch global.dunes_flag[31] |
225 |
{ |
226 |
case 1: |
227 |
battle_menu_option_string = "* Encourage" |
228 |
break |
229 |
case 2: |
230 |
battle_menu_option_string = "* Flatter" |
231 |
break |
232 |
case 3: |
233 |
battle_menu_option_string = "* Inquire" |
234 |
break |
235 |
} |
236 |
|
237 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
238 |
} |
239 |
else if (battle_enemy_name == "ceroba genocide") |
240 |
{ |
241 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
242 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
243 |
battle_menu_option_string = "* Calm" |
244 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
245 |
} |
246 |
else if (battle_enemy_name == "starlo") |
247 |
{ |
248 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
249 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
250 |
battle_menu_option_string = "* Glare" |
251 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
252 |
} |
253 |
else if (battle_enemy_name == "ed" || battle_enemy_name == "moray" || battle_enemy_name == "ace" || battle_enemy_name == "mooch") |
254 |
{ |
255 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
256 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
257 |
battle_menu_option_string = "* Distract" |
258 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
259 |
} |
260 |
else if (battle_enemy_name == "tellyvis a") |
261 |
{ |
262 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
263 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
264 |
battle_menu_option_string = "* Nap" |
265 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
266 |
} |
267 |
else if (battle_enemy_name == "jandroid a" || battle_enemy_name == "jandroid b") |
268 |
{ |
269 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
270 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
271 |
battle_menu_option_string = "* Clean" |
272 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
273 |
} |
274 |
else if (battle_enemy_name == "goosic a" || battle_enemy_name == "goosic b") |
275 |
{ |
276 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
277 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
278 |
battle_menu_option_string = "* Ignore" |
279 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
280 |
} |
281 |
else if (battle_enemy_name == "sousborg") |
282 |
{ |
283 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
284 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
285 |
switch global.enemy_mode |
286 |
{ |
287 |
case 0: |
288 |
battle_menu_option_string = "* Criticize" |
289 |
break |
290 |
case 1: |
291 |
battle_menu_option_string = "* Fry" |
292 |
break |
293 |
case 2: |
294 |
battle_menu_option_string = "* Pet" |
295 |
break |
296 |
} |
297 |
|
298 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
299 |
} |
300 |
else if (battle_enemy_name == "axis") |
301 |
{ |
302 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
303 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
304 |
battle_menu_option_string = "* Scrutinize" |
305 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
306 |
} |
307 |
else if (battle_enemy_name == "axis genocide") |
308 |
{ |
309 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
310 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
311 |
battle_menu_option_string = "* Taunt" |
312 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
313 |
} |
314 |
else if (battle_enemy_name == "macro froggit") |
315 |
{ |
316 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
317 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
318 |
if (global.turns_passed == 0) |
319 |
battle_menu_option_string = "* Threaten" |
320 |
else |
321 |
battle_menu_option_string = "* Frog" |
322 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
323 |
} |
324 |
else if (battle_enemy_name == "guardener") |
325 |
{ |
326 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
327 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
328 |
battle_menu_option_string = "* Plead" |
329 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
330 |
} |
331 |
else if (battle_enemy_name == "flowey") |
332 |
{ |
333 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
334 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
335 |
switch global.flowey_act[1] |
336 |
{ |
337 |
case 0: |
338 |
battle_menu_option_string = "* Frown" |
339 |
break |
340 |
case 1: |
341 |
battle_menu_option_string = "* Plead" |
342 |
break |
343 |
case 2: |
344 |
battle_menu_option_string = "* Weep" |
345 |
break |
346 |
case 3: |
347 |
battle_menu_option_string = "* Whisper" |
348 |
break |
349 |
case 4: |
350 |
battle_menu_option_string = "* Hope" |
351 |
break |
352 |
} |
353 |
|
354 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
355 |
} |
356 |
else if (battle_enemy_name == "ceroba") |
357 |
{ |
358 |
battle_menu_option_x = obj_dialogue_box_battle.x + argument0 |
359 |
battle_menu_option_y = obj_dialogue_box_battle.y + argument1 |
360 |
switch global.hotland_flag[2] |
361 |
{ |
362 |
case 0: |
363 |
battle_menu_option_string = "* Calm" |
364 |
break |
365 |
default: |
366 |
battle_menu_option_string = "* Endure" |
367 |
break |
368 |
} |
369 |
|
370 |
script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) |
371 |
} |
372 |
} |
373 |
} |