Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_sound_of_justice_enemy_Create_0

(view raw script w/o annotations or w/e)
1
global.flag[1569] = 1;
2
init = 0;
3
battleversion = 1;
4
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); }
();
5
global.invc = 0.5;
6
progress = 0;
7
image_speed = 0.16666666666666666;
8
recruitcount = 1;
9
talkmax = 90;
10
idlesprite = spr_statue_sound_of_justice;
11
hurtsprite = spr_statue_sound_of_justice;
12
sparedsprite = spr_statue_sound_of_justice;
13
hairindex = 0;
14
movesiner = 0;
15
attackpattern = 1;
16
difficulty = 0;
17
turn = 0;
18
phase = 1;
19
patternstate = 0;
20
rr = -1;
21
scr_spearpattern_reset
scr_spearpattern_reset

function
scr_spearpattern_reset()
{ attackcount = 0; attackcountmax = 0; for (i = 0; i < 100; i++) { list_attackdirection[i] = 0; list_attackspeed[i] = 0; list_attackframes[i] = 0; list_attackspecial[i] = 0; list_attackspecial2[i] = 0; list_attackwait[i] = 5; } }
();
22
attacktimer = 0;
23
attackcon = 0;
24
rtimer = 0;
25
talked = 0;
26
talkedcon = 0;
27
dodgetimer = 0;
28
turnframes = 0;
29
attackdebug = -1;
30
difficultydebug = -1;
31
musicdebug = 0;
32
songtime = 0;
33
songplaying = 1;
34
resumeinterval = 1.715;
35
diagonal_enabled = 0;
36
transformsfx = 0;
37
balloonorder = 0;
38
ballooncon = 0;
39
balloonend = 1;
40
talkedcon = 0;
41
susietalks = 0;
42
rudebusterhitcount = 0;
43
rudebusterhitcountmax = 1;
44
susiehitbyrudebustercount = 0;
45
susiehitbyrudebustercon = 0;
46
swingtimer = 0;
47
swingdown_ex = 0;
48
swingdown_multitelegraph = 0;
49
goldalpha = 0;
50
goldcon = 0;
51
hitbox_con = 0;
52
hitbox_timer = 0;
53
turns = 0;
54
endcon = 0;
55
endtimer = 0;
56
end_cutscene_version = 0;
57
frozentimer = 0;
58
fasterheart = false;
59
swingdownbeatspeed = 23;
60
savebattlecontrollerdepth = obj_battlecontroller.depth;
61
rudebusterflashcon = 0;
62
rudebusterflashtimer = 0;
63
gothitlastturn = 0;
64
beenhit = false;
65
introtalkcon = 0;
66
introballooncon = 0;
67
firstconversationhappened = 0;
68
nothitevent = false;
69
mercylaughcon = 0;
70
mercylaughtimer = 0;
71
mercylaughcount = 9;
72
spinxscale = 1;
73
spinspeed = 5;
74
saverudebusterstarcount = 9;
75
spintimer = 0;
76
spinindex = 0;
77
playmeatsoundcon = 0;
78
playmeatsoundtimer = 0;
79
endingcon = 0;
80
endingtimer = 0;
81
state14timer = 0;
82
state14con = 0;
83
phase = 1;
84
susiedown = false;
85
intermission1_con = 0;
86
intermission1_timer = 0;
87
susie_phase2_try_attack_con = 0;
88
susie_phase2_try_attack_timer = 0;
89
kris_phase2_try_attack_con = 0;
90
kris_phase2_try_attack_timer = 0;
91
krisattackcount = 0;
92
image_blend = c_black;
93
instance_create(0, 0, obj_gerson_darkness_overlay);
94
if (global.encounterno == 186)
95
{
96
    phase = 2;
97
    turns = 4;
98
    attackpattern = 5;
99
    if (i_ex(obj_dw_churchb_nongerson))
100
        attackpattern = obj_dw_churchb_nongerson.attackpattern_save;
101
}
102
ralseimarker = instance_create(x, y, obj_marker);
103
bulletphaseend = false;
104
failsafe = false;
105
global.flag[1641] = global.tempflag[60];
106
if (global.tempflag[57] < 4 || global.flag[1641] > 4)
107
    failsafe = true;
108
if (room == room_battletest)
109
    failsafe = false;
110
with (obj_battleback)
111
    instance_destroy();
112
rippletimer = 0;
113
susieripple = 0;
114
lightupcon = 0;
115
lightalpha = 1.2;
116
introcon = 0;
117
introtimer = 0;
118
snd_stop(snd_strongwind_loop);
119
redflashcon = 0;
120
redflashtimer = 0;
121
growtangleredcon = 0;
122
growtangleredtimer = 0;