Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_joker_Other_15

(view raw script w/o annotations or w/e)
1
if (attacked == 0)
2
{
3
    turns += 1;
4
    chaosdance += 1;
5
    if (chaosdance >= 9)
6
        chaosdance = 0;
7
    remat = global.monsterat[myself];
8
    global.monsterat[myself] *= pfactor;
9
    if (jattack == 0)
10
    {
11
        dc = instance_create(x, y, obj_dbulletcontroller);
12
        dc.type = 70;
13
        dc.target = mytarget;
14
        dc.grazepoints = 2;
15
        dc.damage = global.monsterat[myself] * 5;
16
        with (body)
17
            condition = 2;
18
    }
19
    if (jattack == 1)
20
    {
21
        dc = instance_create(x, y, obj_dbulletcontroller);
22
        dc.grazepoints = 3;
23
        dc.type = 65;
24
        dc.target = mytarget;
25
        dc.damage = global.monsterat[myself] * 5;
26
    }
27
    if (jattack == 2)
28
    {
29
        dc = instance_create(x, y, obj_dbulletcontroller);
30
        dc.type = 49;
31
        dc.target = 3;
32
        dc.damage = global.monsterat[myself] * 4;
33
        dc.grazepoints = 3;
34
        with (body)
35
            condition = 2;
36
    }
37
    if (jattack == 3)
38
    {
39
        if (body.condition < 4)
40
            body.condition = 5;
41
        dc = instance_create(x, y, obj_dbulletcontroller);
42
        dc.grazepoints = 3;
43
        dc.type = 75;
44
        dc.target = mytarget;
45
        dc.damage = global.monsterat[myself] * 6;
46
    }
47
    if (jattack == 4)
48
    {
49
        snd_play(scr_84_get_sound
scr_84_get_sound

function scr_84_get_sound(arg0) { return ds_map_find_value(global.chemg_sound_map, arg0); }
("snd_joker_anything"));
50
        dc = instance_create(x, y, obj_dbulletcontroller);
51
        dc.type = 62;
52
        dc.target = mytarget;
53
        dc.inv = 20;
54
        dc.damage = global.monsterat[myself] * 5;
55
        dc.grazepoints = 2;
56
    }
57
    if (jattack == 5)
58
    {
59
        dc = instance_create(x, y, obj_dbulletcontroller);
60
        dc.grazepoints = 3;
61
        dc.type = 50;
62
        dc.target = 3;
63
        dc.damage = global.monsterat[myself] * 4;
64
        global.turntimer = 300;
65
        with (body)
66
            condition = 2;
67
    }
68
    if (jattack == 6)
69
    {
70
        dc = instance_create(x, y, obj_dbulletcontroller);
71
        dc.type = 73;
72
        dc.target = mytarget;
73
        dc.damage = global.monsterat[myself] * 5;
74
    }
75
    if (jattack == 7)
76
    {
77
        dc = instance_create(x, y, obj_dbulletcontroller);
78
        dc.type = 68;
79
        dc.target = mytarget;
80
        dc.grazepoints = 2;
81
        dc.damage = global.monsterat[myself] * 5;
82
    }
83
    if (jattack == 8)
84
    {
85
        snd_play(scr_84_get_sound
scr_84_get_sound

function scr_84_get_sound(arg0) { return ds_map_find_value(global.chemg_sound_map, arg0); }
("snd_joker_anything"));
86
        dc = instance_create(x, y, obj_dbulletcontroller);
87
        dc.inv = 20;
88
        dc.type = 61;
89
        dc.target = mytarget;
90
        dc.grazepoints = 3;
91
        dc.damage = global.monsterat[myself] * 5;
92
        global.turntimer = 240;
93
    }
94
    if (jattack == 9)
95
    {
96
        dc = instance_create(x, y, obj_dbulletcontroller);
97
        dc.type = 48;
98
        dc.target = 3;
99
        dc.damage = global.monsterat[myself] * 4;
100
        dc.grazepoints = 4;
101
        global.turntimer = 270;
102
        with (body)
103
            condition = 2;
104
    }
105
    if (jattack == 10)
106
    {
107
        dc = instance_create(x, y, obj_dbulletcontroller);
108
        dc.type = 72;
109
        dc.target = mytarget;
110
        dc.damage = global.monsterat[myself] * 5;
111
    }
112
    if (jattack == 11)
113
    {
114
        if (body.condition < 4)
115
            body.condition = 5;
116
        dc = instance_create(x, y, obj_dbulletcontroller);
117
        dc.type = 76;
118
        dc.target = mytarget;
119
        dc.grazepoints = 3;
120
        dc.damage = global.monsterat[myself] * 6;
121
    }
122
    if (jattack == 12)
123
    {
124
        dc = instance_create(x, y, obj_dbulletcontroller);
125
        dc.type = 71;
126
        dc.target = mytarget;
127
        dc.damage = global.monsterat[myself] * 5;
128
        dc.grazepoints = 2;
129
        with (body)
130
            condition = 2;
131
    }
132
    if (jattack == 13)
133
    {
134
        dc = instance_create(x, y, obj_dbulletcontroller);
135
        dc.type = 46;
136
        dc.target = 3;
137
        dc.damage = global.monsterat[myself] * 4;
138
        dc.grazepoints = 4;
139
        global.turntimer = 330;
140
        with (body)
141
            condition = 2;
142
    }
143
    if (jattack == 14)
144
    {
145
        dc = instance_create(x, y, obj_dbulletcontroller);
146
        dc.type = 74;
147
        dc.target = mytarget;
148
        dc.damage = global.monsterat[myself] * 4;
149
    }
150
    if (jattack == 15)
151
    {
152
        dc = instance_create(x, y, obj_dbulletcontroller);
153
        dc.type = 77;
154
        dc.target = mytarget;
155
        dc.damage = global.monsterat[myself] * 4;
156
        global.turntimer = 1500;
157
        if (body.condition < 4)
158
            body.condition = 5;
159
    }
160
    if (jattack == 99)
161
    {
162
        dc = instance_create(x, y, obj_dbulletcontroller);
163
        dc.type = 47;
164
        dc.target = 3;
165
        dc.damage = global.monsterat[myself] * 4;
166
        global.turntimer = 300;
167
        with (body)
168
            condition = 2;
169
    }
170
    if (jattack == 999)
171
    {
172
        dc = instance_create(x, y, obj_dbulletcontroller);
173
        dc.type = 25;
174
        dc.target = mytarget;
175
        dc.damage = global.monsterat[myself] * 4;
176
        global.turntimer = 300;
177
    }
178
    with (obj_dbulletcontroller)
179
        joker = 1;
180
    pfactor = 1;
181
    global.monsterat[myself] = remat;
182
    attacked = 1;
183
}