1 |
function scr_recreate_heart_battle_menu_text_dalvscr_recreate_heart_battle_menu_text_dalvfunction scr_recreate_heart_battle_menu_text_dalv()
{
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_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_2_important == true)
{
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, 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;
}
}
} () |
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_sparing == true) |
16 |
{ |
17 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing); |
18 |
text_deadlock_contents_1 = 3030; |
19 |
text_deadlock_1 = true; |
20 |
} |
21 |
else if (global.action_2_important == true) |
22 |
{ |
23 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special); |
24 |
text_deadlock_contents_1 = 3009; |
25 |
text_deadlock_1 = true; |
26 |
} |
27 |
else |
28 |
{ |
29 |
var random_text_move_select = irandom_range(1, 4); |
30 |
if (random_text_move_select == 1) |
31 |
{ |
32 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1); |
33 |
text_deadlock_contents_1 = 3020; |
34 |
text_deadlock_1 = true; |
35 |
} |
36 |
else if (random_text_move_select == 2) |
37 |
{ |
38 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2); |
39 |
text_deadlock_contents_1 = 3021; |
40 |
text_deadlock_1 = true; |
41 |
} |
42 |
else if (random_text_move_select == 3) |
43 |
{ |
44 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3); |
45 |
text_deadlock_contents_1 = 3022; |
46 |
text_deadlock_1 = true; |
47 |
} |
48 |
else if (random_text_move_select == 4) |
49 |
{ |
50 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4); |
51 |
text_deadlock_contents_1 = 3023; |
52 |
text_deadlock_1 = true; |
53 |
} |
54 |
else if (random_text_move_select == 5) |
55 |
{ |
56 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5); |
57 |
text_deadlock_contents_1 = 3024; |
58 |
text_deadlock_1 = true; |
59 |
} |
60 |
else if (random_text_move_select == 6) |
61 |
{ |
62 |
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_6); |
63 |
text_deadlock_contents_1 = 3025; |
64 |
text_deadlock_1 = true; |
65 |
} |
66 |
} |
67 |
} |