Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_knight_weird_bottom_manager_Alarm_0

(view raw script w/o annotations or w/e)
1
var rep = 1;
2
if (turn_type == "short start" || turn_type == "short mid")
3
    rep = 6;
4
repeat (6)
5
{
6
    if (circle_val < 5)
7
    {
8
        circle_val++;
9
        with (instance_create(x, y, obj_knight_weird_circle))
10
        {
11
            angle = (360 / other.circle_goal) * ds_list_size(other.circle_list);
12
            distance = other.circle_distance;
13
            spin = other.spin;
14
            master = other.id;
15
            alarm[0]
 = 6;
gml_Object_obj_knight_weird_bottom_manager_Alarm_0.gml

var rep = 1; if (turn_type == "short start" || turn_type == "short mid") rep = 6; repeat (6) { if (circle_val < 5) { circle_val++; with (instance_create(x, y, obj_knight_weird_circle)) { angle = (360 / other.circle_goal) * ds_list_size(other.circle_list); distance = other.circle_distance; spin = other.spin; master = other.id; alarm[0]
 = 6;
ds_list_add(other.circle_list, id); if (other.turn_type == "short start" || other.turn_type == "short mid") hellzone = true; } alarm[0]
 = init_start;
} else { alarm[1]
 = init;
if (turn_type == "short start" || turn_type == "short mid") alarm[1]
 = 1;
} }
16
            ds_list_add(other.circle_list, id);
17
            if (other.turn_type == "short start" || other.turn_type == "short mid")
18
                hellzone = true;
19
        }
20
        alarm[0]
 = init_start;
gml_Object_obj_knight_weird_bottom_manager_Alarm_0.gml

var rep = 1; if (turn_type == "short start" || turn_type == "short mid") rep = 6; repeat (6) { if (circle_val < 5) { circle_val++; with (instance_create(x, y, obj_knight_weird_circle)) { angle = (360 / other.circle_goal) * ds_list_size(other.circle_list); distance = other.circle_distance; spin = other.spin; master = other.id; alarm[0]
 = 6;
ds_list_add(other.circle_list, id); if (other.turn_type == "short start" || other.turn_type == "short mid") hellzone = true; } alarm[0]
 = init_start;
} else { alarm[1]
 = init;
if (turn_type == "short start" || turn_type == "short mid") alarm[1]
 = 1;
} }
21
    }
22
    else
23
    {
24
        alarm[1]
 = init;
gml_Object_obj_knight_weird_bottom_manager_Alarm_1.gml

if (local_turntimer < 80) { with (obj_knight_weird_circle) {
scr_lerpvar("image_alpha", image_alpha, 0, 32);
scr_script_delayed(instance_destroy, 32);
} x = anchor_x; y = anchor_y; if (turn_type == "full") { alarm[2]
 = 40;
scr_script_delayed(scr_lerpvar, 20, "image_index", 5, 8, 8);
scr_script_delayed(scr_var, 20, "image_alpha", 1);
} else { alarm[2]
 = 32;
if (turn_type == "short start" || turn_type == "short mid" || turn_type == "start") { switch (next_up) { case 1: alarm[2]
 = 1;
break; case 2: alarm[2]
 = 12;
break; case 3: alarm[2]
 = 18;
break; case 4: alarm[2]
 = 1;
break; } } if (turn_type == "end" || turn_type == "short end") {
scr_lerpvar("image_index", image_index, 8, 8);
image_alpha = 1; } } exit; } with (ds_list_find_value(circle_list, 0)) { alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
rgb_rate = alarm[1]
;
} if (amount > 1) { with (ds_list_find_value(circle_list, 1)) { alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
rgb_rate = alarm[1]
;
} } if (amount > 2) { with (ds_list_find_value(circle_list, 2)) { alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
rgb_rate = alarm[1]
;
} } repeat (1) { ds_list_add(circle_list, ds_list_find_value(circle_list, 0)); ds_list_delete(circle_list, 0); } alarm[1]
 = ((18 * amount) - (4 * max(amount - 1, 0))) + (2 * irandom(3));
var newspin = choose(-12, 12);
scr_lerpvar("spin", spin, newspin, (alarm[1] / 2) - 2, 2, "inout");
scr_script_delayed(scr_lerpvar, (alarm[1] / 2) - 2, "spin", newspin, 1 * sign(newspin), (alarm[1] / 2) - 2, 2, "inout");
25
        if (turn_type == "short start" || turn_type == "short mid")
26
            alarm[1]
 = 1;
gml_Object_obj_knight_weird_bottom_manager_Alarm_1.gml

if (local_turntimer < 80) { with (obj_knight_weird_circle) {
scr_lerpvar("image_alpha", image_alpha, 0, 32);
scr_script_delayed(instance_destroy, 32);
} x = anchor_x; y = anchor_y; if (turn_type == "full") { alarm[2]
 = 40;
scr_script_delayed(scr_lerpvar, 20, "image_index", 5, 8, 8);
scr_script_delayed(scr_var, 20, "image_alpha", 1);
} else { alarm[2]
 = 32;
if (turn_type == "short start" || turn_type == "short mid" || turn_type == "start") { switch (next_up) { case 1: alarm[2]
 = 1;
break; case 2: alarm[2]
 = 12;
break; case 3: alarm[2]
 = 18;
break; case 4: alarm[2]
 = 1;
break; } } if (turn_type == "end" || turn_type == "short end") {
scr_lerpvar("image_index", image_index, 8, 8);
image_alpha = 1; } } exit; } with (ds_list_find_value(circle_list, 0)) { alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
rgb_rate = alarm[1]
;
} if (amount > 1) { with (ds_list_find_value(circle_list, 1)) { alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
rgb_rate = alarm[1]
;
} } if (amount > 2) { with (ds_list_find_value(circle_list, 2)) { alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
rgb_rate = alarm[1]
;
} } repeat (1) { ds_list_add(circle_list, ds_list_find_value(circle_list, 0)); ds_list_delete(circle_list, 0); } alarm[1]
 = ((18 * amount) - (4 * max(amount - 1, 0))) + (2 * irandom(3));
var newspin = choose(-12, 12);
scr_lerpvar("spin", spin, newspin, (alarm[1] / 2) - 2, 2, "inout");
scr_script_delayed(scr_lerpvar, (alarm[1] / 2) - 2, "spin", newspin, 1 * sign(newspin), (alarm[1] / 2) - 2, 2, "inout");
27
    }
28
}