Hello I started this code combat 6 month ago, and I am stuck in Continuous Alchemy . My code is this.
loop:
enemy = self.findNearest(self.findEnemies())
item = self.findNearest(self.findItems())
if not enemy:
continue
self.say("I see an enemy!")
#If there is an enemy, but no item, ask for a potion and continue out of the loop.
if not item:
self.say("Give me a drink!")
continue
#Use an if-statement to check the item's type. If the type is "poison", continue out of the loop.
if item.type is "poison":
continue
Help Me!!!
Can someone show me the code?