Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_knight_weird_bottom_manager_Alarm_1

(view raw script w/o annotations or w/e)
1
if (local_turntimer < 80)
2
{
3
    with (obj_knight_weird_circle)
4
    {
5
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_alpha", image_alpha, 0, 32);
6
        
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(instance_destroy, 32);
7
    }
8
    x = anchor_x;
9
    y = anchor_y;
10
    if (turn_type == "full")
11
    {
12
        alarm[2]
 = 40;
gml_Object_obj_knight_weird_bottom_manager_Alarm_2.gml

if (next_up != -999) { var knight = -4; switch (next_up) { case 1: knight = 366; break; case 2: knight = 670; break; case 3: knight = 803; break; case 4: knight = 631; break; } var new_knight = instance_create(x, y, knight);
scr_bullet_inherit(new_knight);
new_knight.creatorid = creatorid; new_knight.creator = creator; with (new_knight) { turn_type = "end"; if (other.turn_segment == 0) { turn_type = "short mid"; turn_segment = 1; next_up = other.next_next_up; } if (other.turn_segment == 1) { turn_type = "short end"; turn_segment = 2; } if (knight == 366) knight.timer = knight.spawn_speed; anchor_x = other.anchor_x; anchor_y = other.anchor_y; event_user(0); if (knight == 631) knight.countdowner = 10; with (instance_create_depth(x, y, depth, obj_knight_warp)) { master = other.id; event_user(0); } } } instance_destroy();
13
        
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_lerpvar, 20, "image_index", 5, 8, 8);
14
        
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_var, 20, "image_alpha", 1);
15
    }
16
    else
