1 |
function scr_generate_battle_froggit_intro_yellowscr_generate_battle_froggit_intro_yellowfunction scr_generate_battle_froggit_intro_yellow() //gml_Script_scr_generate_battle_froggit_intro_yellow
{
global.battle_enemy_name_1 = "froggit intro"
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 = 50
global.max_hp_enemy = 50
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 = 3
global.enemy_defense_stat = 2
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 = 10
global.enemy_gold = 2
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_amount = 2
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_2_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.enemy_mode = 0
global.enemy_mode_previous = 0
global.enemy_mode_gen = 0
global.enemy_mode_gen_previous = 0
if (global.sound_carry_overworld == false)
{
scr_audio_stop_sound(0)
audio_sound_gain(mus_prebattle1_yellow, 1, 0)
audio_sound_pitch(mus_prebattle1_yellow, 1)
audio_play_sound(mus_prebattle1_yellow, 20, true)
}
audio_extend = false
global.sound_carry_battle = false
global.mettaton_voice_count = 1
instance_create(170, 196, obj_froggit_intro_head_yellow)
instance_create(170, 196, obj_froggit_intro_body_yellow)
global.enemy_damage_x = obj_froggit_intro_body_yellow.x
global.enemy_damage_y = obj_froggit_intro_body_yellow.y
global.enemy_target_x = obj_froggit_intro_body_yellow.x
global.enemy_target_y = obj_froggit_intro_body_yellow.y
instance_create(0, 0, obj_battle_fade_in_screen)
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)
instance_create(0, 0, obj_text_hp_stat)
instance_create(0, 0, obj_background_enemy_battle)
instance_create(32, 250, obj_dialogue_box_battle)
instance_create(31, 431, obj_fight)
instance_create(184, 431, obj_act)
instance_create(344, 431, obj_item)
instance_create(499, 431, obj_mercy)
global.last_text_move_select = 0
global.soul_mode = "Red"
instance_create((obj_fight.x + 17), (obj_fight.y + 23), obj_heart_battle_menu)
instance_create(0, 0, obj_dialogue_battle_move_select_intro)
global.boss_mini = true
global.enemy_attack = "Nothing"
} () //gml_Script_scr_generate_battle_froggit_intro_yellow |
2 |
{ |
3 |
global.battle_enemy_name_1 = "froggit intro" |
4 |
global.battle_menu_number = 1 |
5 |
global.speed_self = 4 |
6 |
global.invulnerability_self = global.player_invulnerability |
7 |
global.attacking_damage_cap = -1 |
8 |
global.hit_self = false |
9 |
global.hurt_self = false |
10 |
global.current_hp_enemy = 50 |
11 |
global.max_hp_enemy = 50 |
12 |
global.last_hp_enemy = global.current_hp_enemy |
13 |
global.current_hp_enemy_draw = global.current_hp_enemy |
14 |
global.enemy_low_hp = false |
15 |
global.enemy_hit = false |
16 |
global.enemy_hurt = false |
17 |
global.enemy_attack_stat = 3 |
18 |
global.enemy_defense_stat = 2 |
19 |
global.enemy_vulnerable = true |
20 |
global.enemy_attacking = false |
21 |
global.enemy_sparing = false |
22 |
global.enemy_dead = false |
23 |
global.enemy_spared = false |
24 |
global.enemy_betrayed = false |
25 |
global.enemy_fleeable = false |
26 |
global.enemy_special_text = 0 |
27 |
global.enemy_exp = 10 |
28 |
global.enemy_gold = 2 |
29 |
global.enemy_count = 1 |
30 |
global.turns_passed = 0 |
31 |
global.last_action_selected = "Nothing" |
32 |
global.action_1_important = false |
33 |
global.action_2_important = false |
34 |
global.action_amount = 2 |
35 |
global.item_use = "Nothing" |
36 |
global.item_used = "Nothing" |
37 |
global.item_gift = "Nothing" |
38 |
global.item_gifted = "Nothing" |
39 |
global.image_alpha_enemy_attacking = 1 |
40 |
global.important_cutscene = false |
41 |
global.can_attack = true |
42 |
global.action_1_selected_count = 0 |
43 |
global.action_2_selected_count = 0 |
44 |
global.spare_selected_count = 0 |
45 |
global.hit_count = 0 |
46 |
global.miss_count = 0 |
47 |
global.no_hit_count = 0 |
48 |
global.hurt_self_count = 0 |
49 |
global.hurt_self_turn_count = 0 |
50 |
global.item_use_count = 0 |
51 |
global.item_gift_count = 0 |
52 |
global.enemy_mode = 0 |
53 |
global.enemy_mode_previous = 0 |
54 |
global.enemy_mode_gen = 0 |
55 |
global.enemy_mode_gen_previous = 0 |
56 |
if (global.sound_carry_overworld == false) |
57 |
{ |
58 |
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) |
59 |
audio_sound_gain(mus_prebattle1_yellow, 1, 0) |
60 |
audio_sound_pitch(mus_prebattle1_yellow, 1) |
61 |
audio_play_sound(mus_prebattle1_yellow, 20, true) |
62 |
} |
63 |
audio_extend = false |
64 |
global.sound_carry_battle = false |
65 |
global.mettaton_voice_count = 1 |
66 |
instance_create(170, 196, obj_froggit_intro_head_yellow) |
67 |
instance_create(170, 196, obj_froggit_intro_body_yellow) |
68 |
global.enemy_damage_x = obj_froggit_intro_body_yellow.x |
69 |
global.enemy_damage_y = obj_froggit_intro_body_yellow.y |
70 |
global.enemy_target_x = obj_froggit_intro_body_yellow.x |
71 |
global.enemy_target_y = obj_froggit_intro_body_yellow.y |
72 |
instance_create(0, 0, obj_battle_fade_in_screen) |
73 |
instance_create(275, 400, obj_battle_hp_current_self) |
74 |
instance_create(275, 400, obj_battle_hp_max_self) |
75 |
instance_create(275, 400, obj_battle_hp_cover_self) |
76 |
instance_create(0, 0, obj_text_battle_stat_name) |
77 |
instance_create(0, 0, obj_text_battle_stat_lv) |
78 |
instance_create(244, 405, obj_text_hp) |
79 |
instance_create(0, 0, obj_text_hp_stat) |
80 |
instance_create(0, 0, obj_background_enemy_battle) |
81 |
instance_create(32, 250, obj_dialogue_box_battle) |
82 |
instance_create(31, 431, obj_fight) |
83 |
instance_create(184, 431, obj_act) |
84 |
instance_create(344, 431, obj_item) |
85 |
instance_create(499, 431, obj_mercy) |
86 |
global.last_text_move_select = 0 |
87 |
global.soul_mode = "Red" |
88 |
instance_create((obj_fight.x + 17), (obj_fight.y + 23), obj_heart_battle_menu) |
89 |
instance_create(0, 0, obj_dialogue_battle_move_select_intro) |
90 |
global.boss_mini = true |
91 |
global.enemy_attack = "Nothing" |
92 |
} |