Deltarune script viewer

← back to main script listing

gml_Object_obj_king_boss_ch1_Other_15

(view raw script w/o annotations or w/e)
1
if (attacked == 0)
2
{
3
    global.invc = reminvc;
4
    if (attack == 1)
5
    {
6
        box = instance_create_ch1(xx + 320, yy + 170, obj_growtangle_ch1);
7
        mh = scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
8
        dd = instance_create_ch1(0, 0, obj_dbulletcontroller_ch1);
9
        dd.type = 21;
10
        dd.damage = global.monsterat[myself] * 5 * tempattack;
11
        dd.target = mytarget;
12
        dd.side = 1;
13
        dd.btimer = -8;
14
        global.turntimer = 190;
15
    }
16
    if (attack == 2)
17
    {
18
        visible = 0;
19
        chainking = instance_create_ch1(x, y, obj_chainking_ch1);
20
        chainking.type = 1;
21
        chainking.subtype = 0;
22
        chainking.grazepoints = 6;
23
        box = instance_create_ch1(xx + 200, yy + 175, obj_nonsolid_growtangle_ch1);
24
        box.sprite_index = spr_battlebg_wavechain_ch1;
25
        hm = instance_create_ch1(box.x - 10, box.y - 10, obj_heartmarker_ch1);
26
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
27
        with (hm)
28
            instance_destroy();
29
        chainking.damage = global.monsterat[myself] * 4 * tempattack;
30
        chainking.target = 3;
31
        global.turntimer = 999;
32
    }
33
    if (attack == 3)
34
    {
35
        box = instance_create_ch1(xx + 320, yy + 170, obj_growtangle_ch1);
36
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
37
        dd = instance_create_ch1(0, 0, obj_dbulletcontroller_ch1);
38
        dd.type = 34;
39
        dd.damage = global.monsterat[myself] * 5 * tempattack;
40
        dd.target = mytarget;
41
        dd.btimer = 10;
42
        global.turntimer = 210;
43
    }
44
    if (attack == 4)
45
    {
46
        global.invc *= 1.5;
47
        box = instance_create_ch1(xx + 310, yy + 165, obj_growtangle_ch1);
48
        box.sprite_index = spr_battlebg_2_ch1;
49
        box.keep = 1;
50
        hm = instance_create_ch1(box.x - 10, box.y - 10, obj_heartmarker_ch1);
51
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
52
        with (hm)
53
            instance_destroy();
54
        damagebox = instance_create_ch1(box.x, box.y, obj_growtangle_bouncer_ch1);
55
        damagebox.type = 5;
56
        damagebox.damage = global.monsterat[myself] * 5 * tempattack;
57
        damagebox.target = mytarget;
58
        global.turntimer = 999;
59
    }
60
    if (attack == 5)
61
    {
62
        visible = 0;
63
        chainking = instance_create_ch1(x, y, obj_chainking_ch1);
64
        chainking.grazepoints = 6;
65
        chainking.type = 1;
66
        chainking.subtype = 1;
67
        box = instance_create_ch1(xx + 200, yy + 175, obj_nonsolid_growtangle_ch1);
68
        box.sprite_index = spr_battlebg_wavechain_ch1;
69
        chainking.damage = global.monsterat[myself] * 4 * tempattack;
70
        chainking.target = 3;
71
        global.turntimer = 999;
72
        hm = instance_create_ch1(box.x - 10, box.y - 10, obj_heartmarker_ch1);
73
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
74
        with (hm)
75
            instance_destroy();
76
    }
77
    if (attack == 6)
78
    {
79
        global.invc *= 1.5;
80
        visible = 0;
81
        timeruse = 0;
82
        chainking = instance_create_ch1(x, y, obj_chainking_ch1);
83
        chainking.type = 2;
84
        chainking.subtype = 5;
85
        if (chain_dragging >= 1)
86
            chainking.subtype = 2;
87
        chain_dragging += 1;
88
        box = instance_create_ch1(xx + 205, yy + 170, obj_nonsolid_growtangle_ch1);
89
        box.sprite_index = spr_battlebg_1_ch1;
90
        chainking.damage = global.monsterat[myself] * 5 * tempattack;
91
        chainking.target = mytarget;
92
        global.turntimer = 999;
93
        hm = instance_create_ch1(box.x - 10, box.y - 10, obj_heartmarker_ch1);
94
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
95
        with (hm)
96
            instance_destroy();
97
    }
98
    if (attack == 7)
99
    {
100
        box = instance_create_ch1(xx + 320, yy + 170, obj_growtangle_ch1);
101
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
102
        dd = instance_create_ch1(0, 0, obj_dbulletcontroller_ch1);
103
        dd.type = 35;
104
        global.turntimer = 220;
105
        dd.damage = global.monsterat[myself] * 5 * tempattack;
106
        dd.target = mytarget;
107
        dd.btimer = 10;
108
    }
109
    if (attack == 8)
110
    {
111
        global.invc *= 1.5;
112
        box = instance_create_ch1(xx + 310, yy + 165, obj_growtangle_ch1);
113
        box.sprite_index = spr_battlebg_2_ch1;
114
        box.keep = 1;
115
        hm = instance_create_ch1(box.x - 10, box.y - 10, obj_heartmarker_ch1);
116
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
117
        with (hm)
118
            instance_destroy();
119
        damagebox = instance_create_ch1(box.x, box.y, obj_growtangle_bouncer_ch1);
120
        damagebox.type = 3;
121
        damagebox.damage = global.monsterat[myself] * 5 * tempattack;
122
        damagebox.target = mytarget;
123
        global.turntimer = 999;
124
    }
125
    if (attack == 9)
126
    {
127
        box = instance_create_ch1(xx + 320, yy + 170, obj_growtangle_ch1);
128
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
129
        dd = instance_create_ch1(0, 0, obj_dbulletcontroller_ch1);
130
        dd.type = 23;
131
        global.turntimer = 200;
132
        dd.damage = global.monsterat[myself] * 5 * tempattack;
133
        dd.target = mytarget;
134
        dd.btimer = -8;
135
        dd.side = 1;
136
    }
137
    if (attack == 10)
138
    {
139
        visible = 0;
140
        chainking = instance_create_ch1(x, y, obj_chainking_ch1);
141
        chainking.grazepoints = 6;
142
        chainking.type = 1;
143
        chainking.subtype = 2;
144
        box = instance_create_ch1(xx + 200, yy + 175, obj_nonsolid_growtangle_ch1);
145
        box.sprite_index = spr_battlebg_wavechain_ch1;
146
        hm = instance_create_ch1(box.x - 10, box.y - 10, obj_heartmarker_ch1);
147
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
148
        with (hm)
149
            instance_destroy();
150
        chainking.damage = global.monsterat[myself] * 4 * tempattack;
151
        chainking.target = 3;
152
        global.turntimer = 999;
153
    }
154
    if (attack == 11)
155
    {
156
        global.invc *= 1.5;
157
        visible = 0;
158
        timeruse = 0;
159
        chainking = instance_create_ch1(x, y, obj_chainking_ch1);
160
        chainking.type = 2;
161
        chainking.subtype = 1;
162
        box = instance_create_ch1(xx + 205, yy + 170, obj_nonsolid_growtangle_ch1);
163
        box.sprite_index = spr_battlebg_1_ch1;
164
        chainking.damage = global.monsterat[myself] * 3 * tempattack;
165
        chainking.target = 3;
166
        global.turntimer = 999;
167
        hm = instance_create_ch1(box.x - 10, box.y - 10, obj_heartmarker_ch1);
168
        scr_moveheart_ch1
scr_moveheart_ch1

function scr_moveheart_ch1() { return instance_create_ch1(obj_herokris_ch1.x + 10, obj_herokris_ch1.y + 40, obj_moveheart_ch1); }
();
169
        with (hm)
170
            instance_destroy();
171
    }
172
    tempattack = 1;
173
    attacked = 1;
174
}