Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_shuffle_snowdin_13_yellow

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

function scr_shuffle_snowdin_13_yellow() { var shuffle_direction = irandom(1); if (position_meeting(130, 200, shuffler[current_shuffler])) { with (shuffler[current_shuffler]) move_right = true; var shuff = instance_position(160, 200, obj_snowdin_13_shuffler_overworld_yellow); with (shuff) move_left = true; } else if (position_meeting(160, 200, shuffler[current_shuffler])) { if (shuffle_direction == 0) { with (shuffler[current_shuffler]) move_right = true; var shuff = instance_position(190, 200, obj_snowdin_13_shuffler_overworld_yellow); with (shuff) move_left = true; } else if (shuffle_direction == 1) { with (shuffler[current_shuffler]) move_left = true; var shuff = instance_position(130, 200, obj_snowdin_13_shuffler_overworld_yellow); with (shuff) move_right = true; } } else if (position_meeting(190, 200, shuffler[current_shuffler])) { with (shuffler[current_shuffler]) move_left = true; var shuff = instance_position(160, 200, obj_snowdin_13_shuffler_overworld_yellow); with (shuff) move_right = true; } }
()
2
{
3
    var shuffle_direction = irandom(1);
4
    if (position_meeting(130, 200, shuffler[current_shuffler]))
5
    {
6
        with (shuffler[current_shuffler])
7
            move_right = true;
8
        var shuff = instance_position(160, 200, obj_snowdin_13_shuffler_overworld_yellow);
9
        with (shuff)
10
            move_left = true;
11
    }
12
    else if (position_meeting(160, 200, shuffler[current_shuffler]))
13
    {
14
        if (shuffle_direction == 0)
15
        {
16
            with (shuffler[current_shuffler])
17
                move_right = true;
18
            var shuff = instance_position(190, 200, obj_snowdin_13_shuffler_overworld_yellow);
19
            with (shuff)
20
                move_left = true;
21
        }
22
        else if (shuffle_direction == 1)
23
        {
24
            with (shuffler[current_shuffler])
25
                move_left = true;
26
            var shuff = instance_position(130, 200, obj_snowdin_13_shuffler_overworld_yellow);
27
            with (shuff)
28
                move_right = true;
29
        }
30
    }
31
    else if (position_meeting(190, 200, shuffler[current_shuffler]))
32
    {
33
        with (shuffler[current_shuffler])
34
            move_left = true;
35
        var shuff = instance_position(160, 200, obj_snowdin_13_shuffler_overworld_yellow);
36
        with (shuff)
37
            move_right = true;
38
    }
39
}