1 |
function scr_start_enemy_no_attack_insomnitot_duoscr_start_enemy_no_attack_insomnitot_duofunction scr_start_enemy_no_attack_insomnitot_duo() //gml_Script_scr_start_enemy_no_attack_insomnitot_duo
{
var battle_menu_number = global.battle_menu_number
var fight_number = global.fight_number
var act_number = global.act_number
var enemy_dead = global.enemy_dead
var enemy_dead_2 = global.enemy_dead_2
var enemy_spared = global.enemy_spared
var enemy_spared_2 = global.enemy_spared_2
end_loop = false
if (battle_menu_number == 1)
{
if (fight_number == 1)
{
if (enemy_dead == false && enemy_spared == false)
{
instance_create(220, 132, obj_quote_bubble_battle_yellow_2)
instance_create(0, 0, obj_quote_battle_insomnitot_a_no_attack)
}
else if (enemy_dead_2 == false && enemy_spared_2 == false)
{
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse)
instance_create(0, 0, obj_quote_battle_insomnitot_b_no_attack)
}
}
else if (fight_number == 2)
{
if (enemy_dead_2 == false && enemy_spared_2 == false)
{
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse)
instance_create(0, 0, obj_quote_battle_insomnitot_b_no_attack)
}
else if (enemy_dead == false && enemy_spared == false)
{
instance_create(220, 132, obj_quote_bubble_battle_yellow_2)
instance_create(0, 0, obj_quote_battle_insomnitot_a_no_attack)
}
}
}
else if (battle_menu_number == 2)
{
if (act_number == 1)
{
instance_create(220, 132, obj_quote_bubble_battle_yellow_2)
instance_create(0, 0, obj_quote_battle_insomnitot_a_no_attack)
}
else if (act_number == 2)
{
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse)
instance_create(0, 0, obj_quote_battle_insomnitot_b_no_attack)
}
}
else
{
var random_number = irandom_range(1, 2)
while (end_loop == false)
{
if (random_number == 1 && enemy_dead == false && enemy_spared == false)
{
instance_create(220, 132, obj_quote_bubble_battle_yellow_2)
instance_create(0, 0, obj_quote_battle_insomnitot_a_no_attack)
end_loop = true
break
}
else if (random_number == 2 && enemy_dead_2 == false && enemy_spared_2 == false)
{
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse)
instance_create(0, 0, obj_quote_battle_insomnitot_b_no_attack)
end_loop = true
break
}
else
{
if (random_number == 1)
random_number = 2
else
random_number = 1
continue
}
}
}
} () //gml_Script_scr_start_enemy_no_attack_insomnitot_duo |
2 |
{ |
3 |
var battle_menu_number = global.battle_menu_number |
4 |
var fight_number = global.fight_number |
5 |
var act_number = global.act_number |
6 |
var enemy_dead = global.enemy_dead |
7 |
var enemy_dead_2 = global.enemy_dead_2 |
8 |
var enemy_spared = global.enemy_spared |
9 |
var enemy_spared_2 = global.enemy_spared_2 |
10 |
end_loop = false |
11 |
if (battle_menu_number == 1) |
12 |
{ |
13 |
if (fight_number == 1) |
14 |
{ |
15 |
if (enemy_dead == false && enemy_spared == false) |
16 |
{ |
17 |
instance_create(220, 132, obj_quote_bubble_battle_yellow_2) |
18 |
instance_create(0, 0, obj_quote_battle_insomnitot_a_no_attack) |
19 |
} |
20 |
else if (enemy_dead_2 == false && enemy_spared_2 == false) |
21 |
{ |
22 |
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse) |
23 |
instance_create(0, 0, obj_quote_battle_insomnitot_b_no_attack) |
24 |
} |
25 |
} |
26 |
else if (fight_number == 2) |
27 |
{ |
28 |
if (enemy_dead_2 == false && enemy_spared_2 == false) |
29 |
{ |
30 |
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse) |
31 |
instance_create(0, 0, obj_quote_battle_insomnitot_b_no_attack) |
32 |
} |
33 |
else if (enemy_dead == false && enemy_spared == false) |
34 |
{ |
35 |
instance_create(220, 132, obj_quote_bubble_battle_yellow_2) |
36 |
instance_create(0, 0, obj_quote_battle_insomnitot_a_no_attack) |
37 |
} |
38 |
} |
39 |
} |
40 |
else if (battle_menu_number == 2) |
41 |
{ |
42 |
if (act_number == 1) |
43 |
{ |
44 |
instance_create(220, 132, obj_quote_bubble_battle_yellow_2) |
45 |
instance_create(0, 0, obj_quote_battle_insomnitot_a_no_attack) |
46 |
} |
47 |
else if (act_number == 2) |
48 |
{ |
49 |
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse) |
50 |
instance_create(0, 0, obj_quote_battle_insomnitot_b_no_attack) |
51 |
} |
52 |
} |
53 |
else |
54 |
{ |
55 |
var random_number = irandom_range(1, 2) |
56 |
while (end_loop == false) |
57 |
{ |
58 |
if (random_number == 1 && enemy_dead == false && enemy_spared == false) |
59 |
{ |
60 |
instance_create(220, 132, obj_quote_bubble_battle_yellow_2) |
61 |
instance_create(0, 0, obj_quote_battle_insomnitot_a_no_attack) |
62 |
end_loop = true |
63 |
break |
64 |
} |
65 |
else if (random_number == 2 && enemy_dead_2 == false && enemy_spared_2 == false) |
66 |
{ |
67 |
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse) |
68 |
instance_create(0, 0, obj_quote_battle_insomnitot_b_no_attack) |
69 |
end_loop = true |
70 |
break |
71 |
} |
72 |
else |
73 |
{ |
74 |
if (random_number == 1) |
75 |
random_number = 2 |
76 |
else |
77 |
random_number = 1 |
78 |
continue |
79 |
} |
80 |
} |
81 |
} |
82 |
} |