Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shutta_photo_controller_Collision_obj_shutta_photo_nubert

(view raw script w/o annotations or w/e)
1
if (state == "capture")
2
{
3
    array_push(subjects, other.id);
4
    if ((other.image_index >= 3 && other.sprite_index == spr_npc_nubert_appear) || (other.image_index < 4 && other.sprite_index == spr_npc_nubert_hide))
5
        endmessage = stringsetloc(
* Great shot of Nubert!
"* Great shot of Nubert!", "obj_shutta_photo_controller_slash_Collision_obj_shutta_photo_nubert_gml_7_0"
);
6
    else
7
        endmessage = stringsetloc(
* Nubert was underground in that shot...
"* Nubert was underground in that shot...", "obj_shutta_photo_controller_slash_Collision_obj_shutta_photo_nubert_gml_11_0"
);
8
    with (other)
9
    {
10
        con = 1;
11
        image_speed = 0;
12
    }
13
}
14
else
15
{
16
    with (other)
17
    {
18
        if (con == 0 && sprite_index != spr_npc_nubert_hide)
19
        {
20
            image_speed = 0.5;
21
            sprite_index = spr_npc_nubert_hide;
22
            image_index = 0;
23
        }
24
    }
25
}