Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_generate_battle_dummy_training_pacifist

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

function scr_generate_battle_dummy_training_pacifist() { global.battle_enemy_name_1 = "dummy training pacifist"; global.battle_menu_number = 1; global.speed_self = 4; global.invulnerability_self = global.player_invulnerability; global.attacking_damage_cap = 0; global.hit_self = false; global.hurt_self = false; global.current_hp_enemy = 60; global.max_hp_enemy = 60; 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 = 8; 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 = 3; global.enemy_gold = 2; global.enemy_count = 1; global.turns_passed = 0; global.last_action_selected = "Nothing"; global.action_1_important = false; global.action_1_color = 16777215; global.action_amount = 1; 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 = false; global.action_1_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 = 6; global.enemy_mode = 0; global.enemy_mode_previous = 0; global.enemy_mode_gen = 0; global.enemy_mode_gen_previous = 0; scr_audio_stop_sound(0); script_execute(scr_determine_enemy_music_yellow); audio_extend = false; global.sound_carry_battle = false; global.mettaton_voice_count = 1; instance_create(316, 220, obj_dummy_training_dummy); global.enemy_target_x = obj_dummy_training_dummy.x; global.enemy_target_y = obj_dummy_training_dummy.y - 48; global.enemy_damage_x = obj_dummy_training_dummy.x; global.enemy_damage_y = obj_dummy_training_dummy.y - 48; global.last_text_move_select = -1; 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(32, 250, obj_dialogue_box_battle); instance_create(31, 431, obj_fight); instance_create(184, 431, obj_act); global.soul_mode = "Red"; instance_create(obj_fight.x + 17, obj_fight.y + 23, obj_heart_battle_menu); with (obj_heart_battle_menu) image_alpha = 0; global.boss_mini = false; global.enemy_attack = "Nothing"; global.image_alpha_enemy_attacking_immunity = true; }
()
2
{
3
    global.battle_enemy_name_1 = "dummy training pacifist";
4
    global.battle_menu_number = 1;
5
    global.speed_self = 4;
6
    global.invulnerability_self = global.player_invulnerability;
7
    global.attacking_damage_cap = 0;
8
    global.hit_self = false;
9
    global.hurt_self = false;
10
    global.current_hp_enemy = 60;
11
    global.max_hp_enemy = 60;
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 = 8;
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 = 3;
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_1_color = 16777215;
34
    global.action_amount = 1;
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 = false;
42
    global.action_1_selected_count = 0;
43
    global.spare_selected_count = 0;
44
    global.hit_count = 0;
45
    global.miss_count = 0;
46
    global.no_hit_count = 0;
47
    global.hurt_self_count = 0;
48
    global.hurt_self_turn_count = 0;
49
    global.item_use_count = 0;
50
    global.item_gift_count = 0;
51
    global.attack_cycle = 0;
52
    global.attack_cycle_max = 6;
53
    global.enemy_mode = 0;
54
    global.enemy_mode_previous = 0;
55
    global.enemy_mode_gen = 0;
56
    global.enemy_mode_gen_previous = 0;
57
    scr_audio_stop_sound
scr_audio_stop_sound

function scr_audio_stop_sound(arg0) { audio_array_val = 0; sound_y[audio_array_val] = 153; audio_array_val += 1; sound_y[audio_array_val] = 136; audio_array_val += 1; sound_y[audio_array_val] = 138; audio_array_val += 1; sound_y[audio_array_val] = 136; audio_array_val += 1; sound_y[audio_array_val] = 140; audio_array_val += 1; sound_y[audio_array_val] = 138; audio_array_val += 1; sound_y[audio_array_val] = 486; audio_array_val += 1; sound_y[audio_array_val] = 487; audio_array_val += 1; sound_y[audio_array_val] = 488; audio_array_val += 1; sound_y[audio_array_val] = 489; audio_array_val += 1; sound_y[audio_array_val] = 490; audio_array_val += 1; sound_y[audio_array_val] = 491; audio_array_val += 1; sound_y[audio_array_val] = 492; audio_array_val += 1; sound_y[audio_array_val] = 493; audio_array_val += 1; sound_y[audio_array_val] = 494; audio_array_val += 1; sound_y[audio_array_val] = 495; audio_array_val += 1; sound_y[audio_array_val] = 498; audio_array_val += 1; sound_y[audio_array_val] = 512; audio_array_val += 1; sound_y[audio_array_val] = 117; audio_array_val += 1; sound_y[audio_array_val] = 141; audio_array_val += 1; sound_y[audio_array_val] = 119; audio_array_val += 1; sound_y[audio_array_val] = 154; audio_array_val += 1; sound_y[audio_array_val] = 155; audio_array_val += 1; sound_y[audio_array_val] = 122; audio_array_val += 1; sound_y[audio_array_val] = 156; audio_array_val += 1; sound_y[audio_array_val] = 124; audio_array_val += 1; sound_y[audio_array_val] = 125; audio_array_val += 1; sound_y[audio_array_val] = 162; audio_array_val += 1; sound_y[audio_array_val] = 206; audio_array_val += 1; sound_y[audio_array_val] = 513; audio_array_val += 1; sound_y[audio_array_val] = 208; for (i = 0; i < array_length_1d(sound_y); i += 1) { var audio_gain = audio_sound_get_gain(sound_y[i]); if (audio_gain <= arg0) audio_stop_sound(sound_y[i]); } }
(0);
58
    script_execute(scr_determine_enemy_music_yellow);
59
    audio_extend = false;
60
    global.sound_carry_battle = false;
61
    global.mettaton_voice_count = 1;
62
    instance_create(316, 220, obj_dummy_training_dummy);
63
    global.enemy_target_x = obj_dummy_training_dummy.x;
64
    global.enemy_target_y = obj_dummy_training_dummy.y - 48;
65
    global.enemy_damage_x = obj_dummy_training_dummy.x;
66
    global.enemy_damage_y = obj_dummy_training_dummy.y - 48;
67
    global.last_text_move_select = -1;
68
    instance_create(0, 0, obj_battle_fade_in_screen);
69
    instance_create(275, 400, obj_battle_hp_current_self);
70
    instance_create(275, 400, obj_battle_hp_max_self);
71
    instance_create(275, 400, obj_battle_hp_cover_self);
72
    instance_create(0, 0, obj_text_battle_stat_name);
73
    instance_create(0, 0, obj_text_battle_stat_lv);
74
    instance_create(244, 405, obj_text_hp);
75
    instance_create(0, 0, obj_text_hp_stat);
76
    instance_create(32, 250, obj_dialogue_box_battle);
77
    instance_create(31, 431, obj_fight);
78
    instance_create(184, 431, obj_act);
79
    global.soul_mode = "Red";
80
    instance_create(obj_fight.x + 17, obj_fight.y + 23, obj_heart_battle_menu);
81
    with (obj_heart_battle_menu)
82
        image_alpha = 0;
83
    global.boss_mini = false;
84
    global.enemy_attack = "Nothing";
85
    global.image_alpha_enemy_attacking_immunity = true;
86
}