Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_homealone_dess_closet_kris_Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0;
2
mode = 0;
3
heart = 0;
4
walktimer = 0;
5
haswalked = 0;
6
walktimer = 30;
7
walkthreshold = 30;
8
walkcon = 0;
9
hearthits = 0;
10
global.lhp = 20;
11
temp_mode = 0;
12
notice_timer = 0;
13
notice = false;
14
notice_mode = false;
15
cringe = false;
16
cringe_mode = false;
17
tired_mode = false;
18
is_tired = false;
19
attack_number = 0;
20
attackcon = 0;
21
attacktimer = 0;
22
attackjump = 0;
23
attacktargetx = 0;
24
attacktired = 0;
25
attackhit = 0;
26
activeSantaX = 0;
27
santax[0] = 0;
28
santay[0] = 0;
29
santaactive[0] = 0;
30
santax[1] = 0;
31
santay[1] = 0;
32
santaactive[1] = 0;
33
santawalk = 0;
34
y = 86;
35
push_timer = 0;
36
push_velocity = 0;
37
kris_ready = 0;
38
animate_timer = 0;
39
pickup_stick = false;
40
stick_marker = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(170, 117, spr_noellehouse_dess_hockey_stick);
41
stick_marker.depth = 45000;
42
stick_marker.image_angle = 90;
43
hearttargetx = 0;
44
45
reset = function()
46
{
47
    global.interact = 0;
48
    attacktimer = 0;
49
    mode = 0;
50
    walkcon = 0;
51
    attackcon = 0;
52
    friction = 0;
53
    gravity = 0;
54
    speed = 0;
55
    if (attacktired < 10)
56
        attacktired++;
57
    attackhit = 0;
58
    walktimer = walkthreshold;
59
    image_index = 0;
60
    image_speed = 0;
61
};
62
63
clean_up = function()
64
{
65
    with (stick_marker)
66
        instance_destroy();
67
    instance_destroy();
68
};