Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Nalfar Cryptor Spells Help

Hi, when im doing the Stranded in the Dunes level I have to code the whole level, I chose to use Nalfar Cryptor I just started using him and dont know how to use the spells, can someone help me this is my current code right now.

// Go to the far right edge of the level to find new areas.
// Check the guide for more details.
while True:
    hero.moveXY(hero.pos.x + 1, hero.pos.y )
    enemy = hero.findNearestEnemy()
    if enemy:
        if hero.canCast("summon-burl", enemy):
            hero.cast("summon-burl", enemy)
        if hero.canCast("drain-life", enemy):
            hero.cast("drain-life", enemy)
        if hero.canCast("sacrifice", enemy):
            hero.cast("sacrifice", enemy)
        if hero.canCast("soul-link", enemy):
            hero.cast("soul-link", enemy)
    flag = hero.findFlag("green")
    if flag:
        hero.moveXY(flag.pos.x, flag.pos.y)


1 Like

Well, let’s tart with drain life. Drain life is a continous spell, it has no cool down and can be cast continually. It means you can’t do anything else while you’re draining life (but you can stop at any time, and it will be interrupted by stuff like summoning soldiers). It takes a certain amount of an enemy’s life per turn and gives it to you (it doesn’t increase you max health if you are at it.
Sacrifice only works on your own friends, it kills them and transfers their life and some of their attack to you. Can be very powerful in some levels.
Soul link also only works with friends, it links you together meaning when one of you loses health it shares the damage between both of you. If you had a friend who was safe but you were being attacked you could soul link with them and you would last longer because you would be sharing your life with them.
Not used there, but devour just attacks an enemy for 200 and you get some of their life if you kill them, you have to be close.

1 Like

Ohh thats why some of the codes didnt work, Thanks

1 Like