Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_hair_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if instance_exists(obj_ceroba_body_pacifist_phase_2)
4
{
5
    switch obj_ceroba_body_pacifist_phase_2.sprite_index
6
    {
7
        case -4:
8
        case 3546:
9
            attach_points = [[2, -145]]
10
            break
11
        case 3485:
12
            attach_points = [[-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [-4000, -4000], [2, -145]]
13
            break
14
        case 2828:
15
            attach_points = [[2, -145], [2, -155], [2, -159], [2, -169], [2, -167], [2, -151], [2, -137], [2, -137], [2, -139], [2, -141], [2, -143]]
16
            break
17
        case 2949:
18
            attach_points = [[-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [2, -145]]
19
            break
20
        case 2917:
21
            attach_points = [[-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [-1000, -1000], [2, -145]]
22
            image_speed = 0
23
            image_index = 0
24
            break
25
        default:
26
            attach_points = [[-1000, -1000]]
27
            break
28
    }
29
30
    scr_point_attach
scr_point_attach

function scr_point_attach() //gml_Script_scr_point_attach { if live_call() return global.live_result; var coords = argument[0] var target_instance = argument[1] if (!instance_exists(target_instance)) { show_debug_message("Target attach point instance does not exist!") return false; } var x_offset = sprite_get_xoffset(target_instance.sprite_index) var y_offset = sprite_get_yoffset(target_instance.sprite_index) if (argument_count > 2 && argument[2] == true) { x_offset = 0 y_offset = 0 } var array_index = clamp(target_instance.image_index, 0, (array_length(coords) - 1)) x = target_instance.x - x_offset + coords[array_index][0] y = target_instance.y - y_offset + coords[array_index][1] }
(attach_points, 2833, true)
31
}