Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_organnote_manager_Other_10

(view raw script w/o annotations or w/e)
1
origin_list = ds_list_create();
2
gap_list = ds_list_create();
3
ds_list_add(gap_list, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
4
ds_list_shuffle(gap_list);
5
interval = 20;
6
if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 3)
7
    simulnotes = 1;
8
else if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 2)
9
    simulnotes = 2;
10
else if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 1)
11
    simulnotes = 5;
12
if (sameattack == 1)
13
{
14
    ds_list_add(origin_list, 0, 0, 0, 1, 1, 1, 2, 2, 2);
15
    ds_list_add(origin_list, irandom(2));
16
}
17
else if (sameattack == 2)
18
{
19
    ds_list_add(origin_list, 0, 0, 1, 1, 2, 2);
20
    interval = 25;
21
    repeat (4)
22
        ds_list_delete(gap_list, 0);
23
}
24
ds_list_sort(gap_list, true);
25
ds_list_shuffle(origin_list);
26
bullet_list = ds_list_create();