Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_debug_skipper_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if window_has_focus()
4
{
5
    if (instance_exists(obj_dialogue) || instance_exists(obj_dialogue_battle) || instance_exists(obj_quote_bubble_battle))
6
    {
7
        keyboard_key_release(ord("X"))
8
        keyboard_key_press(ord("X"))
9
        keyboard_key_release(ord("X"))
10
        if (!alarm[0])
11
            alarm[0] = 3
alarm[0]

if live_call() return global.live_result; if (instance_exists(obj_dialogue) || instance_exists(obj_dialogue_battle) || instance_exists(obj_quote_bubble_battle)) { keyboard_key_release(ord("Z")) keyboard_key_press(ord("Z")) }
12
    }
13
}
14
else
15
{
16
    keyboard_key_release(ord("Z"))
17
    keyboard_key_release(ord("X"))
18
    alarm[0] = -1
alarm[0]

if live_call() return global.live_result; if (instance_exists(obj_dialogue) || instance_exists(obj_dialogue_battle) || instance_exists(obj_quote_bubble_battle)) { keyboard_key_release(ord("Z")) keyboard_key_press(ord("Z")) }
19
}
20
if (global.current_hp_self < global.max_hp_self)
21
    global.current_hp_self = global.max_hp_self
22
if (room != rm_battle && room != rm_battle_flowey && room != rm_battle_flowey_phase_2 && room != rm_mew_mew && (!instance_exists(obj_puzzle_collider_snowdin_19)) && (!instance_exists(obj_puzzle_controller_overworld_yellow)) && (!keyboard_check(vk_tab)))
23
    room_speed = 150
24
else if ((room == rm_battle || room == rm_battle_flowey || room == rm_battle_flowey_phase_2) && (!keyboard_check(vk_tab)))
25
    room_speed = 150
26
else
27
    room_speed = 30
28
with (all)
29
{
30
    if (image_index < (image_number - 1))
31
        image_index = image_number - 1
32
    if (image_speed > 0)
33
        image_speed = 1
34
}
35
if (room == rm_battle)
36
{
37
    if (global.battling_boss == false)
38
    {
39
        global.enemy_sparing = true
40
        global.enemy_sparing_2 = true
41
        global.enemy_sparing_3 = true
42
    }
43
    else if keyboard_check_pressed(ord("S"))
44
        global.enemy_sparing = true
45
    if instance_exists(obj_toy_gun_circle)
46
    {
47
        with (obj_toy_gun_circle)
48
        {
49
            if (outline <= (small_circle * 0.25))
50
            {
51
                keyboard_key_press(ord("Y"))
52
                keyboard_key_release(ord("Y"))
53
            }
54
        }
55
    }
56
    if instance_exists(obj_toy_gun_circle_multi)
57
    {
58
        with (obj_toy_gun_circle_multi)
59
        {
60
            if (circle_current <= final_circle && outline[circle_current] <= (small_circle * 0.25))
61
            {
62
                keyboard_key_press(ord("Y"))
63
                keyboard_key_release(ord("Y"))
64
            }
65
        }
66
    }
67
    if instance_exists(obj_wild_revolver_circle)
68
    {
69
        with (obj_wild_revolver_circle)
70
        {
71
            if (outline <= (small_circle * 0.5))
72
            {
73
                keyboard_key_press(ord("Y"))
74
                keyboard_key_release(ord("Y"))
75
            }
76
        }
77
    }
78
    if instance_exists(obj_wild_revolver_circle_multi)
79
    {
80
        with (obj_wild_revolver_circle_multi)
81
        {
82
            if (circle_current <= final_circle && outline[circle_current] <= (small_circle * 0.25))
83
            {
84
                keyboard_key_press(ord("Y"))
85
                keyboard_key_release(ord("Y"))
86
            }
87
        }
88
    }
89
}