1 |
function scr_recreate_heart_battle_menu_text_jandroid_duoscr_recreate_heart_battle_menu_text_jandroid_duofunction scr_recreate_heart_battle_menu_text_jandroid_duo()
{
var last_text_move_select = global.last_text_move_select;
var action_3_selected_count = global.action_3_selected_count;
var action_3_selected_count_2 = global.action_3_selected_count_2;
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.battle_menu_number == 1 && ((global.enemy_dead == true && global.fight_number == 1) || (global.enemy_dead_2 == true && global.fight_number == 2)))
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_dead);
text_deadlock_contents_1 = 3033;
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))
{
var random_number = irandom_range(1, 2);
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;
}
text_deadlock_1 = true;
}
else if ((global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false))
{
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
{
var random_text_move_select;
if (global.enemy_dead == true || global.enemy_spared == true || global.enemy_sparing_2 == true || global.enemy_dead_2 == true)
random_text_move_select = irandom_range(1, 4);
else
random_text_move_select = irandom_range(5, 8);
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 = 3023;
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 = 3023;
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 = 3023;
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 = 3023;
text_deadlock_1 = true;
}
}
} () |
2 |
{ |
3 |
var last_text_move_select = global.last_text_move_select; |
4 |
var action_3_selected_count = global.action_3_selected_count; |
5 |
var action_3_selected_count_2 = global.action_3_selected_count_2; |
6 |
var heart_position = script_execute(scr_return_heart_battle_menu_position); |
7 |
if (text_deadlock_1 == true) |
8 |
{ |
9 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1); |
10 |
} |
11 |
else if (last_text_move_select == 0) |
12 |
{ |
13 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_intro); |
14 |
text_deadlock_contents_1 = 3004; |
15 |
text_deadlock_1 = true; |
16 |
} |
17 |
else if (global.battle_menu_number == 1 && ((global.enemy_dead == true && global.fight_number == 1) || (global.enemy_dead_2 == true && global.fight_number == 2))) |
18 |
{ |
19 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_dead); |
20 |
text_deadlock_contents_1 = 3033; |
21 |
text_deadlock_1 = true; |
22 |
} |
23 |
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)) |
24 |
{ |
25 |
var random_number = irandom_range(1, 2); |
26 |
if (random_number == 1) |
27 |
{ |
28 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1); |
29 |
text_deadlock_contents_1 = 3016; |
30 |
} |
31 |
else if (random_number == 2) |
32 |
{ |
33 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1_v2); |
34 |
text_deadlock_contents_1 = 3018; |
35 |
} |
36 |
text_deadlock_1 = true; |
37 |
} |
38 |
else if ((global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false)) |
39 |
{ |
40 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing); |
41 |
text_deadlock_contents_1 = 3030; |
42 |
text_deadlock_1 = true; |
43 |
} |
44 |
else |
45 |
{ |
46 |
var random_text_move_select; |
47 |
if (global.enemy_dead == true || global.enemy_spared == true || global.enemy_sparing_2 == true || global.enemy_dead_2 == true) |
48 |
random_text_move_select = irandom_range(1, 4); |
49 |
else |
50 |
random_text_move_select = irandom_range(5, 8); |
51 |
if (random_text_move_select == 1) |
52 |
{ |
53 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
54 |
text_deadlock_contents_1 = 3020; |
55 |
text_deadlock_1 = true; |
56 |
} |
57 |
else if (random_text_move_select == 2) |
58 |
{ |
59 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
60 |
text_deadlock_contents_1 = 3021; |
61 |
text_deadlock_1 = true; |
62 |
} |
63 |
else if (random_text_move_select == 3) |
64 |
{ |
65 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
66 |
text_deadlock_contents_1 = 3022; |
67 |
text_deadlock_1 = true; |
68 |
} |
69 |
else if (random_text_move_select == 4) |
70 |
{ |
71 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4); |
72 |
text_deadlock_contents_1 = 3023; |
73 |
text_deadlock_1 = true; |
74 |
} |
75 |
else if (random_text_move_select == 5) |
76 |
{ |
77 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5); |
78 |
text_deadlock_contents_1 = 3023; |
79 |
text_deadlock_1 = true; |
80 |
} |
81 |
else if (random_text_move_select == 6) |
82 |
{ |
83 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6); |
84 |
text_deadlock_contents_1 = 3023; |
85 |
text_deadlock_1 = true; |
86 |
} |
87 |
else if (random_text_move_select == 7) |
88 |
{ |
89 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_7); |
90 |
text_deadlock_contents_1 = 3023; |
91 |
text_deadlock_1 = true; |
92 |
} |
93 |
else if (random_text_move_select == 8) |
94 |
{ |
95 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_8); |
96 |
text_deadlock_contents_1 = 3023; |
97 |
text_deadlock_1 = true; |
98 |
} |
99 |
} |
100 |
} |