I can’t seem to find my mistake and the site is indicating no errors or red crosses. Why won’t it work?
Btw they are all aligned in the game, disregard the alignment here,
loop:
enemy = …
item = …
if not enemy:
continue
if not item:
self.say("Give me a drink!")
if item:
if item.type != "poison":
self.moveXY(44,35)
self.moveXY(34,47)
else:
continue
As a player who joined this forum a week ago, one would think you would have read the FAQ by now. Please do so. Instruction on proper formatting is located inside.
You only check if item: if if not item: is True. This is a contradiction in terms.
wait when I try this code, my character won’t move. And when he did move, he ignored the fact that he was supposed to say “give me a drink”. Im so confused.
Plz help!