decoysBuilt = 0
coin = hero.findNearestItem()
if coin: hero.moveXY(coin.pos.x, coin.pos.y) pass # Each decoy costs 25 gold. # If hero.gold is greater than or equal to 25: if hero.gold >=25: hero.buildXY("decoy", hero.pos.x, hero.pos.y) # Add 1 to the decoysBuilt count. decoy+=1 if decoysBuilt == 4: # Break out of the loop when you have built 4. break pass
hero.say(“Done building decoys!”)
Say how many decoys you built.
when ever i type this in the decoy+=1 says it is not defined somebody pls help me