Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_debugger_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
if (keyboard_check_pressed(vk_pageup))
4
    global.attack_cycle += 1;
5
else if (keyboard_check_pressed(vk_pagedown))
6
    global.attack_cycle -= 1;
7
global.turns_passed = 0;
8
if (instance_exists(obj_ceroba_body_pacifist_phase_2))
9
{
10
    if (keyboard_check_pressed(vk_numpad0))
11
    {
12
        obj_ceroba_body_pacifist_phase_2.sprite_index = spr_ceroba_p2_idle_reveal;
13
        obj_ceroba_body_pacifist_phase_2.image_index = 0;
14
    }
15
    if (keyboard_check_pressed(vk_numpad1))
16
    {
17
        obj_ceroba_body_pacifist_phase_2.sprite_index = spr_ceroba_p2_sign;
18
        obj_ceroba_body_pacifist_phase_2.image_index = 0;
19
    }
20
    if (keyboard_check_pressed(vk_numpad2))
21
    {
22
        obj_ceroba_body_pacifist_phase_2.sprite_index = spr_ceroba_p2_1;
23
        obj_ceroba_body_pacifist_phase_2.image_index = 0;
24
    }
25
}
26
global.player_armor_defense = 11;