1 |
function scr_recreate_heart_battle_menu_text_sousborgscr_recreate_heart_battle_menu_text_sousborgfunction scr_recreate_heart_battle_menu_text_sousborg() //gml_Script_scr_recreate_heart_battle_menu_text_sousborg
{
var last_text_move_select = global.last_text_move_select
var enemy_mode = global.enemy_mode
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.enemy_low_hp == true)
{
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)
{
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 (enemy_mode == 1)
var random_text_move_select = irandom_range(1, 5)
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
}
}
} () //gml_Script_scr_recreate_heart_battle_menu_text_sousborg |
2 |
{ |
3 |
var last_text_move_select = global.last_text_move_select |
4 |
var enemy_mode = global.enemy_mode |
5 |
if (text_deadlock_1 == true) |
6 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), text_deadlock_contents_1) |
7 |
else if (last_text_move_select == 0) |
8 |
{ |
9 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_intro) |
10 |
text_deadlock_contents_1 = 3004 |
11 |
text_deadlock_1 = true |
12 |
} |
13 |
else if (global.enemy_low_hp == true) |
14 |
{ |
15 |
var random_number = irandom_range(1, 2) |
16 |
if (random_number == 1) |
17 |
{ |
18 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1) |
19 |
text_deadlock_contents_1 = 3016 |
20 |
} |
21 |
else if (random_number == 2) |
22 |
{ |
23 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v2) |
24 |
text_deadlock_contents_1 = 3018 |
25 |
} |
26 |
text_deadlock_1 = true |
27 |
} |
28 |
else if (global.enemy_sparing == true) |
29 |
{ |
30 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing) |
31 |
text_deadlock_contents_1 = 3030 |
32 |
text_deadlock_1 = true |
33 |
} |
34 |
else |
35 |
{ |
36 |
if (enemy_mode == 1) |
37 |
var random_text_move_select = irandom_range(1, 5) |
38 |
else |
39 |
random_text_move_select = irandom_range(1, 4) |
40 |
if (random_text_move_select == 1) |
41 |
{ |
42 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1) |
43 |
text_deadlock_contents_1 = 3020 |
44 |
text_deadlock_1 = true |
45 |
} |
46 |
else if (random_text_move_select == 2) |
47 |
{ |
48 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2) |
49 |
text_deadlock_contents_1 = 3021 |
50 |
text_deadlock_1 = true |
51 |
} |
52 |
else if (random_text_move_select == 3) |
53 |
{ |
54 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3) |
55 |
text_deadlock_contents_1 = 3022 |
56 |
text_deadlock_1 = true |
57 |
} |
58 |
else if (random_text_move_select == 4) |
59 |
{ |
60 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4) |
61 |
text_deadlock_contents_1 = 3023 |
62 |
text_deadlock_1 = true |
63 |
} |
64 |
else if (random_text_move_select == 5) |
65 |
{ |
66 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5) |
67 |
text_deadlock_contents_1 = 3024 |
68 |
text_deadlock_1 = true |
69 |
} |
70 |
else if (random_text_move_select == 6) |
71 |
{ |
72 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6) |
73 |
text_deadlock_contents_1 = 3025 |
74 |
text_deadlock_1 = true |
75 |
} |
76 |
else if (random_text_move_select == 7) |
77 |
{ |
78 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_7) |
79 |
text_deadlock_contents_1 = 3026 |
80 |
text_deadlock_1 = true |
81 |
} |
82 |
} |
83 |
} |