1 |
function scr_recreate_heart_battle_menu_text_know_cone_insomnitot_duoscr_recreate_heart_battle_menu_text_know_cone_insomnitot_duofunction scr_recreate_heart_battle_menu_text_know_cone_insomnitot_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)
{
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_sparing_2);
text_deadlock_contents_1 = 3050;
}
else if (random_number == 2)
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing_2_v2);
text_deadlock_contents_1 = 3051;
}
text_deadlock_1 = true;
}
else if (action_3_selected_count_2 >= 1 && heart_position == "2222")
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_action_3_v2);
text_deadlock_contents_1 = 3034;
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, 8);
else
random_text_move_select = irandom_range(1, 5);
}
else if (random_number == 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 |
var random_number = irandom_range(1, 2); |
67 |
if (random_number == 1) |
68 |
{ |
69 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing_2); |
70 |
text_deadlock_contents_1 = 3050; |
71 |
} |
72 |
else if (random_number == 2) |
73 |
{ |
74 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing_2_v2); |
75 |
text_deadlock_contents_1 = 3051; |
76 |
} |
77 |
text_deadlock_1 = true; |
78 |
} |
79 |
else if (action_3_selected_count_2 >= 1 && heart_position == "2222") |
80 |
{ |
81 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_action_3_v2); |
82 |
text_deadlock_contents_1 = 3034; |
83 |
text_deadlock_1 = true; |
84 |
} |
85 |
else |
86 |
{ |
87 |
var random_number = irandom_range(1, 2); |
88 |
if (global.enemy_dead == true || global.enemy_spared == true) |
89 |
random_number = 2; |
90 |
else if (global.enemy_dead_2 == true || global.enemy_spared_2 == true) |
91 |
random_number = 1; |
92 |
var random_text_move_select; |
93 |
if (random_number == 1) |
94 |
{ |
95 |
if ((global.enemy_dead_2 + global.enemy_spared_2) < 1) |
96 |
random_text_move_select = irandom_range(1, 8); |
97 |
else |
98 |
random_text_move_select = irandom_range(1, 5); |
99 |
} |
100 |
else if (random_number == 2) |
101 |
{ |
102 |
if ((global.enemy_dead + global.enemy_spared) < 1) |
103 |
random_text_move_select = irandom_range(1, 6); |
104 |
else |
105 |
random_text_move_select = irandom_range(1, 4); |
106 |
} |
107 |
if (random_number == 1) |
108 |
{ |
109 |
if (random_text_move_select == 1) |
110 |
{ |
111 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
112 |
text_deadlock_contents_1 = 3020; |
113 |
text_deadlock_1 = true; |
114 |
} |
115 |
else if (random_text_move_select == 2) |
116 |
{ |
117 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
118 |
text_deadlock_contents_1 = 3021; |
119 |
text_deadlock_1 = true; |
120 |
} |
121 |
else if (random_text_move_select == 3) |
122 |
{ |
123 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
124 |
text_deadlock_contents_1 = 3022; |
125 |
text_deadlock_1 = true; |
126 |
} |
127 |
else if (random_text_move_select == 4) |
128 |
{ |
129 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4); |
130 |
text_deadlock_contents_1 = 3023; |
131 |
text_deadlock_1 = true; |
132 |
} |
133 |
else if (random_text_move_select == 5) |
134 |
{ |
135 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5); |
136 |
text_deadlock_contents_1 = 3024; |
137 |
text_deadlock_1 = true; |
138 |
} |
139 |
else if (random_text_move_select == 6) |
140 |
{ |
141 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6); |
142 |
text_deadlock_contents_1 = 3025; |
143 |
text_deadlock_1 = true; |
144 |
} |
145 |
else if (random_text_move_select == 7) |
146 |
{ |
147 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_7); |
148 |
text_deadlock_contents_1 = 3026; |
149 |
text_deadlock_1 = true; |
150 |
} |
151 |
else if (random_text_move_select == 8) |
152 |
{ |
153 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_8); |
154 |
text_deadlock_contents_1 = 3028; |
155 |
text_deadlock_1 = true; |
156 |
} |
157 |
} |
158 |
else if (random_number == 2) |
159 |
{ |
160 |
if (random_text_move_select == 1) |
161 |
{ |
162 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1_v2); |
163 |
text_deadlock_contents_1 = 3039; |
164 |
text_deadlock_1 = true; |
165 |
} |
166 |
else if (random_text_move_select == 2) |
167 |
{ |
168 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2_v2); |
169 |
text_deadlock_contents_1 = 3040; |
170 |
text_deadlock_1 = true; |
171 |
} |
172 |
else if (random_text_move_select == 3) |
173 |
{ |
174 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3_v2); |
175 |
text_deadlock_contents_1 = 3041; |
176 |
text_deadlock_1 = true; |
177 |
} |
178 |
else if (random_text_move_select == 4) |
179 |
{ |
180 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4_v2); |
181 |
text_deadlock_contents_1 = 3046; |
182 |
text_deadlock_1 = true; |
183 |
} |
184 |
else if (random_text_move_select == 5) |
185 |
{ |
186 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5_v2); |
187 |
text_deadlock_contents_1 = 3047; |
188 |
text_deadlock_1 = true; |
189 |
} |
190 |
else if (random_text_move_select == 6) |
191 |
{ |
192 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6_v2); |
193 |
text_deadlock_contents_1 = 3048; |
194 |
text_deadlock_1 = true; |
195 |
} |
196 |
} |
197 |
} |
198 |
} |