Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_sound_of_justice_enemy_Create_0

related scripts: Alarm_4Alarm_6Alarm_7CleanUp_0Create_0 Draw_0Mouse_60Mouse_61Other_10Other_11Other_22Other_24Step_0

(view raw script w/o annotations or w/e)
1
init = 0;
2
battleversion = 1;
3
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); }
();
4
global.invc = 0.5;
5
progress = 0;
6
image_speed = 0.16666666666666666;
7
recruitcount = 1;
8
talkmax = 90;
9
idlesprite = spr_statue_sound_of_justice;
10
hurtsprite = spr_statue_sound_of_justice;
11
sparedsprite = spr_statue_sound_of_justice;
12
hairindex = 0;
13
movesiner = 0;
14
attackpattern = 1;
15
difficulty = 0;
16
turn = 0;
17
phase = 1;
18
patternstate = 0;
19
rr = -1;
20
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; } }
();
21
attacktimer = 0;
22
attackcon = 0;
23
rtimer = 0;
24
talked = 0;
25
talkedcon = 0;
26
dodgetimer = 0;
27
turnframes = 0;
28
attackdebug = -1;
29
difficultydebug = -1;
30
musicdebug = 0;
31
songtime = 0;
32
songplaying = 1;
33
resumeinterval = 1.715;
34
diagonal_enabled = 0;
35
transformsfx = 0;
36
balloonorder = 0;
37
ballooncon = 0;
38
balloonend = 1;
39
talkedcon = 0;
40
susietalks = 0;
41
rudebusterhitcount = 0;
42
rudebusterhitcountmax = 1;
43
susiehitbyrudebustercount = 0;
44
susiehitbyrudebustercon = 0;
45
swingtimer = 0;
46
swingdown_ex = 0;
47
swingdown_multitelegraph = 0;
48
goldalpha = 0;
49
goldcon = 0;
50
hitbox_con = 0;
51
hitbox_timer = 0;
52
turns = 0;
53
endcon = 0;
54
endtimer = 0;
55
end_cutscene_version = 0;
56
frozentimer = 0;
57
fasterheart = false;
58
swingdownbeatspeed = 23;
59
savebattlecontrollerdepth = obj_battlecontroller.depth;
60
rudebusterflashcon = 0;
61
rudebusterflashtimer = 0;
62
gothitlastturn = 0;
63
beenhit = false;
64
introtalkcon = 0;
65
introballooncon = 0;
66
firstconversationhappened = 0;
67
nothitevent = false;
68
mercylaughcon = 0;
69
mercylaughtimer = 0;
70
mercylaughcount = 9;
71
spinxscale = 1;
72
spinspeed = 5;
73
saverudebusterstarcount = 9;
74
spintimer = 0;
75
spinindex = 0;
76
playmeatsoundcon = 0;
77
playmeatsoundtimer = 0;
78
endingcon = 0;
79
endingtimer = 0;
80
state14timer = 0;
81
state14con = 0;
82
phase = 1;
83
susiedown = false;
84
intermission1_con = 0;
85
intermission1_timer = 0;
86
susie_phase2_try_attack_con = 0;
87
susie_phase2_try_attack_timer = 0;
88
kris_phase2_try_attack_con = 0;
89
kris_phase2_try_attack_timer = 0;
90
krisattackcount = 0;
91
image_blend = c_black;
92
instance_create(0, 0, obj_gerson_darkness_overlay);
93
if (global.encounterno == 186)
94
{
95
    phase = 2;
96
    turns = 4;
97
    attackpattern = 5;
98
    if (i_ex(obj_dw_churchb_nongerson))
99
        attackpattern = obj_dw_churchb_nongerson.attackpattern_save;
100
}
101
ralseimarker = instance_create(x, y, obj_marker);
102
bulletphaseend = false;
103
failsafe = false;
104
global.flag[1641] = global.tempflag[60];
105
if (global.tempflag[57] < 4 || global.flag[1641] > 4)
106
    failsafe = true;
107
if (room == room_battletest)
108
    failsafe = false;
109
with (obj_battleback)
110
    instance_destroy();
111
rippletimer = 0;
112
susieripple = 0;
113
lightupcon = 0;
114
lightalpha = 1.2;
115
introcon = 0;
116
introtimer = 0;
117
snd_stop(snd_strongwind_loop);
118
redflashcon = 0;
119
redflashtimer = 0;
120
growtangleredcon = 0;
121
growtangleredtimer = 0;