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