Kelvintaph Defiller python help[SOLVED]

# The ogres are trapping you with their dark rituals!
# Your hero can't do anything besides command and move without angering the warlocks.
# Beware ice, robots, traps, antigravity fields, and other dark magic.
# Somehow, you'll need to defeat Nalfar and save your paladin.
# The great treasure of Kelvintaph awaits your victory.
friends = hero.findFriends()
hero.moveXY(36, 23)
hero.moveXY(72, 14)
while True:
    enemy = hero.findNearestEnemy()
    friends = hero.findFriends()
    for friend in friends:
        enemi = friend.findNearestEnemy()
        nalfar = hero.findByType("necromancer")
        if friend.type != "paladin":
            if enemi and != "uld-mak":
                hero.command(friend, "attack", enemi)
    paladins = hero.findByType("paladin")
    for paladin in paladins:
        if friend.type == "paladin":
            hero.command(friend, "shield")   
            if paladin.canCast("heal") and < 600:
                hero.command(paladin, "cast", "heal", paladin)

My friends won’t attack then they get feared, I get stuck by the warlocks and then my paladin dies

The Fear spell causes your friend to flee and not attack.

Milton, the shamans cast fear when the soldiers/ archers are on the x’s

can you show a screen shot please? :pleading_face:

There’s actually more than one way to do this level. However it’s good to note that your archers and soldiers can still attack shamans while being moved, but they cannot attack or move once over the red X’s. Killing a shaman allows a troop specified to that shaman to perform any action, which means you can use that “freed” troop to free other units. However you’ll want to figure out a good strategy as your paladin has to stay alive. Time is key!

@Chaboi_3000 I thought I read somewhere you don’t want to kill the first shaman, is that corect

FINNALLY!! I solved it!!

1 Like

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