Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_swing_down_new_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
timer = 0;
3
con = 0;
4
active = 0;
5
fakeout = 0;
6
swingdowntype = 0;
7
timetoswing = 22;
8
telegraphtime = 12;
9
special = 0;
10
eye_index = 0;
11
eye_con = 0;
12
alpha = 0;
13
alphacon = 0;
14
image_speed = 0;
15
speed = -7;
16
direction = 270;
17
friction = 0.4;
18
image_xscale = 2;
19
image_yscale = 2;
20
image_alpha = 1.4;
21
if (i_ex(obj_growtangle))
22
    depth = obj_growtangle.depth + 1;
23
grazepoints = 4;
24
version = 0;
25
if (i_ex(obj_hammer_of_justice_enemy) && (obj_hammer_of_justice_enemy.trueturn == 10 || true))
26
{
27
    timetoswing = 10;
28
    telegraphtime = 8;
29
}
30
var a = (global.hp[2] - 30) / 250;
31
if (a < 0)
32
    a = 0;
33
damage = lerp(12, 90, a);
34
if (i_ex(obj_sound_of_justice_enemy))
35
{
36
    target = 4;
37
    if (obj_sound_of_justice_enemy.phase == 1)
38
        damage = 38;
39
    else
40
        damage = 58;
41
}