1 |
function scr_start_enemy_attacking_frostermit_know_cone_duoscr_start_enemy_attacking_frostermit_know_cone_duofunction scr_start_enemy_attacking_frostermit_know_cone_duo() //gml_Script_scr_start_enemy_attacking_frostermit_know_cone_duo
{
instance_create(319, 320, obj_dialogue_box_battle_transformation_any)
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(242, 132, obj_quote_bubble_battle_yellow_2_reverse)
instance_create(0, 0, obj_quote_battle_frostermit_a)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
}
else if (enemy_dead_2 == false && enemy_spared_2 == false)
{
instance_create(170, 84, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_know_cone_b)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
}
}
else if (fight_number == 2)
{
if (enemy_dead_2 == false && enemy_spared_2 == false)
{
instance_create(170, 84, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_know_cone_b)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
}
else if (enemy_dead == false && enemy_spared == false)
{
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse)
instance_create(0, 0, obj_quote_battle_frostermit_a)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
}
}
}
else if (battle_menu_number == 2)
{
if (global.last_action_selected == "Action 2 Out" && global.enemy_low_hp_2 == false)
{
instance_create(170, 84, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_know_cone_b)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
}
else if (act_number == 1)
{
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse)
instance_create(0, 0, obj_quote_battle_frostermit_a)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
}
else if (act_number == 2)
{
instance_create(170, 84, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_know_cone_b)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
}
}
else
{
var random_number = irandom_range(1, 2)
while (end_loop == false)
{
if (random_number == 1 && enemy_dead == false && enemy_spared == false)
{
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse)
instance_create(0, 0, obj_quote_battle_frostermit_a)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
end_loop = true
break
}
else if (random_number == 2 && enemy_dead_2 == false && enemy_spared_2 == false)
{
instance_create(170, 84, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_know_cone_b)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
end_loop = true
break
}
else
{
if (random_number == 1)
random_number = 2
else
random_number = 1
continue
}
}
}
} () //gml_Script_scr_start_enemy_attacking_frostermit_know_cone_duo |
2 |
{ |
3 |
instance_create(319, 320, obj_dialogue_box_battle_transformation_any) |
4 |
var battle_menu_number = global.battle_menu_number |
5 |
var fight_number = global.fight_number |
6 |
var act_number = global.act_number |
7 |
var enemy_dead = global.enemy_dead |
8 |
var enemy_dead_2 = global.enemy_dead_2 |
9 |
var enemy_spared = global.enemy_spared |
10 |
var enemy_spared_2 = global.enemy_spared_2 |
11 |
end_loop = false |
12 |
if (battle_menu_number == 1) |
13 |
{ |
14 |
if (fight_number == 1) |
15 |
{ |
16 |
if (enemy_dead == false && enemy_spared == false) |
17 |
{ |
18 |
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse) |
19 |
instance_create(0, 0, obj_quote_battle_frostermit_a) |
20 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
21 |
} |
22 |
else if (enemy_dead_2 == false && enemy_spared_2 == false) |
23 |
{ |
24 |
instance_create(170, 84, obj_quote_bubble_battle_yellow_3) |
25 |
instance_create(0, 0, obj_quote_battle_know_cone_b) |
26 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
27 |
} |
28 |
} |
29 |
else if (fight_number == 2) |
30 |
{ |
31 |
if (enemy_dead_2 == false && enemy_spared_2 == false) |
32 |
{ |
33 |
instance_create(170, 84, obj_quote_bubble_battle_yellow_3) |
34 |
instance_create(0, 0, obj_quote_battle_know_cone_b) |
35 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
36 |
} |
37 |
else if (enemy_dead == false && enemy_spared == false) |
38 |
{ |
39 |
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse) |
40 |
instance_create(0, 0, obj_quote_battle_frostermit_a) |
41 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
42 |
} |
43 |
} |
44 |
} |
45 |
else if (battle_menu_number == 2) |
46 |
{ |
47 |
if (global.last_action_selected == "Action 2 Out" && global.enemy_low_hp_2 == false) |
48 |
{ |
49 |
instance_create(170, 84, obj_quote_bubble_battle_yellow_3) |
50 |
instance_create(0, 0, obj_quote_battle_know_cone_b) |
51 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
52 |
} |
53 |
else if (act_number == 1) |
54 |
{ |
55 |
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse) |
56 |
instance_create(0, 0, obj_quote_battle_frostermit_a) |
57 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
58 |
} |
59 |
else if (act_number == 2) |
60 |
{ |
61 |
instance_create(170, 84, obj_quote_bubble_battle_yellow_3) |
62 |
instance_create(0, 0, obj_quote_battle_know_cone_b) |
63 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
64 |
} |
65 |
} |
66 |
else |
67 |
{ |
68 |
var random_number = irandom_range(1, 2) |
69 |
while (end_loop == false) |
70 |
{ |
71 |
if (random_number == 1 && enemy_dead == false && enemy_spared == false) |
72 |
{ |
73 |
instance_create(242, 132, obj_quote_bubble_battle_yellow_2_reverse) |
74 |
instance_create(0, 0, obj_quote_battle_frostermit_a) |
75 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
76 |
end_loop = true |
77 |
break |
78 |
} |
79 |
else if (random_number == 2 && enemy_dead_2 == false && enemy_spared_2 == false) |
80 |
{ |
81 |
instance_create(170, 84, obj_quote_bubble_battle_yellow_3) |
82 |
instance_create(0, 0, obj_quote_battle_know_cone_b) |
83 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) |
84 |
end_loop = true |
85 |
break |
86 |
} |
87 |
else |
88 |
{ |
89 |
if (random_number == 1) |
90 |
random_number = 2 |
91 |
else |
92 |
random_number = 1 |
93 |
continue |
94 |
} |
95 |
} |
96 |
} |
97 |
} |