Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_tenna_zoom_Other_12

(view raw script w/o annotations or w/e)
1
with (obj_marker)
2
{
3
    if (sprite_index == spr_dw_kitchen)
4
        instance_destroy();
5
    if (sprite_index == spr_dw_kitchen_counter)
6
        instance_destroy();
7
    if (sprite_index == spr_dw_chef_stove)
8
        instance_destroy();
9
}
10
if (minigametype == "susiezilla" && i_ex(obj_susiezilla_gamecontroller))
11
{
12
    if (minigamedifficulty == 2 && hurt_counter == 0)
13
    {
14
        if (obj_susiezilla_gamecontroller.ral_difficulty == 1)
15
            obj_tenna_enemy.ralsei1withouttakingdamage = true;
16
        if (obj_susiezilla_gamecontroller.ral_difficulty == 2)
17
            obj_tenna_enemy.ralsei2withouttakingdamage = true;
18
    }
19
    obj_susiezilla_gamecontroller.susiezilla_destroy();
20
    with (obj_animation)
21
        instance_destroy();
22
}
23
if (minigametype == "cooking" && i_ex(obj_chefs_game))
24
{
25
    with (obj_tenna_enemy)
26
    {
27
        if (minigamefailcount == 0)
28
            completedchefwithouttakingdamage = 1;
29
    }
30
    scr_chefs_end();
31
    with (counter_marker)
32
        instance_destroy();
33
    with (su_stove)
34
        instance_destroy();
35
    with (ra_stove)
36
        instance_destroy();
37
    with (obj_vfx_twinkle)
38
        instance_destroy();
39
    with (obj_flickerdie)
40
        instance_destroy();
41
    with (obj_ch3_b4_chef_fire)
42
        instance_destroy();
43
    instance_destroy(obj_tenna_chef_marker1);
44
}
45
if (minigametype == "music" && i_ex(obj_rhythmgame))
46
{
47
    with (obj_rhythmgame)
48
        instance_destroy();
49
}
50
if (minigametype == "cowboy" && i_ex(obj_shootout_controller))
51
{
52
    with (obj_shootout_controller)
53
        instance_destroy();
54
}
55
if (minigametype == "battle")
56
{
57
    with (obj_battleback)
58
        instance_destroy();
59
    with (obj_shutta_nobyacttest)
60
        instance_destroy();
61
    with (obj_shutta_nobyact_tv)
62
        instance_destroy();
63
    with (obj_shutta_photo_controller)
64
        instance_destroy();
65
    with (obj_shutta_enemy)
66
        instance_destroy();
67
    with (obj_lightemup_controller)
68
        instance_destroy();
69
    with (obj_lightemup_controller)
70
        instance_destroy();
71
    with (obj_clearbullets_fx)
72
        instance_destroy();
73
    with (obj_tenna_lightemup_bullet)
74
        instance_destroy();
75
    with (obj_heart)
76
        instance_destroy();
77
    with (obj_growtangle)
78
        instance_destroy();
79
    with (obj_elnina_bouncingbullet)
80
        instance_destroy();
81
    with (obj_regularbullet)
82
        instance_destroy();
83
    with (obj_afterimage)
84
        instance_destroy();
85
    with (obj_afterimage_grow)
86
        instance_destroy();
87
    with (obj_umbrella_tv)
88
        instance_destroy();
89
    with (obj_shadowman_sharpshoot_heart)
90
        instance_destroy();
91
    with (obj_elnina_umbrella)
92
        instance_destroy();
93
    with (obj_tenna_enemy)
94
    {
95
        
scr_act_charsprite_end
scr_act_charsprite_end

function
scr_act_charsprite_end()
{ for (i = 0; i < 10; i++) { with (_charactsprite[i]) instance_destroy(); } with (obj_heroparent) { if (image_alpha == 0) { image_alpha = 1; acttimer = 0; state = 0; global.faceaction[myself] = 0; } } }
();
96
        with (obj_herokris)
97
        {
98
            obj_herokris.x = obj_herokris.xstart;
99
            obj_herokris.y = obj_herokris.ystart;
100
        }
101
        with (obj_herosusie)
102
        {
103
            obj_herosusie.x = obj_herosusie.xstart;
104
            obj_herosusie.y = obj_herosusie.ystart;
105
        }
106
        with (obj_heroralsei)
107
        {
108
            obj_heroralsei.x = obj_heroralsei.xstart;
109
            obj_heroralsei.y = obj_heroralsei.ystart;
110
        }
111
    }
112
    if (minigamedifficulty == 1)
113
        obj_tenna_enemy.alreadydidsharpshoot = true;
114
    if (minigamedifficulty == 2 && hurt_counter == 0)
115
        obj_tenna_enemy.umbrellawithouttakingdamage = true;
116
}