Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_controls_battle_mercy

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

function scr_controls_battle_mercy() //gml_Script_scr_controls_battle_mercy { if (moveable == true) { key_right = global.right_keyp key_left = global.left_keyp key_down = global.down_keyp key_up = global.up_keyp key_select = keyboard_multicheck_pressed(0) key_revert = keyboard_multicheck_pressed(1) } else { key_down = 0 key_up = 0 key_select = 0 key_revert = 0 } }
() //gml_Script_scr_controls_battle_mercy
2
{
3
    if (moveable == true)
4
    {
5
        key_right = global.right_keyp
6
        key_left = global.left_keyp
7
        key_down = global.down_keyp
8
        key_up = global.up_keyp
9
        key_select = keyboard_multicheck_pressed(0)
10
        key_revert = keyboard_multicheck_pressed(1)
11
    }
12
    else
13
    {
14
        key_down = 0
15
        key_up = 0
16
        key_select = 0
17
        key_revert = 0
18
    }
19
}