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