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