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

Help! Restless Dead [Python]

Just because you armor is trash, does not mean it cannot do epic things. It is called a trash can not a trash cannot. What I mean is some armor have special ability.

Mumbo_6

2 Likes

Yeti = hero.findByType(“yeti-cub”)[0] - yeti cub: I feel bad about it!
@Lydia_Song you can find another restless video here: Restless dead - it's restless

1 Like

Thank you @xython for helping solve the not attacking yeti problem.
But now, my hero still doesn’t collect the coins and my hero won’t summon any new soldiers even though I have more than enough to summon a solider.
My code:

def attackYeti():
    yeti = hero.findByType("yeti-cub")[0]
    if yeti:
        hero.attack(yeti)
    else: 
        break

def summon():
    if hero.gold > hero.costOf("soldier"):
        hero.summon("soldier")
    else:
        break

def command():
    friends = hero.findFriends()
    
    
    for friend in friends:
        enemyF = friend.findNearestEnemy()
        if enemyF:
            
            hero.command(friend, "attack", enemyF)
        if not enemyF:
            break
        

def friendMove():
    friends = hero.findFriends()
    for friend in friends:
        hero.command(friend, "move", {'x':53, 'y':47})
        

def attack():
    enemy = hero.findNearestEnemy()
    if enemy:
        if hero.isReady("bash"):
            hero.bash(enemy)
        else:
            hero.attack(enemy)
            

def collect():
    item = hero.findNearestItem()
    if item:
        hero.move(item.pos)
    else:
        break

while True:
    friends = hero.findFriends()
    yeti = hero.findByType("yeti-cub")[0]
    
    enemy = hero.findNearestEnemy()
    if hero.gold > hero.costOf("soldier"):
        summon()
    for friend in friends:
        enemyF = friend.findNearestEnemy()
        if enemyF:
            command()
        if not enemyF:
            friendMove()
    if enemy:
        if yeti:
            attackYeti()
        if not yeti:
            attack()
    else:
        hero.moveXY(19, 40)

Lydia

Hello! Is anyone on?
Lydia

Yes, Hi, I’m a bit busy right now (in school) if you don’t mind I’ll help you out during break.

Ok!
Lydia
20 characters

Ello?
Lydia
20 chars

What equipment are you using?

Andrei


Lydia

Try to use a wizard.With them it is easier in my opinion. What spell books do you have? And what wizards do you have?

Andrei

1 Like

I perfer to use warrior, ranger, but I have Pender,image and image
Lydia

1 Like

Try to use chain-llightning.

BTW, can you send what can these books do? (and your wizard equipment)

You should use the Unholy Tome so when the horde of skeletons come, they will be gone in a few seconds, then you cast Raise Dead on them and then you just sit there and see the skeletons doing the work for you.

Andrei

But it can’t summon skeletons. It’s tom 4, not 5.

No, but she can raise them.

Andrei

Also she can manablast and resetcooldown something.

It depends on what wizard does she use. But after she raises all of the army that died from the poison cloud, she will not need to do anything else.

Andrei

image
image

And can you give me an example on how to use chain-lightning?
And how would I use manablast, resetcooldown, and all that stuff? I’ve always had trouble with wizards.
Lydia

Best wizarding equipment:
image
image
image
image
Lydia