def guardcastle ():
while True:
if enemy.properties(health) > 1000:
hero.build("archer", "a")
Hi, sadly, my telepathic powers are disabled temporarily
Could you explain what’s the problem? Where is the problem? And what are we talking about?
If you are trying to get the health property/value of the enemy, you would use enemy.health
, rather than enemy.properties(health)
1 Like
tried that but it only works for all enemies and not for nearest enemy and even forr all enemies the if even though though it should = true @Chaboi_3000
i did some trouble shoothing and i think that hero find nearest enemy is the prob
dont @ people multiple times how annoying would it be if i did this
1 Like
ok thanks for the information
en = champion.findNearestEnemy()
if en:
champion = data.champion;
guide=champion.findNearestEnemy()
if guide.x < champion.x:
if champion.place==h or g:
champion.moveTo("f or e")
what do you think is wrong never moves an inch @Bryukh @Chaboi_3000
nvm i relized hero. find nearest