Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_wordbullet_Create_0

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

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
2
if (instance_exists(obj_queen_enemy))
3
    damage = global.monsterat[obj_queen_enemy.myself] * 5;
4
if (instance_exists(obj_queen_bulletcontroller))
5
    target = obj_queen_bulletcontroller.target;
6
grazepoints = 4;
7
destroyonhit = 1;
8
word[0] = stringsetloc(
LOL
"LOL", "obj_wordbullet_slash_Create_0_gml_9_0"
);
9
word[1] = stringsetloc(
TOP10
"TOP10", "obj_wordbullet_slash_Create_0_gml_10_0"
);
10
word[2] = stringsetloc(
FAMILY
"FAMILY", "obj_wordbullet_slash_Create_0_gml_11_0"
);
11
word[3] = stringsetloc(
GUY
"GUY", "obj_wordbullet_slash_Create_0_gml_12_0"
);
12
word[4] = stringsetloc(
FUNNY
"FUNNY", "obj_wordbullet_slash_Create_0_gml_13_0"
);
13
word[5] = stringsetloc(
MOMENTS
"MOMENTS", "obj_wordbullet_slash_Create_0_gml_14_0"
);
14
word[6] = stringsetloc(
GIRL
"GIRL", "obj_wordbullet_slash_Create_0_gml_15_0"
);
15
word[7] = stringsetloc(
DOLL
"DOLL", "obj_wordbullet_slash_Create_0_gml_16_0"
);
16
word[8] = stringsetloc(
BOY
"BOY", "obj_wordbullet_slash_Create_0_gml_17_0"
);
17
word[9] = stringsetloc(
QUEEN
"QUEEN", "obj_wordbullet_slash_Create_0_gml_18_0"
);
18
word[10] = stringsetloc(
TALE
"TALE", "obj_wordbullet_slash_Create_0_gml_19_0"
);
19
word[11] = stringsetloc(
JOKE
"JOKE", "obj_wordbullet_slash_Create_0_gml_20_0"
);
20
word[12] = stringsetloc(
FASHION
"FASHION", "obj_wordbullet_slash_Create_0_gml_21_0"
);
21
word[13] = stringsetloc(
MIX
"MIX", "obj_wordbullet_slash_Create_0_gml_22_0"
);
22
word[14] = stringsetloc(
SOUND
"SOUND", "obj_wordbullet_slash_Create_0_gml_23_0"
);
23
word[15] = stringsetloc(
VIDEO
"VIDEO", "obj_wordbullet_slash_Create_0_gml_24_0"
);
24
word[16] = stringsetloc(
TOP20
"TOP20", "obj_wordbullet_slash_Create_0_gml_25_0"
);
25
word[17] = stringsetloc(
LAUGH
"LAUGH", "obj_wordbullet_slash_Create_0_gml_26_0"
);
26
word[18] = stringsetloc(
AND
"AND", "obj_wordbullet_slash_Create_0_gml_27_0"
);
27
word[19] = stringsetloc(
CRY
"CRY", "obj_wordbullet_slash_Create_0_gml_28_0"
);
28
word[20] = stringsetloc(
LIKE
"LIKE", "obj_wordbullet_slash_Create_0_gml_29_0"
);
29
word[21] = stringsetloc(
RATE
"RATE", "obj_wordbullet_slash_Create_0_gml_30_0"
);
30
wordchoice = word[floor(random(21))];
31
active = 1;
32
timer = 0;
33
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("main");
34
stringlength = string_width(wordchoice);
35
stringheight = string_height(wordchoice);
36
if (global.lang == "ja")
37
{
38
    jpstringlength = string_length(wordchoice);
39
    jpstringwidth = string_width(wordchoice);
40
}
41
idealxscale = sprite_width / stringlength;
42
idealyscale = sprite_height / stringheight;
43
scaleupx = 0;
44
queenword = 0;
45
init = 0;
46
gray = 0;
47
angry = 0;
48
dramatimer_x = 0;
49
dramatimer_y = 0;
50
if (y < (cameray() + 290))
51
    depth = obj_heart.depth - 1;
52
if (y > (cameray() + 290))
53
    depth = obj_heart.depth + 100.5;