How to make items do different things?

Use an overlay called heal, and make the overlay open a popup shop that uses the food as “currency” for health. Popup shop: