Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_generate_battle_jandroid_goosic_duo

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

function scr_generate_battle_jandroid_goosic_duo() //gml_Script_scr_generate_battle_jandroid_goosic_duo { global.battle_enemy_name_1 = "jandroid a" global.battle_enemy_name_2 = "goosic 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 = 150 global.current_hp_enemy_2 = 160 global.max_hp_enemy = 150 global.max_hp_enemy_2 = 160 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 = 11 global.enemy_attack_stat_2 = 12 global.enemy_defense_stat = 7 global.enemy_defense_stat_2 = 8 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 = 0 global.enemy_exp_2 = 0 global.enemy_gold = 18 global.enemy_gold_2 = 18 global.enemy_count = 2 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_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) audio_listener_position(0, 0, 0) ...
() //gml_Script_scr_generate_battle_jandroid_goosic_duo
2
{
3
    global.battle_enemy_name_1 = "jandroid a"
4
    global.battle_enemy_name_2 = "goosic 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 = 150
13
    global.current_hp_enemy_2 = 160
14
    global.max_hp_enemy = 150
15
    global.max_hp_enemy_2 = 160
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 = 11
27
    global.enemy_attack_stat_2 = 12
28
    global.enemy_defense_stat = 7
29
    global.enemy_defense_stat_2 = 8
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 = 0
45
    global.enemy_exp_2 = 0
46
    global.enemy_gold = 18
47
    global.enemy_gold_2 = 18
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.last_action_selected_3 = "Nothing"
53
    global.action_1_important = false
54
    global.action_1_important_2 = false
55
    global.action_2_important = false
56
    global.action_2_important_2 = false
57
    global.action_3_important = false
58
    global.action_3_important_2 = false
59
    global.action_1_color = 16777215
60
    global.action_1_color_2 = 16777215
61
    global.action_2_color = 16777215
62
    global.action_2_color_2 = 16777215
63
    global.action_3_color = 16777215
64
    global.action_3_color_2 = 16777215
65
    global.action_amount = 3
66
    global.action_amount_2 = 3
67
    global.item_use = "Nothing"
68
    global.item_used = "Nothing"
69
    global.item_gift = "Nothing"
70
    global.item_gifted = "Nothing"
71
    global.image_alpha_enemy_attacking = 1
72
    global.important_cutscene = false
73
    global.can_attack = true
74
    global.action_1_selected_count = 0
75
    global.action_1_selected_count_2 = 0
76
    global.action_2_selected_count = 0
77
    global.action_2_selected_count_2 = 0
78
    global.action_3_selected_count = 0
79
    global.action_3_selected_count_2 = 0
80
    global.spare_selected_count = 0
81
    global.hit_count = 0
82
    global.hit_count_2 = 0
83
    global.miss_count = 0
84
    global.miss_count_2 = 0
85
    global.no_hit_count = 0
86
    global.no_hit_count_2 = 0
87
    global.hurt_self_count = 0
88
    global.hurt_self_turn_count = 0
89
    global.item_use_count = 0
90
    global.item_gift_count = 0
91
    global.item_gift_count_2 = 0
92
    global.enemy_mode = 0
93
    global.enemy_mode_previous = 0
94
    global.enemy_mode_2 = 0
95
    global.enemy_mode_2_previous = 0
96
    global.enemy_mode_gen = 0
97
    global.enemy_mode_gen_previous = 0
98
    global.enemy_mode_gen_2 = 0
99
    global.enemy_mode_gen_2_previous = 0
100
    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)
101
    audio_listener_position(0, 0, 0)
102
    audio_falloff_set_model(0)
103
    audio_listener_orientation(0, 0, 1, 0, 1, 0)
104
    if (global.kill_number[4] <= 7)
105
    {
106
        if (global.kill_number[4] > 0)
107
        {
108
            audio_play_sound_at(mus_genobattle_yellow, 0, 0, 0, 100, 300, 1, 1, 1)
109
            audio_sound_gain(mus_genobattle_yellow, 1, 0)
110
            var mus_pitch = global.kill_number[4] / 7 * 10 * 0.1
111
            audio_sound_pitch(mus_genobattle_yellow, mus_pitch)
112
        }
113
        else
114
        {
115
            audio_sound_gain(mus_nobodycame_yellow, 1, 0)
116
            audio_play_sound(mus_nobodycame_yellow, 20, true)
117
        }
118
    }
119
    else
120
    {
121
        audio_play_sound_at(mus_heatwave_approaching, 0, 0, 0, 100, 300, 1, 1, 1)
122
        audio_sound_gain(mus_heatwave_approaching, 1, 0)
123
        audio_sound_pitch(mus_heatwave_approaching, 1)
124
    }
125
    audio_extend = false
126
    global.sound_carry_battle = false
127
    global.mettaton_voice_count = 1
128
    instance_create(162, 213, obj_jandroid_body_a)
129
    global.enemy_damage_x = obj_jandroid_body_a.x - 12
130
    global.enemy_damage_y = obj_jandroid_body_a.y - 42
131
    global.enemy_target_x = obj_jandroid_body_a.x - 12
132
    global.enemy_target_y = obj_jandroid_body_a.y - 42
133
    instance_create(470, 160, obj_goosic_body_b)
134
    global.enemy_damage_x_2 = obj_goosic_body_b.x - 12
135
    global.enemy_damage_y_2 = obj_goosic_body_b.y - 42
136
    global.enemy_target_x_2 = obj_goosic_body_b.x - 12
137
    global.enemy_target_y_2 = obj_goosic_body_b.y - 42
138
    script_execute(gml_Script_scr_create_background_battle_yellow)
139
    instance_create(0, 0, obj_battle_fade_in_screen)
140
    instance_create(275, 400, obj_battle_hp_current_self)
141
    instance_create(275, 400, obj_battle_hp_max_self)
142
    instance_create(275, 400, obj_battle_hp_cover_self)
143
    instance_create(0, 0, obj_text_battle_stat_name)
144
    instance_create(0, 0, obj_text_battle_stat_lv)
145
    instance_create(244, 405, obj_text_hp)
146
    instance_create(0, 0, obj_text_hp_stat)
147
    instance_create(32, 250, obj_dialogue_box_battle)
148
    instance_create(31, 431, obj_fight)
149
    instance_create(184, 431, obj_act)
150
    instance_create(344, 431, obj_item)
151
    instance_create(499, 431, obj_mercy)
152
    global.last_text_move_select = 0
153
    global.soul_mode = "Red"
154
    instance_create((obj_fight.x + 17), (obj_fight.y + 23), obj_heart_battle_menu)
155
    instance_create(0, 0, obj_dialogue_battle_move_select_intro)
156
    global.enemy_attack = "Test"
157
}