Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_minigame_controller_Other_21

(view raw script w/o annotations or w/e)
1
plueyhealth--;
2
with (obj_mike_raindrop)
3
    instance_destroy();
4
shelter_current_time = shelter_time_limit;
5
shelter_current_time_eased = 99999;
6
if (plueyhealth > 0)
7
    exit;
8
mus_volume(global.batmusic[1], 0.5, 10);
9
with (obj_mike_minigame_tv)
10
{
11
    latestscore[minigame] = other.myscore;
12
    if (other.myscore > hiscore[minigame])
13
    {
14
        hiscore[minigame] = other.myscore;
15
        global.flag[1700] = other.myscore;
16
        snd_play(snd_won);
17
        other.new_hiscore = 120;
18
    }
19
    else
20
    {
21
        snd_play(snd_coin);
22
    }
23
}
24
cats_deposited = 0;
25
wave = 0;
26
timer = 0;
27
cats_bonus_timer = 0;
28
myscore = 0;
29
timer = 0;
30
phase = 3;
31
shelter_has_time_limit = false;
32
with (obj_mike_catbasket)
33
    instance_destroy();
34
with (obj_mike_raindrop)
35
    instance_destroy();
36
with (obj_marker)
37
{
38
    if (sprite_index == spr_mike_shelter)
39
        instance_destroy();
40
}
41
with (obj_mike_grabcat_pluey)
42
    instance_destroy();