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