You guys know the drill by now. Anything Snowhld Clash! Enjoy!
How do I define the enemy hero?
which language 20 chars suck
For some reason this dosent work.
if enemy.health > 300 and < 450:
Does it work elsewhere? For javascript it doesnβt work anywhere.
Nope (20charsssssss)
I guess I could just make it so that it runs through 2 if loops.
You could also do if enemy.health > 300 and enemy.health < 450
Ohhhh ok thanks!!
@JustALuke I need your help!!! How do you make lightning target spirits, catapults and brawlers, and then fireballs target paladins, archers, soldiers???
Hi @ChickenMaster I think I can help.
- Use
def (insert variable name here)
- Use a for loop to loop through all enemies.
- Inside the for loop insert a if loop to find the the
enemy.type ==
the enemy you want to lightning. - Then cast the lightning on the
enemy.x
andenemy.y
- Repeat steps 2 - 4 until all the enemies you want to lightning are covered
To fireball just change the lightning to a fireball.
Hope that helps!
Wait, are you playing live now?? It looks like you are!!!
( deleted by author)
What variable???
Just pick a name. (20chars)
Can you write it please??( It is not working for me.)
def lightning:
enemies = hero.findEnemies
for enemy in enemies:
if enemy.type == "paladin":
hero.cast("lightning", enemy.x, enemy.y)
break;
P.S. My username is R1b!!! So, thanks!!!
Oh, and how do you target a spirit???