|
1
|
function scr_recreate_heart_battle_menu_text_sweet_corn_duoscr_recreate_heart_battle_menu_text_sweet_corn_duo
function scr_recreate_heart_battle_menu_text_sweet_corn_duo()
{
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 = 3005;
text_deadlock_1 = true;
}
else if (global.battle_menu_number == 1 && ((global.enemy_dead == true && global.fight_number == 1) || (global.enemy_dead_2 == true && global.fight_number == 2)))
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_dead);
text_deadlock_contents_1 = 3034;
text_deadlock_1 = true;
}
else if ((global.enemy_low_hp == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false))
{
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 = 3017;
}
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 = 3019;
}
text_deadlock_1 = true;
}
else if ((global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false))
{
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing);
text_deadlock_contents_1 = 3031;
text_deadlock_1 = true;
}
else if (global.hurt_self == 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 = 3010;
text_deadlock_1 = true;
}
else
{
var random_text_move_select;
if ((global.enemy_dead + global.enemy_spared + global.enemy_dead_2 + global.enemy_spared_2) < 1)
random_text_move_select = irandom_range(1, 5);
else
random_text_move_select = irandom_range(1, 3);
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 = 3021;
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 = 3022;
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 = 3023;
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 = 3024;
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 = 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 = 3005;
|
|
12
|
text_deadlock_1 = true;
|
|
13
|
}
|
|
14
|
else if (global.battle_menu_number == 1 && ((global.enemy_dead == true && global.fight_number == 1) || (global.enemy_dead_2 == true && global.fight_number == 2)))
|
|
15
|
{
|
|
16
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_dead);
|
|
17
|
text_deadlock_contents_1 = 3034;
|
|
18
|
text_deadlock_1 = true;
|
|
19
|
}
|
|
20
|
else if ((global.enemy_low_hp == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false))
|
|
21
|
{
|
|
22
|
var random_number = irandom_range(1, 2);
|
|
23
|
if (random_number == 1)
|
|
24
|
{
|
|
25
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1);
|
|
26
|
text_deadlock_contents_1 = 3017;
|
|
27
|
}
|
|
28
|
else if (random_number == 2)
|
|
29
|
{
|
|
30
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_low_hp_1_v2);
|
|
31
|
text_deadlock_contents_1 = 3019;
|
|
32
|
}
|
|
33
|
text_deadlock_1 = true;
|
|
34
|
}
|
|
35
|
else if ((global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false) || (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false))
|
|
36
|
{
|
|
37
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_sparing);
|
|
38
|
text_deadlock_contents_1 = 3031;
|
|
39
|
text_deadlock_1 = true;
|
|
40
|
}
|
|
41
|
else if (global.hurt_self == false)
|
|
42
|
{
|
|
43
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_special);
|
|
44
|
text_deadlock_contents_1 = 3010;
|
|
45
|
text_deadlock_1 = true;
|
|
46
|
}
|
|
47
|
else
|
|
48
|
{
|
|
49
|
var random_text_move_select;
|
|
50
|
if ((global.enemy_dead + global.enemy_spared + global.enemy_dead_2 + global.enemy_spared_2) < 1)
|
|
51
|
random_text_move_select = irandom_range(1, 5);
|
|
52
|
else
|
|
53
|
random_text_move_select = irandom_range(1, 3);
|
|
54
|
if (random_text_move_select == 1)
|
|
55
|
{
|
|
56
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_1);
|
|
57
|
text_deadlock_contents_1 = 3021;
|
|
58
|
text_deadlock_1 = true;
|
|
59
|
}
|
|
60
|
else if (random_text_move_select == 2)
|
|
61
|
{
|
|
62
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_2);
|
|
63
|
text_deadlock_contents_1 = 3022;
|
|
64
|
text_deadlock_1 = true;
|
|
65
|
}
|
|
66
|
else if (random_text_move_select == 3)
|
|
67
|
{
|
|
68
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_3);
|
|
69
|
text_deadlock_contents_1 = 3023;
|
|
70
|
text_deadlock_1 = true;
|
|
71
|
}
|
|
72
|
else if (random_text_move_select == 4)
|
|
73
|
{
|
|
74
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_4);
|
|
75
|
text_deadlock_contents_1 = 3024;
|
|
76
|
text_deadlock_1 = true;
|
|
77
|
}
|
|
78
|
else if (random_text_move_select == 5)
|
|
79
|
{
|
|
80
|
instance_create(obj_dialogue_box_battle.x + 20, obj_dialogue_box_battle.x + 20, obj_dialogue_battle_move_select_5);
|
|
81
|
text_deadlock_contents_1 = 3025;
|
|
82
|
text_deadlock_1 = true;
|
|
83
|
}
|
|
84
|
}
|
|
85
|
}
|