Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_room_castle_tv_kikky_Create_0

related scripts: Alarm_0Alarm_1Create_0 Other_5Step_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
pitch = 1;
4
with (obj_caterpillarchara)
5
{
6
    fun = 1;
7
    freeze = 1;
8
    visible = 0;
9
}
10
snd_stop_all();
11
global.currentsong[0] = snd_init("kikky_upgrade.ogg");
12
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
13
is_tigerbomb = (irandom(19) == 0) ? 1 : 0;
14
bomb_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; }
(500, 310, (irandom(is_tigerbomb) == 0) ? spr_kikky_bomb : spr_tigerbomb);
15
bomb_interact = instance_create(500, 310, obj_readable_room1);
16
bomb_interact.image_xscale = 2;
17
bomb_interact.image_yscale = 2;
18
with (bomb_marker)
19
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
20
bomb_interact.extflag = "bomb";
21
bomb_collider = instance_create(520, 310, obj_solidblocksized);
22
bomb_marker.image_speed = 0.1;
23
debris_interact = instance_create(500, 310, obj_readable_room1);
24
debris_interact.x = 9999;
25
debris_interact.extflag = "debris";
26
coin_interact = instance_create(140, 280, obj_readable_room1);
27
coin_interact.image_xscale = 20;
28
coin_interact.extflag = "coin";
29
30
show_convo = function(arg0)
31
{
32
    switch (arg0)
33
    {
34
        case "coin":
35
            con = 1;
36
            break;
37
        case "bomb":
38
            con = 2;
39
            break;
40
        case "debris":
41
            con = 99;
42
            break;
43
    }
44
};