Here is my code,
loop: coins = self.findItems() if self.gold < 20: if coins.value == 3: self.moveXY(coins.pos.x,coins.pos.y)
What am I missing? I have tried multiple different ways of writing this. All I want is to only pick-up gold coins but once I have 20 gold I want it to perform a different function.