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