Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_generate_battle_asgore

(view raw script w/o annotations or w/e)
1
function scr_generate_battle_asgore
scr_generate_battle_asgore

function scr_generate_battle_asgore() //gml_Script_scr_generate_battle_asgore { global.battle_enemy_name_1 = "asgore" 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.current_hp_self = 9999 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 = 0 global.enemy_defense_stat = 0 global.enemy_vulnerable = true global.enemy_attacking = true 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 = 20 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.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.attack_cycle = 0 global.attack_cycle_max = 7 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 global.enemy_target_x = 0 global.enemy_target_y = 0 global.last_text_move_select = -1 instance_create(319, 320, obj_dialogue_box_battle) global.soul_mode = "Red" global.boss_mini = false global.enemy_attack = "Asgore Attack" global.image_alpha_enemy_attacking_immunity = true global.battle_phase = 1 audio_sound_gain(mus_vsasgore, 1, 0) audio_sound_pitch(mus_vsasgore, 1) global.battle_music = audio_play_sound(mus_vsasgore, 20, true) }
() //gml_Script_scr_generate_battle_asgore
2
{
3
    global.battle_enemy_name_1 = "asgore"
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 = 1000
11
    global.current_hp_self = 9999
12
    global.max_hp_enemy = 1000
13
    global.last_hp_enemy = global.current_hp_enemy
14
    global.current_hp_enemy_draw = global.current_hp_enemy
15
    global.enemy_low_hp = false
16
    global.enemy_hit = false
17
    global.enemy_hurt = false
18
    global.enemy_attack_stat = 0
19
    global.enemy_defense_stat = 0
20
    global.enemy_vulnerable = true
21
    global.enemy_attacking = true
22
    global.enemy_sparing = false
23
    global.enemy_dead = false
24
    global.enemy_spared = false
25
    global.enemy_betrayed = false
26
    global.enemy_fleeable = false
27
    global.enemy_special_text = 0
28
    global.enemy_exp = 1500
29
    global.enemy_gold = 20
30
    global.enemy_count = 1
31
    global.turns_passed = 0
32
    global.last_action_selected = "Nothing"
33
    global.action_1_important = false
34
    global.action_2_important = false
35
    global.action_3_important = false
36
    global.action_1_color = 16777215
37
    global.action_2_color = 16777215
38
    global.action_3_color = 16777215
39
    global.action_amount = 3
40
    global.item_use = "Nothing"
41
    global.item_used = "Nothing"
42
    global.item_gift = "Nothing"
43
    global.item_gifted = "Nothing"
44
    global.image_alpha_enemy_attacking = 1
45
    global.important_cutscene = false
46
    global.can_attack = true
47
    global.action_1_selected_count = 0
48
    global.action_2_selected_count = 0
49
    global.spare_selected_count = 0
50
    global.hit_count = 0
51
    global.miss_count = 0
52
    global.no_hit_count = 0
53
    global.hurt_self_count = 0
54
    global.hurt_self_turn_count = 0
55
    global.item_use_count = 0
56
    global.item_gift_count = 0
57
    global.attack_cycle = 0
58
    global.attack_cycle_max = 7
59
    global.enemy_mode = 0
60
    global.enemy_mode_previous = 0
61
    if (global.sound_carry_overworld == false)
62
        scr_audio_stop_sound
scr_audio_stop_sound

function 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)
63
    audio_extend = false
64
    global.sound_carry_battle = false
65
    global.mettaton_voice_count = 1
66
    global.enemy_target_x = 0
67
    global.enemy_target_y = 0
68
    global.last_text_move_select = -1
69
    instance_create(319, 320, obj_dialogue_box_battle)
70
    global.soul_mode = "Red"
71
    global.boss_mini = false
72
    global.enemy_attack = "Asgore Attack"
73
    global.image_alpha_enemy_attacking_immunity = true
74
    global.battle_phase = 1
75
    audio_sound_gain(mus_vsasgore, 1, 0)
76
    audio_sound_pitch(mus_vsasgore, 1)
77
    global.battle_music = audio_play_sound(mus_vsasgore, 20, true)
78
}