Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_turn_skip

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

function
scr_turn_skip()
{ if (scr_debug &&
scr_debug_keycheck(ord("V")) && global.turntimer > 0 && instance_exists(obj_growtangle) && 
scr_isphase("bullets"))
{ global.turntimer = 0;
scr_debug_print("Attack skipped");
} }
()
2
{
3
    if (scr_debug && 
scr_debug_keycheck
scr_debug_keycheck

function
scr_debug_keycheck(arg0)
{ }
(ord("V")) && global.turntimer > 0 && instance_exists(obj_growtangle) &&
scr_isphase
scr_isphase

function
scr_isphase(arg0)
{ __isphase = 0; if (arg0 == "menu" && global.myfight == 0) __isphase = 1; if (arg0 == "acting" && global.myfight == 3) __isphase = 1; if (arg0 == "victory" && global.myfight == 7) __isphase = 1; if (arg0 == "attack" || arg0 == "fight") { if (global.myfight == 1) __isphase = 1; } if (arg0 == "spell" || arg0 == "item") { if (global.myfight == 4) __isphase = 1; } if (arg0 == "enemytalk" || arg0 == "balloon") { if (global.mnfight == 1) __isphase = 1; } if (arg0 == "enemyattack" || arg0 == "bullets") { if (global.mnfight == 2) __isphase = 1; } return __isphase; }
("bullets"))
4
    {
5
        global.turntimer = 0;
6
        
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ } function print_message(arg0) { } function debug_print(arg0) { } function scr_debug_clear_all() { scr_debug_clear_persistent(); }
("Attack skipped");
7
    }
8
}