1 |
function scr_recreate_heart_battle_menu_text_trihecta_togetherscr_recreate_heart_battle_menu_text_trihecta_togetherfunction scr_recreate_heart_battle_menu_text_trihecta_together()
{
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)
{
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 if (heart_position == "2121")
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_action_1);
text_deadlock_contents_1 = 3006;
text_deadlock_1 = true;
}
else if (heart_position == "2112")
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_action_2);
text_deadlock_contents_1 = 3007;
text_deadlock_1 = true;
}
else
{
var random_text_move_select = irandom_range(1, 4);
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;
}
}
} () |
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) |
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 if (heart_position == "2121") |
36 |
{ |
37 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_action_1); |
38 |
text_deadlock_contents_1 = 3006; |
39 |
text_deadlock_1 = true; |
40 |
} |
41 |
else if (heart_position == "2112") |
42 |
{ |
43 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_action_2); |
44 |
text_deadlock_contents_1 = 3007; |
45 |
text_deadlock_1 = true; |
46 |
} |
47 |
else |
48 |
{ |
49 |
var random_text_move_select = irandom_range(1, 4); |
50 |
if (random_text_move_select == 1) |
51 |
{ |
52 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
53 |
text_deadlock_contents_1 = 3020; |
54 |
text_deadlock_1 = true; |
55 |
} |
56 |
else if (random_text_move_select == 2) |
57 |
{ |
58 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
59 |
text_deadlock_contents_1 = 3021; |
60 |
text_deadlock_1 = true; |
61 |
} |
62 |
else if (random_text_move_select == 3) |
63 |
{ |
64 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
65 |
text_deadlock_contents_1 = 3022; |
66 |
text_deadlock_1 = true; |
67 |
} |
68 |
else if (random_text_move_select == 4) |
69 |
{ |
70 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4); |
71 |
text_deadlock_contents_1 = 3023; |
72 |
text_deadlock_1 = true; |
73 |
} |
74 |
} |
75 |
} |