Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_balthizard_enemy_Create_0

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

function
scr_enemy_object_init()
{ becomeflash = 0; flash = 0; turnt = 0; turns = 0; talktimer = 0; state = 0; siner = 0; fsiner = 0; talked = 0; attacked = 0; hurt = 0; hurttimer = 0; hurtshake = 0; shakex = 0; mywriter = 343249823; acttimer = 0; con = 0; dodgetimer = 0; fatal = 0; candodge = 0; mytarget = 0; ambushed = 0; firststrike = 0; damage = -1; grazepoints = -1; timepoints = -1; inv = -1; target = -1; grazed = -1; grazetimer = -1; element = "none"; acting = 0; actcon = 0; actingsus = 0; actingnoe = 0; actingral = 0; actconsus = 0; actconral = 0; actconnoe = 0; simulorderkri = -1; simulordersus = -1; simulorderral = -1; simulordernoe = -1; simultotal = 0; simulboss = -1; talkmax = 90; mercymod = 0; maxmercy = 100; recruitable = 1; freezable = 1; recruitcount = 1; sactionboxx = 0; sactionboxy = 0; hurtspriteoffx = 0; hurtspriteoffy = 0; image_xscale = 2; image_yscale = 2; image_speed = 0.2; idlesprite = spr_diamond_knight_overworld; hurtsprite = spr_diamond_knight_hurt; sparedsprite = spr_diamond_knight_spared; custombody = 0; for (i = 0; i < 10; i++) _charactsprite[i] = 382938298329; depth = 90 - ((y - cameray()) / 50); }
();
2
recruitcount = 5;
3
talkmax = 90;
4
image_speed = 0.16666666666666666;
5
idlesprite = spr_incense_idle;
6
hurtsprite = spr_incense_hurt;
7
sparedsprite = spr_incense_spared;
8
custom_draw_example = 1;
9
postenemyturnevent = 0;
10
shakex = 0;
11
headoffsetx = 0;
12
headoffsety = 0;
13
shakelastpress = 0;
14
shakemercystart = 0;
15
shaketimer = 0;
16
headflashtimer = 0;
17
shakestartmercy = 0;
18
shakestartsatmaxmercy = false;
19
shakemaxmercyhp = 30;
20
lightup = false;
21
lightupfireframes = 0;
22
lightuptimer = 0;
23
lightupfirstturn = 0;
24
justshaked = 0;
25
headspeed = 0;
26
headgravity = 2.5;
27
headfriction = 1;
28
shakehead = instance_create(x, y, obj_incense_turtle_shake_head);
29
shakehead.depth = depth - 999;
30
shakehead.parentid = id;
31
animsiner = 0;
32
headamplitude = 0;
33
turthead = 5548;
34
headindex = 0;
35
neckcolor = make_color_rgb(166, 94, 122);
36
attackselected = 0;
37
transitiontimer = 0;
38
transitioncon = 0;
39
piece_xoffset[4] = 0;
40
piece_yoffset[4] = 0;
41
piece_index[4] = 0;
42
head_scale = 2;
43
darken_alpha = 0;
44
pieces_alpha2 = 1;
45
pieces_alpha = 1;
46
string_top_x = x + 60;
47
string_top_y = y + 40;
48
stringcon = 0;
49
stringcount = 1;
50
stringindex = 0;
51
with (obj_balthizard_enemy)
52
{
53
    gersonevent = false;
54
    gersonintro = 2;
55
}
56
if (global.plot == 141)
57
    gersonevent = true;
58
gersonintro = 0;
59
gersoncon = 0;
60
gersontimer = 0;
61
gerson = -1;
62
gersonactcount = 0;
63
gersonvar = 0;
64
eyesfollowgersonindex = -1;
65
eyedelay = 0;
66
eyesiner = 0;
67
balloonorder = 0;
68
ballooncon = 0;
69
balloonend = 1;
70
talked = 0;
71
talktimer = 0;
72
talkedcon = 0;
73
ralseitalks = 0;
74
susietalks = 0;
75
walkvar = 0;
76
attackdown = 0;