Fields of Mistria — Vanilla GML Reference FoM v1.0.8

obj_pq_ne_shelf.gml

object_create(
    "obj_pq_ne_shelf",
    object_reserve("par_interactable"),
    {
        sprite_index: spr_priestess_quarters_library_shelf_3_main,
        create: function() {
            event_inherit(ObjectEvent.Create);

            //
            SHADOW_GRID.caster_create(self);

            self.register_interaction(
                InputId.Interact,
                "misc_local/inspect",
                function() {
                    play_conversation_from_path(NpcId.Adeline, GAMEPLAY_CONVERSATIONS[GpTriggeredConversation.PqNeShelf]);
                }
            )

            self.depth = get_instance_depth(self.y);
        },
    }
);