Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_generate_battle_martlet_genocide_final_2

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

function scr_generate_battle_martlet_genocide_final_2() { if (live_call()) return global.live_result; global.battle_enemy_name_1 = "martlet"; 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 = 850; global.max_hp_enemy = 850; 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 = 25; global.enemy_defense_stat = 40; 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 = 200; global.enemy_gold = 0; 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_1_color = 16777215; global.action_2_color = 16777215; 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.attack_cycle = 0; global.attack_cycle_max = 3; global.enemy_mode = 0; global.enemy_mode_previous = 0; global.enemy_mode_gen = 0; global.enemy_mode_gen_previous = 0; audio_extend = false; global.sound_carry_battle = false; global.mettaton_voice_count = 1; var martlet_body = instance_create_depth(340, 130, 100, obj_martlet_final_2_base); with (martlet_body) { sprite_index = spr_martlet_f2_start; image_speed = 0; image_index = 0; } global.enemy_target_x = obj_martlet_final_2_base.x; global.enemy_target_y = obj_martlet_final_2_base.y; 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_depth(0, 0, 1001, obj_martlet_final_bg); obj_martlet_final_bg.fade_out = true; obj_martlet_final_bg.draw_alpha = 0; instance_create_depth(0, 0, -1, obj_martlet_blue_shader); instance_create(319, 320, obj_dialogue_box_battle_transformation_any); instance_create(390, 74, obj_quote_bubble_battle_yellow_3); instance_create(0, 0, obj_quote_battle_martlet_genocide_final_2_intro); instance_create(31, 431, obj_fight); instance_create(184, 431, obj_act); instance_create(344, 431, obj_item); instance_create(499, 431, obj_mercy); if (global.option_autoshoot) instance_create_depth(536, 399, 5, obj_autofire_toggle); instance_create(0, 0, obj_martlet_final_2_attack_controller); global.soul_mode = "Red"; global.image_alpha_enemy_attacking = 0; global.image_alpha_enemy_attacking_immunity = true; instance_create_depth(round(obj_dialogue_box_battle_transformation_any.bbox_left + ((obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2)), round(obj_dialogue_box_battle_transformation_any.bbox_top + ((obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)), -100, obj_heart_battle_fighting_yellow_final); with (obj_heart_battle_fighting_parent) ...
()
2
{
3
    if (live_call())
4
        return global.live_result;
5
    global.battle_enemy_name_1 = "martlet";
6
    global.battle_menu_number = 1;
7
    global.speed_self = 4;
8
    global.invulnerability_self = global.player_invulnerability;
9
    global.attacking_damage_cap = -1;
10
    global.hit_self = false;
11
    global.hurt_self = false;
12
    global.current_hp_enemy = 850;
13
    global.max_hp_enemy = 850;
14
    global.last_hp_enemy = global.current_hp_enemy;
15
    global.current_hp_enemy_draw = global.current_hp_enemy;
16
    global.enemy_low_hp = false;
17
    global.enemy_hit = false;
18
    global.enemy_hurt = false;
19
    global.enemy_attack_stat = 25;
20
    global.enemy_defense_stat = 40;
21
    global.enemy_vulnerable = true;
22
    global.enemy_attacking = false;
23
    global.enemy_sparing = false;
24
    global.enemy_dead = false;
25
    global.enemy_spared = false;
26
    global.enemy_betrayed = false;
27
    global.enemy_fleeable = false;
28
    global.enemy_special_text = 0;
29
    global.enemy_exp = 200;
30
    global.enemy_gold = 0;
31
    global.enemy_count = 1;
32
    global.turns_passed = 0;
33
    global.last_action_selected = "Nothing";
34
    global.action_1_important = false;
35
    global.action_2_important = false;
36
    global.action_1_color = 16777215;
37
    global.action_2_color = 16777215;
38
    global.action_amount = 2;
39
    global.item_use = "Nothing";
40
    global.item_used = "Nothing";
41
    global.item_gift = "Nothing";
42
    global.item_gifted = "Nothing";
43
    global.image_alpha_enemy_attacking = 1;
44
    global.important_cutscene = false;
45
    global.can_attack = true;
46
    global.action_1_selected_count = 0;
47
    global.action_2_selected_count = 0;
48
    global.spare_selected_count = 0;
49
    global.hit_count = 0;
50
    global.miss_count = 0;
51
    global.no_hit_count = 0;
52
    global.hurt_self_count = 0;
53
    global.hurt_self_turn_count = 0;
54
    global.item_use_count = 0;
55
    global.item_gift_count = 0;
56
    global.attack_cycle = 0;
57
    global.attack_cycle_max = 3;
58
    global.enemy_mode = 0;
59
    global.enemy_mode_previous = 0;
60
    global.enemy_mode_gen = 0;
61
    global.enemy_mode_gen_previous = 0;
62
    audio_extend = false;
63
    global.sound_carry_battle = false;
64
    global.mettaton_voice_count = 1;
65
    var martlet_body = instance_create_depth(340, 130, 100, obj_martlet_final_2_base);
66
    with (martlet_body)
67
    {
68
        sprite_index = spr_martlet_f2_start;
69
        image_speed = 0;
70
        image_index = 0;
71
    }
72
    global.enemy_target_x = obj_martlet_final_2_base.x;
73
    global.enemy_target_y = obj_martlet_final_2_base.y;
74
    global.last_text_move_select = -1;
75
    instance_create(0, 0, obj_battle_fade_in_screen);
76
    instance_create(275, 400, obj_battle_hp_current_self);
77
    instance_create(275, 400, obj_battle_hp_max_self);
78
    instance_create(275, 400, obj_battle_hp_cover_self);
79
    instance_create(0, 0, obj_text_battle_stat_name);
80
    instance_create(0, 0, obj_text_battle_stat_lv);
81
    instance_create(244, 405, obj_text_hp);
82
    instance_create(0, 0, obj_text_hp_stat);
83
    instance_create_depth(0, 0, 1001, obj_martlet_final_bg);
84
    obj_martlet_final_bg.fade_out = true;
85
    obj_martlet_final_bg.draw_alpha = 0;
86
    instance_create_depth(0, 0, -1, obj_martlet_blue_shader);
87
    instance_create(319, 320, obj_dialogue_box_battle_transformation_any);
88
    instance_create(390, 74, obj_quote_bubble_battle_yellow_3);
89
    instance_create(0, 0, obj_quote_battle_martlet_genocide_final_2_intro);
90
    instance_create(31, 431, obj_fight);
91
    instance_create(184, 431, obj_act);
92
    instance_create(344, 431, obj_item);
93
    instance_create(499, 431, obj_mercy);
94
    if (global.option_autoshoot)
95
        instance_create_depth(536, 399, 5, obj_autofire_toggle);
96
    instance_create(0, 0, obj_martlet_final_2_attack_controller);
97
    global.soul_mode = "Red";
98
    global.image_alpha_enemy_attacking = 0;
99
    global.image_alpha_enemy_attacking_immunity = true;
100
    instance_create_depth(round(obj_dialogue_box_battle_transformation_any.bbox_left + ((obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2)), round(obj_dialogue_box_battle_transformation_any.bbox_top + ((obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)), -100, obj_heart_battle_fighting_yellow_final);
101
    with (obj_heart_battle_fighting_parent)
102
        moveable = false;
103
    instance_create(obj_fight.x + 17, obj_fight.y + 23, obj_heart_battle_menu);
104
    with (obj_heart_battle_menu)
105
        image_alpha = 0;
106
    global.boss_mini = false;
107
    global.enemy_attack = "None";
108
    global.image_alpha_enemy_attacking_immunity = true;
109
}