1 |
function scr_recreate_heart_battle_menu_text_cactony_slither_duoscr_recreate_heart_battle_menu_text_cactony_slither_duofunction scr_recreate_heart_battle_menu_text_cactony_slither_duo()
{
var last_text_move_select = global.last_text_move_select;
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))
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_dead_2);
text_deadlock_contents_1 = 3052;
text_deadlock_1 = true;
}
else if (global.battle_menu_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)
{
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_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_2);
text_deadlock_contents_1 = 3036;
}
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_2_v2);
text_deadlock_contents_1 = 3037;
}
text_deadlock_1 = true;
}
else if (global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == 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 if (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_2);
text_deadlock_contents_1 = 3050;
text_deadlock_1 = true;
}
else
{
var random_number = irandom_range(1, 2);
if (global.enemy_dead == true || global.enemy_spared == true)
random_number = 2;
else if (global.enemy_dead_2 == true || global.enemy_spared_2 == true)
random_number = 1;
var random_text_move_select;
if (random_number == 1)
{
if ((global.enemy_dead_2 + global.enemy_spared_2) < 1)
random_text_move_select = irandom_range(1, 7);
else
random_text_move_select = irandom_range(1, 4);
}
else if (random_number == 2)
{
if ((global.enemy_dead + global.enemy_spared) < 1)
random_text_move_select = irandom_range(1, 6);
else
random_text_move_select = irandom_range(1, 5);
}
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)
{
... () |
2 |
{ |
3 |
var last_text_move_select = global.last_text_move_select; |
4 |
var action_3_selected_count_2 = global.action_3_selected_count_2; |
5 |
var heart_position = script_execute(scr_return_heart_battle_menu_position); |
6 |
if (text_deadlock_1 == true) |
7 |
{ |
8 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1); |
9 |
} |
10 |
else if (last_text_move_select == 0) |
11 |
{ |
12 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_intro); |
13 |
text_deadlock_contents_1 = 3004; |
14 |
text_deadlock_1 = true; |
15 |
} |
16 |
else if (global.battle_menu_number == 1 && (global.enemy_dead == true && global.fight_number == 1)) |
17 |
{ |
18 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_dead_2); |
19 |
text_deadlock_contents_1 = 3052; |
20 |
text_deadlock_1 = true; |
21 |
} |
22 |
else if (global.battle_menu_number == 1 && (global.enemy_dead_2 == true && global.fight_number == 2)) |
23 |
{ |
24 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_dead); |
25 |
text_deadlock_contents_1 = 3033; |
26 |
text_deadlock_1 = true; |
27 |
} |
28 |
else if (global.enemy_low_hp == true && global.enemy_dead == false && global.enemy_spared == false) |
29 |
{ |
30 |
var random_number = irandom_range(1, 2); |
31 |
if (random_number == 1) |
32 |
{ |
33 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1); |
34 |
text_deadlock_contents_1 = 3016; |
35 |
} |
36 |
else if (random_number == 2) |
37 |
{ |
38 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1_v2); |
39 |
text_deadlock_contents_1 = 3018; |
40 |
} |
41 |
text_deadlock_1 = true; |
42 |
} |
43 |
else if (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) |
44 |
{ |
45 |
var random_number = irandom_range(1, 2); |
46 |
if (random_number == 1) |
47 |
{ |
48 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_2); |
49 |
text_deadlock_contents_1 = 3036; |
50 |
} |
51 |
else if (random_number == 2) |
52 |
{ |
53 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_2_v2); |
54 |
text_deadlock_contents_1 = 3037; |
55 |
} |
56 |
text_deadlock_1 = true; |
57 |
} |
58 |
else if (global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false) |
59 |
{ |
60 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing); |
61 |
text_deadlock_contents_1 = 3030; |
62 |
text_deadlock_1 = true; |
63 |
} |
64 |
else if (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) |
65 |
{ |
66 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing_2); |
67 |
text_deadlock_contents_1 = 3050; |
68 |
text_deadlock_1 = true; |
69 |
} |
70 |
else |
71 |
{ |
72 |
var random_number = irandom_range(1, 2); |
73 |
if (global.enemy_dead == true || global.enemy_spared == true) |
74 |
random_number = 2; |
75 |
else if (global.enemy_dead_2 == true || global.enemy_spared_2 == true) |
76 |
random_number = 1; |
77 |
var random_text_move_select; |
78 |
if (random_number == 1) |
79 |
{ |
80 |
if ((global.enemy_dead_2 + global.enemy_spared_2) < 1) |
81 |
random_text_move_select = irandom_range(1, 7); |
82 |
else |
83 |
random_text_move_select = irandom_range(1, 4); |
84 |
} |
85 |
else if (random_number == 2) |
86 |
{ |
87 |
if ((global.enemy_dead + global.enemy_spared) < 1) |
88 |
random_text_move_select = irandom_range(1, 6); |
89 |
else |
90 |
random_text_move_select = irandom_range(1, 5); |
91 |
} |
92 |
if (random_number == 1) |
93 |
{ |
94 |
if (random_text_move_select == 1) |
95 |
{ |
96 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
97 |
text_deadlock_contents_1 = 3020; |
98 |
text_deadlock_1 = true; |
99 |
} |
100 |
else if (random_text_move_select == 2) |
101 |
{ |
102 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
103 |
text_deadlock_contents_1 = 3021; |
104 |
text_deadlock_1 = true; |
105 |
} |
106 |
else if (random_text_move_select == 3) |
107 |
{ |
108 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
109 |
text_deadlock_contents_1 = 3022; |
110 |
text_deadlock_1 = true; |
111 |
} |
112 |
else if (random_text_move_select == 4) |
113 |
{ |
114 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4); |
115 |
text_deadlock_contents_1 = 3023; |
116 |
text_deadlock_1 = true; |
117 |
} |
118 |
else if (random_text_move_select == 5) |
119 |
{ |
120 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5); |
121 |
text_deadlock_contents_1 = 3024; |
122 |
text_deadlock_1 = true; |
123 |
} |
124 |
else if (random_text_move_select == 6) |
125 |
{ |
126 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6); |
127 |
text_deadlock_contents_1 = 3025; |
128 |
text_deadlock_1 = true; |
129 |
} |
130 |
else if (random_text_move_select == 7) |
131 |
{ |
132 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_7); |
133 |
text_deadlock_contents_1 = 3026; |
134 |
text_deadlock_1 = true; |
135 |
} |
136 |
else if (random_text_move_select == 8) |
137 |
{ |
138 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_8); |
139 |
text_deadlock_contents_1 = 3028; |
140 |
text_deadlock_1 = true; |
141 |
} |
142 |
} |
143 |
else if (random_number == 2) |
144 |
{ |
145 |
if (random_text_move_select == 1) |
146 |
{ |
147 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1_v2); |
148 |
text_deadlock_contents_1 = 3039; |
149 |
text_deadlock_1 = true; |
150 |
} |
151 |
else if (random_text_move_select == 2) |
152 |
{ |
153 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2_v2); |
154 |
text_deadlock_contents_1 = 3040; |
155 |
text_deadlock_1 = true; |
156 |
} |
157 |
else if (random_text_move_select == 3) |
158 |
{ |
159 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3_v2); |
160 |
text_deadlock_contents_1 = 3041; |
161 |
text_deadlock_1 = true; |
162 |
} |
163 |
else if (random_text_move_select == 4) |
164 |
{ |
165 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4_v2); |
166 |
text_deadlock_contents_1 = 3046; |
167 |
text_deadlock_1 = true; |
168 |
} |
169 |
else if (random_text_move_select == 5) |
170 |
{ |
171 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5_v2); |
172 |
text_deadlock_contents_1 = 3047; |
173 |
text_deadlock_1 = true; |
174 |
} |
175 |
else if (random_text_move_select == 6) |
176 |
{ |
177 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6_v2); |
178 |
text_deadlock_contents_1 = 3048; |
179 |
text_deadlock_1 = true; |
180 |
} |
181 |
} |
182 |
} |
183 |
} |