Hey guys I need help on hoarding gold with coin.value. This is my code so far and I’m using quartz sense stone. Everytime I use the code it says coin.value is unavailable.
# Use break to stop collecting when totalGold >= 25 totalGold = totalGold + coin.value loop: coin = self.findNearestItem() if coin: pos = coin.pos itemX = pos.x itemY = pos.y self.moveXY(itemX, itemY) totalGold = totalGold + 1 # Pick up the coin and add its value to the total. # Get its value with: coin.value if totalGold >= 25: