1 |
function scr_generate_battle_sweet_corn_duoscr_generate_battle_sweet_corn_duofunction scr_generate_battle_sweet_corn_duo() //gml_Script_scr_generate_battle_sweet_corn_duo
{
global.battle_enemy_name_1 = "sweet corn a"
global.battle_enemy_name_2 = "sweet corn b"
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.hit_self = false
global.hurt_self = false
global.current_hp_enemy = 30
global.current_hp_enemy_2 = 30
global.max_hp_enemy = 30
global.max_hp_enemy_2 = 30
global.last_hp_enemy = global.current_hp_enemy
global.last_hp_enemy_2 = global.current_hp_enemy_2
global.current_hp_enemy_draw = global.current_hp_enemy
global.current_hp_enemy_draw_2 = global.current_hp_enemy_2
global.enemy_low_hp = false
global.enemy_low_hp_2 = false
global.enemy_hit = false
global.enemy_hit_2 = false
global.enemy_hurt = false
global.enemy_hurt_2 = false
global.enemy_attack_stat = 3
global.enemy_attack_stat_2 = 3
global.enemy_defense_stat = 3
global.enemy_defense_stat_2 = 3
global.enemy_vulnerable = true
global.enemy_vulnerable_2 = true
global.enemy_attacking = false
global.enemy_sparing = false
global.enemy_sparing_2 = false
global.enemy_dead = false
global.enemy_dead_2 = false
global.enemy_spared = false
global.enemy_spared_2 = false
global.enemy_betrayed = false
global.enemy_betrayed_2 = false
global.enemy_fleeable = true
global.enemy_special_text = 0
global.enemy_special_text_2 = 0
global.enemy_exp = 3
global.enemy_exp_2 = 3
global.enemy_gold = 2
global.enemy_gold_2 = 2
global.enemy_count = 2
global.turns_passed = 0
global.last_action_selected = "Nothing"
global.last_action_selected_2 = "Nothing"
global.action_1_important = false
global.action_1_important_2 = false
global.action_2_important = false
global.action_2_important_2 = false
global.action_3_important = false
global.action_3_important_2 = false
global.action_1_color = 16777215
global.action_1_color_2 = 16777215
global.action_2_color = 16777215
global.action_2_color_2 = 16777215
global.action_3_color = 16777215
global.action_3_color_2 = 16777215
global.action_amount = 3
global.action_amount_2 = 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
global.action_2_selected_count = 0
global.action_2_selected_count_2 = 0
global.action_3_selected_count = 0
global.action_3_selected_count_2 = 0
global.spare_selected_count = 0
global.hit_count = 0
global.hit_count_2 = 0
global.miss_count = 0
global.miss_count_2 = 0
global.no_hit_count = 0
global.no_hit_count_2 = 0
global.hurt_self_count = 0
global.hurt_self_turn_count = 0
global.item_use_count = 0
global.item_gift_count = 0
global.item_gift_count_2 = 0
global.enemy_mode = 0
global.enemy_mode_previous = 0
global.enemy_mode_2 = 0
global.enemy_mode_2_previous = 0
global.enemy_mode_gen = 0
global.enemy_mode_gen_previous = 0
global.enemy_mode_gen_2 = 0
global.enemy_mode_gen_2_previous = 0
scr_audio_stop_sound(0)
script_execute(gml_Script_scr_determine_enemy_music_yellow)
audio_extend = false
... () //gml_Script_scr_generate_battle_sweet_corn_duo |
2 |
{ |
3 |
global.battle_enemy_name_1 = "sweet corn a" |
4 |
global.battle_enemy_name_2 = "sweet corn b" |
5 |
global.battle_menu_number = 1 |
6 |
global.speed_self = 4 |
7 |
global.invulnerability_self = global.player_invulnerability |
8 |
global.attacking_damage_cap = -1 |
9 |
global.attacking_damage_cap_2 = -1 |
10 |
global.hit_self = false |
11 |
global.hurt_self = false |
12 |
global.current_hp_enemy = 30 |
13 |
global.current_hp_enemy_2 = 30 |
14 |
global.max_hp_enemy = 30 |
15 |
global.max_hp_enemy_2 = 30 |
16 |
global.last_hp_enemy = global.current_hp_enemy |
17 |
global.last_hp_enemy_2 = global.current_hp_enemy_2 |
18 |
global.current_hp_enemy_draw = global.current_hp_enemy |
19 |
global.current_hp_enemy_draw_2 = global.current_hp_enemy_2 |
20 |
global.enemy_low_hp = false |
21 |
global.enemy_low_hp_2 = false |
22 |
global.enemy_hit = false |
23 |
global.enemy_hit_2 = false |
24 |
global.enemy_hurt = false |
25 |
global.enemy_hurt_2 = false |
26 |
global.enemy_attack_stat = 3 |
27 |
global.enemy_attack_stat_2 = 3 |
28 |
global.enemy_defense_stat = 3 |
29 |
global.enemy_defense_stat_2 = 3 |
30 |
global.enemy_vulnerable = true |
31 |
global.enemy_vulnerable_2 = true |
32 |
global.enemy_attacking = false |
33 |
global.enemy_sparing = false |
34 |
global.enemy_sparing_2 = false |
35 |
global.enemy_dead = false |
36 |
global.enemy_dead_2 = false |
37 |
global.enemy_spared = false |
38 |
global.enemy_spared_2 = false |
39 |
global.enemy_betrayed = false |
40 |
global.enemy_betrayed_2 = false |
41 |
global.enemy_fleeable = true |
42 |
global.enemy_special_text = 0 |
43 |
global.enemy_special_text_2 = 0 |
44 |
global.enemy_exp = 3 |
45 |
global.enemy_exp_2 = 3 |
46 |
global.enemy_gold = 2 |
47 |
global.enemy_gold_2 = 2 |
48 |
global.enemy_count = 2 |
49 |
global.turns_passed = 0 |
50 |
global.last_action_selected = "Nothing" |
51 |
global.last_action_selected_2 = "Nothing" |
52 |
global.action_1_important = false |
53 |
global.action_1_important_2 = false |
54 |
global.action_2_important = false |
55 |
global.action_2_important_2 = false |
56 |
global.action_3_important = false |
57 |
global.action_3_important_2 = false |
58 |
global.action_1_color = 16777215 |
59 |
global.action_1_color_2 = 16777215 |
60 |
global.action_2_color = 16777215 |
61 |
global.action_2_color_2 = 16777215 |
62 |
global.action_3_color = 16777215 |
63 |
global.action_3_color_2 = 16777215 |
64 |
global.action_amount = 3 |
65 |
global.action_amount_2 = 3 |
66 |
global.item_use = "Nothing" |
67 |
global.item_used = "Nothing" |
68 |
global.item_gift = "Nothing" |
69 |
global.item_gifted = "Nothing" |
70 |
global.image_alpha_enemy_attacking = 1 |
71 |
global.important_cutscene = false |
72 |
global.can_attack = true |
73 |
global.action_1_selected_count = 0 |
74 |
global.action_1_selected_count_2 = 0 |
75 |
global.action_2_selected_count = 0 |
76 |
global.action_2_selected_count_2 = 0 |
77 |
global.action_3_selected_count = 0 |
78 |
global.action_3_selected_count_2 = 0 |
79 |
global.spare_selected_count = 0 |
80 |
global.hit_count = 0 |
81 |
global.hit_count_2 = 0 |
82 |
global.miss_count = 0 |
83 |
global.miss_count_2 = 0 |
84 |
global.no_hit_count = 0 |
85 |
global.no_hit_count_2 = 0 |
86 |
global.hurt_self_count = 0 |
87 |
global.hurt_self_turn_count = 0 |
88 |
global.item_use_count = 0 |
89 |
global.item_gift_count = 0 |
90 |
global.item_gift_count_2 = 0 |
91 |
global.enemy_mode = 0 |
92 |
global.enemy_mode_previous = 0 |
93 |
global.enemy_mode_2 = 0 |
94 |
global.enemy_mode_2_previous = 0 |
95 |
global.enemy_mode_gen = 0 |
96 |
global.enemy_mode_gen_previous = 0 |
97 |
global.enemy_mode_gen_2 = 0 |
98 |
global.enemy_mode_gen_2_previous = 0 |
99 |
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) |
100 |
script_execute(gml_Script_scr_determine_enemy_music_yellow) |
101 |
audio_extend = false |
102 |
global.sound_carry_battle = false |
103 |
global.mettaton_voice_count = 1 |
104 |
instance_create(168, 240, obj_sweet_corn_cob_a) |
105 |
instance_create(168, 240, obj_sweet_corn_husk_a) |
106 |
global.enemy_damage_x = obj_sweet_corn_husk_a.x |
107 |
global.enemy_damage_y = obj_sweet_corn_husk_a.y - 60 |
108 |
global.enemy_target_x = obj_sweet_corn_husk_a.x |
109 |
global.enemy_target_y = obj_sweet_corn_husk_a.y - 60 |
110 |
instance_create(472, 240, obj_sweet_corn_cob_b) |
111 |
instance_create(472, 240, obj_sweet_corn_husk_b) |
112 |
global.enemy_damage_x_2 = obj_sweet_corn_husk_b.x |
113 |
global.enemy_damage_y_2 = obj_sweet_corn_husk_b.y - 60 |
114 |
global.enemy_target_x_2 = obj_sweet_corn_husk_b.x |
115 |
global.enemy_target_y_2 = obj_sweet_corn_husk_b.y - 60 |
116 |
script_execute(gml_Script_scr_create_background_battle_yellow) |
117 |
instance_create(0, 0, obj_battle_fade_in_screen) |
118 |
instance_create(275, 400, obj_battle_hp_current_self) |
119 |
instance_create(275, 400, obj_battle_hp_max_self) |
120 |
instance_create(275, 400, obj_battle_hp_cover_self) |
121 |
instance_create(0, 0, obj_text_battle_stat_name) |
122 |
instance_create(0, 0, obj_text_battle_stat_lv) |
123 |
instance_create(244, 405, obj_text_hp) |
124 |
instance_create(0, 0, obj_text_hp_stat) |
125 |
instance_create(32, 250, obj_dialogue_box_battle) |
126 |
instance_create(31, 431, obj_fight) |
127 |
instance_create(184, 431, obj_act) |
128 |
instance_create(344, 431, obj_item) |
129 |
instance_create(499, 431, obj_mercy) |
130 |
global.last_text_move_select = 0 |
131 |
global.soul_mode = "Red" |
132 |
instance_create((obj_fight.x + 17), (obj_fight.y + 23), obj_heart_battle_menu) |
133 |
instance_create(0, 0, obj_dialogue_battle_move_select_intro) |
134 |
} |