Undertale script viewer

← back to main script listing

gml_Object_obj_spinbulletgen_friendscene_Alarm_9

(view raw script w/o annotations or w/e)
1
if (spec == 3 || spec == 5)
2
{
3
    bone = instance_create(x + 50, y - 50, obj_friendprotector);
4
    bone.sprite_index = spr_bonesaver;
5
    if (spec == 5)
6
        bone.sprite_index = spr_firesaver;
7
    instance_destroy();
8
}
9
if (spec == 4 || spec == 6)
10
{
11
    spear = instance_create(x - 70, y - 50, obj_friendprotector);
12
    spear.sprite_index = spr_spearsaver;
13
    if (spec == 6)
14
        spear.sprite_index = spr_litsaver;
15
    instance_destroy();
16
}