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