Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mail_whale_Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0.2
2
alarm[0] = 30
alarm[0]

scene = 1 audio_play_sound(mus_delivery_intro, 1, 0) if (obj_pl.x < x) image_xscale = -1
3
scene = 0
4
cutscene_timer = 0
5
fly_speed = 2
6
mail_whale_y_target = obj_pl.y - 15
7
mail_whale_shadow_alpha = 0
8
if (x > obj_pl.x)
9
    obj_pl.direction = 0
10
else
11
    obj_pl.direction = 180
12
depth = (-((obj_pl.y + 15)))
13
if (global.player_can_travel == true)
14
    sprite_index = spr_mail_whale_basket_empty_yellow
15
mail_whale_travel_noloop = false
16
mail_whale_mail_noloop = false
17
scr_new_mail_check
scr_new_mail_check

function scr_new_mail_check() //gml_Script_scr_new_mail_check { if (global.mail_flag[1] == false) { if (global.snowdin_flag[3] == 2 && global.snowdin_flag[13] != 0) { scr_mail_add_unclaimed("Slurpy Letter") global.mail_flag[1] = true } } if (global.mail_flag[2] == false) { if (global.dunes_flag[0] >= 1) { scr_mail_add_unclaimed("Mo Letter") global.mail_flag[2] = true } } if (global.flag[17 Dalv fate] == 1 && global.dunes_flag[24] != 0) { if (global.mail_flag[3] == 0 && global.route == 2) { scr_mail_add_unclaimed("Dalv Letter") global.mail_flag[3] = true } } if (global.dunes_flag[16] != 0) { if (global.mail_flag[4] == 0) { scr_mail_add_unclaimed("Shufflers Letter") global.mail_flag[4] = true } } if (global.dunes_flag[24] == 1 && global.sworks_flag[15] >= 1 && global.route == 1 && global.sworks_flag[61] == 0) { if (global.mail_flag[5] == 0) { scr_mail_add_unclaimed("Starlo Update") global.mail_flag[5] = true } } if (global.dunes_flag[24] == 1 && global.sworks_flag[15] >= 1 && global.route == 2) { if (global.mail_flag[6] == 0) { scr_mail_add_unclaimed("Starlo (Urgent)") global.mail_flag[6] = true } } if (global.snowdin_flag[3] == 2 && global.hotland_flag[6] > 0) { if (global.mail_flag[7] == 0) { scr_mail_add_unclaimed("Slurpy Letter 2") global.mail_flag[7] = true } } if (global.hotland_flag[6] > 0 && global.route == 1 && global.sworks_flag[61] == 0 && global.dunes_flag[24] == 1) { if (global.mail_flag[8] == 0) { scr_mail_add_unclaimed("Ceroba (Important)") global.mail_flag[8] = true } } if (global.hotland_flag[6] > 0 && global.sworks_flag[31] == 2) { if (global.mail_flag[9] == 0) { scr_mail_add_unclaimed("MAIL???") global.mail_flag[9] = true } } }
()
18
scr_load_palette_shader
scr_load_palette_shader

function scr_load_palette_shader() //gml_Script_scr_load_palette_shader { shader_on = false shader_sprite = spr_final_palette palette_sampler = sprite_get_texture(shader_sprite, 0) u_palette_tex = shader_get_sampler_index(sh_palette_swap, "palette_tex") u_palette_index = shader_get_uniform(sh_palette_swap, "palette_index") u_palette_texel_height = shader_get_uniform(sh_palette_swap, "palette_texel_height") u_palette_texel_width = shader_get_uniform(sh_palette_swap, "palette_texel_width") u_palette_x_offset = shader_get_uniform(sh_palette_swap, "palette_x_offset") u_palette_y_offset = shader_get_uniform(sh_palette_swap, "palette_y_offset") u_color_vect = shader_get_uniform(sh_palette_swap, "color_vect") palette_tex = sprite_get_texture(shader_sprite, 0) uniform_info = [texture_get_texel_height(palette_tex), texture_get_texel_width(palette_tex), array_get(texture_get_uvs(palette_tex), 0), array_get(texture_get_uvs(palette_tex), 1), argument[0]] index = 0 }
(1)
19
palette_index = obj_pl.palette_index
20
shader_on = obj_pl.shader_on
21
transition = -4