1 |
function scr_recreate_heart_battle_menu_text_decibatscr_recreate_heart_battle_menu_text_decibatfunction scr_recreate_heart_battle_menu_text_decibat()
{
var last_text_move_select = global.last_text_move_select;
var action_1_selected_count = global.action_1_selected_count;
var action_2_selected_count = global.action_2_selected_count;
var action_3_selected_count = global.action_3_selected_count;
show_debug_message("Enemy sparing is:" + string(global.enemy_sparing));
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_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 ((global.action_1_selected_count + global.action_2_selected_count + global.action_3_selected_count) >= 1 && global.enemy_low_hp == false)
{
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
{
var random_text_move_select = irandom_range(1, 2);
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;
}
}
} () |
2 |
{ |
3 |
var last_text_move_select = global.last_text_move_select; |
4 |
var action_1_selected_count = global.action_1_selected_count; |
5 |
var action_2_selected_count = global.action_2_selected_count; |
6 |
var action_3_selected_count = global.action_3_selected_count; |
7 |
show_debug_message("Enemy sparing is:" + string(global.enemy_sparing)); |
8 |
if (text_deadlock_1 == true) |
9 |
{ |
10 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, text_deadlock_contents_1); |
11 |
} |
12 |
else if (last_text_move_select == 0) |
13 |
{ |
14 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_intro); |
15 |
text_deadlock_contents_1 = 3004; |
16 |
text_deadlock_1 = true; |
17 |
} |
18 |
else if (global.enemy_sparing == true) |
19 |
{ |
20 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing); |
21 |
text_deadlock_contents_1 = 3030; |
22 |
text_deadlock_1 = true; |
23 |
} |
24 |
else if ((global.action_1_selected_count + global.action_2_selected_count + global.action_3_selected_count) >= 1 && global.enemy_low_hp == false) |
25 |
{ |
26 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special); |
27 |
text_deadlock_contents_1 = 3009; |
28 |
text_deadlock_1 = true; |
29 |
} |
30 |
else |
31 |
{ |
32 |
var random_text_move_select = irandom_range(1, 2); |
33 |
if (random_text_move_select == 1) |
34 |
{ |
35 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
36 |
text_deadlock_contents_1 = 3020; |
37 |
text_deadlock_1 = true; |
38 |
} |
39 |
else if (random_text_move_select == 2) |
40 |
{ |
41 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
42 |
text_deadlock_contents_1 = 3021; |
43 |
text_deadlock_1 = true; |
44 |
} |
45 |
} |
46 |
} |