1 |
function scr_generate_battle_ceroba_3scr_generate_battle_ceroba_3function scr_generate_battle_ceroba_3() //gml_Script_scr_generate_battle_ceroba_3
{
if live_call()
return global.live_result;
global.current_hp_self = global.max_hp_self
global.battle_enemy_name_1 = "ceroba"
global.battle_menu_number = 1
global.speed_self = 4
global.invulnerability_self = global.player_invulnerability
global.attacking_damage_cap = -1
global.hit_self = false
global.hurt_self = false
global.current_hp_enemy = 1000
global.max_hp_enemy = 1000
global.last_hp_enemy = global.current_hp_enemy
global.current_hp_enemy_draw = global.current_hp_enemy
global.enemy_low_hp = false
global.enemy_hit = false
global.enemy_hurt = false
global.enemy_attack_stat = 14
global.enemy_defense_stat = 15
global.enemy_vulnerable = true
global.enemy_attacking = false
global.enemy_sparing = false
global.enemy_dead = false
global.enemy_spared = false
global.enemy_betrayed = false
global.enemy_fleeable = false
global.enemy_special_text = 0
global.enemy_exp = 1500
global.enemy_gold = 30
global.enemy_count = 1
global.turns_passed = 0
global.last_action_selected = "Nothing"
global.action_1_important = false
global.action_2_important = false
global.action_3_important = false
global.action_1_color = 16777215
global.action_2_color = 16777215
global.action_3_color = 16777215
global.action_amount = 3
global.item_use = "Nothing"
global.item_used = "Nothing"
global.item_gift = "Nothing"
global.item_gifted = "Nothing"
global.image_alpha_enemy_attacking = 1
global.important_cutscene = false
global.can_attack = true
global.battle_phase = 1
global.action_1_selected_count = 0
global.action_2_selected_count = 0
global.action_3_selected_count = 0
global.spare_selected_count = 0
global.hit_count = 0
global.miss_count = 0
global.no_hit_count = 0
global.hurt_self_count = 0
global.hurt_self_turn_count = 0
global.item_use_count = 0
global.item_gift_count = 0
global.attack_cycle = 18
global.attack_cycle_max = 18
global.enemy_mode = 0
global.enemy_mode_previous = 0
if (global.sound_carry_overworld == false)
scr_audio_stop_sound(0)
audio_extend = false
global.sound_carry_battle = false
global.mettaton_voice_count = 1
if (!instance_exists(obj_ceroba_body_pacifist_phase_2))
{
instance_create_depth(318, 96, -1000, obj_ceroba_transformation_mask)
var battle_bg = instance_create_depth(0, 0, 0, obj_petal_generator_phase_2)
with (battle_bg)
{
fade_out = true
petals_enabled = false
image_alpha = 0
}
instance_create_depth(318, 250, 100, obj_ceroba_body_pacifist_phase_2)
with (obj_ceroba_body_pacifist_phase_2)
{
sprite_index = spr_ceroba_p2_get_up_1
image_index = 0
image_speed = 0
y = obj_ceroba_transformation_mask.y + 174
}
instance_create_depth(326, 230, 150, obj_ceroba_defeated_hair)
instance_create(0, 0, obj_ceroba_quote_controller_flashback_01)
instance_create_depth(obj_ceroba_body_pacifist_phase_2.x, 110, (obj_ceroba_transformation_mask.depth - 1), obj_ceroba_phase_2_shield)
}
global.enemy_target_x = obj_ceroba_body_pacifist_phase_2.x
global.enemy_target_y = obj_ceroba_body_pacifist_phase_2.y - 100
global.last_text_move_select = -1
instance_create(0, 0, obj_battle_fade_in_screen_white)
instance_create(275, 400, obj_battle_hp_current_self)
instance_create(275, 400, obj_battle_hp_max_self)
instance_create(275, 400, obj_battle_hp_cover_self)
instance_create(0, 0, obj_text_battle_stat_name)
instance_create(0, 0, obj_text_battle_stat_lv)
instance_create(244, 405, obj_text_hp)
... () //gml_Script_scr_generate_battle_ceroba_3 |
2 |
{ |
3 |
if live_call() |
4 |
return global.live_result; |
5 |
global.current_hp_self = global.max_hp_self |
6 |
global.battle_enemy_name_1 = "ceroba" |
7 |
global.battle_menu_number = 1 |
8 |
global.speed_self = 4 |
9 |
global.invulnerability_self = global.player_invulnerability |
10 |
global.attacking_damage_cap = -1 |
11 |
global.hit_self = false |
12 |
global.hurt_self = false |
13 |
global.current_hp_enemy = 1000 |
14 |
global.max_hp_enemy = 1000 |
15 |
global.last_hp_enemy = global.current_hp_enemy |
16 |
global.current_hp_enemy_draw = global.current_hp_enemy |
17 |
global.enemy_low_hp = false |
18 |
global.enemy_hit = false |
19 |
global.enemy_hurt = false |
20 |
global.enemy_attack_stat = 14 |
21 |
global.enemy_defense_stat = 15 |
22 |
global.enemy_vulnerable = true |
23 |
global.enemy_attacking = false |
24 |
global.enemy_sparing = false |
25 |
global.enemy_dead = false |
26 |
global.enemy_spared = false |
27 |
global.enemy_betrayed = false |
28 |
global.enemy_fleeable = false |
29 |
global.enemy_special_text = 0 |
30 |
global.enemy_exp = 1500 |
31 |
global.enemy_gold = 30 |
32 |
global.enemy_count = 1 |
33 |
global.turns_passed = 0 |
34 |
global.last_action_selected = "Nothing" |
35 |
global.action_1_important = false |
36 |
global.action_2_important = false |
37 |
global.action_3_important = false |
38 |
global.action_1_color = 16777215 |
39 |
global.action_2_color = 16777215 |
40 |
global.action_3_color = 16777215 |
41 |
global.action_amount = 3 |
42 |
global.item_use = "Nothing" |
43 |
global.item_used = "Nothing" |
44 |
global.item_gift = "Nothing" |
45 |
global.item_gifted = "Nothing" |
46 |
global.image_alpha_enemy_attacking = 1 |
47 |
global.important_cutscene = false |
48 |
global.can_attack = true |
49 |
global.battle_phase = 1 |
50 |
global.action_1_selected_count = 0 |
51 |
global.action_2_selected_count = 0 |
52 |
global.action_3_selected_count = 0 |
53 |
global.spare_selected_count = 0 |
54 |
global.hit_count = 0 |
55 |
global.miss_count = 0 |
56 |
global.no_hit_count = 0 |
57 |
global.hurt_self_count = 0 |
58 |
global.hurt_self_turn_count = 0 |
59 |
global.item_use_count = 0 |
60 |
global.item_gift_count = 0 |
61 |
global.attack_cycle = 18 |
62 |
global.attack_cycle_max = 18 |
63 |
global.enemy_mode = 0 |
64 |
global.enemy_mode_previous = 0 |
65 |
if (global.sound_carry_overworld == false) |
66 |
scr_audio_stop_soundscr_audio_stop_soundfunction scr_audio_stop_sound(argument0) //gml_Script_scr_audio_stop_sound
{
audio_array_val = 0
sound_y[audio_array_val] = mus_apprehension_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvopening_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_decibat_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvopening_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_01_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_02_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_03_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_04_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_05_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_06_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_07_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_08_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_09_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_10_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_finale_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_battle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_floweynew_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_funsized_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_genobattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_mart_geno_wind_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_martletbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_nobodycame_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_occupied_turf_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle1_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle2_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_battle_snowdin
audio_array_val += 1
sound_y[audio_array_val] = mus_trial_by_fury
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle3_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_heatwave_approaching
for (i = 0; i < array_length_1d(sound_y); i += 1)
{
var audio_gain = audio_sound_get_gain(sound_y[i])
if (audio_gain <= argument0)
audio_stop_sound(sound_y[i])
}
} (0) |
67 |
audio_extend = false |
68 |
global.sound_carry_battle = false |
69 |
global.mettaton_voice_count = 1 |
70 |
if (!instance_exists(obj_ceroba_body_pacifist_phase_2)) |
71 |
{ |
72 |
instance_create_depth(318, 96, -1000, obj_ceroba_transformation_mask) |
73 |
var battle_bg = instance_create_depth(0, 0, 0, obj_petal_generator_phase_2) |
74 |
with (battle_bg) |
75 |
{ |
76 |
fade_out = true |
77 |
petals_enabled = false |
78 |
image_alpha = 0 |
79 |
} |
80 |
instance_create_depth(318, 250, 100, obj_ceroba_body_pacifist_phase_2) |
81 |
with (obj_ceroba_body_pacifist_phase_2) |
82 |
{ |
83 |
sprite_index = spr_ceroba_p2_get_up_1 |
84 |
image_index = 0 |
85 |
image_speed = 0 |
86 |
y = obj_ceroba_transformation_mask.y + 174 |
87 |
} |
88 |
instance_create_depth(326, 230, 150, obj_ceroba_defeated_hair) |
89 |
instance_create(0, 0, obj_ceroba_quote_controller_flashback_01) |
90 |
instance_create_depth(obj_ceroba_body_pacifist_phase_2.x, 110, (obj_ceroba_transformation_mask.depth - 1), obj_ceroba_phase_2_shield) |
91 |
} |
92 |
global.enemy_target_x = obj_ceroba_body_pacifist_phase_2.x |
93 |
global.enemy_target_y = obj_ceroba_body_pacifist_phase_2.y - 100 |
94 |
global.last_text_move_select = -1 |
95 |
instance_create(0, 0, obj_battle_fade_in_screen_white) |
96 |
instance_create(275, 400, obj_battle_hp_current_self) |
97 |
instance_create(275, 400, obj_battle_hp_max_self) |
98 |
instance_create(275, 400, obj_battle_hp_cover_self) |
99 |
instance_create(0, 0, obj_text_battle_stat_name) |
100 |
instance_create(0, 0, obj_text_battle_stat_lv) |
101 |
instance_create(244, 405, obj_text_hp) |
102 |
instance_create(0, 0, obj_text_hp_stat) |
103 |
instance_create(32, 250, obj_dialogue_box_battle) |
104 |
instance_create(31, 431, obj_fight) |
105 |
instance_create(184, 431, obj_act) |
106 |
instance_create(344, 431, obj_item) |
107 |
instance_create(499, 431, obj_mercy) |
108 |
if global.option_autoshoot |
109 |
instance_create_depth(536, 399, 5, obj_autofire_toggle) |
110 |
instance_create_depth(0, 0, -1, obj_ceroba_phase_2_red_shader) |
111 |
global.soul_mode = "Red" |
112 |
instance_create((obj_fight.x + 17), (obj_fight.y + 23), obj_heart_battle_menu) |
113 |
obj_heart_battle_menu.image_alpha = 0 |
114 |
global.boss_mini = false |
115 |
} |