17
    {
18
        alarm[2]
 = 32;
gml_Object_obj_knight_weird_bottom_manager_Alarm_2.gml

if (next_up != -999) { var knight = -4; switch (next_up) { case 1: knight = 366; break; case 2: knight = 670; break; case 3: knight = 803; break; case 4: knight = 631; break; } var new_knight = instance_create(x, y, knight);
scr_bullet_inherit(new_knight);
new_knight.creatorid = creatorid; new_knight.creator = creator; with (new_knight) { turn_type = "end"; if (other.turn_segment == 0) { turn_type = "short mid"; turn_segment = 1; next_up = other.next_next_up; } if (other.turn_segment == 1) { turn_type = "short end"; turn_segment = 2; } if (knight == 366) knight.timer = knight.spawn_speed; anchor_x = other.anchor_x; anchor_y = other.anchor_y; event_user(0); if (knight == 631) knight.countdowner = 10; with (instance_create_depth(x, y, depth, obj_knight_warp)) { master = other.id; event_user(0); } } } instance_destroy();
19
        if (turn_type == "short start" || turn_type == "short mid" || turn_type == "start")
20
        {
21
            switch (next_up)
22
            {
23
                case 1:
24
                    alarm[2]
 = 1;
gml_Object_obj_knight_weird_bottom_manager_Alarm_2.gml

if (next_up != -999) { var knight = -4; switch (next_up) { case 1: knight = 366; break; case 2: knight = 670; break; case 3: knight = 803; break; case 4: knight = 631; break; } var new_knight = instance_create(x, y, knight);
scr_bullet_inherit(new_knight);
new_knight.creatorid = creatorid; new_knight.creator = creator; with (new_knight) { turn_type = "end"; if (other.turn_segment == 0) { turn_type = "short mid"; turn_segment = 1; next_up = other.next_next_up; } if (other.turn_segment == 1) { turn_type = "short end"; turn_segment = 2; } if (knight == 366) knight.timer = knight.spawn_speed; anchor_x = other.anchor_x; anchor_y = other.anchor_y; event_user(0); if (knight == 631) knight.countdowner = 10; with (instance_create_depth(x, y, depth, obj_knight_warp)) { master = other.id; event_user(0); } } } instance_destroy();
25
                    break;
26
                case 2:
27
                    alarm[2]
 = 12;
gml_Object_obj_knight_weird_bottom_manager_Alarm_2.gml

if (next_up != -999) { var knight = -4; switch (next_up) { case 1: knight = 366; break; case 2: knight = 670; break; case 3: knight = 803; break; case 4: knight = 631; break; } var new_knight = instance_create(x, y, knight);
scr_bullet_inherit(new_knight);
new_knight.creatorid = creatorid; new_knight.creator = creator; with (new_knight) { turn_type = "end"; if (other.turn_segment == 0) { turn_type = "short mid"; turn_segment = 1; next_up = other.next_next_up; } if (other.turn_segment == 1) { turn_type = "short end"; turn_segment = 2; } if (knight == 366) knight.timer = knight.spawn_speed; anchor_x = other.anchor_x; anchor_y = other.anchor_y; event_user(0); if (knight == 631) knight.countdowner = 10; with (instance_create_depth(x, y, depth, obj_knight_warp)) { master = other.id; event_user(0); } } } instance_destroy();
28
                    break;
29
                case 3:
30
                    alarm[2]
 = 18;
gml_Object_obj_knight_weird_bottom_manager_Alarm_2.gml

if (next_up != -999) { var knight = -4; switch (next_up) { case 1: knight = 366; break; case 2: knight = 670; break; case 3: knight = 803; break; case 4: knight = 631; break; } var new_knight = instance_create(x, y, knight);
scr_bullet_inherit(new_knight);
new_knight.creatorid = creatorid; new_knight.creator = creator; with (new_knight) { turn_type = "end"; if (other.turn_segment == 0) { turn_type = "short mid"; turn_segment = 1; next_up = other.next_next_up; } if (other.turn_segment == 1) { turn_type = "short end"; turn_segment = 2; } if (knight == 366) knight.timer = knight.spawn_speed; anchor_x = other.anchor_x; anchor_y = other.anchor_y; event_user(0); if (knight == 631) knight.countdowner = 10; with (instance_create_depth(x, y, depth, obj_knight_warp)) { master = other.id; event_user(0); } } } instance_destroy();
31
                    break;
32
                case 4:
33
                    alarm[2]
 = 1;
gml_Object_obj_knight_weird_bottom_manager_Alarm_2.gml

if (next_up != -999) { var knight = -4; switch (next_up) { case 1: knight = 366; break; case 2: knight = 670; break; case 3: knight = 803; break; case 4: knight = 631; break; } var new_knight = instance_create(x, y, knight);
scr_bullet_inherit(new_knight);
new_knight.creatorid = creatorid; new_knight.creator = creator; with (new_knight) { turn_type = "end"; if (other.turn_segment == 0) { turn_type = "short mid"; turn_segment = 1; next_up = other.next_next_up; } if (other.turn_segment == 1) { turn_type = "short end"; turn_segment = 2; } if (knight == 366) knight.timer = knight.spawn_speed; anchor_x = other.anchor_x; anchor_y = other.anchor_y; event_user(0); if (knight == 631) knight.countdowner = 10; with (instance_create_depth(x, y, depth, obj_knight_warp)) { master = other.id; event_user(0); } } } instance_destroy();
34
                    break;
35
            }
36
        }
37
        if (turn_type == "end" || turn_type == "short end")
38
        {
39
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_index", image_index, 8, 8);
40
            image_alpha = 1;
41
        }
42
    }
43
    exit;
44
}
45
with (ds_list_find_value(circle_list, 0))
46
{
47
    alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
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");
48
    rgb_rate = alarm[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");
49
}
50
if (amount > 1)
51
{
52
    with (ds_list_find_value(circle_list, 1))
53
    {
54
        alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
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");
55
        rgb_rate = alarm[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");
56
    }
57
}
58
if (amount > 2)
59
{
60
    with (ds_list_find_value(circle_list, 2))
61
    {
62
        alarm[1]
 = (18 * other.amount) - (4 * max(other.amount - 1, 0));
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");
63
        rgb_rate = alarm[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");
64
    }
65
}
66
repeat (1)
67
{
68
    ds_list_add(circle_list, ds_list_find_value(circle_list, 0));
69
    ds_list_delete(circle_list, 0);
70
}
71
alarm[1]
 = ((18 * amount) - (4 * max(amount - 1, 0))) + (2 * irandom(3));
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");
72
var newspin = choose(-12, 12);
73
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("spin", spin, newspin, (alarm[1] / 2) - 2, 2, "inout");
74
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_lerpvar, (alarm[1] / 2) - 2, "spin", newspin, 1 * sign(newspin), (alarm[1] / 2) - 2, 2, "inout");