Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_initialize_battle

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

function scr_initialize_battle() { global.font_type_text = 1; global.player_1_using_keyboard = true; global.player_1_using_gamepad = false; global.player_1_control_keyboard_up = 38; global.player_1_control_keyboard_down = 40; global.player_1_control_keyboard_right = 39; global.player_1_control_keyboard_left = 37; global.player_1_control_keyboard_button_1 = 90; global.player_1_control_keyboard_button_2 = 88; global.player_1_control_keyboard_button_3 = 67; global.player_1_control_keyboard_button_4 = 13; global.player_1_control_keyboard_button_5 = 16; global.player_1_control_keyboard_button_6 = 17; global.player_1_control_gamepad_up = 32781; global.player_1_control_gamepad_down = 32782; global.player_1_control_gamepad_right = 32784; global.player_1_control_gamepad_left = 32783; global.player_1_control_gamepad_button_1 = 32769; global.player_1_control_gamepad_button_2 = 32770; global.player_1_control_gamepad_button_3 = 32771; global.player_1_control_gamepad_button_4 = 32772; global.player_1_control_gamepad_button_5 = 32777; global.player_1_control_gamepad_button_6 = 32778; global.text_counter_max = 5; global.text_speed = 1; global.hold_speed = 1; global.twitchy_text_probability = 500; global.twitchy_text_intensity = 1; global.shaky_text_intensity = 1; global.circle_text_angle_default = 0; global.circle_text_radius = 1; global.circle_text_speed = 45; global.turns_passed = 0; global.game_mode = "yellow"; global.draw_scanlines = false; global.sound_carry_overworld = false; global.debug_menu = false; global.player_character = "CLOVER"; global.game_time_counter = 0; global.game_time_counter_add = 0; global.game_time_seconds = 0; global.game_time_seconds_add = 0; global.game_time_minutes = 0; global.game_time_minutes_add = 0; global.talk_speed_rorrim = 0.3; global.talk_speed_dalv = 0.2; global.talk_speed_frostermit = 0.3; global.talk_speed_shufflers_rephil = 0.2; global.talk_speed_martlet = 0.2; global.talk_speed_el_bailador = 0.2; global.talk_speed_starlo = 0.2; global.talk_speed_author = 0.2; global.talk_speed_honeydew_bear = 0.2; global.talk_speed_default = 0.2; global.talk_speed_toriel = 0.2; global.talk_speed_toriel_idle = 0.2; global.talk_speed_flowey = 0.2; global.attack_surface = 0; global.autofire_on = 0; global.enemy_dead = 0; global.enemy_dead_2 = 0; global.enemy_dead_3 = 0; scr_base_stats(); scr_intro_portrait_disjoints(); }
()
2
{
3
    global.font_type_text = 1;
4
    global.player_1_using_keyboard = true;
5
    global.player_1_using_gamepad = false;
6
    global.player_1_control_keyboard_up = 38;
7
    global.player_1_control_keyboard_down = 40;
8
    global.player_1_control_keyboard_right = 39;
9
    global.player_1_control_keyboard_left = 37;
10
    global.player_1_control_keyboard_button_1 = 90;
11
    global.player_1_control_keyboard_button_2 = 88;
12
    global.player_1_control_keyboard_button_3 = 67;
13
    global.player_1_control_keyboard_button_4 = 13;
14
    global.player_1_control_keyboard_button_5 = 16;
15
    global.player_1_control_keyboard_button_6 = 17;
16
    global.player_1_control_gamepad_up = 32781;
17
    global.player_1_control_gamepad_down = 32782;
18
    global.player_1_control_gamepad_right = 32784;
19
    global.player_1_control_gamepad_left = 32783;
20
    global.player_1_control_gamepad_button_1 = 32769;
21
    global.player_1_control_gamepad_button_2 = 32770;
22
    global.player_1_control_gamepad_button_3 = 32771;
23
    global.player_1_control_gamepad_button_4 = 32772;
24
    global.player_1_control_gamepad_button_5 = 32777;
25
    global.player_1_control_gamepad_button_6 = 32778;
26
    global.text_counter_max = 5;
27
    global.text_speed = 1;
28
    global.hold_speed = 1;
29
    global.twitchy_text_probability = 500;
30
    global.twitchy_text_intensity = 1;
31
    global.shaky_text_intensity = 1;
32
    global.circle_text_angle_default = 0;
33
    global.circle_text_radius = 1;
34
    global.circle_text_speed = 45;
35
    global.turns_passed = 0;
36
    global.game_mode = "yellow";
37
    global.draw_scanlines = false;
38
    global.sound_carry_overworld = false;
39
    global.debug_menu = false;
40
    global.player_character = "CLOVER";
41
    global.game_time_counter = 0;
42
    global.game_time_counter_add = 0;
43
    global.game_time_seconds = 0;
44
    global.game_time_seconds_add = 0;
45
    global.game_time_minutes = 0;
46
    global.game_time_minutes_add = 0;
47
    global.talk_speed_rorrim = 0.3;
48
    global.talk_speed_dalv = 0.2;
49
    global.talk_speed_frostermit = 0.3;
50
    global.talk_speed_shufflers_rephil = 0.2;
51
    global.talk_speed_martlet = 0.2;
52
    global.talk_speed_el_bailador = 0.2;
53
    global.talk_speed_starlo = 0.2;
54
    global.talk_speed_author = 0.2;
55
    global.talk_speed_honeydew_bear = 0.2;
56
    global.talk_speed_default = 0.2;
57
    global.talk_speed_toriel = 0.2;
58
    global.talk_speed_toriel_idle = 0.2;
59
    global.talk_speed_flowey = 0.2;
60
    global.attack_surface = 0;
61
    global.autofire_on = 0;
62
    global.enemy_dead = 0;
63
    global.enemy_dead_2 = 0;
64
    global.enemy_dead_3 = 0;
65
    scr_base_stats
scr_base_stats

function scr_base_stats() { global.player_hp_next[1] = 20; global.player_hp_next[2] = 24; global.player_hp_next[3] = 28; global.player_hp_next[4] = 32; global.player_hp_next[5] = 36; global.player_hp_next[6] = 40; global.player_hp_next[7] = 44; global.player_hp_next[8] = 48; global.player_hp_next[9] = 52; global.player_hp_next[10] = 56; global.player_hp_next[11] = 60; global.player_hp_next[12] = 64; global.player_hp_next[13] = 68; global.player_hp_next[14] = 72; global.player_hp_next[15] = 76; global.player_hp_next[16] = 80; global.player_hp_next[17] = 84; global.player_hp_next[18] = 88; global.player_hp_next[19] = 92; global.player_hp_next[20] = 100; global.player_hp_next[21] = 100; global.player_attack_next[1] = 10; global.player_attack_next[2] = 12; global.player_attack_next[3] = 14; global.player_attack_next[4] = 16; global.player_attack_next[5] = 18; global.player_attack_next[6] = 20; global.player_attack_next[7] = 22; global.player_attack_next[8] = 24; global.player_attack_next[9] = 26; global.player_attack_next[10] = 28; global.player_attack_next[11] = 30; global.player_attack_next[12] = 32; global.player_attack_next[13] = 34; global.player_attack_next[14] = 36; global.player_attack_next[15] = 38; global.player_attack_next[16] = 40; global.player_attack_next[17] = 42; global.player_attack_next[18] = 44; global.player_attack_next[19] = 46; global.player_attack_next[20] = 48; global.player_attack_next[21] = 48; global.player_defense_next[1] = 10; global.player_defense_next[2] = 10; global.player_defense_next[3] = 10; global.player_defense_next[4] = 10; global.player_defense_next[5] = 11; global.player_defense_next[6] = 11; global.player_defense_next[7] = 11; global.player_defense_next[8] = 11; global.player_defense_next[9] = 12; global.player_defense_next[10] = 12; global.player_defense_next[11] = 12; global.player_defense_next[12] = 12; global.player_defense_next[13] = 13; global.player_defense_next[14] = 13; global.player_defense_next[15] = 13; global.player_defense_next[16] = 13; global.player_defense_next[17] = 14; global.player_defense_next[18] = 14; global.player_defense_next[19] = 14; global.player_defense_next[20] = 14; global.player_defense_next[21] = 14; global.player_exp_next[1] = 10; global.player_exp_next[2] = 30; global.player_exp_next[3] = 70; global.player_exp_next[4] = 120; global.player_exp_next[5] = 200; global.player_exp_next[6] = 300; global.player_exp_next[7] = 500; global.player_exp_next[8] = 800; global.player_exp_next[9] = 1200; global.player_exp_next[10] = 1700; global.player_exp_next[11] = 2500; global.player_exp_next[12] = 3500; global.player_exp_next[13] = 5000; global.player_exp_next[14] = 7000; global.player_exp_next[15] = 10000; global.player_exp_next[16] = 15000; global.player_exp_next[17] = 25000; global.player_exp_next[18] = 50000; global.player_exp_next[19] = 99999; global.player_exp_next[20] = 999999; global.player_exp_next[21] = 999999; }
();
66
    scr_intro_portrait_disjoints
scr_intro_portrait_disjoints

function scr_intro_portrait_disjoints() { var game_mode = global.game_mode; if (game_mode == "customs") { } else if (game_mode == "yellow") { global.portrait_disjoint_x_dalv = 36; global.portrait_disjoint_y_dalv = 57; global.portrait_disjoint_x_starlo = 36; global.portrait_disjoint_y_starlo = 68; global.portrait_b_disjoint_x_starlo = 72; global.portrait_b_disjoint_y_starlo = 132; } global.portrait_disjoint_x_toriel = 35; global.portrait_disjoint_y_toriel = 32; global.portrait_disjoint_x_flowey = 37; global.portrait_disjoint_y_flowey = 37; }
();
67
}