Kelvintaph Deflier Help

Hey guys, I don’t know what to do in this level. Can you help me with this.

Thanks,
ColdFIre

2 Likes

can you show me your code fully formatted please?

1 Like

and you equipment also please

1 Like

That’s what I don’t know what to do in this level…

(You get what I mean??)

1 Like

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

1 Like

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

my equipment

How close are you to your friends? Maybe you need enchanted lenses, because those can see through walls and see infinitely?

1 Like

Yes, but they don’t allow them

Screenshot 2021-09-15 12.12.51 PM

see

oh ok, I can’t help you then because I’m not on this level… maybe ask @cheddarcheese or @ammu456 to help you

1 Like

k

thanks though

(20 chars)

I tried :slight_smile: (20 chars)

1 Like

:grinning: 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.

1 Like

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

but you can equip them
proof

lol, I was wrong, the enchanted lenses dont let u see thru walls, sorry!!

1 Like

Yeah, I was talking about the other glasses which have the red frames