1 |
function scr_start_enemy_attacking_starloscr_start_enemy_attacking_starlofunction scr_start_enemy_attacking_starlo() //gml_Script_scr_start_enemy_attacking_starlo
{
instance_create(319, 320, obj_dialogue_box_battle_transformation_any)
if (global.turns_passed >= 18)
{
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)
scr_audio_fade_out(mus_showdown, 750)
if (global.action_1_selected_count >= 1)
{
instance_create(380, 74, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_starlo_outro_alt)
global.action_amount = 1
global.action_1_important = true
}
else
instance_create(319, 320, obj_battle_enemy_attack_starlo_outro_target)
}
else if (global.turns_passed == 17)
{
instance_create(380, 74, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_starlo_outro_1)
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)
scr_audio_fade_out(mus_showdown, 750)
global.action_amount = 1
global.action_1_important = true
}
else if (global.turns_passed == 0 || global.turns_passed == 10)
{
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)
with (obj_heart_battle_fighting_parent)
moveable = true
}
else if (global.turns_passed == 9)
{
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)
if (obj_starlo_boss_body.starlo_quote_noloop_1 == false)
{
obj_starlo_boss_body.starlo_quote_noloop_1 = true
instance_create(380, 74, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_starlo)
}
else
{
with (obj_heart_battle_fighting_parent)
moveable = true
}
}
else
{
instance_create(380, 74, obj_quote_bubble_battle_yellow_3)
instance_create(0, 0, obj_quote_battle_starlo)
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)
}
} () //gml_Script_scr_start_enemy_attacking_starlo |
2 |
{ |
3 |
instance_create(319, 320, obj_dialogue_box_battle_transformation_any) |
4 |
if (global.turns_passed >= 18) |
5 |
{ |
6 |
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) |
7 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len)
if instance_exists(obj_audio_fade_helper)
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd
} (mus_showdown, 750) |
8 |
if (global.action_1_selected_count >= 1) |
9 |
{ |
10 |
instance_create(380, 74, obj_quote_bubble_battle_yellow_3) |
11 |
instance_create(0, 0, obj_quote_battle_starlo_outro_alt) |
12 |
global.action_amount = 1 |
13 |
global.action_1_important = true |
14 |
} |
15 |
else |
16 |
instance_create(319, 320, obj_battle_enemy_attack_starlo_outro_target) |
17 |
} |
18 |
else if (global.turns_passed == 17) |
19 |
{ |
20 |
instance_create(380, 74, obj_quote_bubble_battle_yellow_3) |
21 |
instance_create(0, 0, obj_quote_battle_starlo_outro_1) |
22 |
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) |
23 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len)
if instance_exists(obj_audio_fade_helper)
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd
} (mus_showdown, 750) |
24 |
global.action_amount = 1 |
25 |
global.action_1_important = true |
26 |
} |
27 |
else if (global.turns_passed == 0 || global.turns_passed == 10) |
28 |
{ |
29 |
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) |
30 |
with (obj_heart_battle_fighting_parent) |
31 |
moveable = true |
32 |
} |
33 |
else if (global.turns_passed == 9) |
34 |
{ |
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 |
if (obj_starlo_boss_body.starlo_quote_noloop_1 == false) |
37 |
{ |
38 |
obj_starlo_boss_body.starlo_quote_noloop_1 = true |
39 |
instance_create(380, 74, obj_quote_bubble_battle_yellow_3) |
40 |
instance_create(0, 0, obj_quote_battle_starlo) |
41 |
} |
42 |
else |
43 |
{ |
44 |
with (obj_heart_battle_fighting_parent) |
45 |
moveable = true |
46 |
} |
47 |
} |
48 |
else |
49 |
{ |
50 |
instance_create(380, 74, obj_quote_bubble_battle_yellow_3) |
51 |
instance_create(0, 0, obj_quote_battle_starlo) |
52 |
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) |
53 |
} |
54 |
} |