Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_enemy_KeyPress_8

related scripts: Alarm_4Alarm_6Alarm_7CleanUp_0Create_0Draw_0KeyPress_8 Other_10Other_11Other_22Step_0Step_2

(view raw script w/o annotations or w/e)
1
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
2
{
3
    if (drawstate == "defense end")
4
    {
5
        drawstate = "undefense";
6
        drawstatetimer = 6;
7
        snd_play(snd_wingflap3);
8
        feathercon = 2;
9
    }
10
    else if (sunkus_kb_check_direct(vk_lshift) && global.monsterhp[myself] > 10000)
11
    {
12
        global.monsterhp[myself] = 10001;
13
        debug_print("Titan HP reduced to " + string(global.monsterhp[myself]));
14
    }
15
    else
16
    {
17
        global.monsterhp[myself] -= 1000;
18
        debug_print("Titan HP reduced to " + string(global.monsterhp[myself]));
19
    }
20
}