1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
if (instance_exists(obj_heart_battle_menu_fight_fake_martlet)) |
4 |
{ |
5 |
draw_set_font(global.font_type_text); |
6 |
draw_set_color(c_white); |
7 |
draw_set_halign(fa_left); |
8 |
draw_set_valign(fa_top); |
9 |
scr_battle_core_directory_enemy_1_namescr_battle_core_directory_enemy_1_namefunction scr_battle_core_directory_enemy_1_name(arg0, arg1)
{
var battle_enemy_name = global.battle_enemy_name;
var game_mode = global.game_mode;
if (game_mode == "customs")
{
if (battle_enemy_name == "craniex")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Craniex";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (battle_enemy_name == "ms mettaton")
{
var ms_mettaton_transformed = global.ms_mettaton_transformed;
if (ms_mettaton_transformed == false)
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Ms. Mettaton";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (ms_mettaton_transformed == true)
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Ms. Mettaton EX";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
}
}
else if (game_mode == "yellow")
{
if (battle_enemy_name == "froggit intro")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Froggit";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (battle_enemy_name == "flier solo")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Flier";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (battle_enemy_name == "flier trio")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Flier A";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (battle_enemy_name == "penilla solo")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Penilla";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (battle_enemy_name == "flier penilla duo")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Flier";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (battle_enemy_name == "sweet corn solo")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Sweet Corn";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (battle_enemy_name == "sweet corn duo")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Sweet Corn A";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
else if (battle_enemy_name == "sweet corn penilla duo")
{
battle_menu_option_x = obj_dialogue_box_battle.x + arg0;
battle_menu_option_y = obj_dialogue_box_battle.y + arg1;
battle_menu_option_string = "* Sweet Corn";
script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string));
}
... (68, 20); |
10 |
} |
11 |
draw_set_alpha(draw_alpha_white); |
12 |
draw_set_color(c_white); |
13 |
draw_rectangle(0, 0, 640, 480, false); |
14 |
draw_set_alpha(1); |
15 |
draw_set_alpha(save_message_alpha); |
16 |
draw_set_font(fnt_main_battle); |
17 |
draw_text(20, 20, save_message); |
18 |
draw_set_alpha(1); |
19 |
if (draw_enabled == false) |
20 |
exit; |
21 |
draw_set_font(fnt_dotumche); |
22 |
draw_set_color(c_black); |
23 |
draw_set_halign(fa_left); |
24 |
draw_set_valign(fa_top); |
25 |
var x_offset = 21; |
26 |
if (text_effect == "twitchy") |
27 |
scr_draw_text_effect_twitchy_quotebubble_battlescr_draw_text_effect_twitchy_quotebubble_battlefunction scr_draw_text_effect_twitchy_quotebubble_battle(arg0, arg1, arg2)
{
var twitchy_text_probability = global.twitchy_text_probability;
var twitchy_text_intensity = global.twitchy_text_intensity;
str_indent = "";
str_indent_count = 0;
str_offset = -string_width(string_hash_to_newline(string_copy("A", 1, 1)));
for (var i = 1; i <= characters; i += 1)
{
twitchy_text_offset_x = 0;
twitchy_text_offset_y = 0;
twitchy_text_number = irandom_range(1, twitchy_text_probability);
if (twitchy_text_number == twitchy_text_probability)
{
twitch_direction = irandom_range(1, 4);
switch (twitch_direction)
{
case 1:
twitchy_text_offset_x = 1;
twitchy_text_offset_y = 0;
break;
case 2:
twitchy_text_offset_x = -1;
twitchy_text_offset_y = 0;
break;
case 3:
twitchy_text_offset_x = 0;
twitchy_text_offset_y = 1;
break;
case 4:
twitchy_text_offset_x = 0;
twitchy_text_offset_y = -1;
break;
}
}
str_char = string_char_at(arg0, i);
if (str_char == "#")
{
str_indent_count += 1;
if (str_indent_count == 1)
str_indent = "#";
else if (str_indent_count == 2)
str_indent = "##";
else if (str_indent_count == 3)
str_indent = "###";
else if (str_indent_count == 4)
str_indent = "####";
str_offset = -string_width(string_hash_to_newline(string_copy("A", 1, 1))) * 2;
}
str_offset += string_width(string_hash_to_newline(string_copy("A", 1, 1)));
if (string_lettersdigits(str_char) == "")
draw_text(arg1 + str_offset, arg2, string_hash_to_newline(str_indent + str_char));
else
draw_text(arg1 + str_offset + (twitchy_text_offset_x * twitchy_text_intensity), arg2 + (twitchy_text_offset_y * twitchy_text_intensity), string_hash_to_newline(str_indent + str_char));
}
} (message[message_current], obj_quote_bubble_battle.x + x_offset, obj_quote_bubble_battle.y + 9); |
28 |
else if (text_effect == "circle") |
29 |
scr_draw_text_effect_circle_quotebubble_battlescr_draw_text_effect_circle_quotebubble_battlefunction scr_draw_text_effect_circle_quotebubble_battle(arg0, arg1, arg2)
{
var circle_text_angle_increase = 0;
var circle_text_radius = global.circle_text_radius;
var circle_text_speed = global.circle_text_speed;
str_indent = "";
str_indent_count = 0;
str_offset = -string_width(string_hash_to_newline(string_copy("A", 1, 1)));
for (var i = 1; i <= characters; i += 1)
{
str_char = string_char_at(arg0, i);
if (str_char == "#")
{
str_indent_count += 1;
if (str_indent_count == 1)
str_indent = "#";
else if (str_indent_count == 2)
str_indent = "##";
else if (str_indent_count == 3)
str_indent = "###";
else if (str_indent_count == 4)
str_indent = "####";
str_offset = -string_width(string_hash_to_newline(string_copy("A", 1, 1))) * 2;
}
str_offset += string_width(string_hash_to_newline(string_copy("A", 1, 1)));
draw_text(arg1 + str_offset + (circle_text_radius * cos((circle_text_angle + circle_text_angle_increase) * circle_text_angle_direction * 0.008726646259971648)), arg2 - (circle_text_radius * sin((circle_text_angle + circle_text_angle_increase) * circle_text_angle_direction * 0.008726646259971648)), string_hash_to_newline(str_indent + str_char));
circle_text_angle_increase += circle_text_speed;
}
circle_text_angle += circle_text_speed;
} (message[message_current], obj_quote_bubble_battle.x + x_offset, obj_quote_bubble_battle.y + 9); |