Let’s just say there was a troller bully and he’s taking advantage over new users and insulting them, so yeah, I banned him. Then another guy came in and started getting triggered that I banned him, and spamming swear words in my PM’s so I had to ban him too ;( But for this forum, I only had to tell a mod to ban only one person, during my time in this forum, in discord, I probably banned over 20 in a year! I wish I can have some chill time.
What other discourses do you moderate?
If I was a mod on a board like that, it would be empty because I would just ban everyone. LOL.
I quit some, because they were too overwhelming. And seriously those people don’t even listen to you.
But what other boards do you moderate?
Please, help me show me how this does not work.
def inAttackRange(enemy): distance = hero.distanceTo(enemy) if distance <= 3: return True else: return False while True: enemy = hero.findNearestEnemy() canAttack = inAttackRange hero.attack(enemy) pass
you never called canAttack anywhere
the variable has no use if you don’t use it
if enemy: and then use if
Still no hero live but not kill any ogres.
Can you post your updated code please? Thanks!
Here it is.
def inAttackRange(enemy): distance = hero.distanceTo(enemy) if distance <= 3: return True else: return False while True: if enemy: enemy = hero.findNearestEnemy() inAttackRange(enemy) hero.attack(enemy) pass
I tried to just cleave and it worked.
you have to define a variable before you can call it. Place the enemy definition before the if conditional in the
while True loop. You need to utilize the true or false return from the function. No where in your code are you doing that.