1 |
function scr_recreate_heart_battle_menu_text_crispy_scroll_penilla_duoscr_recreate_heart_battle_menu_text_crispy_scroll_penilla_duofunction scr_recreate_heart_battle_menu_text_crispy_scroll_penilla_duo()
{
var last_text_move_select = global.last_text_move_select;
var action_1_selected_count = global.action_1_selected_count;
var action_2_selected_count = global.action_2_selected_count;
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 (action_1_selected_count >= 1 && (global.enemy_dead + global.enemy_spared) < 1)
{
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 (action_2_selected_count >= 1 && (global.enemy_dead + global.enemy_spared) < 1)
{
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 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, 5);
}
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)
{
... () |
2 |
{ |
3 |
var last_text_move_select = global.last_text_move_select; |
4 |
var action_1_selected_count = global.action_1_selected_count; |
5 |
var action_2_selected_count = global.action_2_selected_count; |
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 (action_1_selected_count >= 1 && (global.enemy_dead + global.enemy_spared) < 1) |
59 |
{ |
60 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_action_1); |
61 |
text_deadlock_contents_1 = 3006; |
62 |
text_deadlock_1 = true; |
63 |
} |
64 |
else if (action_2_selected_count >= 1 && (global.enemy_dead + global.enemy_spared) < 1) |
65 |
{ |
66 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_action_2); |
67 |
text_deadlock_contents_1 = 3007; |
68 |
text_deadlock_1 = true; |
69 |
} |
70 |
else if (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) |
71 |
{ |
72 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing_2); |
73 |
text_deadlock_contents_1 = 3050; |
74 |
text_deadlock_1 = true; |
75 |
} |
76 |
else |
77 |
{ |
78 |
var random_number = irandom_range(1, 2); |
79 |
if (global.enemy_dead == true || global.enemy_spared == true) |
80 |
random_number = 2; |
81 |
else if (global.enemy_dead_2 == true || global.enemy_spared_2 == true) |
82 |
random_number = 1; |
83 |
var random_text_move_select; |
84 |
if (random_number == 1) |
85 |
{ |
86 |
if ((global.enemy_dead_2 + global.enemy_spared_2) < 1) |
87 |
random_text_move_select = irandom_range(1, 7); |
88 |
else |
89 |
random_text_move_select = irandom_range(1, 5); |
90 |
} |
91 |
else if (random_number == 2) |
92 |
{ |
93 |
if ((global.enemy_dead + global.enemy_spared) < 1) |
94 |
random_text_move_select = irandom_range(1, 6); |
95 |
else |
96 |
random_text_move_select = irandom_range(1, 5); |
97 |
} |
98 |
if (random_number == 1) |
99 |
{ |
100 |
if (random_text_move_select == 1) |
101 |
{ |
102 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
103 |
text_deadlock_contents_1 = 3020; |
104 |
text_deadlock_1 = true; |
105 |
} |
106 |
else if (random_text_move_select == 2) |
107 |
{ |
108 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
109 |
text_deadlock_contents_1 = 3021; |
110 |
text_deadlock_1 = true; |
111 |
} |
112 |
else if (random_text_move_select == 3) |
113 |
{ |
114 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
115 |
text_deadlock_contents_1 = 3022; |
116 |
text_deadlock_1 = true; |
117 |
} |
118 |
else if (random_text_move_select == 4) |
119 |
{ |
120 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4); |
121 |
text_deadlock_contents_1 = 3023; |
122 |
text_deadlock_1 = true; |
123 |
} |
124 |
else if (random_text_move_select == 5) |
125 |
{ |
126 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5); |
127 |
text_deadlock_contents_1 = 3024; |
128 |
text_deadlock_1 = true; |
129 |
} |
130 |
else if (random_text_move_select == 6) |
131 |
{ |
132 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6); |
133 |
text_deadlock_contents_1 = 3025; |
134 |
text_deadlock_1 = true; |
135 |
} |
136 |
else if (random_text_move_select == 7) |
137 |
{ |
138 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_7); |
139 |
text_deadlock_contents_1 = 3026; |
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 |
} |