Hey guys, I don’t know what to do in this level. Can you help me with this.
Thanks,
ColdFIre
Hey guys, I don’t know what to do in this level. Can you help me with this.
Thanks,
ColdFIre
can you show me your code fully formatted please?
and you equipment also please
That’s what I don’t know what to do in this level…
(You get what I mean??)
If you don’t know what to do maybe look at the hints or something to see the objective, and then make some base code, and if it doesn’t work come back here and we can help you
Ok will do (20 chars)
def paladin():
paladins = []
friends = hero.findFriends()
for friend in friends:
if friend.type == 'paladin':
paladins.append(paladin)
for paladin in paladins:
if paladin:
if paladin.health < paladin.maxHealth:
hero.command(paladin, "cast", ' heal', paladin)
else:
hero.command(paladin, "shield", paladin)
def escape():
paladins = []
archers = []
soldiers = []
friends = hero.findFriends()
for friend in friends:
if friend.type == 'soldier':
soldiers.append(friend)
elif friend.type == 'archer':
archers.append(friend)
else:
paladins.append(friend)
#get rid of enemeis
for archer in archers:
for enemy in enemies:
if enemy.type == 'yeti':
hero.command(archer, "attack", enemy)
elif enemy.type == 'shaman':
hero.command(archer, 'attack', target)
for archer in archer:
for soldier in soldiers:
if soldier.action == 'idle':
hero.command(soldier, "move", archer.pos)
else:
hero.command(archer, 'attack', soldier.findNearestEnemy())
if soldier.action == 'idle' and archer.action == 'idle':
hero.command(friend, "move", paladin.pos)
if paladin.distanceTo(soldier) < 10 and paladin.distanceTo(archer) < 10:
hero.command(archer, "attack", paladin.findNearestEnemy())
def hero():
hero.moveXY(34, 15)
hero.moveXY(34, 22)
while True:
paladin()
hero()
escape()
It says that, I can’t find Friends even though I can
How close are you to your friends? Maybe you need enchanted lenses, because those can see through walls and see infinitely?
Yes, but they don’t allow them
see
oh ok, I can’t help you then because I’m not on this level… maybe ask @cheddarcheese or @ammu456 to help you
k
thanks though
(20 chars)
I tried (20 chars)
Thanks for trying (20 chars)
hmmm, it might be because your troops are having fear and antigravity spells casted on them. You need to kill the shaman at the beginning with your troops so that the rest of the troops don’t get flung.
When I ask my troops to move, they move in a weird way, without moving to the specified point.
and I don’t know what to do with my hero, I can’t do anything (I am not subscribed so I can’t get Ritic) So, can I get some help with that too please.
Thanks,
ColdFire
lol, I was wrong, the enchanted lenses dont let u see thru walls, sorry!!
Yeah, I was talking about the other glasses which have the red frames