Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_tenna_zoom_Other_11

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_tenna_enemy))
2
{
3
    with (obj_tenna_minigame_ui)
4
    {
5
        enabled = true;
6
        minigametype = other.minigametype;
7
        minigamedifficulty = other.minigamedifficulty;
8
    }
9
    if (minigametype == "susiezilla")
10
    {
11
        with (instance_create(camerax(), cameray(), obj_susiezilla_gamecontroller))
12
        {
13
            if (other.minigamedifficulty == 1)
14
                setup(1);
15
            if (other.minigamedifficulty == 2)
16
                setup(2);
17
            if (other.minigamedifficulty == 3)
18
                setup(3);
19
            if (other.minigamedifficulty == 4)
20
                setup(4);
21
            if (other.minigamedifficulty == 5)
22
                setup(5);
23
            if (other.minigamedifficulty == 6)
24
                setup(6);
25
            if (other.minigamedifficulty == 7)
26
                setup(7);
27
        }
28
    }
29
    if (minigametype == "music")
30
    {
31
        instance_create(camerax(), cameray(), obj_rhythmgame);
32
        with (obj_rhythmgame)
33
        {
34
            tenna_boss = true;
35
            turn_length = 360;
36
        }
37
    }
38
    if (minigametype == "cooking")
39
    {
40
        counter_marker = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(0, 310, spr_dw_kitchen_counter);
41
        counter_marker.depth = 99000;
42
        su_stove = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(46, 178, spr_dw_chef_stove);
43
        su_stove.depth = 98010;
44
        su_stove.image_speed = 0.2;
45
        ra_stove = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(554, 178, spr_dw_chef_stove);
46
        ra_stove.depth = 98010;
47
        ra_stove.image_speed = 0.2;
48
        instance_create_depth(0, 0, depth + 10, obj_chefs_init);
49
        obj_chefs_spawner.firedie = 1;
50
        obj_chefs_game.hbx_visible = 0;
51
        obj_chefs_game.bananacoins = 0;
52
        obj_chefs_spawner.no_fire = 0;
53
        if (minigamedifficulty == 0)
54
        {
55
            obj_chefs_game.microgame = 6;
56
            var i = 1;
57
            with (obj_chefs_spawner)
58
            {
59
                mode = 1;
60
                side = i;
61
                freq = 90;
62
alarm[0]
63
                visible = false;
64
                i = -1;
65
            }
66
            instance_destroy(obj_chefs_customer_spawner);
67
            with (obj_chefs_susie)
68
                instance_destroy();
69
            with (obj_chefs_ralsei)
70
                instance_destroy();
71
            tinytenna1 = instance_create_depth(90, 140, obj_tenna_minigame_ui.depth + 10, obj_tenna_chef_marker1);
72
            tinytenna2 = instance_create_depth(500, 140, obj_tenna_minigame_ui.depth + 10, obj_tenna_chef_marker1);
73
            tinytenna2.type = 1;
74
            with (instance_create_depth(320, 40, depth + 10, obj_chefs_fireguest))
75
            {
76
                depth++;
77
                visible = false;
78
            }
79
            obj_chefs_game.timer = 10;
80
            obj_chefs_game.timer_max = 10;
81
            with (obj_chefs_kris)
82
            {
83
                mask_index = spr_kris_chef_walk;
84
                audio_stop_sound(snd_egg);
85
            }
86
        }
87
        if (minigamedifficulty == 2)
88
        {
89
            obj_chefs_game.microgame = 1;
90
            var i = 1;
91
            with (obj_chefs_spawner)
92
            {
93
                mode = 1;
94
                side = i;
95
                freq = 50;
96
alarm[0]
97
                visible = false;
98
                i = -1;
99
            }
100
            instance_destroy(obj_chefs_customer_spawner);
101
            with (obj_chefs_susie)
102
                instance_destroy();
103
            with (obj_chefs_ralsei)
104
                instance_destroy();
105
            tinytenna1 = instance_create_depth(140, 200, depth + 10, obj_tenna_chef_marker1);
106
            tinytenna2 = instance_create_depth(540, 200, depth + 10, obj_tenna_chef_marker1);
107
            tinytenna2.type = 1;
108
            with (instance_create_depth(320, 40, depth + 10, obj_chefs_fireguest))
109
            {
110
                depth++;
111
                visible = false;
112
            }
113
            obj_chefs_game.timer = 10;
114
            obj_chefs_game.timer_max = 10;
115
            with (obj_chefs_kris)
116
            {
117
                mask_index = spr_kris_chef_walk;
118
                audio_stop_sound(snd_egg);
119
            }
120
        }
121
    }
122
    if (minigametype == "cowboy")
123
    {
124
        with (obj_shootout_window)
125
            instance_destroy();
126
        with (obj_shootout_fire)
127
            instance_destroy();
128
        with (obj_shootout_bullet_line)
129
            instance_destroy();
130
        with (obj_shootout_cactus)
131
            instance_destroy();
132
        with (obj_shootout_heart)
133
            instance_destroy();
134
        with (obj_shootout_kris)
135
            instance_destroy();
136
        with (obj_shootout_horse)
137
            instance_destroy();
138
        with (obj_shootout_hazard)
139
            instance_destroy();
140
        with (obj_shootout_susie)
141
            instance_destroy();
142
        with (obj_shootout_text)
143
            instance_destroy();
144
        with (obj_shootout_dog_item)
145
            instance_destroy();
146
        with (obj_shootout_line)
147
            instance_destroy();
148
        with (obj_shootout_dust)
149
            instance_destroy();
150
        with (obj_shootout_carriage)
151
            instance_destroy();
152
        with (obj_shootout_tenna_reticle)
153
            instance_destroy();
154
        with (obj_afterimage)
155
            instance_destroy();
156
        with (obj_oflash)
157
            instance_destroy();
158
        with (obj_shootout_vfx_mockup_shot)
159
            instance_destroy();
160
        with (obj_shootout_big_tenna)
161
            instance_destroy();
162
        instance_create_depth(camerax(), cameray(), obj_tenna_minigame_ui.depth + 10, obj_shootout_controller);
163
        if (minigamedifficulty == 0)
164
            obj_shootout_controller.shootout_type = 2;
165
        if (minigamedifficulty == 1)
166
        {
167
            obj_shootout_controller.shootout_type = 3;
168
            instance_create_depth(camerax(), cameray() + 90, obj_tenna_minigame_ui.depth + 1, obj_shootout_big_tenna);
169
        }
170
        with (obj_shootout_controller)
171
        {
172
            back_layer1 = layer_create(99007);
173
            fg = layer_background_create(back_layer1, spr_desert_loop_foreground);
174
            layer_background_htiled(fg, true);
175
            layer_background_stretch(fg, true);
176
            layer_background_speed(fg, -8);
177
            back_layer2 = layer_create(99008);
178
            md = layer_background_create(back_layer2, spr_desert_loop_middle_2);
179
            layer_background_htiled(md, true);
180
            layer_background_stretch(md, true);
181
            layer_background_speed(fg, -4);
182
            back_layer3 = layer_create(99009);
183
            md_back = layer_background_create(back_layer3, spr_desert_loop_middle_back_3);
184
            layer_background_htiled(md_back, true);
185
            layer_background_stretch(md_back, true);
186
            layer_background_speed(fg, -2);
187
            back_layer4 = layer_create(99010);
188
            bg = layer_background_create(back_layer4, spr_desert_loop_backrgound_4);
189
            layer_background_htiled(bg, true);
190
            layer_background_stretch(bg, true);
191
            layer_background_speed(fg, -1);
192
        }
193
    }
194
    if (minigametype == "battle")
195
    {
196
        if (minigamedifficulty == 0)
197
            minigamedifficulty = choose(1, 2);
198
        if (minigamedifficulty == 1)
199
        {
200
            inst = instance_create(x, y, obj_battleback);
201
            inst.image_alpha = 1;
202
            with (obj_tenna_enemy)
203
            {
204
                global.monsterattackname[myself] = "sharpshoot test";
205
                dc = instance_create_depth(x, y, depth + 10, obj_dbulletcontroller);
206
                dc.creator = myself;
207
                dc.creatorid = id;
208
                dc.target = mytarget;
209
                dc.damage = global.monsterat[myself] * 5;
210
                dc.type = 150;
211
                dc.minigamedifficulty = 1;
212
            }
213
        }
214
        if (minigamedifficulty == 2)
215
        {
216
            instance_create(x, y, obj_battleback);
217
            with (obj_tenna_enemy)
218
            {
219
                instance_create_depth(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 200, depth + 10, obj_growtangle);
220
                global.inv = 0;
221
                instance_create_depth(obj_herokris.x + 10, obj_herokris.y + 40, depth + 10, obj_moveheart);
222
                blocker = instance_create_depth(x, y, depth + 10, obj_elnina_umbrella);
223
                blocker.sprite_index = spr_ch3_elnina_umbrella;
224
                inst = instance_create_depth(camerax() + 80, cameray() - 320, depth + 10, obj_umbrella_tv);
225
                inst.weathersprite = 2124;
226
                inst.temp = 110;
227
                inst.vspeed = 2;
228
                inst = instance_create_depth(camerax() + 160, cameray() - 240, depth + 10, obj_umbrella_tv);
229
                inst.weathersprite = 2124;
230
                inst.temp = 110;
231
                inst.vspeed = 2;
232
                inst = instance_create_depth(camerax() + 80, cameray() - 160, depth + 10, obj_umbrella_tv);
233
                inst.weathersprite = 2124;
234
                inst.temp = 110;
235
                inst.vspeed = 2;
236
                inst = instance_create_depth(camerax() + 160, cameray() - 80, depth + 10, obj_umbrella_tv);
237
                inst.weathersprite = 2124;
238
                inst.temp = 110;
239
                inst.vspeed = 2;
240
                inst = instance_create_depth(camerax() + 80, cameray(), depth + 10, obj_umbrella_tv);
241
                inst.weathersprite = 2124;
242
                inst.temp = 110;
243
                inst.vspeed = 2;
244
                inst = instance_create_depth(camerax() + 160, cameray() + 80, depth + 10, obj_umbrella_tv);
245
                inst.weathersprite = 2124;
246
                inst.temp = 120;
247
                inst.vspeed = 2;
248
                inst = instance_create_depth(camerax() + 80, cameray() + 160, depth + 10, obj_umbrella_tv);
249
                inst.weathersprite = 2124;
250
                inst.temp = 97;
251
                inst.vspeed = 2;
252
                inst = instance_create_depth(camerax() + 160, cameray() + 240, depth + 10, obj_umbrella_tv);
253
                inst.weathersprite = 2124;
254
                inst.temp = 120;
255
                inst.vspeed = 2;
256
                inst = instance_create_depth(camerax() + 420, cameray() - 240, depth + 10, obj_umbrella_tv);
257
                inst.weathersprite = 1035;
258
                inst.temp = 2;
259
                inst.vspeed = -2;
260
                inst = instance_create_depth(camerax() + 500, cameray() - 160, depth + 10, obj_umbrella_tv);
261
                inst.weathersprite = 1035;
262
                inst.temp = 2;
263
                inst.vspeed = -2;
264
                inst = instance_create_depth(camerax() + 420, cameray() - 80, depth + 10, obj_umbrella_tv);
265
                inst.weathersprite = 1035;
266
                inst.temp = 2;
267
                inst.vspeed = -2;
268
                inst = instance_create_depth(camerax() + 500, cameray(), depth + 10, obj_umbrella_tv);
269
                inst.weathersprite = 1035;
270
                inst.temp = 2;
271
                inst.vspeed = -2;
272
                inst = instance_create_depth(camerax() + 420, cameray() - 80, depth + 10, obj_umbrella_tv);
273
                inst.weathersprite = 1035;
274
                inst.temp = 24;
275
                inst.vspeed = -2;
276
                inst = instance_create_depth(camerax() + 500, cameray(), depth + 10, obj_umbrella_tv);
277
                inst.weathersprite = 1035;
278
                inst.temp = 2;
279
                inst.vspeed = -2;
280
                inst = instance_create_depth(camerax() + 420, cameray() + 80, depth + 10, obj_umbrella_tv);
281
                inst.weathersprite = 1035;
282
                inst.temp = 24;
283
                inst.vspeed = -2;
284
                inst = instance_create_depth(camerax() + 500, cameray() + 160, depth + 10, obj_umbrella_tv);
285
                inst.weathersprite = 1035;
286
                inst.temp = 45;
287
                inst.vspeed = -2;
288
                inst = instance_create_depth(camerax() + 420, cameray() + 240, depth + 10, obj_umbrella_tv);
289
                inst.weathersprite = 1035;
290
                inst.temp = 45;
291
                inst.vspeed = -2;
292
                inst = instance_create_depth(camerax() + 500, cameray() + 320, depth + 10, obj_umbrella_tv);
293
                inst.weathersprite = 1035;
294
                inst.temp = 45;
295
                inst.vspeed = -2;
296
                with (obj_umbrella_tv)
297
                    depth = obj_growtangle.depth - 1;
298
            }
299
        }
300
        if (minigamedifficulty == 3)
301
        {
302
            with (obj_tenna_enemy_bg)
303
            {
304
                speedup = 1;
305
                slowdown = 0;
306
            }
307
            with (obj_tenna_enemy)
308
            {
309
                global.monsterattackname[myself] = "lightemup";
310
                dc = instance_create_depth(x, y, depth + 10, obj_dbulletcontroller);
311
                dc.creator = myself;
312
                dc.creatorid = id;
313
                dc.target = mytarget;
314
                dc.damage = global.monsterat[myself] * 5;
315
                dc.type = 150;
316
                dc.minigamedifficulty = 1;
317
            }
318
        }
319
    }
320
}
321
322
enum e__VW
323
{
324
    XView,
325
    YView,
326
    WView,
327
    HView,
328
    Angle,
329
    HBorder,
330
    VBorder,
331
    HSpeed,
332
    VSpeed,
333
    Object,
334
    Visible,
335
    XPort,
336
    YPort,
337
    WPort,
338
    HPort,
339
    Camera,
340
    SurfaceID
341
}