Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_sword_vortex_manager_Create_0

(view raw script w/o annotations or w/e)
1
timer = 0;
2
siner = 0;
3
con = 0;
4
variant = 3;
5
firstsword = false;
6
swordcount = 0;
7
sinpower = 65;
8
sinspeed = 24;
9
startinglen = 70;
10
shrinkrate = 0;
11
multiswordmax = 0;
12
multiswordframes = 0;
13
multiswordcon = 0;
14
multiswordcount = 0;
15
centermoves = 0;
16
centermovescon = 0;
17
centermovestimer = 0;
18
movespeed = 60;
19
swordcirclecenterx = obj_growtangle.x;
20
swordcirclecentery = obj_growtangle.y;
21
startx = swordcirclecenterx;
22
starty = swordcirclecentery;
23
targetx = 0;
24
targety = 0;
25
setcount = 0;
26
for (i = 0; i < 50; i++)
27
    setdirection[i] = -1;
28
creatorid = -1;
29
creator = -1;
30
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; }
();
31
if (variant == 0)
32
{
33
    rate = 1;
34
    ratedecay = 0;
35
    rateminimum = 1;
36
    maxswords = 2;
37
    setdirection[1] = 0;
38
    setdirection[2] = 180;
39
    multiswordmax = 0;
40
    sinpower = 65;
41
    sinspeed = 24;
42
    startinglen = 70;
43
}
44
if (variant == 1)
45
{
46
    rate = 10;
47
    ratedecay = 0;
48
    rateminimum = 1;
49
    maxswords = 6;
50
    multiswordmax = 2;
51
    multiswordframes = 1;
52
    sinpower = 20;
53
    sinspeed = 18;
54
    startinglen = 90;
55
    shrinkrate = 0.15;
56
    setdirection[1] = 0;
57
    setdirection[2] = 180;
58
    setdirection[3] = 0;
59
    setdirection[4] = 180;
60
    setdirection[5] = 0;
61
    setdirection[6] = 180;
62
}
63
if (variant == 2)
64
{
65
    rate = 4;
66
    ratedecay = 0;
67
    rateminimum = 1;
68
    maxswords = 6;
69
    multiswordmax = 2;
70
    multiswordframes = 1;
71
    sinpower = 20;
72
    sinspeed = 26;
73
    startinglen = 70;
74
    setdirection[1] = 0;
75
    setdirection[2] = 180;
76
    setdirection[3] = 0;
77
    setdirection[4] = 180;
78
    setdirection[5] = 0;
79
    setdirection[6] = 180;
80
}
81
if (variant == 3)
82
{
83
    rate = 11;
84
    ratedecay = 0;
85
    rateminimum = 1;
86
    maxswords = 6;
87
    multiswordmax = 2;
88
    multiswordframes = 1;
89
    sinpower = 17;
90
    sinspeed = 22;
91
    startinglen = 80;
92
    setdirection[1] = 0;
93
    setdirection[2] = 180;
94
    setdirection[3] = 0;
95
    setdirection[4] = 180;
96
    setdirection[5] = 0;
97
    setdirection[6] = 180;
98
    centermoves = 1;
99
    movespeed = 60;
100
}
101
timer = rate - 5;