Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_clover_dunes_12_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
depth = (-y)
3
up_sprite = 24
4
right_sprite = 21
5
down_sprite = 23
6
left_sprite = 22
7
up_sprite_idle = 24
8
right_sprite_idle = 21
9
down_sprite_idle = 23
10
left_sprite_idle = 22
11
if (global.route == 3)
12
{
13
    up_sprite = 24
14
    right_sprite = 2918
15
    down_sprite = 2226
16
    left_sprite = 3704
17
    up_sprite_idle = 24
18
    right_sprite_idle = 2918
19
    down_sprite_idle = 2226
20
    left_sprite_idle = 3704
21
}
22
action_sprite = false
23
scene = 0
24
actor_follower = -4
25
party_noloop = false
26
with (obj_pl)
27
    image_alpha = 0
28
if (room == rm_dunes_13)
29
{
30
    x_dest[0] = 420
31
    y_dest[0] = y
32
    x_dest[1] = 420
33
    y_dest[1] = 150
34
}
35
if (room == rm_dunes_14)
36
{
37
    x_dest[0] = 100
38
    y_dest[0] = y
39
    x_dest[1] = 100
40
    y_dest[1] = 145
41
}
42
npc_direction = "up"
43
actor_speed = 3
44
axis_override = "x"
45
end_direction = "up"
46
walk_collider = 1133
47
destination_count = 0
48
can_walk = true
49
player_fade_out = false
50
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)
51
palette_index = obj_pl.palette_index
52
shader_on = obj_pl.shader_on