Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_climb_bullet_knightattack_Create_0

(view raw script w/o annotations or w/e)
1
config = 0;
2
timer = 0;
3
siner = 0;
4
delay = 40;
5
fallspeed = 3;
6
target = 3;
7
damage = 40;
8
var maxhealth = global.maxhp[1];
9
var curhealth = global.hp[1];
10
if (curhealth > (maxhealth / 2))
11
    damage = 40;
12
if (curhealth <= (maxhealth / 2))
13
    damage = 30;
14
if (curhealth <= 50)
15
    damage = 25;
16
image_angle = 270;
17
image_alpha = 0;
18
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(2, 2);
19
with (obj_dw_church_knightclimb)
20
    swordcount++;