Help with Pulp Script: Creating health Item that checks if health is full

im having trouble creating a food item to check the current health of the player

on collect do
if health<maxhealth then
sound "Eat"
health += 1
swap "white"
elseif health==maxhealth then
swap "white

giving me a error im not sure what im doing wrong.

At first glance, the code snippet you pasted here is missing another “end”, at the … well… end.

1 Like

This fixed the issue thank you very much for your help

1 Like