Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_rhythmgame_chart_Other_10

(view raw script w/o annotations or w/e)
1
var _tenna_boss = obj_rhythmgame.tenna_boss;
2
if (maxnote >= 5)
3
    last_score[0] = notescore[maxnote - 5];
4
if (maxnote >= 4)
5
    last_score[1] = notescore[maxnote - 4];
6
if (maxnote >= 3)
7
    last_score[2] = notescore[maxnote - 3];
8
if (maxnote >= 2)
9
    last_score[3] = notescore[maxnote - 2];
10
if (maxnote >= 1)
11
    last_score[4] = notescore[maxnote - 1];
12
minnote = 0;
13
remtrackpos[4] = -1;
14
remtrackpos[3] -= track_length;
15
remtrackpos[2] -= track_length;
16
remtrackpos[1] -= track_length;
17
remtrackpos[0] -= track_length;
18
var _notealive;
19
if (instrument == 2 || _tenna_boss)
20
    _notealive = 1;
21
else if (fade < 1)
22
    _notealive = 0;
23
else
24
    _notealive = (obj_rhythmgame.tutorial < 7) ? 1 : 0;
25
for (i = 0; i < maxnote; i++)
26
{
27
    notealive[i] = _notealive;
28
    notescore[i] = 0;
29
}