Hi welcome! The reason you only see these two in the gears is because you are only trust level 0. to get to trust level one, you have to read some posts. You could also always create a topic by using the button on the home discourse screen. Then you can categorize it as level help and we can help you there. But it is up to you
1 Like
Heh, it showed Up that this mess was one of important stuff
But thank you ashmit_singh.
I did some correction in my code with
if not enemy and hero.health<25:
With 26 it didnt work, but with 25 it does … dunno why
But now I did all BONUSES thank so much
2 Likes
Hi! I have no idea why it is telling me that it “Can’t read property type of null”, when the line before it I just defined the target!!! Here is my code:
while True:
enemy = hero.findNearestEnemy()
if enemy:
enemy = hero.findNearestEnemy()
hero.attack(enemy)
if hero.canCast("chain-lightning", enemy):
enemy = hero.findNearestEnemy()
hero.cast("chain-lightning", enemy)
if hero.canCast("regen", hero):
hero.cast("regen", hero)
enemy = hero.findNearestEnemy()
if enemy.type == "catapult":
enemy = hero.findNearestEnemy()
hero.moveXY(8, 42)
wait, nvm i fixed it! I had to change it to
if enemy and enemy.type == "catapult"
Oop, now Haushbaum isn’t even going to the bombing area when the catapult comes. why? NVM, i’m good!