1 |
function scr_recreate_heart_battle_menu_text_axisscr_recreate_heart_battle_menu_text_axisfunction scr_recreate_heart_battle_menu_text_axis() //gml_Script_scr_recreate_heart_battle_menu_text_axis
{
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.special_action_count >= 8)
{
if global.enemy_sparing
{
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.route == 2 || (global.route == 1 && global.action_1_selected_count == 0))
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special)
text_deadlock_contents_1 = 3009
text_deadlock_1 = true
}
else if (global.action_1_selected_count == 1)
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v2)
text_deadlock_contents_1 = 3010
text_deadlock_1 = true
}
else if (global.action_1_selected_count == 2)
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v3)
text_deadlock_contents_1 = 3011
text_deadlock_1 = true
}
}
else
{
var random_text_move_select = irandom_range(1, 9)
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
}
else if (random_text_move_select == 9)
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_9)
text_deadlock_contents_1 = 3029
text_deadlock_1 = true
}
}
} () //gml_Script_scr_recreate_heart_battle_menu_text_axis |
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.special_action_count >= 8) |
13 |
{ |
14 |
if global.enemy_sparing |
15 |
{ |
16 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing) |
17 |
text_deadlock_contents_1 = 3030 |
18 |
text_deadlock_1 = true |
19 |
} |
20 |
else if (global.route == 2 || (global.route == 1 && global.action_1_selected_count == 0)) |
21 |
{ |
22 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special) |
23 |
text_deadlock_contents_1 = 3009 |
24 |
text_deadlock_1 = true |
25 |
} |
26 |
else if (global.action_1_selected_count == 1) |
27 |
{ |
28 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v2) |
29 |
text_deadlock_contents_1 = 3010 |
30 |
text_deadlock_1 = true |
31 |
} |
32 |
else if (global.action_1_selected_count == 2) |
33 |
{ |
34 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v3) |
35 |
text_deadlock_contents_1 = 3011 |
36 |
text_deadlock_1 = true |
37 |
} |
38 |
} |
39 |
else |
40 |
{ |
41 |
var random_text_move_select = irandom_range(1, 9) |
42 |
if (random_text_move_select == 1) |
43 |
{ |
44 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1) |
45 |
text_deadlock_contents_1 = 3020 |
46 |
text_deadlock_1 = true |
47 |
} |
48 |
else if (random_text_move_select == 2) |
49 |
{ |
50 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2) |
51 |
text_deadlock_contents_1 = 3021 |
52 |
text_deadlock_1 = true |
53 |
} |
54 |
else if (random_text_move_select == 3) |
55 |
{ |
56 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3) |
57 |
text_deadlock_contents_1 = 3022 |
58 |
text_deadlock_1 = true |
59 |
} |
60 |
else if (random_text_move_select == 4) |
61 |
{ |
62 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4) |
63 |
text_deadlock_contents_1 = 3023 |
64 |
text_deadlock_1 = true |
65 |
} |
66 |
else if (random_text_move_select == 5) |
67 |
{ |
68 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5) |
69 |
text_deadlock_contents_1 = 3024 |
70 |
text_deadlock_1 = true |
71 |
} |
72 |
else if (random_text_move_select == 6) |
73 |
{ |
74 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6) |
75 |
text_deadlock_contents_1 = 3025 |
76 |
text_deadlock_1 = true |
77 |
} |
78 |
else if (random_text_move_select == 7) |
79 |
{ |
80 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_7) |
81 |
text_deadlock_contents_1 = 3026 |
82 |
text_deadlock_1 = true |
83 |
} |
84 |
else if (random_text_move_select == 8) |
85 |
{ |
86 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_8) |
87 |
text_deadlock_contents_1 = 3028 |
88 |
text_deadlock_1 = true |
89 |
} |
90 |
else if (random_text_move_select == 9) |
91 |
{ |
92 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_9) |
93 |
text_deadlock_contents_1 = 3029 |
94 |
text_deadlock_1 = true |
95 |
} |
96 |
} |
97 |
} |