Undertale script viewer

← back to main script listing

gml_Object_obj_asgore_spearswipegen_Alarm_3

(view raw script w/o annotations or w/e)
1
type[0] = choose(1, 2);
2
type[1] = choose(1, 2);
3
type[2] = choose(1, 2);
4
type[3] = choose(1, 2);
5
type[4] = choose(1, 2);
6
type[5] = choose(1, 2);
7
if (diff == 0)
8
{
9
    flashtimer = 12;
10
    typeamt = 1;
11
}
12
if (diff == 1)
13
{
14
    flashtimer = 9;
15
    typeamt = 2;
16
}
17
if (diff == 2)
18
{
19
    flashtimer = 7;
20
    typeamt = 2;
21
}
22
if (diff == 3)
23
{
24
    flashtimer = 7;
25
    typeamt = 3;
26
}
27
alarm[1] = 1;
gml_Object_obj_asgore_spearswipegen_Alarm_1.gml

if (on == 0) { event_user(1); on = 1; } else { event_user(2); on = 0; } if (typeno < typeamt) { alarm[1] = flashtimer; caster_stop(flash); caster_play(flash, 0.5, 1.05); } else { caster_stop(flash); caster_play(flash, 0.6, 0.8); alarm[2] = flashtimer + 15; } typeno += 1;
28
typeno = 0;