1 |
function scr_recreate_heart_battle_menu_text_flier_trioscr_recreate_heart_battle_menu_text_flier_triofunction scr_recreate_heart_battle_menu_text_flier_trio() //gml_Script_scr_recreate_heart_battle_menu_text_flier_trio
{
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) || (global.enemy_dead_2 == true && global.fight_number == 2) || (global.enemy_dead_3 == true && global.fight_number == 3)))
{
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) || (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) || (global.enemy_low_hp_3 == true && global.enemy_dead_3 == false && global.enemy_spared_3 == 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_sparing == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) || (global.enemy_sparing_3 == true && global.enemy_dead_3 == false && global.enemy_spared_3 == 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_dead + global.enemy_spared + global.enemy_dead_2 + global.enemy_spared_2 + global.enemy_dead_3 + global.enemy_spared_3) < 2)
var random_text_move_select = irandom_range(1, 8)
else
random_text_move_select = irandom_range(1, 4)
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)
text_deadlock_contents_1 = 3023
text_deadlock_1 = true
}
else if (random_text_move_select == 5)
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5)
text_deadlock_contents_1 = 3024
text_deadlock_1 = true
}
else if (random_text_move_select == 6)
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6)
text_deadlock_contents_1 = 3025
text_deadlock_1 = true
}
else if (random_text_move_select == 7)
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_7)
text_deadlock_contents_1 = 3026
text_deadlock_1 = true
}
else if (random_text_move_select == 8)
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_8)
text_deadlock_contents_1 = 3028
text_deadlock_1 = true
}
}
} () //gml_Script_scr_recreate_heart_battle_menu_text_flier_trio |
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) || (global.enemy_dead_2 == true && global.fight_number == 2) || (global.enemy_dead_3 == true && global.fight_number == 3))) |
13 |
{ |
14 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_dead) |
15 |
text_deadlock_contents_1 = 3033 |
16 |
text_deadlock_1 = true |
17 |
} |
18 |
else if ((global.enemy_low_hp == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) || (global.enemy_low_hp_3 == true && global.enemy_dead_3 == false && global.enemy_spared_3 == false)) |
19 |
{ |
20 |
var random_number = irandom_range(1, 2) |
21 |
if (random_number == 1) |
22 |
{ |
23 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1) |
24 |
text_deadlock_contents_1 = 3016 |
25 |
} |
26 |
else if (random_number == 2) |
27 |
{ |
28 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v2) |
29 |
text_deadlock_contents_1 = 3018 |
30 |
} |
31 |
text_deadlock_1 = true |
32 |
} |
33 |
else if ((global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) || (global.enemy_sparing_3 == true && global.enemy_dead_3 == false && global.enemy_spared_3 == false)) |
34 |
{ |
35 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing) |
36 |
text_deadlock_contents_1 = 3030 |
37 |
text_deadlock_1 = true |
38 |
} |
39 |
else |
40 |
{ |
41 |
if ((global.enemy_dead + global.enemy_spared + global.enemy_dead_2 + global.enemy_spared_2 + global.enemy_dead_3 + global.enemy_spared_3) < 2) |
42 |
var random_text_move_select = irandom_range(1, 8) |
43 |
else |
44 |
random_text_move_select = irandom_range(1, 4) |
45 |
if (random_text_move_select == 1) |
46 |
{ |
47 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1) |
48 |
text_deadlock_contents_1 = 3020 |
49 |
text_deadlock_1 = true |
50 |
} |
51 |
else if (random_text_move_select == 2) |
52 |
{ |
53 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2) |
54 |
text_deadlock_contents_1 = 3021 |
55 |
text_deadlock_1 = true |
56 |
} |
57 |
else if (random_text_move_select == 3) |
58 |
{ |
59 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3) |
60 |
text_deadlock_contents_1 = 3022 |
61 |
text_deadlock_1 = true |
62 |
} |
63 |
else if (random_text_move_select == 4) |
64 |
{ |
65 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4) |
66 |
text_deadlock_contents_1 = 3023 |
67 |
text_deadlock_1 = true |
68 |
} |
69 |
else if (random_text_move_select == 5) |
70 |
{ |
71 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5) |
72 |
text_deadlock_contents_1 = 3024 |
73 |
text_deadlock_1 = true |
74 |
} |
75 |
else if (random_text_move_select == 6) |
76 |
{ |
77 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6) |
78 |
text_deadlock_contents_1 = 3025 |
79 |
text_deadlock_1 = true |
80 |
} |
81 |
else if (random_text_move_select == 7) |
82 |
{ |
83 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_7) |
84 |
text_deadlock_contents_1 = 3026 |
85 |
text_deadlock_1 = true |
86 |
} |
87 |
else if (random_text_move_select == 8) |
88 |
{ |
89 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_8) |
90 |
text_deadlock_contents_1 = 3028 |
91 |
text_deadlock_1 = true |
92 |
} |
93 |
} |
94 |
} |