| 1 |
function scr_recreate_heart_battle_menu_text_axisscr_recreate_heart_battle_menu_text_axisfunction scr_recreate_heart_battle_menu_text_axis()
{
var last_text_move_select = global.last_text_move_select;
if (text_deadlock_1 == true)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1);
}
else if (last_text_move_select == 0)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_intro);
text_deadlock_contents_1 = 3004;
text_deadlock_1 = true;
}
else if (global.special_action_count >= 8)
{
if (global.enemy_sparing)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing);
text_deadlock_contents_1 = 3030;
text_deadlock_1 = true;
}
else if (global.route == 2 || (global.route == 1 && global.action_1_selected_count == 0))
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special);
text_deadlock_contents_1 = 3009;
text_deadlock_1 = true;
}
else if (global.action_1_selected_count == 1)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special_v2);
text_deadlock_contents_1 = 3010;
text_deadlock_1 = true;
}
else if (global.action_1_selected_count == 2)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special_v3);
text_deadlock_contents_1 = 3011;
text_deadlock_1 = true;
}
}
else
{
var random_text_move_select = irandom_range(1, 9);
if (random_text_move_select == 1)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1);
text_deadlock_contents_1 = 3020;
text_deadlock_1 = true;
}
else if (random_text_move_select == 2)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2);
text_deadlock_contents_1 = 3021;
text_deadlock_1 = true;
}
else if (random_text_move_select == 3)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3);
text_deadlock_contents_1 = 3022;
text_deadlock_1 = true;
}
else if (random_text_move_select == 4)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4);
text_deadlock_contents_1 = 3023;
text_deadlock_1 = true;
}
else if (random_text_move_select == 5)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5);
text_deadlock_contents_1 = 3024;
text_deadlock_1 = true;
}
else if (random_text_move_select == 6)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6);
text_deadlock_contents_1 = 3025;
text_deadlock_1 = true;
}
else if (random_text_move_select == 7)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_7);
text_deadlock_contents_1 = 3026;
text_deadlock_1 = true;
}
else if (random_text_move_select == 8)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_8);
text_deadlock_contents_1 = 3028;
text_deadlock_1 = true;
}
else if (random_text_move_select == 9)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_9);
text_deadlock_contents_1 = 3029;
text_deadlock_1 = true;
}
}
} () |
| 2 |
{ |
| 3 |
var last_text_move_select = global.last_text_move_select; |
| 4 |
if (text_deadlock_1 == true) |
| 5 |
{ |
| 6 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1); |
| 7 |
} |
| 8 |
else if (last_text_move_select == 0) |
| 9 |
{ |
| 10 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_intro); |
| 11 |
text_deadlock_contents_1 = 3004; |
| 12 |
text_deadlock_1 = true; |
| 13 |
} |
| 14 |
else if (global.special_action_count >= 8) |
| 15 |
{ |
| 16 |
if (global.enemy_sparing) |
| 17 |
{ |
| 18 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing); |
| 19 |
text_deadlock_contents_1 = 3030; |
| 20 |
text_deadlock_1 = true; |
| 21 |
} |
| 22 |
else if (global.route == 2 || (global.route == 1 && global.action_1_selected_count == 0)) |
| 23 |
{ |
| 24 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special); |
| 25 |
text_deadlock_contents_1 = 3009; |
| 26 |
text_deadlock_1 = true; |
| 27 |
} |
| 28 |
else if (global.action_1_selected_count == 1) |
| 29 |
{ |
| 30 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special_v2); |
| 31 |
text_deadlock_contents_1 = 3010; |
| 32 |
text_deadlock_1 = true; |
| 33 |
} |
| 34 |
else if (global.action_1_selected_count == 2) |
| 35 |
{ |
| 36 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special_v3); |
| 37 |
text_deadlock_contents_1 = 3011; |
| 38 |
text_deadlock_1 = true; |
| 39 |
} |
| 40 |
} |
| 41 |
else |
| 42 |
{ |
| 43 |
var random_text_move_select = irandom_range(1, 9); |
| 44 |
if (random_text_move_select == 1) |
| 45 |
{ |
| 46 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
| 47 |
text_deadlock_contents_1 = 3020; |
| 48 |
text_deadlock_1 = true; |
| 49 |
} |
| 50 |
else if (random_text_move_select == 2) |
| 51 |
{ |
| 52 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
| 53 |
text_deadlock_contents_1 = 3021; |
| 54 |
text_deadlock_1 = true; |
| 55 |
} |
| 56 |
else if (random_text_move_select == 3) |
| 57 |
{ |
| 58 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
| 59 |
text_deadlock_contents_1 = 3022; |
| 60 |
text_deadlock_1 = true; |
| 61 |
} |
| 62 |
else if (random_text_move_select == 4) |
| 63 |
{ |
| 64 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4); |
| 65 |
text_deadlock_contents_1 = 3023; |
| 66 |
text_deadlock_1 = true; |
| 67 |
} |
| 68 |
else if (random_text_move_select == 5) |
| 69 |
{ |
| 70 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5); |
| 71 |
text_deadlock_contents_1 = 3024; |
| 72 |
text_deadlock_1 = true; |
| 73 |
} |
| 74 |
else if (random_text_move_select == 6) |
| 75 |
{ |
| 76 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6); |
| 77 |
text_deadlock_contents_1 = 3025; |
| 78 |
text_deadlock_1 = true; |
| 79 |
} |
| 80 |
else if (random_text_move_select == 7) |
| 81 |
{ |
| 82 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_7); |
| 83 |
text_deadlock_contents_1 = 3026; |
| 84 |
text_deadlock_1 = true; |
| 85 |
} |
| 86 |
else if (random_text_move_select == 8) |
| 87 |
{ |
| 88 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_8); |
| 89 |
text_deadlock_contents_1 = 3028; |
| 90 |
text_deadlock_1 = true; |
| 91 |
} |
| 92 |
else if (random_text_move_select == 9) |
| 93 |
{ |
| 94 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_9); |
| 95 |
text_deadlock_contents_1 = 3029; |
| 96 |
text_deadlock_1 = true; |
| 97 |
} |
| 98 |
} |
| 99 |
} |