Undertale script viewer

← back to main script listing

gml_Object_obj_asgore_spearswipegen_Alarm_1

(view raw script w/o annotations or w/e)
1
if (on == 0)
2
{
3
    event_user(1);
4
    on = 1;
5
}
6
else
7
{
8
    event_user(2);
9
    on = 0;
10
}
11
if (typeno < typeamt)
12
{
13
    alarm[1] = flashtimer;
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;
14
    caster_stop(flash);
15
    caster_play(flash, 0.5, 1.05);
16
}
17
else
18
{
19
    caster_stop(flash);
20
    caster_play(flash, 0.6, 0.8);
21
    alarm[2] = flashtimer + 15;
gml_Object_obj_asgore_spearswipegen_Alarm_2.gml

sw = instance_create(x, y, obj_asgore_spearswipe); for (i = 0; i < (typeamt + 1); i += 1) sw.type[i] = type[i]; if (diff == 0) { with (sw) { amt = 1; quick = 0; cutspeed = 0.5; flashtimer = 12; swipewait = 2; initswipewait = 5; } } if (diff == 1) { with (sw) { amt = 2; quick = 0; cutspeed = 0.5; flashtimer = 12; swipewait = 0; initswipewait = 8; } } if (diff == 2) { with (sw) { amt = 2; quick = 0; cutspeed = 1; flashtimer = 7; swipewait = 3; initswipewait = 4; } } if (diff == 3) { with (sw) { amt = 3; quick = 0; cutspeed = 1; flashtimer = 7; swipewait = 3; initswipewait = 3; } } instance_destroy();
22
}
23
typeno += 1;