The pet will not fetch the potion. I’ve replaced pet.fetch(potion) with something else, like pet.moveXY(50, 50) and that works perfectly. However, when I replace it back to pet.fetch(potion) , it doesn’t work. I’ve tried adding quotations on the word potion , but my pet says “I can’t carry that!” I’ve also re-written the code from scratch, yet it still doesn’t work. Help!
Hi @SirStonks and welcome to the forum! This is a friendly place where you can ask help on levels, report bugs, or just chat with other coders! Don’t forget to read the guidelines if you haven’t yet. Have a great time!
I think that the problem over here is this: potion = hero.findNearestItem() it should be for the pet instead.
I’ve figured it out, for some reason, it only works when the hero is attacking a character. Maybe he can only drink the potion when his health is low? Thanks for helping!