Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_spawn_enemy_Create_0

(view raw script w/o annotations or w/e)
1
light_radius = 48;
2
battlecontroller = false;
3
if (instance_number(obj_titan_spawn_enemy) == 1)
4
    battlecontroller = true;
5
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); }
();
6
talkmax = 90;
7
idlesprite = spr_titan_spawn_idle;
8
hurtsprite = spr_titan_spawn_hurt;
9
sparedsprite = spr_titan_spawn_idle;
10
custom_draw_example = 1;
11
rtimer = 0;
12
myattackchoice = 0;
13
first_barrage = true;
14
attack_chooser = 6;
15
with (obj_battlecontroller)
16
    cantspare[0] = 1;
17
with (obj_battlecontroller)
18
    cantspare[1] = 1;
19
balloonorder = 0;
20
ballooncon = 0;
21
balloonend = 1;
22
talked = 0;
23
talktimer = 0;
24
talkedcon = 0;
25
ralseitalks = 0;
26
susietalks = 0;
27
sactcount = 0;
28
ractcount = 0;
29
brighten = 0;
30
racttimer = 0;
31
phaseturn = 0;
32
myattackchoice = 0;
33
difficulty = 0;
34
dualhealcount = 0;
35
dualhealcon = 0;
36
dealhealtimer = 0;
37
scr_setchar
scr_setchar

function
scr_setchar(arg0 = 0, arg1 = 0, arg2 = 0)
{
scr_losechar();
if (arg0)
scr_getchar(2);
if (arg1)
scr_getchar(3);
if (arg2)
scr_getchar(4);
}
(1, 1);