| 1 |
function scr_recreate_heart_battle_menu_text_trihecta_separatedscr_recreate_heart_battle_menu_text_trihecta_separatedfunction scr_recreate_heart_battle_menu_text_trihecta_separated()
{
var last_text_move_select = global.last_text_move_select;
var heart_position = script_execute(scr_return_heart_battle_menu_position);
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.enemy_low_hp == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) || (global.enemy_low_hp_3 == true && global.enemy_dead_3 == false && global.enemy_spared_3 == false))
{
var random_number = irandom_range(1, 3);
if (random_number == 1)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1);
text_deadlock_contents_1 = 3016;
}
else if (random_number == 2)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1_v2);
text_deadlock_contents_1 = 3018;
}
else if (random_number == 3)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1_v3);
text_deadlock_contents_1 = 3019;
}
text_deadlock_1 = true;
}
else
{
var random_number = irandom_range(1 + sign(global.enemy_dead + global.enemy_spared), 3 - sign(global.enemy_dead_3 + global.enemy_spared_3));
if (random_number == 2 && (global.enemy_dead_2 == true || global.enemy_spared_2 == true))
{
random_number = irandom_range(1 + sign(global.enemy_dead + global.enemy_spared), 2 - sign(global.enemy_dead_3 + global.enemy_spared_3));
if (random_number == 2)
random_number = 3;
}
var random_text_move_select;
if (random_number == 1)
{
if ((global.enemy_dead_2 + global.enemy_spared_2 + global.enemy_dead_3 + global.enemy_spared_3) < 2)
random_text_move_select = irandom_range(1, 3);
else
random_text_move_select = irandom_range(1, 2);
}
else if (random_number == 2)
{
if ((global.enemy_dead + global.enemy_spared + global.enemy_dead_3 + global.enemy_spared_3) < 2)
random_text_move_select = irandom_range(1, 3);
else
random_text_move_select = irandom_range(1, 2);
}
else if (random_number == 3)
{
if ((global.enemy_dead + global.enemy_spared + global.enemy_dead_2 + global.enemy_spared_2) < 2)
random_text_move_select = irandom_range(1, 3);
else
random_text_move_select = irandom_range(1, 2);
}
if (random_number == 1)
{
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_number == 2)
{
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_v2);
text_deadlock_contents_1 = 3039;
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_v2);
text_deadlock_contents_1 = 3040;
text_deadlock_1 = true;
}
else if (random_text_move_select == 3)
... () |
| 2 |
{ |
| 3 |
var last_text_move_select = global.last_text_move_select; |
| 4 |
var heart_position = script_execute(scr_return_heart_battle_menu_position); |
| 5 |
if (text_deadlock_1 == true) |
| 6 |
{ |
| 7 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1); |
| 8 |
} |
| 9 |
else if (last_text_move_select == 0) |
| 10 |
{ |
| 11 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_intro); |
| 12 |
text_deadlock_contents_1 = 3004; |
| 13 |
text_deadlock_1 = true; |
| 14 |
} |
| 15 |
else if ((global.enemy_low_hp == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) || (global.enemy_low_hp_3 == true && global.enemy_dead_3 == false && global.enemy_spared_3 == false)) |
| 16 |
{ |
| 17 |
var random_number = irandom_range(1, 3); |
| 18 |
if (random_number == 1) |
| 19 |
{ |
| 20 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1); |
| 21 |
text_deadlock_contents_1 = 3016; |
| 22 |
} |
| 23 |
else if (random_number == 2) |
| 24 |
{ |
| 25 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1_v2); |
| 26 |
text_deadlock_contents_1 = 3018; |
| 27 |
} |
| 28 |
else if (random_number == 3) |
| 29 |
{ |
| 30 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1_v3); |
| 31 |
text_deadlock_contents_1 = 3019; |
| 32 |
} |
| 33 |
text_deadlock_1 = true; |
| 34 |
} |
| 35 |
else |
| 36 |
{ |
| 37 |
var random_number = irandom_range(1 + sign(global.enemy_dead + global.enemy_spared), 3 - sign(global.enemy_dead_3 + global.enemy_spared_3)); |
| 38 |
if (random_number == 2 && (global.enemy_dead_2 == true || global.enemy_spared_2 == true)) |
| 39 |
{ |
| 40 |
random_number = irandom_range(1 + sign(global.enemy_dead + global.enemy_spared), 2 - sign(global.enemy_dead_3 + global.enemy_spared_3)); |
| 41 |
if (random_number == 2) |
| 42 |
random_number = 3; |
| 43 |
} |
| 44 |
var random_text_move_select; |
| 45 |
if (random_number == 1) |
| 46 |
{ |
| 47 |
if ((global.enemy_dead_2 + global.enemy_spared_2 + global.enemy_dead_3 + global.enemy_spared_3) < 2) |
| 48 |
random_text_move_select = irandom_range(1, 3); |
| 49 |
else |
| 50 |
random_text_move_select = irandom_range(1, 2); |
| 51 |
} |
| 52 |
else if (random_number == 2) |
| 53 |
{ |
| 54 |
if ((global.enemy_dead + global.enemy_spared + global.enemy_dead_3 + global.enemy_spared_3) < 2) |
| 55 |
random_text_move_select = irandom_range(1, 3); |
| 56 |
else |
| 57 |
random_text_move_select = irandom_range(1, 2); |
| 58 |
} |
| 59 |
else if (random_number == 3) |
| 60 |
{ |
| 61 |
if ((global.enemy_dead + global.enemy_spared + global.enemy_dead_2 + global.enemy_spared_2) < 2) |
| 62 |
random_text_move_select = irandom_range(1, 3); |
| 63 |
else |
| 64 |
random_text_move_select = irandom_range(1, 2); |
| 65 |
} |
| 66 |
if (random_number == 1) |
| 67 |
{ |
| 68 |
if (random_text_move_select == 1) |
| 69 |
{ |
| 70 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
| 71 |
text_deadlock_contents_1 = 3020; |
| 72 |
text_deadlock_1 = true; |
| 73 |
} |
| 74 |
else if (random_text_move_select == 2) |
| 75 |
{ |
| 76 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
| 77 |
text_deadlock_contents_1 = 3021; |
| 78 |
text_deadlock_1 = true; |
| 79 |
} |
| 80 |
else if (random_text_move_select == 3) |
| 81 |
{ |
| 82 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
| 83 |
text_deadlock_contents_1 = 3022; |
| 84 |
text_deadlock_1 = true; |
| 85 |
} |
| 86 |
} |
| 87 |
else if (random_number == 2) |
| 88 |
{ |
| 89 |
if (random_text_move_select == 1) |
| 90 |
{ |
| 91 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1_v2); |
| 92 |
text_deadlock_contents_1 = 3039; |
| 93 |
text_deadlock_1 = true; |
| 94 |
} |
| 95 |
else if (random_text_move_select == 2) |
| 96 |
{ |
| 97 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2_v2); |
| 98 |
text_deadlock_contents_1 = 3040; |
| 99 |
text_deadlock_1 = true; |
| 100 |
} |
| 101 |
else if (random_text_move_select == 3) |
| 102 |
{ |
| 103 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
| 104 |
text_deadlock_contents_1 = 3022; |
| 105 |
text_deadlock_1 = true; |
| 106 |
} |
| 107 |
} |
| 108 |
else if (random_number == 3) |
| 109 |
{ |
| 110 |
if (random_text_move_select == 1) |
| 111 |
{ |
| 112 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1_v3); |
| 113 |
text_deadlock_contents_1 = 3056; |
| 114 |
text_deadlock_1 = true; |
| 115 |
} |
| 116 |
else if (random_text_move_select == 2) |
| 117 |
{ |
| 118 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2_v3); |
| 119 |
text_deadlock_contents_1 = 3057; |
| 120 |
text_deadlock_1 = true; |
| 121 |
} |
| 122 |
else if (random_text_move_select == 3) |
| 123 |
{ |
| 124 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
| 125 |
text_deadlock_contents_1 = 3022; |
| 126 |
text_deadlock_1 = true; |
| 127 |
} |
| 128 |
} |
| 129 |
} |
| 130 |
} |