1 |
function scr_generate_battle_flier_trioscr_generate_battle_flier_triofunction scr_generate_battle_flier_trio() //gml_Script_scr_generate_battle_flier_trio
{
global.battle_enemy_name_1 = "flier a"
global.battle_enemy_name_2 = "flier b"
global.battle_enemy_name_3 = "flier c"
global.battle_menu_number = 1
global.speed_self = 4
global.invulnerability_self = global.player_invulnerability
global.attacking_damage_cap = -1
global.attacking_damage_cap_2 = -1
global.attacking_damage_cap_3 = -1
global.hit_self = false
global.hurt_self = false
global.current_hp_enemy = 30
global.current_hp_enemy_2 = 30
global.current_hp_enemy_3 = 30
global.max_hp_enemy = 30
global.max_hp_enemy_2 = 30
global.max_hp_enemy_3 = 30
global.last_hp_enemy = global.current_hp_enemy
global.last_hp_enemy_2 = global.current_hp_enemy_2
global.last_hp_enemy_3 = global.current_hp_enemy_3
global.current_hp_enemy_draw = global.current_hp_enemy
global.current_hp_enemy_draw_2 = global.current_hp_enemy_2
global.current_hp_enemy_draw_3 = global.current_hp_enemy_3
global.enemy_low_hp = false
global.enemy_low_hp_2 = false
global.enemy_low_hp_3 = false
global.enemy_hit = false
global.enemy_hit_2 = false
global.enemy_hit_3 = false
global.enemy_hurt = false
global.enemy_hurt_2 = false
global.enemy_hurt_3 = false
global.enemy_attack_stat = 3
global.enemy_attack_stat_2 = 3
global.enemy_attack_stat_3 = 3
global.enemy_defense_stat = 2
global.enemy_defense_stat_2 = 2
global.enemy_defense_stat_3 = 2
global.enemy_vulnerable = true
global.enemy_vulnerable_2 = true
global.enemy_vulnerable_3 = true
global.enemy_attacking = false
global.enemy_sparing = false
global.enemy_sparing_2 = false
global.enemy_sparing_3 = false
global.enemy_dead = false
global.enemy_dead_2 = false
global.enemy_dead_3 = false
global.enemy_spared = false
global.enemy_spared_2 = false
global.enemy_spared_3 = false
global.enemy_betrayed = false
global.enemy_betrayed_2 = false
global.enemy_betrayed_3 = false
global.enemy_fleeable = true
global.enemy_special_text = 0
global.enemy_special_text_2 = 0
global.enemy_special_text_3 = 0
global.enemy_exp = 2
global.enemy_exp_2 = 2
global.enemy_exp_3 = 2
global.enemy_gold = 2
global.enemy_gold_2 = 2
global.enemy_gold_3 = 2
global.enemy_count = 3
global.turns_passed = 0
global.last_action_selected = "Nothing"
global.last_action_selected_2 = "Nothing"
global.last_action_selected_3 = "Nothing"
global.action_1_important = false
global.action_1_important_2 = false
global.action_1_important_3 = false
global.action_2_important = false
global.action_2_important_2 = false
global.action_2_important_3 = false
global.action_3_important = false
global.action_3_important_2 = false
global.action_3_important_3 = false
global.action_1_color = 16777215
global.action_1_color_2 = 16777215
global.action_1_color_3 = 16777215
global.action_2_color = 16777215
global.action_2_color_2 = 16777215
global.action_2_color_3 = 16777215
global.action_3_color = 16777215
global.action_3_color_2 = 16777215
global.action_3_color_3 = 16777215
global.action_amount = 3
global.action_amount_2 = 3
global.action_amount_3 = 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.action_1_selected_count = 0
global.action_1_selected_count_2 = 0
... () //gml_Script_scr_generate_battle_flier_trio |
2 |
{ |
3 |
global.battle_enemy_name_1 = "flier a" |
4 |
global.battle_enemy_name_2 = "flier b" |
5 |
global.battle_enemy_name_3 = "flier c" |
6 |
global.battle_menu_number = 1 |
7 |
global.speed_self = 4 |
8 |
global.invulnerability_self = global.player_invulnerability |
9 |
global.attacking_damage_cap = -1 |
10 |
global.attacking_damage_cap_2 = -1 |
11 |
global.attacking_damage_cap_3 = -1 |
12 |
global.hit_self = false |
13 |
global.hurt_self = false |
14 |
global.current_hp_enemy = 30 |
15 |
global.current_hp_enemy_2 = 30 |
16 |
global.current_hp_enemy_3 = 30 |
17 |
global.max_hp_enemy = 30 |
18 |
global.max_hp_enemy_2 = 30 |
19 |
global.max_hp_enemy_3 = 30 |
20 |
global.last_hp_enemy = global.current_hp_enemy |
21 |
global.last_hp_enemy_2 = global.current_hp_enemy_2 |
22 |
global.last_hp_enemy_3 = global.current_hp_enemy_3 |
23 |
global.current_hp_enemy_draw = global.current_hp_enemy |
24 |
global.current_hp_enemy_draw_2 = global.current_hp_enemy_2 |
25 |
global.current_hp_enemy_draw_3 = global.current_hp_enemy_3 |
26 |
global.enemy_low_hp = false |
27 |
global.enemy_low_hp_2 = false |
28 |
global.enemy_low_hp_3 = false |
29 |
global.enemy_hit = false |
30 |
global.enemy_hit_2 = false |
31 |
global.enemy_hit_3 = false |
32 |
global.enemy_hurt = false |
33 |
global.enemy_hurt_2 = false |
34 |
global.enemy_hurt_3 = false |
35 |
global.enemy_attack_stat = 3 |
36 |
global.enemy_attack_stat_2 = 3 |
37 |
global.enemy_attack_stat_3 = 3 |
38 |
global.enemy_defense_stat = 2 |
39 |
global.enemy_defense_stat_2 = 2 |
40 |
global.enemy_defense_stat_3 = 2 |
41 |
global.enemy_vulnerable = true |
42 |
global.enemy_vulnerable_2 = true |
43 |
global.enemy_vulnerable_3 = true |
44 |
global.enemy_attacking = false |
45 |
global.enemy_sparing = false |
46 |
global.enemy_sparing_2 = false |
47 |
global.enemy_sparing_3 = false |
48 |
global.enemy_dead = false |
49 |
global.enemy_dead_2 = false |
50 |
global.enemy_dead_3 = false |
51 |
global.enemy_spared = false |
52 |
global.enemy_spared_2 = false |
53 |
global.enemy_spared_3 = false |
54 |
global.enemy_betrayed = false |
55 |
global.enemy_betrayed_2 = false |
56 |
global.enemy_betrayed_3 = false |
57 |
global.enemy_fleeable = true |
58 |
global.enemy_special_text = 0 |
59 |
global.enemy_special_text_2 = 0 |
60 |
global.enemy_special_text_3 = 0 |
61 |
global.enemy_exp = 2 |
62 |
global.enemy_exp_2 = 2 |
63 |
global.enemy_exp_3 = 2 |
64 |
global.enemy_gold = 2 |
65 |
global.enemy_gold_2 = 2 |
66 |
global.enemy_gold_3 = 2 |
67 |
global.enemy_count = 3 |
68 |
global.turns_passed = 0 |
69 |
global.last_action_selected = "Nothing" |
70 |
global.last_action_selected_2 = "Nothing" |
71 |
global.last_action_selected_3 = "Nothing" |
72 |
global.action_1_important = false |
73 |
global.action_1_important_2 = false |
74 |
global.action_1_important_3 = false |
75 |
global.action_2_important = false |
76 |
global.action_2_important_2 = false |
77 |
global.action_2_important_3 = false |
78 |
global.action_3_important = false |
79 |
global.action_3_important_2 = false |
80 |
global.action_3_important_3 = false |
81 |
global.action_1_color = 16777215 |
82 |
global.action_1_color_2 = 16777215 |
83 |
global.action_1_color_3 = 16777215 |
84 |
global.action_2_color = 16777215 |
85 |
global.action_2_color_2 = 16777215 |
86 |
global.action_2_color_3 = 16777215 |
87 |
global.action_3_color = 16777215 |
88 |
global.action_3_color_2 = 16777215 |
89 |
global.action_3_color_3 = 16777215 |
90 |
global.action_amount = 3 |
91 |
global.action_amount_2 = 3 |
92 |
global.action_amount_3 = 3 |
93 |
global.item_use = "Nothing" |
94 |
global.item_used = "Nothing" |
95 |
global.item_gift = "Nothing" |
96 |
global.item_gifted = "Nothing" |
97 |
global.image_alpha_enemy_attacking = 1 |
98 |
global.important_cutscene = false |
99 |
global.can_attack = true |
100 |
global.action_1_selected_count = 0 |
101 |
global.action_1_selected_count_2 = 0 |
102 |
global.action_1_selected_count_3 = 0 |
103 |
global.action_2_selected_count = 0 |
104 |
global.action_2_selected_count_2 = 0 |
105 |
global.action_2_selected_count_3 = 0 |
106 |
global.action_3_selected_count = 0 |
107 |
global.action_3_selected_count_2 = 0 |
108 |
global.action_3_selected_count_3 = 0 |
109 |
global.spare_selected_count = 0 |
110 |
global.hit_count = 0 |
111 |
global.hit_count_2 = 0 |
112 |
global.hit_count_3 = 0 |
113 |
global.miss_count = 0 |
114 |
global.miss_count_2 = 0 |
115 |
global.miss_count_3 = 0 |
116 |
global.no_hit_count = 0 |
117 |
global.no_hit_count_2 = 0 |
118 |
global.no_hit_count_3 = 0 |
119 |
global.hurt_self_count = 0 |
120 |
global.hurt_self_turn_count = 0 |
121 |
global.item_use_count = 0 |
122 |
global.item_gift_count = 0 |
123 |
global.item_gift_count_2 = 0 |
124 |
global.item_gift_count_3 = 0 |
125 |
global.enemy_mode = 0 |
126 |
global.enemy_mode_previous = 0 |
127 |
global.enemy_mode_2 = 0 |
128 |
global.enemy_mode_2_previous = 0 |
129 |
global.enemy_mode_3 = 0 |
130 |
global.enemy_mode_3_previous = 0 |
131 |
global.enemy_mode_gen = 0 |
132 |
global.enemy_mode_gen_previous = 0 |
133 |
global.enemy_mode_gen_2 = 0 |
134 |
global.enemy_mode_gen_2_previous = 0 |
135 |
global.enemy_mode_gen_3 = 0 |
136 |
global.enemy_mode_gen_3_previous = 0 |
137 |
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) |
138 |
script_execute(gml_Script_scr_determine_enemy_music_yellow) |
139 |
audio_extend = false |
140 |
global.sound_carry_battle = false |
141 |
global.mettaton_voice_count = 1 |
142 |
instance_create(66, 68, obj_flier_a) |
143 |
global.enemy_damage_x = obj_flier_a.x |
144 |
global.enemy_damage_y = obj_flier_a.y |
145 |
global.enemy_target_x = obj_flier_a.x |
146 |
global.enemy_target_y = obj_flier_a.y |
147 |
instance_create(268, 68, obj_flier_b) |
148 |
global.enemy_damage_x_2 = obj_flier_b.x |
149 |
global.enemy_damage_y_2 = obj_flier_b.y |
150 |
global.enemy_target_x_2 = obj_flier_b.x |
151 |
global.enemy_target_y_2 = obj_flier_b.y |
152 |
instance_create(472, 68, obj_flier_c) |
153 |
global.enemy_damage_x_3 = obj_flier_c.x |
154 |
global.enemy_damage_y_3 = obj_flier_c.y |
155 |
global.enemy_target_x_3 = obj_flier_c.x |
156 |
global.enemy_target_y_3 = obj_flier_c.y |
157 |
script_execute(gml_Script_scr_create_background_battle_yellow) |
158 |
instance_create(0, 0, obj_battle_fade_in_screen) |
159 |
instance_create(275, 400, obj_battle_hp_current_self) |
160 |
instance_create(275, 400, obj_battle_hp_max_self) |
161 |
instance_create(275, 400, obj_battle_hp_cover_self) |
162 |
instance_create(0, 0, obj_text_battle_stat_name) |
163 |
instance_create(0, 0, obj_text_battle_stat_lv) |
164 |
instance_create(244, 405, obj_text_hp) |
165 |
instance_create(0, 0, obj_text_hp_stat) |
166 |
instance_create(32, 250, obj_dialogue_box_battle) |
167 |
instance_create(31, 431, obj_fight) |
168 |
instance_create(184, 431, obj_act) |
169 |
instance_create(344, 431, obj_item) |
170 |
instance_create(499, 431, obj_mercy) |
171 |
global.last_text_move_select = 0 |
172 |
global.soul_mode = "Red" |
173 |
instance_create((obj_fight.x + 17), (obj_fight.y + 23), obj_heart_battle_menu) |
174 |
instance_create(0, 0, obj_dialogue_battle_move_select_intro) |
175 |
} |