Big basher help[solved]

enemy = hero.findNearestEnemy()
while True:
   if hero.isReady("slam"):
       hero.slam(enemy)

not working.
Hero does nothing and get bullied by a skeleton

Is this the whole code? Please post it all if not

1 Like

that the whole code.

Maybe you would want to add an else statement for attacking

this level not giving me sword

Can you please post your gear, and a screenshot of the level?


there


lvl

link to lvl

I can’t access it, I’m not a subscriber. And I meant a screenshot of the level inside

@Haris, You have to find the nearest enemy inside of the while true loop, or you will never find an enemy to slam.

3 Likes

do:

while True:
    enemy=hero.findNearestEnemy()
    if enemy:
        if hero.isReady("slam"):
            hero.slam(enemy)
            

and that should do it because it finds ALL of the enemies/skeletons and slams them with illia’s abbility

1 Like

You can’t give the solution just tell him the things he needs to change I think : O

sorry :pensive:

1 Like

Maybe you should edit it so you don’t get flagged lol just tryna help :3

ty im complete :slightly_smiling_face: 20characters

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.